Lines Matching refs:kmKey
187 bool kmDeleteKey(Keymaster& keymaster, const std::string& kmKey) { in kmDeleteKey() argument
191 std::thread(deferedKmDeleteKey, kmKey).detach(); in kmDeleteKey()
195 return keymaster.deleteKey(kmKey); in kmDeleteKey()
205 std::string kmKey; in begin() local
206 if (!readFileToString(kmKeyPath, &kmKey)) return KeymasterOperation(); in begin()
210 auto opHandle = keymaster.begin(purpose, kmKey, inParams, authToken, outParams); in begin()
217 if (!keymaster.upgradeKey(kmKey, keyParams, &newKey)) return KeymasterOperation(); in begin()
229 if (!kmDeleteKey(keymaster, kmKey)) { in begin()
233 kmKey = newKey; in begin()
476 std::string kmKey; in storeKey() local
477 if (!generateKeymasterKey(keymaster, auth, appId, &kmKey)) return false; in storeKey()
478 if (!writeStringToFile(kmKey, dir + "/" + kFn_keymaster_key_blob)) return false; in storeKey()
548 std::string kmKey; in deleteKey() local
549 if (!readFileToString(dir + "/" + kFn_keymaster_key_blob, &kmKey)) return false; in deleteKey()
552 if (!keymaster.deleteKey(kmKey)) return false; in deleteKey()