Lines Matching refs:key_path
349 def __init__(self, key_path):
353 key_path: The path to a key file.
360 # key = Crypto.PublicKey.RSA.importKey(open(key_path).read())
368 args = ['openssl', 'rsa', '-in', key_path, '-modulus', '-noout']
393 self.key_path = key_path
468 self.key_path, signing_file.name])
477 [signing_helper, algorithm_name, self.key_path],
483 ['openssl', 'rsautl', '-sign', '-inkey', self.key_path, '-raw'],
2485 def verify_image(self, image_filename, key_path, expected_chain_partitions,
2491 key_path: None or check that embedded public key matches key at given
2521 if key_path:
2523 key_path))
2524 key_blob = RSAPublicKey(key_path).encode()
2583 self.verify_image(chained_image_filename, key_path, None, False,
2895 key_path, public_key_metadata_path, rollback_index,
2912 key_path: Path to key to use or None.
2955 algorithm_name, key_path, public_key_metadata_path, descriptors,
2972 def _generate_vbmeta_blob(self, algorithm_name, key_path,
2996 key_path: The path to the .pem file used to sign the blob.
3146 if not key_path:
3149 encoded_key = RSAPublicKey(key_path).encode()
3210 rsa_key = RSAPublicKey(key_path)
3224 def extract_public_key(self, key_path, output):
3228 key_path: The path to a RSA private key file.
3234 output.write(RSAPublicKey(key_path).encode())
3320 key_path,
3341 key_path: Path to key to use or None.
3463 algorithm_name, key_path, public_key_metadata_path, [h_desc],
3522 key_path,
3552 key_path: Path to key to use or None.
3751 algorithm_name, key_path, public_key_metadata_path, [ht_desc],