Lines Matching refs:auth
422 static std::string getStretching(const KeyAuthentication& auth) { in getStretching() argument
423 if (auth.usesKeymaster()) { in getStretching()
447 static bool generateAppId(const KeyAuthentication& auth, const std::string& stretching, in generateAppId() argument
450 if (!stretchSecret(stretching, auth.secret, &stretched)) return false; in generateAppId()
575 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey() argument
583 std::string stretching = getStretching(auth); in storeKey()
586 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in storeKey()
588 if (auth.usesKeymaster()) { in storeKey()
605 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically() argument
614 if (!storeKey(tmp_path, auth, key)) return false; in storeKeyAtomically()
625 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key) { in retrieveKey() argument
637 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in retrieveKey()
640 if (auth.usesKeymaster()) { in retrieveKey()