From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PS3 PKG" |
|---|
| claim | "Vita3K reads a PS Vita .pkg as a 0xC0-byte big-endian PkgHeader (magic 7F504B47, revision u16, type u16, info_offset, info_count, header_size, file_count, total_size, data_offset, data_size, 0x30-byte content_id, digest, IV, signatures) followed by a PkgExtHeader whose magic is 7F657874." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PS3 PKG" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "PkgHeader" |
|---|
| size | "0xC0" |
|---|
| endianness | "big" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "magic" |
|---|
|
| offset | "0x4" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "revision" |
|---|
|
| offset | "0x6" |
|---|
| size | 2 |
|---|
| type | "u16" |
|---|
| name | "type" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "info_offset" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "info_count" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "header_size" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "file_count" |
|---|
|
| offset | "0x18" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "total_size" |
|---|
|
| offset | "0x20" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "data_offset" |
|---|
|
| offset | "0x28" |
|---|
| size | 8 |
|---|
| type | "u64" |
|---|
| name | "data_size" |
|---|
|
| offset | "0x30" |
|---|
| size | 48 |
|---|
| type | "char[0x30]" |
|---|
| name | "content_id" |
|---|
|
| offset | "0x60" |
|---|
| size | 16 |
|---|
| type | "u8[16]" |
|---|
| name | "digest" |
|---|
|
| offset | "0x70" |
|---|
| size | 16 |
|---|
| type | "u8[16]" |
|---|
| name | "pkg_data_iv" |
|---|
|
| offset | "0x80" |
|---|
| size | 64 |
|---|
| type | "u8[64]" |
|---|
| name | "pkg_signatures" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct PkgHeader and PkgExtHeader; pkg.cpp lines 99-105 read both and byte_swap-compare the magics 0x7F504b47 and 0x7F657874" |
|---|
| repo | "Vita3K/Vita3K" |
|---|
| commit | "7059dc2a40f1e416ce5403de31db209c75018f99" |
|---|
| path | "vita3k/packages/include/packages/pkg.h" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Vita PKG plain header (Vita3K)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:26:29.109Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:12:55.316Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Vita3K pkg.h struct PkgHeader at the cited commit and summed sizes: 0x18 of u32/u16 fields, three u64 to 0x30, content_id 0x30 -> 0x60, digest 0x70, IV 0x80, signatures 0x40 -> 0xC0; PkgExtHeader follows as a separate struct." |
|---|
|
|
|---|