Lines Matching refs:blob_file
212 auto blob_file = dir + "/" + kFn_keymaster_key_blob; in CommitUpgradedKey() local
216 if (!readFileToString(blob_file, &blob)) return false; in CommitUpgradedKey()
218 if (rename(upgraded_blob_file.c_str(), blob_file.c_str()) != 0) { in CommitUpgradedKey()
219 PLOG(ERROR) << "Failed to rename " << upgraded_blob_file << " to " << blob_file; in CommitUpgradedKey()
226 LOG(WARNING) << "Failed to delete old key " << blob_file in CommitUpgradedKey()
328 auto blob_file = dir + "/" + kFn_keymaster_key_blob; in BeginKeystoreOp() local
337 << blob_file in BeginKeystoreOp()
342 if (!readFileToString(blob_file, &blob)) return KeystoreOperation(); in BeginKeystoreOp()
356 LOG(INFO) << "Upgrading key: " << blob_file; in BeginKeystoreOp()
365 LOG(INFO) << "Key upgraded: " << blob_file; in BeginKeystoreOp()
626 static bool DeleteKeystoreKey(const std::string& blob_file) { in DeleteKeystoreKey() argument
628 if (!readFileToString(blob_file, &blob)) return false; in DeleteKeystoreKey()
631 LOG(DEBUG) << "Deleting key " << blob_file << " from Keystore"; in DeleteKeystoreKey()
669 auto blob_file = dir + "/" + fn; in destroyKey() local
670 if (pathExists(blob_file)) { in destroyKey()
671 success &= DeleteKeystoreKey(blob_file); in destroyKey()
672 secdiscard_cmd.push_back(blob_file); in destroyKey()