Lines Matching defs:hash
191 uint32_t hashOffset; /* offset of hash slot element at index zero */
193 uint32_t nSpecialSlots; /* number of special hash slots */
194 uint32_t nCodeSlots; /* number of ordinary (code) hash slots */
196 uint8_t hashSize; /* size of each hash in bytes */
197 uint8_t hashType; /* type of hash (cdHashType* constants) */
267 * Locating a page hash
276 const unsigned char *base, *top, *hash;
321 /* base = address of first hash covered by scatter */
324 /* top = address of first hash after this scatter */
341 hash = base + (page - sbase) * SHA1_RESULTLEN;
351 hash = base + page * SHA1_RESULTLEN;
354 if (!cs_valid_range(hash, hash + SHA1_RESULTLEN,
356 hash = NULL;
359 return hash;
385 SHA1_CTX context; /* XXX hash agility */
1767 * will avoid internal use of the hash table to identify the
1864 * boundaries, as this will avoid internal use of the hash table
2510 /* compute the blob's SHA1 hash */
2805 const unsigned char *hash;
2817 /* retrieve the expected hash */
2878 hash = hashes(cd, atop(offset),
2880 if (hash != NULL) {
2881 bcopy(hash, expected_hash,
2902 "mobj %p off 0x%llx: no hash to validate !?\n",
2916 /* compute the actual page's SHA1 hash */
2988 /* get the SHA1 hash of that blob */