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: | ||
The Sealed Key is a an encrypted key used on PS Vita, PS4 and PS5 to prevent files modification and extraction. It can be found on different places in the filesystem and is used for Save Data and Trophy Data decryption and encryption. | The Sealed Key is a an encrypted key used on PS Vita, PS4 and PS5 to prevent files modification and extraction. It can be found on different places in the filesystem and is used for Save Data and Trophy Data decryption and encryption. | ||
= PS4 = | = PS4 = | ||
Line 26: | Line 24: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Offset !! Size !! Description !! | ! Offset !! Size !! Description !! Value | ||
|- | |- | ||
| 0 || 8 || Magic || "pfsSKKey" | | 0 || 8 || Magic || "pfsSKKey" meaning PFS sealedkey key | ||
|- | |- | ||
| 0x8 || 2 || [[#Keyset]] || | | 0x8 || 2 || [[#Keyset]] || | ||
Line 34: | Line 32: | ||
| 0xA || 6 || Padding || Zeroed | | 0xA || 6 || Padding || Zeroed | ||
|- | |- | ||
| 0x10 || 16 || IV || | | 0x10 || 16 || IV || | ||
|- | |- | ||
| 0x20 || 32 || Encrypted Sealed Key || | | 0x20 || 32 || Encrypted Sealed Key || | ||
|- | |- | ||
| 0x40 || 32 || Digest || HMAC- | | 0x40 || 32 || Digest || HMAC-SHA-256 || | ||
|} | |} | ||
Line 62: | Line 60: | ||
| 2 || 4.55 || | | 2 || 4.55 || | ||
|- | |- | ||
| 3 || ? | | 3 || ?5.05? || | ||
|- | |- | ||
| 10 || | | 10 || 12.00 || | ||
|} | |} | ||
For example, in PS4 4.55 kernel, the function '''sceSblSsDecryptSealedKey''' checks that | For example, in PS4 4.55 kernel, the function '''sceSblSsDecryptSealedKey''' checks that keyset is less or equal 2 before calling '''sceSblSsDecryptWithPortability'''. | ||
== Usage == | == Usage == | ||
With code execution in PS4 kernel, the sealed key can be decrypted by asking the PS4 kernel | With code execution in PS4 kernel, the sealed key can be decrypted by asking the PS4 kernel. | ||
{{File Formats}} | {{File Formats}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |