Searched refs:hashtype (Results 1 – 2 of 2) sorted by relevance
361 struct cs_hash const *hashtype; in cs_validate_codedirectory() local373 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() local5872 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 …]
4149 int hashtype = cs_hash_type(blob->csb_hashtype); in sys_fcntl_nocancel() local4150 error = copyout(&hashtype, in sys_fcntl_nocancel()