Difference between revisions of "SLB2"

From Vita Development Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user 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. See also [[SLSK]].
  
 
== Structure ==
 
== Structure ==
  
See [[http://www.psdevwiki.com/ps4/SLB2_structure SLB2 structure]]
+
See [http://www.psdevwiki.com/ps4/SLB2#Structure|SLB2 structure].
  
== SLB2 embedded ENC Files ==
+
== SLB2 embedded files in PUP SPKG ==
  
On 3.50 reset, 3.60 retail:
+
* second_loader.enc
* second_loader.enp_, size: 0xD400 bytes
+
* second_loader.enp
* second_loader.enp, size: 0xD400 bytes
+
* secure_kernel.enc
* secure_kernel.enp_, size: 0x8400 bytes
+
* secure_kernel.enp
* secure_kernel.enp, size: 0x8400 bytes
+
* secure_kernel.xxx (FW 0.931 only)
 +
* kernel_boot_loader.self
 +
* kprx_auth_sm.self
 +
* prog_rvk.srvk
  
=== ENC file structure ===
+
== SLB2 embedded files in PSVita eMMC ==
  
{| class="wikitable"
+
* second_loader.enp_
|-
+
* second_loader.enp
! Offset !! Size !! Description
+
* secure_kernel.enp_
|-
+
* secure_kernel.enp
| 0x0 || 0x4 || <code>0x64B2C8E5</code> Magic
+
* secure_kernel.xxx (FW 0.931 only)
|-
+
* kernel_boot_loader.self
| 0x4 || 0x4 || Data segment location
+
* kprx_auth_sm.self
|-
+
* prog_rvk.srvk
| 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]]

Latest revision as of 23:15, 6 June 2020

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

Structure

See structure.

SLB2 embedded files in PUP SPKG

  • second_loader.enc
  • second_loader.enp
  • secure_kernel.enc
  • secure_kernel.enp
  • secure_kernel.xxx (FW 0.931 only)
  • kernel_boot_loader.self
  • kprx_auth_sm.self
  • prog_rvk.srvk

SLB2 embedded files in PSVita eMMC

  • second_loader.enp_
  • second_loader.enp
  • secure_kernel.enp_
  • secure_kernel.enp
  • secure_kernel.xxx (FW 0.931 only)
  • kernel_boot_loader.self
  • kprx_auth_sm.self
  • prog_rvk.srvk