Searched refs:newKeyPath (Results 1 – 2 of 2) sorted by relevance
94 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in commit_key() local101 if (rename(newKeyPath.c_str(), keyPath.c_str()) != 0) { in commit_key()125 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in read_key() local132 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()
218 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in begin() local219 if (!writeStringToFile(newKey, newKeyPath)) return KeymasterOperation(); in begin()221 if (rename(newKeyPath.c_str(), kmKeyPath.c_str()) != 0) { in begin()