Editing SCECAF File Format
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 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> | | 0x0 || 0x8 || <code>0x5343454341460000</code> magic SCECAF\0\0 | ||
|- | |- | ||
| 0x8 || 0x8 || Type ( | | 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 == | ||
Line 92: | Line 102: | ||
# Call SMC 0x11A to initial a reboot in requested coredump mode | # Call SMC 0x11A to initial a reboot in requested coredump mode | ||
# Upon reboot, coredump handler will create a SCECAF container of the data in 0x58000000 or 0x60000000 | # Upon reboot, coredump handler will create a SCECAF container of the data in 0x58000000 or 0x60000000 | ||