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()
293 const string& private_key_path, in SignHash() argument
295 LOG(INFO) << "Signing hash with private key: " << private_key_path; in SignHash()
303 auto private_key = CreatePrivateKeyFromPath(private_key_path); in SignHash()
305 LOG(ERROR) << "Failed to create private key from " << private_key_path; in SignHash()
[all …]
Dpayload_file.cc107 const string& private_key_path, in WritePayload() argument
171 if (!private_key_path.empty()) { in WritePayload()
173 {private_key_path}, &signature_blob_length)); in WritePayload()
218 if (!private_key_path.empty()) { in WritePayload()
224 metadata_hash, {private_key_path}, &metadata_signature)); in WritePayload()
246 if (!private_key_path.empty()) { in WritePayload()
251 {private_key_path}, in WritePayload()
Ddelta_diff_generator.h41 const std::string& private_key_path,
Dpayload_file.h54 const std::string& private_key_path,
Ddelta_diff_generator.cc95 const string& private_key_path, in GenerateUpdatePayloadFile() argument
176 output_path, temp_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.cc189 string private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyPath); in SignGeneratedPayload() local
191 ASSERT_TRUE(PayloadSigner::GetMaximumSignatureSize(private_key_path, in SignGeneratedPayload()
198 payload_hash, private_key_path, &payload_signature)); in SignGeneratedPayload()
200 metadata_hash, private_key_path, &metadata_signature)); in SignGeneratedPayload()
305 string private_key_path; in SignGeneratedShellPayload() local
307 ASSERT_TRUE(utils::MakeTempFile("key.XXXXXX", &private_key_path, nullptr)); in SignGeneratedShellPayload()
309 private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyECPath); in SignGeneratedShellPayload()
311 private_key_path = GetBuildArtifactsPath(kUnittestPrivateKeyPath); in SignGeneratedShellPayload()
313 ScopedPathUnlinker key_unlinker(private_key_path); in SignGeneratedShellPayload()
327 FILE* fprikey = fopen(private_key_path.c_str(), "w"); in SignGeneratedShellPayload()
[all …]