Lines Matching defs:hash
18 /* $Id: hash.c,v 1.16 2009/09/01 00:22:28 jinmei Exp $ */
21 * Some portion of this code was derived from universal hash function
62 #include <isc/hash.h>
76 * A large 32-bit prime number that specifies the range of the hash output.
82 * Types of random seed and hash accumulator. Perhaps they can be system
89 /*% isc hash structure */
104 static isc_hash_t *hash = NULL;
156 * operation at the last stage of hash calculation, the accumulator
227 INSIST(hash == NULL);
233 if (hash == NULL)
234 result = isc_hash_ctxcreate(mctx, entropy, limit, &hash);
286 INSIST(hash != NULL && VALID_HASH(hash));
288 isc_hash_ctxinit(hash);
353 INSIST(hash != NULL && VALID_HASH(hash));
355 isc_refcount_decrement(&hash->refcnt, &refs);
358 destroy(&hash);
369 /* Make it sure that the hash context is initialized. */
400 INSIST(hash != NULL && VALID_HASH(hash));
401 REQUIRE(keylen <= hash->limit);
403 return (hash_calc(hash, key, keylen, case_sensitive));