From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PFS0 and HFS0" |
|---|
| claim | "HFS0 uses the same 0x10-byte header with magic 'HFS0' (0x30534648) but 0x40-byte file entries that add a hashed size and a SHA-256 of the file's first hashed-size bytes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PFS0 and HFS0" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "hfs0_file_entry_t" |
|---|
| size | "0x40" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "offset" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "size" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "string_table_offset" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "hashed_size" |
|---|
|
| offset | "0x18" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "reserved" |
|---|
|
| offset | "0x20" |
|---|
| size | 32 |
|---|
| type | "uint8_t[32]" |
|---|
| name | "hash (SHA-256)" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MAGIC_HFS0 0x30534648, hfs0_header_t identical to PFS0's, hfs0_file_entry_t as listed. hfs0.c line 103 checks the entry hash with check_memory_hash_table_with_suffix over data at header size + offset for hashed_size bytes." |
|---|
| repo | "SciresM/hactool" |
|---|
| commit | "1d64a83450e025622f3468c28fc4164dad2c5ef6" |
|---|
| path | "hfs0.h" |
|---|
| lines | "8-24, 103-114" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "HFS0 header and entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:17:29.461Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:12:55.249Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read hactool hfs0.h at the cited commit: MAGIC_HFS0 0x30534648, header 4 x u32 (0x10), hfs0_file_entry_t u64 offset, u64 size, u32 string_table_offset, u32 hashed_size, u64 reserved, hash[0x20] = 0x40." |
|---|
|
|
|---|