Lines Matching refs:ntohl
220 ntohl(embedded->magic) == CSMAGIC_EMBEDDED_SIGNATURE) {
224 limit = &embedded->index[ntohl(embedded->count)];
230 if (ntohl(p->type) == CSSLOT_CODEDIRECTORY) {
234 cd = (const CS_CodeDirectory *)(base + ntohl(p->offset));
248 cs_valid_range(cd, (const char *) cd + ntohl(cd->length),
250 cs_valid_range(cd, (const char *) cd + ntohl(cd->hashOffset),
253 ntohl(cd->hashOffset) +
254 (ntohl(cd->nCodeSlots) * SHA1_RESULTLEN),
257 ntohl(cd->magic) == CSMAGIC_CODEDIRECTORY) {
277 uint32_t nCodeSlots = ntohl(cd->nCodeSlots);
281 if((ntohl(cd->version) >= supportsScatter) && (ntohl(cd->scatterOffset))) {
284 ((const char*)cd + ntohl(cd->scatterOffset));
288 if((const char*)scatter > (const char*)cd + ntohl(cd->length)) {
295 scount = ntohl(scatter->count);
296 uint32_t new_base = ntohl(scatter->base);
322 base = (const unsigned char *)cd + ntohl(cd->hashOffset) +
343 base = (const unsigned char *)cd + ntohl(cd->hashOffset);
407 if (CSMAGIC_EMBEDDED_SIGNATURE != ntohl(super_blob->magic)) {
411 count = ntohl(super_blob->count);
414 blob = (void *)((char *)super_blob + ntohl(blob_index->offset));
415 switch (ntohl(blob_index->type)) {
417 if (CSMAGIC_CODEDIRECTORY != ntohl(blob->magic))
422 ntohl(code_dir->nSpecialSlots)) {
424 ntohl(code_dir->hashOffset) -
429 if (CSMAGIC_EMBEDDED_ENTITLEMENTS != ntohl(blob->magic))
432 length = ntohl(blob->length);
2500 blob->csb_flags = ntohl(cd->flags) | CS_VALID;
2501 blob->csb_end_offset = round_page(ntohl(cd->codeLimit));
2502 if((ntohl(cd->version) >= supportsScatter) && (ntohl(cd->scatterOffset))) {
2504 ((const char*)cd + ntohl(cd->scatterOffset));
2505 blob->csb_start_offset = ntohl(scatter->base) * PAGE_SIZE;
2508 (ntohl(cd->nCodeSlots) * PAGE_SIZE));
2512 sha1_size = ntohl(cd->length);
2877 codeLimit = ntohl(cd->codeLimit);