Editing SELF - SPRX
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 339: | Line 339: | ||
=== SCE specific segment types (p_type) === | === SCE specific segment types (p_type) === | ||
<source lang=" | <source lang="C"> | ||
#define PT_SCE_RELA 0x60000000 | #define PT_SCE_RELA 0x60000000 | ||
#define PT_SCE_LICINFO_1 0x60000001 | #define PT_SCE_LICINFO_1 0x60000001 | ||
#ddfine PT_SCE_LICINFO_2 0x60000002 | #ddfine PT_SCE_LICINFO_2 0x60000002 | ||
#define PT_SCE_DYNLIBDATA 0x61000000 | #define PT_SCE_DYNLIBDATA 0x61000000 | ||
#define | #define PT_SCE_PROCPARAM 0x61000001 | ||
#define | #define PT_SCE_UNK_61000010 0x61000010 | ||
#define PT_SCE_COMMENT 0x6FFFFF00 | #define PT_SCE_COMMENT 0x6FFFFF00 | ||
#define PT_SCE_LIBVERSION 0x6FFFFF01 | #define PT_SCE_LIBVERSION 0x6FFFFF01 | ||
Line 356: | Line 355: | ||
#define PT_SCE_PPURELA 0x700000A4 | #define PT_SCE_PPURELA 0x700000A4 | ||
#define PT_SCE_SEGSYM 0x700000A8 | #define PT_SCE_SEGSYM 0x700000A8 | ||
</source> | </source> | ||
Line 525: | Line 489: | ||
} ECDSA224_signature; | } ECDSA224_signature; | ||
typedef struct SceSharedSecret { // size is 0x40 on PS Vita SDK versions 0.931.010-3.740.011 | typedef struct SceSharedSecret { // size is 0x40 on PS Vita SDK versions 0.931.010-3.740.011 | ||
uint8_t shared_secret_0[0x10]; // ex: 0x7E7FD126A7B9614940607EE1BF9DDF5E or full of zeroes | uint8_t shared_secret_0[0x10]; // ex: 0x7E7FD126A7B9614940607EE1BF9DDF5E or full of zeroes | ||
Line 576: | Line 539: | ||
struct { // 0x100 bytes of data | struct { // 0x100 bytes of data | ||
uint32_t magic; // 7F 44 52 4D (".DRM") | uint32_t magic; // 7F 44 52 4D (".DRM") | ||
uint32_t finalized_flag; // ex: 80 00 00 01 | uint32_t finalized_flag; // ex: 80 00 00 01 | ||
uint32_t drm_type; // [[NPDRM#DRM_Type]] | uint32_t drm_type; // [[NPDRM#DRM_Type]] ex: 2 local, 0xD free with license requirement | ||
uint32_t padding; | uint32_t padding; | ||
uint8_t content_id[0x30]; | uint8_t content_id[0x30]; | ||
uint8_t digest[0x10]; // ?sha-1 hash of debug SELF/SPRX created using make_fself_npdrm? content_id hash? | uint8_t digest[0x10]; // ?sha-1 hash of debug SELF/SPRX created using make_fself_npdrm? content_id hash? | ||
Line 609: | Line 572: | ||
uint8[0x14] elf_digest; /* sha1 hash of the ELF file */ | uint8[0x14] elf_digest; /* sha1 hash of the ELF file */ | ||
uint32_t unknown_0; /* seems to be padding */ | uint32_t unknown_0; /* seems to be padding */ | ||
uint64_t | uint64_t required_system_vesion; /* PS3_SYSTEM_VER, decimal format */ | ||
} supplemental_header_table; | } supplemental_header_table; | ||
</source> | </source> | ||
Line 662: | Line 625: | ||
{{File Formats}}<noinclude> | {{File Formats}}<noinclude>[[Category:Main]]</noinclude> | ||
[[Category:Main]] | |||
</noinclude> |