Home
last modified time | relevance | path

Searched refs:newKeyPath (Results 1 – 2 of 2) sorted by relevance

/system/vold/
DMetadataCrypt.cpp94 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in commit_key() local
101 if (rename(newKeyPath.c_str(), keyPath.c_str()) != 0) { in commit_key()
125 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in read_key() local
132 if (pathExists(newKeyPath)) { in read_key()
133 if (!android::base::ReadFileToString(newKeyPath, &sKey)) in read_key()
138 unlink(newKeyPath.c_str()); in read_key()
142 if (needs_cp && pathExists(newKeyPath)) std::thread(commit_key, dir).detach(); in read_key()
DKeyStorage.cpp218 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in begin() local
219 if (!writeStringToFile(newKey, newKeyPath)) return KeymasterOperation(); in begin()
221 if (rename(newKeyPath.c_str(), kmKeyPath.c_str()) != 0) { in begin()