Home
last modified time | relevance | path

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

/system/vold/
DKeyStorage.cpp83 static std::string hashSecdiscardable(const std::string& secdiscardable) { in hashSecdiscardable() argument
93 SHA512_Update(&c, secdiscardable.data(), secdiscardable.size()); in hashSecdiscardable()
238 const std::string& salt, const std::string& secdiscardable, in generateAppId() argument
242 *appId = hashSecdiscardable(secdiscardable) + stretched; in generateAppId()
252 std::string secdiscardable; in storeKey() local
253 if (ReadRandomBytes(SECDISCARDABLE_BYTES, secdiscardable) != OK) { in storeKey()
258 if (!writeStringToFile(secdiscardable, dir + "/" + kFn_secdiscardable)) return false; in storeKey()
270 if (!generateAppId(auth, stretching, salt, secdiscardable, &appId)) return false; in storeKey()
289 std::string secdiscardable; in retrieveKey() local
290 if (!readFileToString(dir + "/" + kFn_secdiscardable, &secdiscardable)) return false; in retrieveKey()
[all …]