Talk:SELF - SPRX
Jump to navigation
Jump to search
To be merged with SELF File Format and Decryption
NPDRM Header
typedef struct { u32 block_type; // this is 3(NPDRM) u32 block_size; // this is 0x90(sizeof(Self_NPDRM)) u32 unknown1; //So far always 0 u32 unknown2; //So far always 0 u32 magic; // 0x4E504400(NPD) u32 unknown3; // So far always 1 u32 license; // 1 Network License, 2 Local License, 3 Free u32 type; // 1 Executable, 21 Update for Disc Based Game u8 titleid[0x30]; u8 hash_unknown[0x10]; u8 hash1[0x10]; u8 hash2[0x10]; u8 padding[0x10]; } Self_NPDRM
Located after the Self Control Info.
App Info header:
Aligned to 0x10 bytes.
field | offset | type | notes |
---|---|---|---|
authid | 0x00 | u64 | |
unknown | 0x08 | u32 | |
app_type | 0x0c | u32 |
|
app_version | 0x10 | u64 |
Encrypted phdr offset entry
There is one of these entries for each phdr entry in the elf file so that the ps3 knows where to decrypt the data from. (because it might also be compressed.)
field | offset | type | notes |
---|---|---|---|
Encrypted Data Offset | 0x00 | u64 | |
Encrypted Data Size | 0x08 | u64 | |
unknown | 0x10 | u32 | This has been 1 in all the examples I have seen. |
unknown | 0x14 | u32 | Always 0, as far as I know. |
unknown | 0x18 | u32 | Always 0, as far as I know. |
unknown | 0x1c | u32 | This is 2 for loadable segment types, and 0 for other types. |
field | offset | type | notes |
---|---|---|---|
Magic | 0x0 | u32 | Must be "SCE\0" |
version | 0x4 | u32 | This must be 2 or the Self loader will abort |
flags | 0x8 | u16 |
0001: FW 1.00 (app version 1.0.0) 0001: FW 3.15 (app version 3.15.0) 0013: FW 3.65 (app version 3.65.0) 0016: FW 3.72 (app version 3.70.0) |