/system/core/fs_mgr/libfs_avb/tests/ |
D | fs_avb_test_util.cpp | 74 const base::FilePath& key_path, in GenerateVBMetaImage() argument 84 std::string(" --algorithm ") + avb_algorithm + " --key " + key_path.value() + " "; in GenerateVBMetaImage() 162 const base::FilePath& key_path, const std::string& salt, in AddAvbFooter() argument 173 std::string(" --algorithm ") + avb_algorithm + " --key " + key_path.value() + " "; in AddAvbFooter() 247 base::FilePath BaseFsAvbTest::ExtractPublicKeyAvb(const base::FilePath& key_path) { in ExtractPublicKeyAvb() argument 248 std::string file_name = key_path.RemoveExtension().BaseName().value(); in ExtractPublicKeyAvb() 253 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvb() 257 std::string BaseFsAvbTest::ExtractPublicKeyAvbBlob(const base::FilePath& key_path) { in ExtractPublicKeyAvbBlob() argument 262 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvbBlob()
|
D | fs_avb_test_util.h | 83 const base::FilePath& key_path, 123 base::FilePath ExtractPublicKeyAvb(const base::FilePath& key_path); 125 std::string ExtractPublicKeyAvbBlob(const base::FilePath& key_path);
|
D | avb_util_test.cpp | 421 base::FilePath key_path = GenerateImage("key.bin", key_size); in TEST_F() local 424 EXPECT_EQ(key_size, base::ReadFile(key_path, (char*)key_data, key_size)); in TEST_F() 427 EXPECT_TRUE(base::ReadFileToString(key_path, &expected_key_blob)); in TEST_F() 439 base::FilePath key_path = GenerateImage("key.bin", key_size); in TEST_F() local 442 EXPECT_EQ(key_size, base::ReadFile(key_path, (char*)key_data, key_size)); in TEST_F()
|
/system/vold/ |
D | KeyUtil.cpp | 393 bool retrieveOrGenerateKey(const std::string& key_path, const std::string& tmp_path, in retrieveOrGenerateKey() argument 396 if (pathExists(key_path)) { in retrieveOrGenerateKey() 397 LOG(DEBUG) << "Key exists, using: " << key_path; in retrieveOrGenerateKey() 398 if (!retrieveKey(key_path, key_authentication, key, keepOld)) return false; in retrieveOrGenerateKey() 401 LOG(ERROR) << "No key found in " << key_path; in retrieveOrGenerateKey() 404 LOG(INFO) << "Creating new key in " << key_path; in retrieveOrGenerateKey() 406 if (!storeKeyAtomically(key_path, tmp_path, key_authentication, *key)) return false; in retrieveOrGenerateKey()
|
D | KeyUtil.h | 77 bool retrieveOrGenerateKey(const std::string& key_path, const std::string& tmp_path,
|
D | KeyStorage.h | 60 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path,
|
D | KeyStorage.cpp | 524 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path, in storeKeyAtomically() argument 526 if (pathExists(key_path)) { in storeKeyAtomically() 527 LOG(ERROR) << "Already exists, cannot create key at: " << key_path; in storeKeyAtomically() 535 if (rename(tmp_path.c_str(), key_path.c_str()) != 0) { in storeKeyAtomically() 536 PLOG(ERROR) << "Unable to move new key to location: " << key_path; in storeKeyAtomically() 539 LOG(DEBUG) << "Created key: " << key_path; in storeKeyAtomically()
|
D | FsCrypt.cpp | 396 auto key_path = de_dir + "/" + entry->d_name; in load_all_de_keys() local 398 if (!retrieveKey(key_path, kEmptyAuthentication, &de_key)) return false; in load_all_de_keys() 656 auto key_path = volkey_path(misc_path, volume_uuid); in read_or_create_volkey() local 657 if (fs_mkdirs(key_path.c_str(), 0700) != 0) { in read_or_create_volkey() 658 PLOG(ERROR) << "Creating directories for: " << key_path; in read_or_create_volkey() 666 if (!retrieveOrGenerateKey(key_path, key_path + "_tmp", auth, makeGen(options), &key)) in read_or_create_volkey()
|
/system/extras/verity/ |
D | build_verity_metadata.py | 49 def sign_verity_table(table, signer_path, key_path, signer_args=None): argument 55 cmd = [signer_path, table_file.name, key_path, signature_file.name] 58 cmd = [signer_path] + args_list + [table_file.name, key_path, signature_file.name]
|
D | verity_verifier.cpp | 51 static int verify_table(const char* key_path, const uint8_t* signature, size_t signature_size, in verify_table() argument 58 std::unique_ptr<RSA, decltype(&RSA_free)> key(load_key(key_path), RSA_free); in verify_table()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 217 for (const auto& key_path : private_key_paths) { in SignGeneratedShellPayloadWithKeys() local 220 PayloadSigner::GetMaximumSignatureSize(key_path, &signature_size)); in SignGeneratedShellPayloadWithKeys() 241 for (const auto& key_path : private_key_paths) { in SignGeneratedShellPayloadWithKeys() local 244 ASSERT_TRUE(PayloadSigner::SignHash(hash, key_path, &signature)); in SignGeneratedShellPayloadWithKeys() 254 PayloadSigner::SignHash(metadata_hash, key_path, &metadata_signature)); in SignGeneratedShellPayloadWithKeys()
|