Lines Matching refs:codeDirectory
1610 auto *codeDirectory = in writeTo() local
1612 write32be(&codeDirectory->magic, CSMAGIC_CODEDIRECTORY); in writeTo()
1613 write32be(&codeDirectory->length, signatureSize - blobHeadersSize); in writeTo()
1614 write32be(&codeDirectory->version, CS_SUPPORTSEXECSEG); in writeTo()
1615 write32be(&codeDirectory->flags, CS_ADHOC | CS_LINKER_SIGNED); in writeTo()
1616 write32be(&codeDirectory->hashOffset, in writeTo()
1618 write32be(&codeDirectory->identOffset, sizeof(CS_CodeDirectory)); in writeTo()
1619 codeDirectory->nSpecialSlots = 0; in writeTo()
1620 write32be(&codeDirectory->nCodeSlots, getBlockCount()); in writeTo()
1621 write32be(&codeDirectory->codeLimit, fileOff); in writeTo()
1622 codeDirectory->hashSize = static_cast<uint8_t>(hashSize); in writeTo()
1623 codeDirectory->hashType = kSecCodeSignatureHashSHA256; in writeTo()
1624 codeDirectory->platform = 0; in writeTo()
1625 codeDirectory->pageSize = blockSizeShift; in writeTo()
1626 codeDirectory->spare2 = 0; in writeTo()
1627 codeDirectory->scatterOffset = 0; in writeTo()
1628 codeDirectory->teamOffset = 0; in writeTo()
1629 codeDirectory->spare3 = 0; in writeTo()
1630 codeDirectory->codeLimit64 = 0; in writeTo()
1632 write64be(&codeDirectory->execSegBase, textSeg->fileOff); in writeTo()
1633 write64be(&codeDirectory->execSegLimit, textSeg->fileSize); in writeTo()
1634 write64be(&codeDirectory->execSegFlags, in writeTo()
1636 auto *id = reinterpret_cast<char *>(&codeDirectory[1]); in writeTo()