Home
last modified time | relevance | path

Searched refs:private_key_path (Results 1 – 8 of 8) sorted by relevance

/system/update_engine/payload_generator/
Dpayload_signer.h50 const std::string& private_key_path,
117 const std::string& private_key_path,
127 static bool GetMaximumSignatureSize(const std::string& private_key_path,
Dpayload_signer.cc211 const string& private_key_path) { in CreatePrivateKeyFromPath() argument
212 FILE* fprikey = fopen(private_key_path.c_str(), "rb"); in CreatePrivateKeyFromPath()
214 PLOG(ERROR) << "Failed to read " << private_key_path; in CreatePrivateKeyFromPath()
226 bool PayloadSigner::GetMaximumSignatureSize(const string& private_key_path, in GetMaximumSignatureSize() argument
229 auto private_key = CreatePrivateKeyFromPath(private_key_path); in GetMaximumSignatureSize()
231 LOG(ERROR) << "Failed to create private key from " << private_key_path; in GetMaximumSignatureSize()
291 const string& private_key_path, in SignHash() argument
293 LOG(INFO) << "Signing hash with private key: " << private_key_path; in SignHash()
301 auto private_key = CreatePrivateKeyFromPath(private_key_path); in SignHash()
303 LOG(ERROR) << "Failed to create private key from " << private_key_path; in SignHash()
[all …]
Dpayload_file.cc120 const string& private_key_path, in WritePayload() argument
192 if (!private_key_path.empty()) { in WritePayload()
194 {private_key_path}, &signature_blob_length)); in WritePayload()
239 if (!private_key_path.empty()) { in WritePayload()
245 metadata_hash, {private_key_path}, &metadata_signature)); in WritePayload()
267 if (!private_key_path.empty()) { in WritePayload()
272 {private_key_path}, in WritePayload()
Ddelta_diff_generator.h41 const std::string& private_key_path,
Dpayload_file.h56 const std::string& private_key_path,
Ddelta_diff_generator.cc164 const string& private_key_path, in GenerateUpdatePayloadFile() argument
252 output_path, data_file.path(), private_key_path, metadata_size)); in GenerateUpdatePayloadFile()
/system/extras/verity/
Dgenerate_verity_key.c34 static int write_public_keyfile(RSA *private_key, const char *private_key_path) in write_public_keyfile() argument
41 if (asprintf(&path, "%s.pub", private_key_path) < 0) in write_public_keyfile()
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc230 string private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyPath); in SignGeneratedPayload() local
232 ASSERT_TRUE(PayloadSigner::GetMaximumSignatureSize(private_key_path, in SignGeneratedPayload()
239 payload_hash, private_key_path, &payload_signature)); in SignGeneratedPayload()
241 metadata_hash, private_key_path, &metadata_signature)); in SignGeneratedPayload()
343 string private_key_path; in SignGeneratedShellPayload() local
345 ASSERT_TRUE(utils::MakeTempFile("key.XXXXXX", &private_key_path, nullptr)); in SignGeneratedShellPayload()
347 private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyECPath); in SignGeneratedShellPayload()
349 private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyPath); in SignGeneratedShellPayload()
351 ScopedPathUnlinker key_unlinker(private_key_path); in SignGeneratedShellPayload()
365 FILE* fprikey = fopen(private_key_path.c_str(), "w"); in SignGeneratedShellPayload()
[all …]