Editing Sealedkey / pfsSKKey
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 1: | Line 1: | ||
This key can be found on different places and will be used for eg. | This key can be found on different places and will be used for eg. SaveGame or Trophy Data decryption and encryption. | ||
==== Paths ==== | |||
==== | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Kind !! Path | ! Kind !! Path | ||
|- | |- | ||
| | | Trophys || /user/home/[[User ID|user Id]]/trophy/data/[[sce_trop]]/sealedkey | ||
|- | |- | ||
| | | SaveGames || /user/home/[[User ID|user Id]]/[[NP Title ID|title Id]]/[[save data directory]]/[[sce_sys]]/ | ||
|} | |} | ||
== Structure == | == Structure == | ||
- size always 96 bytes | |||
- size | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 22: | Line 19: | ||
| 00 || 07 || MAGIC ("pfsSKKey") (?playstation file system sealed key key?) | | 00 || 07 || MAGIC ("pfsSKKey") (?playstation file system sealed key key?) | ||
|- | |- | ||
| 08 || | | 08 || 0F || Category (game=1 or version ?) | ||
|- | |- | ||
| 10 || 1F || IV (16 bytes) | | 10 || 1F || IV (16 bytes) | ||
Line 37: | Line 32: | ||
typedef struct sealedkey_t { | typedef struct sealedkey_t { | ||
const unsigned char MAGIC[8]; | const unsigned char MAGIC[8]; | ||
const unsigned char | const unsigned char CAT[8]; | ||
const unsigned char IV[16]; | const unsigned char IV[16]; | ||
const unsigned char KEY[32]; | const unsigned char KEY[32]; | ||
Line 49: | Line 43: | ||
protected internal struct sealedkey { | protected internal struct sealedkey { | ||
internal static byte[] MAGIC = new byte[8]; | internal static byte[] MAGIC = new byte[8]; | ||
internal static byte[] CAT = new byte[8]; | |||
internal static byte[] | |||
internal static byte[] IV = new byte[16]; | internal static byte[] IV = new byte[16]; | ||
internal static byte[] KEY = new byte[32]; | internal static byte[] KEY = new byte[32]; | ||
Line 57: | Line 50: | ||
</source> | </source> | ||
Note: You | Note: You can't use a const byte[] defination in C#. It need to be a static byte[]. | ||
== De/En -Crypting == | == De/En -Crypting == | ||
Can be decrypted by friendly asking the OS to do it for you. You will need kernel rights to be able to ask the PS4 for it. | Can be decrypted by friendly asking the OS to do it for you. You will need kernel rights to be able to ask the PS4 for it. | ||
<source lang="c"> | <source lang="c"> | ||
Line 167: | Line 159: | ||
} | } | ||
</source> | </source> | ||