Lines Matching full:salt
36 uint64_t salt;
81 uint32_t password_length, salt_t salt) const {
83 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt),
84 sizeof(salt), N, r, p, signature, signature_length);
134 fast_hash_t ComputeFastHash(const SizedBuffer &password, uint64_t salt) {
136 size_t digest_size = password.length + sizeof(salt);
138 memcpy(digest.get(), &salt, sizeof(salt));
139 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length);
143 fast_hash.salt = salt;
148 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt);
158 uint64_t salt;
159 GetRandom(&salt, sizeof(salt));
160 fast_hash_map_[expected_handle->user_id] = ComputeFastHash(password, salt);