Editing PRX File Format

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 23: Line 23:
|}
|}


= PRX Types & Tags =
= Sony PSP PRX types & tags =
Reversed by Linblow


Extracted from the mesg_led_02g kernel module (firmware<code>6.61</code>model <code>02g</code>).
* Reversed by Linblow
 
</pre>
Firmware: 6.61
Model: 02g
PSP header v1 (0/1/8)


=== PSP header v1 (0/1/8) ===
Use PSP header structure v1.
Use PSP header structure v1.
Primary key size: 144 bytes.
Secondary key size: none.
Secure ID: none.


Primary key size: <code>144</code> bytes.
     Type 0: 03000000 (mode: 4 USER_MODULE)
 
No secondary key, and no secure ID.
 
     Type 0: 03000000 (mode: 4 USER_MODULE)
     Type 0: 04000000 (mode: 5)
     Type 0: 04000000 (mode: 5)
     Type 0: 05000000 (mode: 6)
     Type 0: 05000000 (mode: 6)
     Type 0: 06000000 (mode: 7 PSAR_DEVTOOL)
     Type 0: 06000000 (mode: 7 PSAR_DEVTOOL)
     Type 0: 08000000 (mode: 9 UMD_GAME_EXEC)
     Type 0: 08000000 (mode: 9 UMD_GAME_EXEC)
     Type 0: 09000000 (mode: 10 GAMESHARING_EXEC)
     Type 0: 09000000 (mode: 10 GAMESHARING_EXEC)
     Type 0: 0A000000 (mode: 11 GAMESHARING_EXEC_DEVTOOL)
     Type 0: 0A000000 (mode: 11 GAMESHARING_EXEC_DEVTOOL)
Line 46: Line 48:
     Type 0: 0E000000 (mode: 15 PSAR_RETAIL)
     Type 0: 0E000000 (mode: 15 PSAR_RETAIL)
     Type 0: 0F000000 (mode: 16 ME_IMAGE)
     Type 0: 0F000000 (mode: 16 ME_IMAGE)
     Type 1: 3ACE4DCE (mode: 4 USER_MODULE)
     Type 1: 3ACE4DCE (mode: 4 USER_MODULE)
     Type 1: C0CB167C (mode: 9 UMD_GAME_EXEC)
     Type 1: C0CB167C (mode: 9 UMD_GAME_EXEC)
     Type 1: BB67C59F (mode: 10 GAMESHARING_EXEC)
     Type 1: BB67C59F (mode: 10 GAMESHARING_EXEC)
     Type 1: 7F24BDCD (mode: 13 DEMO_EXEC)
     Type 1: 7F24BDCD (mode: 13 DEMO_EXEC)
     Type 1: 1BC8D12B (mode: 14 APP_MODULE)
     Type 1: 1BC8D12B (mode: 14 APP_MODULE)
     Type 1: 862648D1 (mode: 16 ME_IMAGE)
     Type 1: 862648D1 (mode: 16 ME_IMAGE)
     Type 8: 02000000 (mode: 3 VSH_MODULE)
     Type 8: 02000000 (mode: 3 VSH_MODULE)
     Type 8: 0B000000 (mode: 12 MS_UPDATER)
     Type 8: 0B000000 (mode: 12 MS_UPDATER)


=== PSP header v2 ===
PSP header v2
 
Use PSP header structure v2.
Use PSP header structure v2.
Primary key size: 16 bytes.
Secondary key size: 16 bytes.
Secure ID: type-dependent.
Type 2/4/6/9 (no secure ID)


Primary key size: <code>16</code> bytes.
     Type 2: 457B05F0 (mode: 4 USER_MODULE)
 
     Type 2: 457B06F0 (mode: 4 USER_MODULE)
Secondary key size: <code>16</code> bytes.
     Type 2: 457B08F0 (mode: 4 USER_MODULE)
 
     Type 2: 457B0AF0 (mode: 4 USER_MODULE)
Secure ID: type-dependent, <code>16</code> bytes.
     Type 2: 457B0BF0 (mode: 4 USER_MODULE)
 
     Type 2: 457B0CF0 (mode: 4 USER_MODULE)
