From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Mach-O" |
|---|
| claim | "encryption_info_command_64 (LC_ENCRYPTION_INFO_64, 0x2C) is cmd, cmdsize, cryptoff, cryptsize, cryptid, pad (six uint32, 24 bytes); cryptid 0 means not encrypted, non-zero means the range is encrypted." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Mach-O" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "encryption_info_command_64" |
|---|
| size | 24 |
|---|
| fields | | offset | 0 |
|---|
| name | "cmd" |
|---|
| type | "uint32" |
|---|
|
| offset | 4 |
|---|
| name | "cmdsize" |
|---|
| type | "uint32" |
|---|
|
| offset | 8 |
|---|
| name | "cryptoff" |
|---|
| type | "uint32" |
|---|
|
| offset | 12 |
|---|
| name | "cryptsize" |
|---|
| type | "uint32" |
|---|
|
| offset | 16 |
|---|
| name | "cryptid" |
|---|
| type | "uint32" |
|---|
|
| offset | 20 |
|---|
| name | "pad" |
|---|
| type | "uint32" |
|---|
|
|
|---|
| endianness | "mixed" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "encryption_info_command(_64)" |
|---|
| repo | "apple-oss-distributions/xnu" |
|---|
| commit | "f6217f891ac0bb64f3d375211650a4c1ff8ca1ea" |
|---|
| path | "EXTERNAL_HEADERS/mach-o/loader.h" |
|---|
|
| type | "source" |
|---|
| detail | "cryptid sits at command offset 16 (cryptidOffset computed as cmd start + 16); read for the offset only" |
|---|
| repo | "blacktop/ipsw" |
|---|
| commit | "a9eae76e8b1e901e4a03dd530defac8a1b33f91a" |
|---|
| path | "cmd/ipsw/cmd/macho/macho_decrypt.go" |
|---|
|
| type | "source" |
|---|
| detail | "MH_MAGIC_64 0xfeedfacf and MH_CIGAM_64 0xcffaedfe define the two file byte orders" |
|---|
| repo | "https://github.com/apple-oss-distributions/xnu" |
|---|
| commit | "f6217f891ac0bb64f3d375211650a4c1ff8ca1ea" |
|---|
| path | "EXTERNAL_HEADERS/mach-o/loader.h" |
|---|
| lines | "84-85" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| topic | "Format:Mach-O/Encryption info" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T16:06:08.522Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:25:40.250Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read EXTERNAL_HEADERS/mach-o/loader.h at f6217f891ac0 lines 1230-1239: cmd, cmdsize, cryptoff, cryptsize, cryptid, pad (six uint32 = 24 bytes); LC_ENCRYPTION_INFO_64 = 0x2C at line 317. Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:50:21.090Z" |
|---|
| summary | "Byte order mixed: load commands follow the file's mach header magic (MH_MAGIC_64 / MH_CIGAM_64)" |
|---|
| changed | |
|---|
|
|
|---|