Editing SCECAF 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 4: Line 4:
== SCECAF Container File Structure ==
== SCECAF Container File Structure ==


Header
Repeating Section Meta Blocks
Repeating Section Hash Blocks
Header Hash
Sections


=== Header ===
=== Header ===
Line 11: Line 20:
! Offset !! Size !! Description
! Offset !! Size !! Description
|-
|-
| 0x0 || 0x8 || <code>0x5343454341460000</code> Magic "SCECAF\0\0"
| 0x0 || 0x8 || <code>0x5343454341460000</code> magic SCECAF\0\0
|-
|-
| 0x8 || 0x8 || Type (?1: PS4?, 2: PSVita)
| 0x8 || 0x8 || Type/Version? (always 2)
|-
|-
| 0x10 || 0x8 || HMAC Key ID (always 1)
| 0x10 || 0x8 || HMAC Key ID (always 1)
Line 76: Line 85:


Sections are data (normally Gzipped ELF core or CPAD padding) that are encrypted. The encryption is AES 128 in CBC. The IV comes from the Section Meta Header and the key is one of the 4 keys listed in the [[Keys#Coredump_Keys]] page for Coredumps. The HMAC is the SCE-Modified HMAC SHA256. The HMAC Key is one of the 3 listed on the [[Keys#Coredump_Keys]] page as well. The current theory is which key is specified in the section meta header, though since there are no sample that vary, it is just a guess.
Sections are data (normally Gzipped ELF core or CPAD padding) that are encrypted. The encryption is AES 128 in CBC. The IV comes from the Section Meta Header and the key is one of the 4 keys listed in the [[Keys#Coredump_Keys]] page for Coredumps. The HMAC is the SCE-Modified HMAC SHA256. The HMAC Key is one of the 3 listed on the [[Keys#Coredump_Keys]] page as well. The current theory is which key is specified in the section meta header, though since there are no sample that vary, it is just a guess.


== Kernel Coredump Encrypted ELF ==
== Kernel Coredump Encrypted ELF ==
Please note that all contributions to Vita Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see Vita 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)