Editing Content License
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 1: | Line 1: | ||
The PS4 content license files are like on PSP, PS3 and | The PS4 content license files are like on PSP, PS3 and PS4 the .rif files.<br /> | ||
But for the first time, the format has been a lot changed: | |||
But for the first time, the format has been | * There is only 1 .rif file (and .idx) per game/app. On PSP, PS3 and PSVita, there were 1 .rif per content (1 for the game + 1 for each DLC) | ||
* There is only | |||
* This is handled by adding each DLC license to the game .rif. To know where the license is in the .rif, PS4 generates a .idx file (RIF index). | * This is handled by adding each DLC license to the game .rif. To know where the license is in the .rif, PS4 generates a .idx file (RIF index). | ||
* When the .rif is downloaded from PSN by SceShellcore, it is added to the current .rif file of the game (if existing).<br />Then the .idx is generated. ShellCore calls npdrm_ioctl to get a 0x10 bytes HMAC-SHA256 per console key from SAMU.<br />The HMAC is computed over the RIF data and is written to the .idx entry.<br />The aim is both to ensure .rif integrity and to make sure the .rif and .idx can't be copied to another PS4 console. | * When the .rif is downloaded from PSN by SceShellcore, it is added to the current .rif file of the game (if existing).<br />Then the .idx is generated. ShellCore calls npdrm_ioctl to get a 0x10 bytes HMAC-SHA256 per console key from SAMU.<br />The HMAC is computed over the RIF data and is written to the .idx entry.<br />The aim is both to ensure .rif integrity and to make sure the .rif and .idx can't be copied to another PS4 console. | ||
Line 173: | Line 172: | ||
| Unknown || <code>0x00</code> || 0x10 || - || | | Unknown || <code>0x00</code> || 0x10 || - || | ||
|- | |- | ||
| | | Unknown || <code>0x10</code> || 0x10 || - || | ||
|- | |- | ||
| | | Unknown || <code>0x20</code> || 0x10 || - || | ||
|- | |- | ||
| Content Key Seed || <code>0x30</code> || 0x10 || - || Used to generate PFS key | | Content Key Seed || <code>0x30</code> || 0x10 || - || Used to generate PFS key | ||
Line 185: | Line 184: | ||
| Unknown || <code>0x60</code> || 0x10 || - || | | Unknown || <code>0x60</code> || 0x10 || - || | ||
|- | |- | ||
| Entitlement Key || <code>0x70</code> || 0x10 || - || | | Entitlement Key || <code>0x70</code> || 0x10 || - || | ||
|- | |- | ||
| | | Unknown || <code>0x80</code> || 0x10 || - || | ||
|} | |} | ||