Searched refs:hashtype (Results 1 – 2 of 2) sorted by relevance
368 struct cs_hash const *hashtype; in cs_validate_codedirectory() local380 hashtype = cs_find_md(cd->hashType); in cs_validate_codedirectory()381 if (hashtype == NULL) { in cs_validate_codedirectory()385 if (cd->hashSize != hashtype->cs_size) { in cs_validate_codedirectory()394 if (ntohl(cd->hashOffset) / hashtype->cs_size < ntohl(cd->nSpecialSlots)) { in cs_validate_codedirectory()399 if ((length - ntohl(cd->hashOffset)) / hashtype->cs_size < ntohl(cd->nCodeSlots)) { in cs_validate_codedirectory()5208 struct cs_hash const *hashtype = NULL; in cs_validate_hash() local5249 hashtype = blob->csb_hashtype; in cs_validate_hash()5250 if (hashtype == NULL) { in cs_validate_hash()5253 if (hashtype->cs_digest_size > sizeof(actual_hash)) { in cs_validate_hash()[all …]
4041 int hashtype = cs_hash_type(blob->csb_hashtype); in sys_fcntl_nocancel() local4042 error = copyout(&hashtype, in sys_fcntl_nocancel()