From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PRX (PSP module)" |
|---|
| claim | "A signed PSP module is an ELF wrapped in a 0x150-byte ~PSP header (signature 7E 50 53 50 at 0, module attributes, name, segment table, ELF and file sizes, entry, modinfo offset, BSS size, devkit version, then cryptographic blocks); the plain fields give module name and sizes without decrypting." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PRX (PSP module)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "PSP_Header2" |
|---|
| size | 336 |
|---|
| fields | | name | "signature" |
|---|
| offset | 0 |
|---|
| type | "u8[4]" |
|---|
| note | "7E 50 53 50 (~PSP)" |
|---|
|
| name | "mod_attribute" |
|---|
| offset | 4 |
|---|
| type | "u16" |
|---|
|
| name | "comp_attribute" |
|---|
| offset | 6 |
|---|
| type | "u16" |
|---|
|
| name | "module_ver_lo" |
|---|
| offset | 8 |
|---|
| type | "u8" |
|---|
|
| name | "module_ver_hi" |
|---|
| offset | 9 |
|---|
| type | "u8" |
|---|
|
| name | "modname" |
|---|
| offset | 10 |
|---|
| type | "char[28]" |
|---|
|
| name | "mod_version" |
|---|
| offset | 38 |
|---|
| type | "u8" |
|---|
|
| name | "nsegments" |
|---|
| offset | 39 |
|---|
| type | "u8" |
|---|
|
| name | "elf_size" |
|---|
| offset | 40 |
|---|
| type | "u32" |
|---|
|
| name | "psp_size" |
|---|
| offset | 44 |
|---|
| type | "u32" |
|---|
| note | "size of the whole ~PSP file" |
|---|
|
| name | "boot_entry" |
|---|
| offset | 48 |
|---|
| type | "u32" |
|---|
|
| name | "modinfo_offset" |
|---|
| offset | 52 |
|---|
| type | "u32" |
|---|
| note | "offset of SceModuleInfo in the ELF" |
|---|
|
| name | "bss_size" |
|---|
| offset | 56 |
|---|
| type | "s32" |
|---|
|
| name | "seg_align" |
|---|
| offset | 60 |
|---|
| type | "u32[4]" |
|---|
|
| name | "seg_address" |
|---|
| offset | 68 |
|---|
| type | "u32[4]" |
|---|
|
| name | "seg_size" |
|---|
| offset | 84 |
|---|
| type | "s32[4]" |
|---|
|
| name | "reserved" |
|---|
| offset | 100 |
|---|
| type | "u32[5]" |
|---|
|
| name | "devkit_version" |
|---|
| offset | 120 |
|---|
| type | "u32" |
|---|
|
| name | "decrypt_mode" |
|---|
| offset | 124 |
|---|
| type | "u8" |
|---|
|
| name | "overlap_size" |
|---|
| offset | 126 |
|---|
| type | "u8" |
|---|
|
| name | "comp_size" |
|---|
| offset | 176 |
|---|
| type | "u32" |
|---|
|
| name | "tag" |
|---|
| offset | 208 |
|---|
| type | "u32" |
|---|
| note | "selects the key set; value not interpreted here" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "PSP_Header2 layout with offset comments; the remaining ranges (0x80-0xAF, 0xC0-0xCF, 0xD4-0x14F) are key/signature/hash material, deliberately not described. psploadcore.h line 321 documents the mangled ~PSP signature" |
|---|
| repo | "https://github.com/pspdev/pspsdk" |
|---|
| commit | "6ef2b21dc440ef8d4125f000301faaa2a470975e" |
|---|
| path | "tools/PrxEncrypter/psp_headers.h" |
|---|
| lines | "57-90" |
|---|
|
| type | "source" |
|---|
| detail | "PSP_Header2 offset comments re-read field by field; u8 padding at 0x7D, key_data at 0x80, comp_size 0xB0, tag 0xD0, scheck 0xD4, sha1_hash 0x12C, key_data4 0x140, total 0x150. Offsets come from the author's comments, not a compiler." |
|---|
| repo | "https://github.com/pspdev/pspsdk" |
|---|
| commit | "6ef2b21dc440ef8d4125f000301faaa2a470975e" |
|---|
| path | "tools/PrxEncrypter/psp_headers.h" |
|---|
| lines | "57-90" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PSP_Header (~PSP wrapper)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T09:11:59.187Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:26:38.355Z" |
|---|
| result | "confirmed" |
|---|
| method | "Downloaded tools/PrxEncrypter/psp_headers.h at the cited commit and compared every field offset with the offset comments of typedef PSP_Header2 (signature 0, mod_attribute 4, comp_attribute 6, ver lo/hi 8/9, modname 0xA, mod_version 0x26, nsegments 0x27, elf_size 0x28, psp_size 0x2C, boot_entry 0x30, modinfo_offset 0x34, bss_size 0x38, seg_align 0x3C, seg_address 0x44, seg_size 0x54, reserved 0x64, devkit_version 0x78, decrypt_mode 0x7C, overlap_size 0x7E, comp_size 0xB0, tag 0xD0), total 0x150. Fields are plain host ints for the little-endian MIPS PSP." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:34:38.032Z" |
|---|
| summary | "Raise to high: every offset in the field list matches the offset comments of PSP_Header2 at the cited commit (0, 4, 6, 8, 9, 0xA, 0x26, 0x27, 0x28, 0x2C, 0x30, 0x34, 0x38, 0x3C, 0x44, 0x54, 0x64…" |
|---|
| changed | |
|---|
|
|
|---|