Lines Matching refs:salt
332 const std::string& salt, std::string* stretched) { in stretchSecret() argument
351 reinterpret_cast<const uint8_t*>(salt.data()), salt.size(), 1 << Nf, in stretchSecret()
365 const std::string& salt, const std::string& secdiscardable_hash, in generateAppId() argument
368 if (!stretchSecret(stretching, auth.secret, salt, &stretched)) return false; in generateAppId()
493 std::string salt; in storeKey() local
495 if (ReadRandomBytes(SALT_BYTES, salt) != OK) { in storeKey()
499 if (!writeStringToFile(salt, dir + "/" + kFn_salt)) return false; in storeKey()
502 if (!generateAppId(auth, stretching, salt, secdiscardable_hash, &appId)) return false; in storeKey()
555 std::string salt; in retrieveKey() local
557 if (!readFileToString(dir + "/" + kFn_salt, &salt)) return false; in retrieveKey()
560 if (!generateAppId(auth, stretching, salt, secdiscardable_hash, &appId)) return false; in retrieveKey()