Lines Matching refs:salt
38 uint64_t salt; member
83 uint32_t password_length, salt_t salt) const { in ComputePasswordSignature() argument
85 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt), in ComputePasswordSignature()
86 sizeof(salt), N, r, p, signature, signature_length); 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()
140 memcpy(digest.get(), &salt, sizeof(salt)); in ComputeFastHash()
141 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length); in ComputeFastHash()
145 fast_hash.salt = salt; in ComputeFastHash()
150 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()
161 uint64_t salt; in DoVerify() local
162 GetRandom(&salt, sizeof(salt)); in DoVerify()
163 fast_hash_map_[user_id] = ComputeFastHash(password, salt); in DoVerify()