==== Type 2/4/6/9 (no secure ID) ====
     Type 2: 457B10F0 (mode: 4 USER_MODULE)
     Type 2: 457B05F0 (mode: 4 USER_MODULE)
     Type 2: 76202403 (mode: 4 USER_MODULE)
     Type 2: 457B06F0 (mode: 4 USER_MODULE)
     Type 2: 457B08F0 (mode: 4 USER_MODULE)
     Type 2: 457B0AF0 (mode: 4 USER_MODULE)
     Type 2: 457B0BF0 (mode: 4 USER_MODULE)
     Type 2: 457B0CF0 (mode: 4 USER_MODULE)
     Type 2: 457B10F0 (mode: 4 USER_MODULE)
     Type 2: 76202403 (mode: 4 USER_MODULE)
     Type 2: 628910F0 (mode: 5)
     Type 2: 628910F0 (mode: 5)
     Type 2: 8B9B10F0 (mode: 6)
     Type 2: 8B9B10F0 (mode: 6)
     Type 2: 5A5C10F0 (mode: 7 PSAR_DEVTOOL)
     Type 2: 5A5C10F0 (mode: 7 PSAR_DEVTOOL)
     Type 2: E42C2303 (mode: 7 PSAR_DEVTOOL)
     Type 2: E42C2303 (mode: 7 PSAR_DEVTOOL)
     Type 2: 8004FD03 (mode: 9 UMD_GAME_EXEC)
     Type 2: 8004FD03 (mode: 9 UMD_GAME_EXEC)
     Type 2: D91605F0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D91605F0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D91606F0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D91606F0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D9160AF0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D9160AF0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D9160BF0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D9160BF0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D91610F0 (mode: 9 UMD_GAME_EXEC)
     Type 2: D91610F0 (mode: 9 UMD_GAME_EXEC)
    Type 2: D91611F0 (mode: 9  UMD_GAME_EXEC) <ref name="resmgr">Resmgr tag '''and''' key ''can'' be overwritten via the game's <code>OPNSSMP.BIN</code> program</ref>
     Type 2: 0A35EA03 (mode: 10 GAMESHARING_EXEC)
     Type 2: 0A35EA03 (mode: 10 GAMESHARING_EXEC)
     Type 2: 7B0505F0 (mode: 10 GAMESHARING_EXEC)
     Type 2: 7B0505F0 (mode: 10 GAMESHARING_EXEC)
Line 109: Line 108:
     Type 4: 279D08F0 (mode: 14 APP_MODULE)
     Type 4: 279D08F0 (mode: 14 APP_MODULE)
     Type 4: 279D10F0 (mode: 14 APP_MODULE)
     Type 4: 279D10F0 (mode: 14 APP_MODULE)
     Type 6: 457B80F0 (mode: 4 USER_MODULE)
     Type 6: 457B80F0 (mode: 4 USER_MODULE)
     Type 6: 457B8AF0 (mode: 4 USER_MODULE)
     Type 6: 457B8AF0 (mode: 4 USER_MODULE)
    Type 6: D91680F0 (mode: 9  UMD_GAME_EXEC) <ref name="resmgr" />
     Type 9: 380290F0 (mode: 3 VSH_MODULE)
     Type 9: 380290F0 (mode: 3 VSH_MODULE)
     Type 9: 380291F0 (mode: 3 VSH_MODULE)
     Type 9: 380291F0 (mode: 3 VSH_MODULE)
     Type 9: 457B90F0 (mode: 4 USER_MODULE)
     Type 9: 457B90F0 (mode: 4 USER_MODULE)
     Type 9: 457B91F0 (mode: 4 USER_MODULE)
     Type 9: 457B91F0 (mode: 4 USER_MODULE)
     Type 9: 0B2B91F0 (mode: 8)
     Type 9: 0B2B91F0 (mode: 8 VSH_INDEX_DAT)
 
    Type 9: D91690F0 (mode: 9  UMD_GAME_EXEC) <ref name="resmgr" />
Type 3/5/7/10 (optional secure ID)


==== Type 3/5/7/10 (optional secure ID) ====
     Type 3: 89742B04 (mode: 18 MS_DNAS_DRMBB)
     Type 3: 89742B04 (mode: 18 MS_DNAS_DRMBB)
     Type 3: E92408F0 (mode: 18 MS_DNAS_DRMBB)
     Type 3: E92408F0 (mode: 18 MS_DNAS_DRMBB)
Line 132: Line 130:
     Type 5: 407810F0 (mode: 23)
     Type 5: 407810F0 (mode: 23)
     Type 5: 2E5E10F0 (mode: 25 MS_BOOT_PATCH)
     Type 5: 2E5E10F0 (mode: 25 MS_BOOT_PATCH)
    Type 5: 2E5E11F0 (mode: 25 MS_BOOT_PATCH) <ref name="resmgr" />
</pre>
    Type 7: 2E5E80F0 (mode: 25 MS_BOOT_PATCH) <ref name="resmgr" />
    Type 10: 2E5E90F0(mode: 25 MS_BOOT_PATCH) <ref name="resmgr" />
 
==== Notes ====
PRX type 9 and 10 also have an early ECDSA signature check in the decryption routine (mesg_led).
 
The [[Keys#PRX_type_9_and_10_Keys|public key used for the signature check]] depends on the PRX tag.
 
Since the corresponding ECDSA private keys are unknown, we cannot create legit type 9/10 PRX.
Please note that all contributions to PSP Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PSP Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)