Lines Matching refs:format

440                                  .format(self.previous_max_depth) +
451 .format(self.previous_max_depth) +
484 raise Exception("Unexpected magic: 0x{:08x}".format(magic))
488 .format(algo_value))
492 raise Exception("Unexpected digest len: {}".format(hash_size))
511 .format(enc_algo))
514 .format(nonce_len))
519 raise Exception("Unexpected tag len: {}".format(tag_len))
527 .format(len(self.ciphertext), img_size))
533 .format(len(self.img), img_size))
570 .format(len(self.img), img_size))
572 raise Exception("Unsupported image type: {}".format(img_type))
583 print(' uuid: {}'.format(uuid.UUID(bytes=ta_uuid)))
586 print(' ta_version: {}'.format(ta_version))
600 .format(enc_algo, enc_algo_name))
604 .format(enc_algo))
609 print(' flags: 0x{:x} ({})'.format(flags, flags_name))
611 print(' iv_size: {} (bytes)'.format(nonce_len))
614 .format(nonce_len))
617 .format(binascii.hexlify(nonce).decode('ascii')))
620 print(' tag_size: {} (bytes)'.format(tag_len))
622 raise Exception("Unexpected tag len: {}".format(tag_len))
625 .format(binascii.hexlify(tag).decode('ascii')))
629 print(' TA offset: {} (0x{:x}) bytes'.format(offs, offs))
631 .format(len(ciphertext), len(ciphertext)))
635 .format(len(ciphertext), img_size))
638 print(' TA offset: {} (0x{:x}) bytes'.format(offs, offs))
640 .format(len(img), len(img)))
643 .format(len(img), img_size))
651 print(' next name: "{}"'.format(name_img_to_str(name_img)))
654 .format(offs, offs))
662 Exception("Unexpected magic: 0x{:08x}".format(magic))
680 print(' magic: 0x{:08x}'.format(magic))
681 print(' img_type: {} ({})'.format(img_type, img_type_name))
682 print(' img_size: {} bytes'.format(img_size))
683 print(' algo: 0x{:08x} ({})'.format(algo_value, algo_name))
684 print(' hash_size: {} bytes'.format(hash_size))
685 print(' sig_size: {} bytes'.format(sig_size))
689 .format(algo_value))
692 raise Exception("Unexpected digest len: {}".format(hash_size))
696 .format(binascii.hexlify(img_digest).decode('ascii')))
711 .format(algo))
714 print(' uuid: {}'.format(uuid.UUID(bytes=img_uuid)))
715 print(' name_size: {}'.format(name_size))
716 print(' subkey_version: {}'.format(subkey_version))
717 print(' max_depth: {}'.format(max_depth))
718 print(' algo: 0x{:08x} ({})'.format(algo, algo_name))
719 print(' attr_count: {}'.format(attr_count))
722 raise Exception("Unsupported image type: {}".format(img_type))
756 format(len(self.sig), self.sig_size))
767 format(len(self.sig), self.sig_size))
887 print('Subkey UUID: {}'.format(uuid.UUID(bytes=image.uuid)))
893 .format(uuid.UUID(bytes=image.uuid),
898 .format(image.max_depth, max_depth))
910 print('TA UUID: {}'.format(uuid.UUID(bytes=image.ta_uuid)))
914 .format(uuid.UUID(bytes=image.ta_uuid),
941 print('Subkey UUID: {}'.format(uuid.UUID(bytes=sk_image.uuid)))
945 print('Subkey UUID: {}'.format(uuid.UUID(bytes=sk_image.uuid)))
948 logger.error('Length of name ({}) '.format(len(args.name)) +
950 .format(sk_image.name_size))
953 .format(uuid_v5_sha512(sk_image.uuid, args.name)))
956 .format(uuid.UUID(bytes=sk_image.uuid)))