Home | History | Annotate | Download | only in avb

Lines Matching refs:KEY_PATH

347   def __init__(self, key_path):
351 key_path: The path to a key file.
355 # key = Crypto.PublicKey.RSA.importKey(open(key_path).read())
363 args = ['openssl', 'rsa', '-in', key_path, '-modulus', '-noout']
393 def encode_rsa_key(key_path):
400 key_path: The path to a key file.
405 key = RSAPublicKey(key_path)
441 algorithm_name, signature_num_bytes, key_path,
450 key_path: Path to the private key file. Must be PEM format.
465 [signing_helper_with_files, algorithm_name, key_path, signing_file.name])
474 [signing_helper, algorithm_name, key_path],
480 ['openssl', 'rsautl', '-sign', '-inkey', key_path, '-raw'],
2223 def verify_image(self, image_filename, key_path, expected_chain_partitions, follow_chain_partitions):
2228 key_path: None or check that embedded public key matches key at given path.
2250 if key_path:
2251 print 'Verifying image {} using key at {}'.format(image_filename, key_path)
2252 key_blob = encode_rsa_key(key_path)
2303 self.verify_image(chained_image_filename, key_path, None, False)
2550 key_path, public_key_metadata_path, rollback_index,
2566 key_path: Path to key to use or None.
2608 algorithm_name, key_path, public_key_metadata_path, descriptors,
2624 def _generate_vbmeta_blob(self, algorithm_name, key_path,
2647 key_path
2794 if not key_path:
2797 encoded_key = encode_rsa_key(key_path)
2861 alg.signature_num_bytes, key_path,
2873 def extract_public_key(self, key_path, output):
2877 key_path: The path to a RSA private key file.
2880 output.write(encode_rsa_key(key_path))
2966 key_path,
2986 key_path: Path to key to use or None.
3106 algorithm_name, key_path, public_key_metadata_path, [h_desc],
3165 key_path,
3193 key_path: Path to key to use or None.
3380 algorithm_name, key_path, public_key_metadata_path, [ht_desc],
3831 metavar='PART_NAME:ROLLBACK_SLOT:KEY_PATH',
4083 metavar='PART_NAME:ROLLBACK_SLOT:KEY_PATH',