Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dpayload_signer.cc198 const string& private_key_path) { in CreatePrivateKeyFromPath() argument
199 FILE* fprikey = fopen(private_key_path.c_str(), "rb"); in CreatePrivateKeyFromPath()
201 PLOG(ERROR) << "Failed to read " << private_key_path; in CreatePrivateKeyFromPath()
213 bool PayloadSigner::GetMaximumSignatureSize(const string& private_key_path, in GetMaximumSignatureSize() argument
216 auto private_key = CreatePrivateKeyFromPath(private_key_path); in GetMaximumSignatureSize()
218 LOG(ERROR) << "Failed to create private key from " << private_key_path; in GetMaximumSignatureSize()
278 const string& private_key_path, in SignHash() argument
280 LOG(INFO) << "Signing hash with private key: " << private_key_path; in SignHash()
288 auto private_key = CreatePrivateKeyFromPath(private_key_path); in SignHash()
290 LOG(ERROR) << "Failed to create private key from " << private_key_path; in SignHash()
[all …]
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_file.cc122 const string& private_key_path, in WritePayload() argument
194 if (!private_key_path.empty()) { in WritePayload()
196 {private_key_path}, &signature_blob_length)); in WritePayload()
202 private_key_path, in WritePayload()
213 const std::string& private_key_path, in WritePayload() argument
259 if (!private_key_path.empty()) { in WritePayload()
265 metadata_hash, {private_key_path}, &metadata_signature)); in WritePayload()
286 if (!private_key_path.empty()) { in WritePayload()
291 {private_key_path}, in WritePayload()
Dpayload_file.h56 const std::string& private_key_path,
61 const std::string& private_key_path,
Ddelta_diff_generator.h42 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/update_engine/aosp/
Dupdate_attempter_android_integration_test.cc186 const std::string& private_key_path) { in AddSignatureInfoToPayload() argument
200 if (!private_key_path.empty()) { in AddSignatureInfoToPayload()
201 ASSERT_TRUE(PayloadSigner::SignatureBlobLength({private_key_path}, in AddSignatureInfoToPayload()
270 const auto private_key_path = in ApplyPayload() local
273 AddSignatureInfoToPayload(manifest, private_key_path)); in ApplyPayload()
296 private_key_path, in ApplyPayload()
/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.cc222 string private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyPath); in SignGeneratedPayload() local
224 ASSERT_TRUE(PayloadSigner::GetMaximumSignatureSize(private_key_path, in SignGeneratedPayload()
231 payload_hash, private_key_path, &payload_signature)); in SignGeneratedPayload()
233 metadata_hash, private_key_path, &metadata_signature)); in SignGeneratedPayload()
335 string private_key_path; in SignGeneratedShellPayload() local
337 ASSERT_TRUE(utils::MakeTempFile("key.XXXXXX", &private_key_path, nullptr)); in SignGeneratedShellPayload()
339 private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyECPath); in SignGeneratedShellPayload()
341 private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyPath); in SignGeneratedShellPayload()
343 ScopedPathUnlinker key_unlinker(private_key_path); in SignGeneratedShellPayload()
357 FILE* fprikey = fopen(private_key_path.c_str(), "w"); in SignGeneratedShellPayload()
[all …]