Searched refs:fast_hash (Results 1 – 1 of 1) sorted by relevance
126 fast_hash_t fast_hash; in ComputeFastHash() local132 SHA256(digest.get(), digest_size, (uint8_t*)&fast_hash.digest); in ComputeFastHash()134 fast_hash.salt = salt; in ComputeFastHash()135 return fast_hash; in ComputeFastHash()138 bool VerifyFast(const fast_hash_t& fast_hash, const SizedBuffer& password) { in VerifyFast() argument139 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()140 return memcmp(computed.digest, fast_hash.digest, SHA256_DIGEST_LENGTH) == 0; in VerifyFast()