Home
last modified time | relevance | path

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

/system/vold/
DKeyStorage.cpp273 std::string kmKey; in storeKey() local
274 if (!generateKeymasterKey(keymaster, auth, appId, &kmKey)) return false; in storeKey()
275 if (!writeStringToFile(kmKey, dir + "/" + kFn_keymaster_key_blob)) return false; in storeKey()
277 if (!encryptWithKeymasterKey(keymaster, kmKey, auth, appId, key, &encryptedKey)) return false; in storeKey()
299 std::string kmKey; in retrieveKey() local
300 if (!readFileToString(dir + "/" + kFn_keymaster_key_blob, &kmKey)) return false; in retrieveKey()
305 return decryptWithKeymasterKey(keymaster, kmKey, auth, appId, encryptedMessage, key); in retrieveKey()
309 std::string kmKey; in deleteKey() local
310 if (!readFileToString(dir + "/" + kFn_keymaster_key_blob, &kmKey)) return false; in deleteKey()
313 if (!keymaster.deleteKey(kmKey)) return false; in deleteKey()