Searched refs:fast_hash (Results 1 – 2 of 2) sorted by relevance
/device/generic/goldfish/gatekeeper/ |
D | SoftGateKeeper.h | 137 fast_hash_t fast_hash; in ComputeFastHash() local 143 SHA256(digest.get(), digest_size, (uint8_t *) &fast_hash.digest); in ComputeFastHash() 145 fast_hash.salt = salt; in ComputeFastHash() 146 return fast_hash; 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() 151 return memcmp(computed.digest, fast_hash.digest, SHA256_DIGEST_LENGTH) == 0; in VerifyFast()
|
/device/google/cuttlefish_common/guest/hals/gatekeeper/ |
D | SoftGateKeeper.h | 137 fast_hash_t fast_hash; in ComputeFastHash() local 143 SHA256(digest.get(), digest_size, (uint8_t *) &fast_hash.digest); in ComputeFastHash() 145 fast_hash.salt = salt; in ComputeFastHash() 146 return fast_hash; 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() 151 return memcmp(computed.digest, fast_hash.digest, SHA256_DIGEST_LENGTH) == 0; in VerifyFast()
|