Home
last modified time | relevance | path

Searched refs:fast_hash (Results 1 – 1 of 1) sorted by relevance

/device/google/cuttlefish/host/commands/secure_env/
Dsoft_gatekeeper.h126 fast_hash_t fast_hash; in ComputeFastHash() local
132 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() argument
139 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()