Lines Matching refs:write

239     num_bits: The number of bits to write, e.g. 2048.
240 value: The value to write.
462 signing_file.write(str(raw_data_to_sign))
787 self._image.write(struct.pack(self.NUM_CHUNKS_AND_BLOCKS_FORMAT,
815 self._image.write(struct.pack(ImageChunk.FORMAT,
834 self._image.write(data)
843 self._image.write(struct.pack(ImageChunk.FORMAT,
849 self._image.write(data)
867 self._image.write(fill_data * (size/4))
876 self._image.write(struct.pack(ImageChunk.FORMAT,
881 self._image.write(fill_data)
999 self._image.write(struct.pack(ImageChunk.FORMAT,
1060 o: The object to write the output to.
1062 o.write(' Unknown descriptor:\n')
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)))
1148 o: The object to write the output to.
1151 o.write(' Prop: {} -> {}\n'.format(self.key, repr(str(self.value))))
1153 o.write(' Prop: {} -> ({} bytes)\n'.format(self.key, len(self.value)))
1288 o: The object to write the output to.
1290 o.write(' Hashtree descriptor:\n')
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))
1364 sys.stderr.write('hashtree of {} does not match descriptor\n'.
1371 sys.stderr.write('hashtree of {} contains invalid data\n'.
1458 o: The object to write the output to.
1460 o.write(' Hash descriptor:\n')
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))
1515 sys.stderr.write('{} digest of {} does not match digest in descriptor\n'.
1576 o: The object to write the output to.
1578 o.write(' Kernel Cmdline descriptor:\n')
1579 o.write(' Flags: {}\n'.format(self.flags))
1580 o.write(' Kernel Cmdline: {}\n'.format(repr(
1674 o: The object to write the output to.
1676 o.write(' Chain Partition descriptor:\n')
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))
1718 sys.stderr.write('No expected chain partition for partition {}. Use '
1726 sys.stderr.write('Expected rollback_index_location {} does not '
1734 sys.stderr.write('Expected public key blob does not match public '
1933 output: The object to write the output to.
1935 output.write(struct.pack(
2001 output.write(vbmeta_blob)
2006 output.write('\0' * padding_needed)
2107 misc_image: The misc image to write to.
2132 misc_image.write(ab_data)
2139 output: Output file to write human-readable information to (file object).
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))
2156 o.write('--\n')
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(
2177 o.write('Descriptors:\n')
2182 o.write(' (none)\n')
2276 output: Output file to write human-readable information to (file object).
2310 output.write('{}\n'.format(digest.encode('hex')))
2319 output: Output file to write human-readable information to (file object).
2351 output.write(' '.join(kernel_cmdline_snippets))
2527 output: File to write the image to.
2581 output.write(vbmeta_blob)
2586 output.write('\0' * padding_needed)
2842 output: The file to write to.
2844 output.write(encode_rsa_key(key_path))
2913 # we'll write out an entire block.
2968 output_vbmeta_image: If not None, also write vbmeta struct to this file.
3078 output_vbmeta_image.write(vbmeta_blob)
3110 # we'll write out an entire block.
3176 output_vbmeta_image: If not None, also write vbmeta struct to this file.
3354 output_vbmeta_image.write(vbmeta_blob)
3368 # we'll write out an entire block.
3440 output.write(signed_data)
3441 output.write(signature)
3463 output.write(struct.pack('<I', 1)) # Format Version
3464 output.write(encode_rsa_key(root_authority_key_path))
3465 output.write(product_id)
3492 output.write(struct.pack('<I', 1)) # Format Version
3493 output.write(intermediate_key_certificate)
3494 output.write(product_key_certificate)
3539 output.write(struct.pack('<I', 1)) # Format Version
3540 output.write(intermediate_key_certificate)
3541 output.write(unlock_key_certificate)
3555 output.write(signature)
3896 help='Also write vbmeta struct to file',
3964 help='Also write vbmeta struct to file',
4214 sys.stderr.write('{}: {}\n'.format(argv[0], e.message))
4277 sys.stderr.write('The --generate_fec option is deprecated since FEC '