From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RomFS (Switch)" |
|---|
| claim | "The IVFC hash-tree header around an NCA RomFS is 0xE0 bytes: magic 'IVFC', id, master hash size, level count, six 0x18-byte level descriptors (logical offset, hash data size, block size, reserved), 0x20 unknown bytes and the 0x20-byte master hash." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RomFS (Switch)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ivfc_hdr_t" |
|---|
| size | "0xE0" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "magic (0x43465649)" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "id" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "master_hash_size" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "num_levels" |
|---|
|
| offset | "0x10" |
|---|
| size | 144 |
|---|
| type | "ivfc_level_hdr_t[6]" |
|---|
| name | "level_headers (u64 logical_offset, u64 hash_data_size, u32 block_size, u32 reserved)" |
|---|
|
| offset | "0xA0" |
|---|
| size | 32 |
|---|
| type | "uint8_t[0x20]" |
|---|
| name | "unknown" |
|---|
|
| offset | "0xC0" |
|---|
| size | 32 |
|---|
| type | "uint8_t[0x20]" |
|---|
| name | "master_hash" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "IVFC_HEADER_SIZE 0xE0, IVFC_MAX_LEVEL 6, MAGIC_IVFC, ivfc_level_hdr_t and ivfc_hdr_t. Atmosphere's IntegrityMetaInfo (fssystem_nca_header.hpp lines 252-277) names the same structure with up to 6 level infos and a 0x20-byte seed." |
|---|
| repo | "SciresM/hactool" |
|---|
| commit | "1d64a83450e025622f3468c28fc4164dad2c5ef6" |
|---|
| path | "ivfc.h" |
|---|
| lines | "9-38" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "IVFC header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:19:17.404Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:38:47.206Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched SciresM/hactool ivfc.h at 1d64a83: IVFC_HEADER_SIZE 0xE0; ivfc_hdr_t is 4 x u32, level_headers[6] of ivfc_level_hdr_t (8+8+4+4 = 24 each, 144 total, 0x10-0x9F), _0xA0[0x20], master_hash[0x20]: 0x10+0x90+0x20+0x20 = 0xE0. Size and fields complete." |
|---|
|
|
|---|