Lines Matching refs:password
82 const uint8_t *, uint32_t, const uint8_t *password, in ComputePasswordSignature() argument
85 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt), in ComputePasswordSignature()
136 fast_hash_t ComputeFastHash(const SizedBuffer &password, uint64_t salt) { in ComputeFastHash() argument
138 size_t digest_size = password.length + sizeof(salt); in ComputeFastHash()
141 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length); in ComputeFastHash()
149 bool VerifyFast(const fast_hash_t &fast_hash, const SizedBuffer &password) { in VerifyFast() argument
150 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()
154 bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify() argument
157 if (it != fast_hash_map_.end() && VerifyFast(it->second, password)) { in DoVerify()
160 if (GateKeeper::DoVerify(expected_handle, password)) { in DoVerify()
163 fast_hash_map_[user_id] = ComputeFastHash(password, salt); in DoVerify()