Lines Matching refs:image
852 image = BinaryImage(args.inf, args.key)
854 image.add_subkey(args.subkey, args.name)
855 image.set_subkey(args.algo, args.name, args.uuid, args.subkey_version,
857 image.sign()
858 image.write(args.outf)
881 image = BinaryImage(args.inf, args.key)
885 image.parse()
886 if hasattr(image, 'subkey_hdr'): # Subkey
887 print('Subkey UUID: {}'.format(uuid.UUID(bytes=image.uuid)))
888 image.verify_signature()
889 image.verify_digest()
891 if uuid.UUID(bytes=image.uuid) != next_uuid:
893 .format(uuid.UUID(bytes=image.uuid),
896 if image.max_depth < 0 or image.max_depth >= max_depth:
898 .format(image.max_depth, max_depth))
899 max_depth = image.max_depth
900 if len(image.next_inf) == 0:
903 if image.name_size > 0:
904 next_uuid = uuid_v5_sha512(image.uuid,
905 name_img_to_str(image.name_img))
907 next_uuid = image.uuid
908 image = BinaryImage(image.next_inf, image.subkey_key)
910 print('TA UUID: {}'.format(uuid.UUID(bytes=image.ta_uuid)))
912 if uuid.UUID(bytes=image.ta_uuid) != next_uuid:
914 .format(uuid.UUID(bytes=image.ta_uuid),
916 if hasattr(image, 'ciphertext'):
920 image.decrypt_ta(args.enc_key)
921 image.verify_signature()
922 image.verify_digest()
923 image.verify_uuid(args.uuid)