From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Mach-O" |
|---|
| claim | "CodeDirectory hashType: 1 SHA-1 (20 bytes), 2 SHA-256 (32), 3 SHA-256 truncated to 20 bytes, 4 SHA-384 (48). The cdhash is always 20 bytes; larger hashes are truncated." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Mach-O" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "CS_HASHTYPE" |
|---|
| underlying_type | "u8" |
|---|
| values | | CS_HASHTYPE_SHA1 | 1 |
|---|
| CS_HASHTYPE_SHA256 | 2 |
|---|
| CS_HASHTYPE_SHA256_TRUNCATED | 3 |
|---|
| CS_HASHTYPE_SHA384 | 4 |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "CS_HASHTYPE_* and CS_*_LEN" |
|---|
| repo | "https://github.com/apple-oss-distributions/xnu" |
|---|
| commit | "f6217f891ac0bb64f3d375211650a4c1ff8ca1ea" |
|---|
| path | "osfmk/kern/cs_blobs.h" |
|---|
| lines | "133-142" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CodeDirectory hash types" |
|---|
| topic | "Format:Mach-O/Code signature" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T05:03:44.630Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:59:44.064Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read cs_blobs.h at f6217f891ac0 lines 133-136: four CS_HASHTYPE values match." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:27:46.417Z" |
|---|
| summary | "Read cs_blobs.h lines 133-136: exactly four CS_HASHTYPE values; complete at this commit." |
|---|
| changed | |
|---|
|
|
|---|