Lines Matching refs:image
848 image = BinaryImage(args.inf, args.key)
850 image.add_subkey(args.subkey, args.name)
851 image.set_subkey(args.algo, args.name, args.uuid, args.subkey_version,
853 image.sign()
854 image.write(args.outf)
877 image = BinaryImage(args.inf, args.key)
881 image.parse()
882 if hasattr(image, 'subkey_hdr'): # Subkey
883 print('Subkey UUID: {}'.format(uuid.UUID(bytes=image.uuid)))
884 image.verify_signature()
885 image.verify_digest()
887 if uuid.UUID(bytes=image.uuid) != next_uuid:
889 .format(uuid.UUID(bytes=image.uuid),
892 if image.max_depth < 0 or image.max_depth >= max_depth:
894 .format(image.max_depth, max_depth))
895 max_depth = image.max_depth
896 if len(image.next_inf) == 0:
899 if image.name_size > 0:
900 next_uuid = uuid_v5_sha512(image.uuid,
901 name_img_to_str(image.name_img))
903 next_uuid = image.uuid
904 image = BinaryImage(image.next_inf, image.subkey_key)
906 print('TA UUID: {}'.format(uuid.UUID(bytes=image.ta_uuid)))
908 if uuid.UUID(bytes=image.ta_uuid) != next_uuid:
910 .format(uuid.UUID(bytes=image.ta_uuid),
912 if hasattr(image, 'ciphertext'):
916 image.decrypt_ta(args.enc_key)
917 image.verify_signature()
918 image.verify_digest()
919 image.verify_uuid(args.uuid)