Editing Rights Information Files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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:
* <code>/mnt/disc/license/rif</code>
* <code>/mnt/disc/license/rif</code>
* <code>/preinst2/app/CUSA00001/app.rif</code>
* <code>/preinst2/app/CUSA00001/app.rif</code>
* <code>Sc0/license.dat</code> (in PKG entries)


[[Rif/samples|Sample rif files]].
[[Rif/samples|Sample rif files]].


== Rights Information Files ==
== RIF File ==


For a rif file that is paired with an idx file, see [[#RIFA File|RIFA file]].
For a rif file that is paired with a idx file, see [[#RIFA File|RIFA file]].


=== RIF ===
=== RIF ===
Line 39: Line 38:
| Type || <code>0x050</code> || 2 || <code>01 01</code> || See [[#Type|Type]]
| Type || <code>0x050</code> || 2 || <code>01 01</code> || See [[#Type|Type]]
|-
|-
| DRM Type || <code>0x052</code> || 2 || <code>00 0F</code> || Same as PKG DRM Type, PS5 Uses 00 10
| Unknown || <code>0x052</code> || 2 || <code>00 0F</code> ||  
|-
|-
| Content Type || <code>0x054</code> || 2 || <code>00 1A</code> || Same as PKG Content Type,  PS5 Uses 00 20
| Unknown || <code>0x054</code> || 2 || <code>00 1A</code> ||  
|-
|-
| SKU Flag || <code>0x056</code> || 2 || <code>00 01</code> || Not Bootable 0 Trial 1 Full Game 3
| SKU Flag || <code>0x056</code> || 2 || <code>00 01</code> ||  
|-
|-
| Extra Flags || <code>0x058</code> || 4 || <code>00 00 00 00</code> ||  
| Extra Flags || <code>0x058</code> || 4 || <code>00 00 00 00</code> ||  
|-
|-
| Unknown || <code>0x060</code> || 4 || <code>00 02 00 00</code> || PS5 Uses 00 00 00 00
| Unknown || <code>0x060</code> || 4 || <code>00 02 00 00</code> ||  
|-
|-
| Unknown || <code>0x064</code> || 4 || <code>00 00 00 01</code> ||
| Unknown || <code>0x064</code> || 476 || - ||  
|-
| Unknown || <code>0x068</code> || 3 || - ||
|-
| Unknown || <code>0x06B</code> || 1 || - || 02 on old rifs (3.55), 03 on new rifs (5.00)
|-
| Unknown || <code>0x06C</code> || 468 || - ||  
|-
|-
| Disc Key || <code>0x240</code> || 32 || - ||  
| Disc Key || <code>0x240</code> || 32 || - ||  
|-
|-
| Secret Encryption IV || <code>0x260</code> || 16 || - || At least on debug/fake RIFs, this is the first 16 bytes of the SHA-256 hash of the Content ID (all 48 bytes including nulls)
| Secret Encryption IV || <code>0x260</code> || 16 || - ||  
|-
|-
| Encrypted Secret || <code>0x270</code> || 144 || - || See [[#Secret|Secret]] for when decrypted. On debug/fake rifs, the decrypted secret is empty except the first 16 bytes, which are the second 16 bytes of the Content ID hash.
| Encrypted Secret || <code>0x270</code> || 144 || - || See [[#Secret|Secret]] for when decrypted
|-
|-
| RSA Signature || <code>0x300</code> || 256 || - || Verified using public key depending on type
| RSA Signature || <code>0x300</code> || 256 || - || Verified using public key depending on type
Line 69: Line 62:


{| class="wikitable sortable"
{| class="wikitable sortable"
! style="width: 5%" | Type
! style="width: 15%" | Type
! style="width: 10%" | <abbr title="Firmware Type">FW Type</abbr>
! style="width: 10%" | <abbr title="Firmware Type">FW Type</abbr>
! style="width: 5%" | <abbr title="Minimum Version">Min Ver</abbr>
! style="width: 10%" | <abbr title="Minimum Version">Min Ver</abbr>
! style="width: 5%" | <abbr title="Maximum Version">Max Ver</abbr>
! style="width: 10%" | <abbr title="Maximum Version">Max Ver</abbr>
! style="width: 15%" | Name
! style="width: 20%" | Name
! style="width: 30%" | Description
! style="width: 35%" | Remark
! style="width: 30%" | Remarks
|-
|-
| <code>0x000</code>
| <code>0x000</code>
Line 81: Line 73:
| 1
| 1
| 1
| 1
| rowspan="3" | KDS (NPDRM)
| KDS RIF
| rowspan="3" | Used for digital content
|  
| Revoked in at least 4.05
|-
|-
| <code>0x001</code>
| <code>0x001</code>
Line 89: Line 80:
| 2
| 2
| 2
| 2
| rowspan="2" |  
| KDS RIF
|  
|-
|-
| <code>0x002</code>
| <code>0x002</code>
Line 95: Line 87:
| 3
| 3
| 3
| 3
| KDS RIF
|
|-
|-
| <code>0x101</code>
| <code>0x101</code>
Line 100: Line 94:
| rowspan="2" | 1
| rowspan="2" | 1
| rowspan="2" | 1
| rowspan="2" | 1
| rowspan="2" | Isolated (Free,Kiosk)
| rowspan="2" | Isolated RIF
| rowspan="2" | Used for truly free content (Playroom, Vue, Spotify)
| rowspan="2" |  
| rowspan="2" |  
|-
|-
Line 110: Line 103:
| 1
| 1
| 1
| 1
| Disc
| Disc RIF
| Used for Blu-ray content
|  
|  
|-
|-
Line 118: Line 110:
| rowspan="3" | 1
| rowspan="3" | 1
| rowspan="3" | 1
| rowspan="3" | 1
| rowspan="3" | Fake/Debug
| rowspan="3" | Fake/Debug RIF
| rowspan="3" | Used for testing/debugging
| rowspan="3" |  
| rowspan="3" |  
|-
|-
Line 131: Line 122:
| 1
| 1
| ?
| ?
|
|  
|  
|-
|-
Line 139: Line 129:
| 1
| 1
| ?
| ?
|
|  
|  
|-
|-
Line 147: Line 136:
| 1
| 1
| ?
| ?
|
|  
|  
|}
|}
Line 240: Line 228:
| [[Entitlement label]] || <code>0x00</code> || 16 || <code>PLAYROOM00000000</code> ||  
| [[Entitlement label]] || <code>0x00</code> || 16 || <code>PLAYROOM00000000</code> ||  
|-
|-
| RIF Offset || <code>0x10</code> || 8 || <code>00 04 00 00 00 00 00 00</code> || Offset into [[#RIFA File|RIFA file]]
| Offset || <code>0x10</code> || 8 || <code>00 04 00 00 00 00 00 00</code> || Offset into [[#RIFA File|RIFA file]]
|-
|-
| RIF Size || <code>0x18</code> || 8 || <code>00 04 00 00 00 00 00 00</code> ||
| Size || <code>0x18</code> || 8 || <code>00 04 00 00 00 00 00 00</code> ||
|-
|-
| Unknown || <code>0x20</code> || 1 || <code>01</code> ||
| Unknown || <code>0x20</code> || 1 || <code>01</code> ||
|-
|-
| Unknown || <code>0x21</code> || 1 || <code>00</code> ||
| Unknown || <code>0x21</code> || 15 || - ||  
|-
| RIF HMAC || <code>0x22</code> || 8 || - || First 8 bytes of HMACSHA256 of RIF data using per-console data as key
|-
| Unknown || <code>0x2A</code> || 6 || - ||  
|}
|}


{{File Formats}}
{{File Formats}}
<noinclude>[[Category:Main]]</noinclude>
<noinclude>[[Category:Main]]</noinclude>
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)