Versions in this module Expand all Collapse all v1 v1.1.193 Mar 14, 2024 Changes in this version + const CDHASH_LEN + const COMPATIBILITY_LIMIT + const CSTYPE_INDEX_ENTITLEMENTS + const CSTYPE_INDEX_REQUIREMENTS + const CS_LAUNCH_TYPE_NONE + const CS_LAUNCH_TYPE_SYSTEM_SERVICE + const CS_LINKAGE_APPLICATION_INVALID + const CS_LINKAGE_APPLICATION_OOPJIT + const CS_LINKAGE_APPLICATION_OOPJIT_INVALID + const CS_LINKAGE_APPLICATION_OOPJIT_MLCOMPILER + const CS_LINKAGE_APPLICATION_OOPJIT_PREVIEWS + const CS_LINKAGE_APPLICATION_ROSETTA + const CS_LINKAGE_APPLICATION_ROSETTA_AOT + const CS_LINKAGE_APPLICATION_XOJIT + const CS_LINKAGE_APPLICATION_XOJIT_PREVIEWS + const CS_SIGNER_TYPE_LEGACYVPN + const CS_SIGNER_TYPE_MAC_APP_STORE + const CS_SIGNER_TYPE_OOPJIT + const CS_SIGNER_TYPE_UNKNOWN + const CS_SUPPL_SIGNER_TYPE_LOCAL + const CS_SUPPL_SIGNER_TYPE_TRUSTCACHE + const CS_SUPPL_SIGNER_TYPE_UNKNOWN + const CS_VALIDATION_CATEGORY_APP_STORE + const CS_VALIDATION_CATEGORY_DEVELOPER_ID + const CS_VALIDATION_CATEGORY_DEVELOPMENT + const CS_VALIDATION_CATEGORY_ENTERPRISE + const CS_VALIDATION_CATEGORY_INVALID + const CS_VALIDATION_CATEGORY_LOCAL_SIGNING + const CS_VALIDATION_CATEGORY_NONE + const CS_VALIDATION_CATEGORY_OOPJIT + const CS_VALIDATION_CATEGORY_PLATFORM + const CS_VALIDATION_CATEGORY_ROSETTA + const CS_VALIDATION_CATEGORY_TESTFLIGHT + const EARLIEST_VERSION + const EXECSEG_ALLOW_UNSIGNED + const EXECSEG_CAN_EXEC_CDHASH + const EXECSEG_CAN_LOAD_CDHASH + const EXECSEG_DEBUGGER + const EXECSEG_JIT + const EXECSEG_MAIN_BINARY + const EXECSEG_SKIP_LV + const HASHTYPE_NOHASH + const HASHTYPE_SHA1 + const HASHTYPE_SHA256 + const HASHTYPE_SHA256_TRUNCATED + const HASHTYPE_SHA384 + const HASHTYPE_SHA512 + const HASH_MAX_SIZE + const HASH_SIZE_SHA1 + const HASH_SIZE_SHA256 + const HASH_SIZE_SHA256_TRUNCATED + const NON_PLATFORM_BINARY + const PAGE_SIZE + const PAGE_SIZE_BITS + const SUPPORTS_CODELIMIT64 + const SUPPORTS_EXECSEG + const SUPPORTS_LINKAGE + const SUPPORTS_RUNTIME + const SUPPORTS_SCATTER + const SUPPORTS_TEAMID + var EmptySha256ReqSlot = []byte + var EmptySha256Slot = bytes.Repeat([]byte{ ... }, sha256.New().Size()) + var NULL_PAGE_SHA256_HASH = []byte + func ParseRequirements(r *bytes.Reader, reqs Requirements) (string, error) + type Blob struct + Data []byte + func CreateRequirements(id string, certs []*x509.Certificate) (Blob, error) + func NewBlob(magic Magic, data []byte) Blob + func (b Blob) Bytes() ([]byte, error) + func (b Blob) Sha256Hash() ([]byte, error) + type BlobHeader struct + Length uint32 + Magic Magic + type BlobIndex struct + Offset uint32 + Type SlotType + type CDFlag uint32 + const ADHOC + const ALLOWED_MACHO + const CHECK_EXPIRATION + const DATAVAULT_CONTROLLER + const DEBUGGED + const DEV_CODE + const DYLD_PLATFORM + const ENFORCEMENT + const ENTITLEMENTS_VALIDATED + const ENTITLEMENT_FLAGS + const EXEC_INHERIT_SIP + const EXEC_SET_ENFORCEMENT + const EXEC_SET_HARD + const EXEC_SET_KILL + const FORCED_LV + const GET_TASK_ALLOW + const HARD + const INSTALLER + const INVALID_ALLOWED + const KILL + const KILLED + const LINKER_SIGNED + const NONE + const NVRAM_UNRESTRICTED + const PLATFORM_BINARY + const PLATFORM_PATH + const REQUIRE_LV + const RESTRICT + const RUNTIME + const SIGNED + const VALID + func (f CDFlag) String() string + type CdCodeLimit64 struct + CodeLimit64 uint64 + type CdEarliest struct + CodeLimit uint32 + Flags CDFlag + HashOffset uint32 + HashSize uint8 + HashType hashType + IdentOffset uint32 + NCodeSlots uint32 + NSpecialSlots uint32 + PageSize uint8 + Platform cdPlatform + Version cdVersion + type CdExecSeg struct + ExecSegBase uint64 + ExecSegFlags execSegFlag + ExecSegLimit uint64 + type CdLinkage struct + LinkageApplicationSubType uint16 + LinkageApplicationType uint8 + LinkageHashType uint8 + LinkageOffset uint32 + LinkageSize uint32 + type CdRuntime struct + PreEncryptOffset uint32 + Runtime mtypes.Version + type CdScatter struct + ScatterOffset uint32 + type CdTeamID struct + TeamOffset uint32 + type CodeDirectory struct + CDHash string + CodeLimit uint64 + CodeSlots []CodeSlot + Header CodeDirectoryType + ID string + LinkageData []byte + PreEncryptSlots [][]byte + RuntimeVersion string + Scatter Scatter + SpecialSlots []SpecialSlot + TeamID string + type CodeDirectoryType struct + type CodeSlot struct + Desc string + Hash []byte + Index uint32 + Page uint32 + type Entitlement struct + Operation int64 + Raw asn1.RawContent + Value asn1.RawValue + type LaunchContraints struct + CCAT int64 + COMP int64 + Count int64 + Requirements map[string]any + Version int64 + func ParseLaunchContraints(data []byte) (*LaunchContraints, error) + type Magic uint32 + const MAGIC_BLOBWRAPPER + const MAGIC_CODEDIRECTORY + const MAGIC_DETACHED_SIGNATURE + const MAGIC_EMBEDDED_ENTITLEMENTS + const MAGIC_EMBEDDED_ENTITLEMENTS_DER + const MAGIC_EMBEDDED_LAUNCH_CONSTRAINT + const MAGIC_EMBEDDED_SIGNATURE + const MAGIC_EMBEDDED_SIGNATURE_OLD + const MAGIC_LIBRARY_DEPENDENCY_BLOB + const MAGIC_REQUIREMENT + const MAGIC_REQUIREMENTS + func (cm Magic) String() string + type Requirement struct + Detail string + type RequirementType uint32 + const DesignatedRequirementType + const GuestRequirementType + const HostRequirementType + const LibraryRequirementType + const PluginRequirementType + func (cm RequirementType) String() string + type Requirements struct + Offset uint32 + Type RequirementType + type RequirementsBlob struct + Data uint32 + Length uint32 + Magic Magic + type SbHeader struct + Count uint32 + Length uint32 + Magic Magic + type Scatter struct + Base uint32 + Count uint32 + TargetOffset uint64 + type SlotType uint32 + const CSSLOT_ALTERNATE_CODEDIRECTORIES + const CSSLOT_ALTERNATE_CODEDIRECTORIES1 + const CSSLOT_ALTERNATE_CODEDIRECTORIES2 + const CSSLOT_ALTERNATE_CODEDIRECTORIES3 + const CSSLOT_ALTERNATE_CODEDIRECTORIES4 + const CSSLOT_ALTERNATE_CODEDIRECTORY_LIMIT + const CSSLOT_ALTERNATE_CODEDIRECTORY_MAX + const CSSLOT_APPLICATION + const CSSLOT_CMS_SIGNATURE + const CSSLOT_CODEDIRECTORY + const CSSLOT_ENTITLEMENTS + const CSSLOT_ENTITLEMENTS_DER + const CSSLOT_IDENTIFICATIONSLOT + const CSSLOT_INFOSLOT + const CSSLOT_LAUNCH_CONSTRAINT_PARENT + const CSSLOT_LAUNCH_CONSTRAINT_RESPONSIBLE + const CSSLOT_LAUNCH_CONSTRAINT_SELF + const CSSLOT_LIBRARY_CONSTRAINT + const CSSLOT_REP_SPECIFIC + const CSSLOT_REQUIREMENTS + const CSSLOT_RESOURCEDIR + const CSSLOT_TICKETSLOT + func (c SlotType) String() string + type SpecialSlot struct + Desc string + Hash []byte + Index uint32 + type SuperBlob struct + Blobs []Blob + Index []BlobIndex + func NewSuperBlob(magic Magic) SuperBlob + func (s *SuperBlob) AddBlob(typ SlotType, blob Blob) + func (s *SuperBlob) GetBlob(typ SlotType) (Blob, error) + func (s *SuperBlob) Size() int + func (s *SuperBlob) Write(buf *bytes.Buffer, o binary.ByteOrder) error