Searched refs:secdiscardable (Results 1 – 1 of 1) sorted by relevance
/system/vold/ |
D | KeyStorage.cpp | 286 const std::string& salt, const std::string& secdiscardable, in generateAppId() argument 290 *appId = hashWithPrefix(kHashPrefix_secdiscardable, secdiscardable) + stretched; in generateAppId() 409 std::string secdiscardable; in storeKey() local 410 if (!readRandomBytesOrLog(SECDISCARDABLE_BYTES, &secdiscardable)) return false; in storeKey() 411 if (!writeStringToFile(secdiscardable, dir + "/" + kFn_secdiscardable)) return false; in storeKey() 423 if (!generateAppId(auth, stretching, salt, secdiscardable, &appId)) return false; in storeKey() 447 std::string secdiscardable; in retrieveKey() local 448 if (!readFileToString(dir + "/" + kFn_secdiscardable, &secdiscardable)) return false; in retrieveKey() 456 if (!generateAppId(auth, stretching, salt, secdiscardable, &appId)) return false; in retrieveKey()
|