Lines Matching refs:password
75 const uint8_t *, uint32_t, const uint8_t *password, in ComputePasswordSignature() argument
78 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt), in ComputePasswordSignature()
129 fast_hash_t ComputeFastHash(const SizedBuffer &password, uint64_t salt) { in ComputeFastHash() argument
131 size_t digest_size = password.length + sizeof(salt); in ComputeFastHash()
134 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length); in ComputeFastHash()
142 bool VerifyFast(const fast_hash_t &fast_hash, const SizedBuffer &password) { in VerifyFast() argument
143 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()
147 bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify() argument
150 if (it != fast_hash_map_.end() && VerifyFast(it->second, password)) { in DoVerify()
153 if (GateKeeper::DoVerify(expected_handle, password)) { in DoVerify()
156 fast_hash_map_[user_id] = ComputeFastHash(password, salt); in DoVerify()