Home
last modified time | relevance | path

Searched refs:key_path (Results 1 – 10 of 10) sorted by relevance

/system/vold/
DKeyUtil.cpp148 const std::string& key_path, const std::string& tmp_path, in retrieveAndInstallKey() argument
151 if (pathExists(key_path)) { in retrieveAndInstallKey()
152 LOG(DEBUG) << "Key exists, using: " << key_path; in retrieveAndInstallKey()
153 if (!retrieveKey(key_path, key_authentication, &key)) return false; in retrieveAndInstallKey()
156 LOG(ERROR) << "No key found in " << key_path; in retrieveAndInstallKey()
159 LOG(INFO) << "Creating new key in " << key_path; in retrieveAndInstallKey()
161 if (!storeKeyAtomically(key_path, tmp_path, key_authentication, key)) return false; in retrieveAndInstallKey()
165 LOG(ERROR) << "Failed to install key in " << key_path; in retrieveAndInstallKey()
171 bool retrieveKey(bool create_if_absent, const std::string& key_path, const std::string& tmp_path, in retrieveKey() argument
173 if (pathExists(key_path)) { in retrieveKey()
[all …]
DKeyUtil.h33 const std::string& key_path, const std::string& tmp_path,
35 bool retrieveKey(bool create_if_absent, const std::string& key_path, const std::string& tmp_path,
DKeyStorage.h60 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path,
DKeyStorage.cpp493 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path, in storeKeyAtomically() argument
495 if (pathExists(key_path)) { in storeKeyAtomically()
496 LOG(ERROR) << "Already exists, cannot create key at: " << key_path; in storeKeyAtomically()
504 if (rename(tmp_path.c_str(), key_path.c_str()) != 0) { in storeKeyAtomically()
505 PLOG(ERROR) << "Unable to move new key to location: " << key_path; in storeKeyAtomically()
508 LOG(DEBUG) << "Created key: " << key_path; in storeKeyAtomically()
DFsCrypt.cpp324 auto key_path = de_dir + "/" + entry->d_name; in load_all_de_keys() local
326 if (!android::vold::retrieveKey(key_path, kEmptyAuthentication, &key)) return false; in load_all_de_keys()
529 auto key_path = volkey_path(misc_path, volume_uuid); in read_or_create_volkey() local
530 if (fs_mkdirs(key_path.c_str(), 0700) != 0) { in read_or_create_volkey()
531 PLOG(ERROR) << "Creating directories for: " << key_path; in read_or_create_volkey()
535 if (!android::vold::retrieveAndInstallKey(true, auth, key_path, key_path + "_tmp", in read_or_create_volkey()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp74 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()
Dfs_avb_test_util.h83 const base::FilePath& key_path,
123 base::FilePath ExtractPublicKeyAvb(const base::FilePath& key_path);
125 std::string ExtractPublicKeyAvbBlob(const base::FilePath& key_path);
Davb_util_test.cpp421 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/extras/verity/
Dbuild_verity_metadata.py49 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]
Dverity_verifier.cpp51 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()