Lines Matching refs:write

466         signing_file.write(padding_and_hash)
619 asn1_tmpfile.write(asn1_str.encode('ascii'))
641 sys.stderr.write('Signature not correct\n')
892 self._image.write(struct.pack(self.NUM_CHUNKS_AND_BLOCKS_FORMAT,
926 self._image.write(struct.pack(ImageChunk.FORMAT,
951 self._image.write(data)
960 self._image.write(struct.pack(ImageChunk.FORMAT,
966 self._image.write(data)
990 self._image.write(fill_data * (size//4))
999 self._image.write(struct.pack(ImageChunk.FORMAT,
1004 self._image.write(fill_data)
1129 self._image.write(struct.pack(ImageChunk.FORMAT,
1192 o.write(' Unknown descriptor:\n')
1193 o.write(' Tag: {}\n'.format(self.tag))
1195 o.write(' Data: {} ({} bytes)\n'.format(
1198 o.write(' Data: {} bytes\n'.format(len(self.data)))
1299 o.write(' Prop: {} -> {}\n'.format(self.key, printable_value))
1301 o.write(' Prop: {} -> ({} bytes)\n'.format(self.key, len(self.value)))
1453 o.write(' Hashtree descriptor:\n')
1454 o.write(' Version of dm-verity: {}\n'.format(self.dm_verity_version))
1455 o.write(' Image Size: {} bytes\n'.format(self.image_size))
1456 o.write(' Tree Offset: {}\n'.format(self.tree_offset))
1457 o.write(' Tree Size: {} bytes\n'.format(self.tree_size))
1458 o.write(' Data Block Size: {} bytes\n'.format(
1460 o.write(' Hash Block Size: {} bytes\n'.format(
1462 o.write(' FEC num roots: {}\n'.format(self.fec_num_roots))
1463 o.write(' FEC offset: {}\n'.format(self.fec_offset))
1464 o.write(' FEC size: {} bytes\n'.format(self.fec_size))
1465 o.write(' Hash Algorithm: {}\n'.format(self.hash_algorithm))
1466 o.write(' Partition Name: {}\n'.format(self.partition_name))
1467 o.write(' Salt: {}\n'.format(self.salt.hex()))
1468 o.write(' Root Digest: {}\n'.format(self.root_digest.hex()))
1469 o.write(' Flags: {}\n'.format(self.flags))
1529 sys.stderr.write('hashtree of {} does not match descriptor\n'.
1542 sys.stderr.write('hashtree of {} contains invalid data\n'.
1634 o.write(' Hash descriptor:\n')
1635 o.write(' Image Size: {} bytes\n'.format(self.image_size))
1636 o.write(' Hash Algorithm: {}\n'.format(self.hash_algorithm))
1637 o.write(' Partition Name: {}\n'.format(self.partition_name))
1638 o.write(' Salt: {}\n'.format(self.salt.hex()))
1639 o.write(' Digest: {}\n'.format(self.digest.hex()))
1640 o.write(' Flags: {}\n'.format(self.flags))
1691 sys.stderr.write('{} digest of {} does not match digest in descriptor\n'.
1756 o.write(' Kernel Cmdline descriptor:\n')
1757 o.write(' Flags: {}\n'.format(self.flags))
1758 o.write(' Kernel Cmdline: \'{}\'\n'.format(self.kernel_cmdline))
1858 o.write(' Chain Partition descriptor:\n')
1859 o.write(' Partition Name: {}\n'.format(self.partition_name))
1860 o.write(' Rollback Index Location: {}\n'.format(
1864 o.write(' Public key (sha1): {}\n'.format(pubkey_digest))
1902 sys.stderr.write('No expected chain partition for partition {}. Use '
1910 sys.stderr.write('Expected rollback_index_location {} does not '
1918 sys.stderr.write('Expected public key blob does not match public '
2204 output.write(buf[0:image_size])
2224 output.write(vbmeta_blob)
2229 output.write(b'\0' * padding_needed)
2404 misc_image.write(ab_data)
2426 o.write('Footer version: {}.{}\n'.format(footer.version_major,
2428 o.write('Image size: {} bytes\n'.format(image_size))
2429 o.write('Original image size: {} bytes\n'.format(
2431 o.write('VBMeta offset: {}\n'.format(footer.vbmeta_offset))
2432 o.write('VBMeta size: {} bytes\n'.format(footer.vbmeta_size))
2433 o.write('--\n')
2437 o.write('Minimum libavb version: {}.{}{}\n'.format(
2441 o.write('Header Block: {} bytes\n'.format(AvbVBMetaHeader.SIZE))
2442 o.write('Authentication Block: {} bytes\n'.format(
2444 o.write('Auxiliary Block: {} bytes\n'.format(
2448 o.write('Public key (sha1): {}\n'.format(hexdig))
2449 o.write('Algorithm: {}\n'.format(alg_name))
2450 o.write('Rollback Index: {}\n'.format(header.rollback_index))
2451 o.write('Flags: {}\n'.format(header.flags))
2452 o.write('Rollback Index Location: {}\n'.format(
2454 o.write('Release String: \'{}\'\n'.format(header.release_string))
2458 o.write('Descriptors:\n')
2463 o.write(' (none)\n')
2466 o.write('Android Things eXtension (ATX):\n')
2473 o.write(' Metadata version: {}\n'.format(version))
2478 o.write(' Version: {}\n'.format(version))
2479 o.write(' Public key (sha1): {}\n'.format(
2481 o.write(' Subject: {}\n'.format(subject.hex()))
2482 o.write(' Usage: {}\n'.format(usage.hex()))
2483 o.write(' Key version: {}\n'.format(key_version))
2485 o.write(' Product Intermediate Key:\n')
2487 o.write(' Product Signing Key:\n')
2610 output.write(json.dumps({'partitions': json_partitions}, indent=2))
2637 output.write('{}: {}\n'.format(desc.partition_name, digest))
2644 output.write('{}: {}\n'.format(desc.partition_name, digest))
2693 output.write('{}\n'.format(digest.hex()))
2737 output.write(' '.join(kernel_cmdline_snippets))
2978 output.write(vbmeta_blob)
2983 output.write(b'\0' * padding_needed)
3248 output.write(RSAPublicKey(key_path).encode())
3501 output_vbmeta_image.write(vbmeta_blob)
3796 output_vbmeta_image.write(vbmeta_blob)
3878 output.write(signed_data)
3879 output.write(signature)
3901 output.write(struct.pack('<I', 1)) # Format Version
3902 output.write(RSAPublicKey(root_authority_key_path).encode())
3903 output.write(product_id)
3930 output.write(struct.pack('<I', 1)) # Format Version
3931 output.write(intermediate_key_certificate)
3932 output.write(product_key_certificate)
3977 output.write(struct.pack('<I', 1)) # Format Version
3978 output.write(intermediate_key_certificate)
3979 output.write(unlock_key_certificate)
3985 output.write(signature)
4737 sys.stderr.write('{}: {}\n'.format(argv[0], str(e)))
4806 sys.stderr.write('The --generate_fec option is deprecated since FEC '
4921 log.write(' '.join(sys.argv))
4922 log.write('\n')