Difference between revisions of "SLB2"
Jump to navigation
Jump to search
CelesteBlue (talk | contribs) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
SLB2 is the format used to store the encrypted bootloaders on the device. | SLB2 is the format used to store the encrypted bootloaders on the device. | ||
− | == ENC Files == | + | == Structure == |
+ | |||
+ | See [[http://www.psdevwiki.com/ps4/SLB2_structure SLB2 structure]] | ||
+ | |||
+ | == SLB2 embedded ENC Files in PUP SPKG == | ||
+ | |||
+ | On 3.50 reset, 3.60 retail: | ||
+ | * second_loader.enc, size: 0xD400 bytes | ||
+ | * second_loader.enp, size: 0xD400 bytes | ||
+ | * secure_kernel.enc, size: 0x8400 bytes | ||
+ | * secure_kernel.enp, size: 0x8400 bytes | ||
+ | |||
+ | == SLB2 embedded ENC Files on PSVita eMMC == | ||
+ | |||
+ | On 3.50 reset, 3.60 retail: | ||
+ | * second_loader.enp_, size: 0xD400 bytes | ||
+ | * second_loader.enp, size: 0xD400 bytes | ||
+ | * secure_kernel.enp_, size: 0x8400 bytes | ||
+ | * secure_kernel.enp, size: 0x8400 bytes | ||
+ | |||
+ | === ENC file structure === | ||
{| class="wikitable" | {| class="wikitable" | ||
− | |||
! Offset !! Size !! Description | ! Offset !! Size !! Description | ||
|- | |- | ||
− | | 0x0 || 0x4 || <code>0x64B2C8E5</code> | + | | 0x0 || 0x4 || <code>0x64B2C8E5</code> Magic |
|- | |- | ||
− | | 0x4 || 0x4 || | + | | 0x4 || 0x4 || Data segment location |
|- | |- | ||
| 0x8 || 0x4 || Unknown | | 0x8 || 0x4 || Unknown | ||
Line 19: | Line 38: | ||
| 0x14 || 0xC || Unknown | | 0x14 || 0xC || Unknown | ||
|- | |- | ||
− | | 0x20 || 0x20 || | + | | 0x20 || 0x20 || Data segment SHA256 |
|- | |- | ||
− | | 0x40 || 0x10 || | + | | 0x40 || 0x10 || System Software version in ASCII (ex: "0000360000000000") |
|- | |- | ||
| 0x50 || 0x90 || Zero | | 0x50 || 0x90 || Zero | ||
|- | |- | ||
− | | 0xE0 || | + | | 0xE0 || 0x1E0 || Encrypted Header |
− | |||
|} | |} | ||
The last 0x340 bytes is a footer that likely contains a signed MAC of the plaintext data. | The last 0x340 bytes is a footer that likely contains a signed MAC of the plaintext data. | ||
+ | |||
[[Category:Formats]] | [[Category:Formats]] |
Revision as of 00:02, 3 January 2019
SLB2 is the format used to store the encrypted bootloaders on the device.
Structure
See [SLB2 structure]
SLB2 embedded ENC Files in PUP SPKG
On 3.50 reset, 3.60 retail:
- second_loader.enc, size: 0xD400 bytes
- second_loader.enp, size: 0xD400 bytes
- secure_kernel.enc, size: 0x8400 bytes
- secure_kernel.enp, size: 0x8400 bytes
SLB2 embedded ENC Files on PSVita eMMC
On 3.50 reset, 3.60 retail:
- second_loader.enp_, size: 0xD400 bytes
- second_loader.enp, size: 0xD400 bytes
- secure_kernel.enp_, size: 0x8400 bytes
- secure_kernel.enp, size: 0x8400 bytes
ENC file structure
Offset | Size | Description |
---|---|---|
0x0 | 0x4 | 0x64B2C8E5 Magic
|
0x4 | 0x4 | Data segment location |
0x8 | 0x4 | Unknown |
0xC | 0x4 | Unknown/Zero |
0x10 | 0x4 | Data size |
0x14 | 0xC | Unknown |
0x20 | 0x20 | Data segment SHA256 |
0x40 | 0x10 | System Software version in ASCII (ex: "0000360000000000") |
0x50 | 0x90 | Zero |
0xE0 | 0x1E0 | Encrypted Header |
The last 0x340 bytes is a footer that likely contains a signed MAC of the plaintext data.