SLB2: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
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. See also [[SLSK]].


== Structure ==
== Structure ==
Line 5: Line 5:
See [[http://www.psdevwiki.com/ps4/SLB2_structure SLB2 structure]]
See [[http://www.psdevwiki.com/ps4/SLB2_structure SLB2 structure]]


== SLB2 embedded ENC Files in PUP SPKG ==
== SLB2 embedded files in PUP SPKG ==


On 3.50 reset, 3.60 retail:
On 3.50 reset, 3.60 retail:
Line 13: Line 13:
* secure_kernel.enp, size: 0x8400 bytes
* secure_kernel.enp, size: 0x8400 bytes


== SLB2 embedded ENC Files on PSVita eMMC ==
== SLB2 embedded files in PSVita eMMC ==


On 3.50 reset, 3.60 retail:
On 3.50 reset, 3.60 retail:
Line 20: Line 20:
* secure_kernel.enp_, size: 0x8400 bytes
* secure_kernel.enp_, size: 0x8400 bytes
* secure_kernel.enp, size: 0x8400 bytes
* secure_kernel.enp, size: 0x8400 bytes
=== ENC file structure ===
{| class="wikitable"
! Offset !! Size !! Description
|-
| 0x0 || 0x4 || <code>0x64B2C8E5</code> 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.




[[Category:Formats]]
[[Category:Formats]]

Revision as of 22:51, 3 June 2020

SLB2 is the format used to store the encrypted bootloaders on the device. See also SLSK.

Structure

See [SLB2 structure]

SLB2 embedded 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 files in 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