Lines Matching refs:format

194   return 'avbtool {}.{}.{}'.format(AVB_VERSION_MAJOR,
378 raise AvbError('Error getting public key: {}'.format(perr))
437 raise AvbError('Unknown algorithm type {}'.format(alg_type))
487 raise AvbError('Error signing: {}'.format(perr))
686 'only 1.0 is supported'.format(major_version,
690 format(file_hdr_sz))
693 format(chunk_hdr_sz))
717 format(data_sz, chunk_sz*self.block_size))
729 'has {}'.format(data_sz))
740 format(data_sz))
750 'this has {}'.format(data_sz))
753 raise ValueError('Unknown chunk type {}'.format(chunk_type))
764 'but we saw {}'.format(self._num_total_blocks, offset))
768 'file.'.format(junk_len))
1063 o.write(' Tag: {}\n'.format(self.tag))
1065 o.write(' Data: {} ({} bytes)\n'.format(
1068 o.write(' Data: {} bytes\n'.format(len(self.data)))
1151 o.write(' Prop: {} -> {}\n'.format(self.key, repr(str(self.value))))
1153 o.write(' Prop: {} -> ({} bytes)\n'.format(self.key, len(self.value)))
1291 o.write(' Version of dm-verity: {}\n'.format(self.dm_verity_version))
1292 o.write(' Image Size: {} bytes\n'.format(self.image_size))
1293 o.write(' Tree Offset: {}\n'.format(self.tree_offset))
1294 o.write(' Tree Size: {} bytes\n'.format(self.tree_size))
1295 o.write(' Data Block Size: {} bytes\n'.format(
1297 o.write(' Hash Block Size: {} bytes\n'.format(
1299 o.write(' FEC num roots: {}\n'.format(self.fec_num_roots))
1300 o.write(' FEC offset: {}\n'.format(self.fec_offset))
1301 o.write(' FEC size: {} bytes\n'.format(self.fec_size))
1302 o.write(' Hash Algorithm: {}\n'.format(self.hash_algorithm))
1303 o.write(' Partition Name: {}\n'.format(self.partition_name))
1304 o.write(' Salt: {}\n'.format(str(self.salt).encode(
1306 o.write(' Root Digest: {}\n'.format(str(
1308 o.write(' Flags: {}\n'.format(self.flags))
1365 format(image_filename))
1372 format(image_filename))
1379 .format(self.partition_name, self.hash_algorithm, image.filename,
1461 o.write(' Image Size: {} bytes\n'.format(self.image_size))
1462 o.write(' Hash Algorithm: {}\n'.format(self.hash_algorithm))
1463 o.write(' Partition Name: {}\n'.format(self.partition_name))
1464 o.write(' Salt: {}\n'.format(str(self.salt).encode(
1466 o.write(' Digest: {}\n'.format(str(self.digest).encode(
1468 o.write(' Flags: {}\n'.format(self.flags))
1516 format(self.hash_algorithm, image_filename))
1519 .format(self.partition_name, self.hash_algorithm, image.filename,
1579 o.write(' Flags: {}\n'.format(self.flags))
1580 o.write(' Kernel Cmdline: {}\n'.format(repr(
1677 o.write(' Partition Name: {}\n'.format(self.partition_name))
1678 o.write(' Rollback Index Location: {}\n'.format(
1682 o.write(' Public key (sha1): {}\n'.format(hexdig))
1721 format(self.partition_name))
1728 format(rollback_index_location,
1736 format(self.partition_name))
1740 'expected data'.format(self.partition_name))
2065 'block size {}.'.format(partition_size,
2083 .format(partition_size,
2115 raise AvbError('Malformed slot data "{}".'.format(slot_data))
2149 o.write('Footer version: {}.{}\n'.format(footer.version_major,
2151 o.write('Image size: {} bytes\n'.format(image_size))
2152 o.write('Original image size: {} bytes\n'.format(
2154 o.write('VBMeta offset: {}\n'.format(footer.vbmeta_offset))
2155 o.write('VBMeta size: {} bytes\n'.format(footer.vbmeta_size))
2160 o.write('Minimum libavb version: {}.{}{}\n'.format(
2164 o.write('Header Block: {} bytes\n'.format(AvbVBMetaHeader.SIZE))
2165 o.write('Authentication Block: {} bytes\n'.format(
2167 o.write('Auxiliary Block: {} bytes\n'.format(
2169 o.write('Algorithm: {}\n'.format(alg_name))
2170 o.write('Rollback Index: {}\n'.format(header.rollback_index))
2171 o.write('Flags: {}\n'.format(header.flags))
2172 o.write('Release String: \'{}\'\n'.format(
2199 raise AvbError('Malformed chained partition "{}".'.format(cp))
2211 print 'Verifying image {} using key at {}'.format(image_filename, key_path)
2214 print 'Verifying image {} using embedded public key'.format(image_filename)
2229 .format(alg_name, image_filename))
2242 .format(alg_name, image.filename))
2245 .format(alg_name, image.filename))
2310 output.write('{}\n'.format(digest.encode('hex')))
2441 c += ' {}'.format((ht.image_size / 512)) # size (# sectors)
2442 c += ' verity {}'.format(ht.dm_verity_version) # type and version
2445 c += ' {}'.format(ht.data_block_size) # data_block
2446 c += ' {}'.format(ht.hash_block_size) # hash_block
2447 c += ' {}'.format(ht.image_size / ht.data_block_size) # #blocks
2448 c += ' {}'.format(ht.image_size / ht.data_block_size) # hash_offset
2449 c += ' {}'.format(ht.hash_algorithm) # hash_alg
2450 c += ' {}'.format(str(ht.root_digest).encode('hex')) # root_digest
2451 c += ' {}'.format(str(ht.salt).encode('hex')) # salt
2457 c += ' fec_roots {}'.format(ht.fec_num_roots)
2461 c += ' fec_blocks {}'.format(ht.fec_offset/ht.data_block_size)
2462 c += ' fec_start {}'.format(ht.fec_offset/ht.data_block_size)
2560 print '1.{}'.format(tmp_header.required_libavb_version_minor)
2644 raise AvbError('Unknown algorithm with name {}'.format(algorithm_name))
2658 raise AvbError('Malformed chained partition "{}".'.format(cp))
2665 raise AvbError('Rollback Index Location {} is already in use.'.format(
2686 raise AvbError('Malformed property "{}".'.format(prop))
2695 raise AvbError('Malformed property "{}".'.format(prop))
2759 raise AvbError('Key is required for algorithm {}'.format(
2763 raise AvbError('Key is wrong size for algorithm {}'.format(
2862 'block size {}.'.format(partition_size,
2984 print '1.{}'.format(required_libavb_version_minor)
2993 'Needs to be at least {}'.format(
2999 print '{}'.format(max_image_size)
3006 'block size {}.'.format(partition_size,
3032 'size of {}.'.format(image.image_size, max_image_size,
3192 print '1.{}'.format(required_libavb_version_minor)
3217 print '{}'.format(max_image_size)
3225 'block size {}.'.format(partition_size,
3230 'block size {}.'.format(image.image_size,
3262 'size of {}.'.format(image.image_size, max_image_size,
3622 raise ValueError('Error invoking fec: {}'.format(perr))
4214 sys.stderr.write('{}: {}\n'.format(argv[0], e.message))