Lines Matching refs:auth
419 static std::string getStretching(const KeyAuthentication& auth) { in getStretching() argument
420 if (auth.usesKeymaster()) { in getStretching()
444 static bool generateAppId(const KeyAuthentication& auth, const std::string& stretching, in generateAppId() argument
447 if (!stretchSecret(stretching, auth.secret, &stretched)) return false; in generateAppId()
572 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey() argument
580 std::string stretching = getStretching(auth); in storeKey()
583 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in storeKey()
585 if (auth.usesKeymaster()) { in storeKey()
602 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically() argument
611 if (!storeKey(tmp_path, auth, key)) return false; in storeKeyAtomically()
622 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key) { in retrieveKey() argument
634 if (!generateAppId(auth, stretching, secdiscardable_hash, &appId)) return false; in retrieveKey()
637 if (auth.usesKeymaster()) { in retrieveKey()