Home
last modified time | relevance | path

Searched refs:hashtype (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.81.4/bsd/kern/
H A Dubc_subr.c361 struct cs_hash const *hashtype; in cs_validate_codedirectory() local
373 hashtype = cs_find_md(cd->hashType); in cs_validate_codedirectory()
374 if (hashtype == NULL) { in cs_validate_codedirectory()
378 if (cd->hashSize != hashtype->cs_size) { in cs_validate_codedirectory()
387 if (ntohl(cd->hashOffset) / hashtype->cs_size < ntohl(cd->nSpecialSlots)) { in cs_validate_codedirectory()
392 if ((length - ntohl(cd->hashOffset)) / hashtype->cs_size < ntohl(cd->nCodeSlots)) { in cs_validate_codedirectory()
5831 struct cs_hash const *hashtype = NULL; in cs_validate_hash() local
5872 hashtype = blob->csb_hashtype; in cs_validate_hash()
5873 if (hashtype == NULL) { in cs_validate_hash()
5876 if (hashtype->cs_digest_size > sizeof(actual_hash)) { in cs_validate_hash()
[all …]
H A Dkern_descrip.c4149 int hashtype = cs_hash_type(blob->csb_hashtype); in sys_fcntl_nocancel() local
4150 error = copyout(&hashtype, in sys_fcntl_nocancel()