Lines Matching defs:hash
11 #include "hash.h"
139 unsigned char hash[OTP_HASH_SIZE], cur_hash[OTP_HASH_SIZE];
142 ret = otp_parse_response(data, hash, hex);
151 otp_next_hash(state->algo, hash, cur_hash);
153 ret = memcmp(cur_hash, state->hash, OTP_HASH_SIZE);
160 memcpy(state->hash, hash, sizeof(state->hash));
173 unsigned char hash[OTP_HASH_SIZE], cur_hash[OTP_HASH_SIZE];
186 otp_next_hash(request->state.algo, cur_hash, hash);
188 ret = memcmp(hash, request->state.hash, OTP_HASH_SIZE);