From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:NCA" |
|---|
| claim | "Each of the four NCA FS section headers is 0x200 bytes: version u16, fs type, hash type, encryption type, meta-data hash type, then the hash data (hierarchical SHA-256 or integrity/IVFC info), patch info at 0x100, AES-CTR upper IV at 0x140, sparse, compression and meta-data hash infos." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NCA" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "NcaFsHeader" |
|---|
| size | "0x200" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "version" |
|---|
|
| offset | "0x2" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "fs_type" |
|---|
|
| offset | "0x3" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "hash_type" |
|---|
|
| offset | "0x4" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "encryption_type" |
|---|
|
| offset | "0x5" |
|---|
| size | 1 |
|---|
| type | "u8" |
|---|
| name | "meta_data_hash_type" |
|---|
|
| offset | "0x8" |
|---|
| size | 248 |
|---|
| type | "HashData" |
|---|
| name | "hash_data (union, padded to patch_info)" |
|---|
|
| offset | "0x100" |
|---|
| size | 64 |
|---|
| type | "NcaPatchInfo" |
|---|
| name | "patch_info" |
|---|
|
| offset | "0x140" |
|---|
| size | 8 |
|---|
| type | "NcaAesCtrUpperIv" |
|---|
| name | "aes_ctr_upper_iv" |
|---|
|
| offset | "0x148" |
|---|
| size | 48 |
|---|
| type | "NcaSparseInfo" |
|---|
| name | "sparse_info" |
|---|
|
| offset | "0x178" |
|---|
| size | 40 |
|---|
| type | "NcaCompressionInfo" |
|---|
| name | "compression_info" |
|---|
|
| offset | "0x1A0" |
|---|
| size | 48 |
|---|
| type | "NcaMetaDataHashDataInfo" |
|---|
| name | "meta_data_hash_data_info" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct NcaFsHeader with static_assert(sizeof == 0x200) and AMS_OFFSETOF(patch_info) == NcaPatchInfo::Offset (0x100); later offsets computed from the member sizes." |
|---|
| repo | "Atmosphere-NX/Atmosphere" |
|---|
| commit | "6b0c077b4c608a3a2ee712b8dc35fee87ceb62e8" |
|---|
| path | "libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_header.hpp" |
|---|
| lines | "200-316" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "NCA FS header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:18:38.443Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:25:41.223Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read fssystem_nca_header.hpp at 6b0c077b4c60 NcaFsHeader: version 0, fs_type 2, hash_type 3, encryption_type 4, meta_data_hash_type 5, reserved[2], hash_data 0x8 (union padded to 0x100), patch_info 0x100 (0x40), aes_ctr_upper_iv 0x140, sparse_info 0x148 (48), compression_info 0x178 (40), meta_data_hash_data_info 0x1A0 (48), pad[0x30] to 0x200; static_asserts size 0x200 and patch_info offset 0x100. Matches." |
|---|
|
|
|---|