Searched refs:hashOffset (Results 1 - 2 of 2) sorted by relevance

/xnu-2422.115.4/bsd/sys/
H A Dcodesign.h119 uint32_t hashOffset; /* offset of hash slot element at index zero */ member in struct:__CodeDirectory
/xnu-2422.115.4/bsd/kern/
H A Dubc_subr.c196 cs_valid_range(cd, (const char *) cd + ntohl(cd->hashOffset),
199 ntohl(cd->hashOffset) +
268 base = (const unsigned char *)cd + ntohl(cd->hashOffset) +
289 base = (const unsigned char *)cd + ntohl(cd->hashOffset);
336 if (length < ntohl(cd->hashOffset))
339 /* check that nSpecialSlots fits in the buffer in front of hashOffset */
340 if (ntohl(cd->hashOffset) / SHA1_RESULTLEN < ntohl(cd->nSpecialSlots))
344 if ((length - ntohl(cd->hashOffset)) / SHA1_RESULTLEN < ntohl(cd->nCodeSlots))
551 return ((const uint8_t *)cd + ntohl(cd->hashOffset) - (SHA1_RESULTLEN * slot));

Completed in 18 milliseconds