Searched refs:hashtype (Results 1 – 2 of 2) sorted by relevance
366 struct cs_hash const *hashtype; in cs_validate_codedirectory() local378 hashtype = cs_find_md(cd->hashType); in cs_validate_codedirectory()379 if (hashtype == NULL) { in cs_validate_codedirectory()383 if (cd->hashSize != hashtype->cs_size) { in cs_validate_codedirectory()392 if (ntohl(cd->hashOffset) / hashtype->cs_size < ntohl(cd->nSpecialSlots)) { in cs_validate_codedirectory()397 if ((length - ntohl(cd->hashOffset)) / hashtype->cs_size < ntohl(cd->nCodeSlots)) { in cs_validate_codedirectory()5739 struct cs_hash const *hashtype = NULL; in cs_validate_hash() local5780 hashtype = blob->csb_hashtype; in cs_validate_hash()5781 if (hashtype == NULL) { in cs_validate_hash()5784 if (hashtype->cs_digest_size > sizeof(actual_hash)) { in cs_validate_hash()[all …]
4088 int hashtype = cs_hash_type(blob->csb_hashtype); in sys_fcntl_nocancel() local4089 error = copyout(&hashtype, in sys_fcntl_nocancel()