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 1: Line 1:
* See also [https://www.psdevwiki.com/ps3/RIF PSP, PS3 and PS Vita RIF files].
See also [[Rif/samples|Sample RIF files]].
See also [[Rif/samples|Sample RIF files]].


Line 12: Line 10:
* <code>Sc0/license.dat</code> (in PKG entries)
* <code>Sc0/license.dat</code> (in PKG entries)


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


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


=== RIF Structure ===
=== RIF ===


Fields are big-endian.
Fields are big-endian.
Line 70: Line 68:
|}
|}


=== Type ===
==== Type ====


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 156: Line 154:


=== Secret ===
=== Secret ===
* See also [https://psdevwiki.com/ps3/SELF_-_SPRX#Supplemental_Header_Table PS Vita shared secret on PS3 Dev Wiki] contained in some PS Vita SELF headers.


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.
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.
Line 191: Line 187:
When in this form, a [[#RIFA Header|RIFA header is present]], followed by sequential [[#RIF|RIFs]].
When in this form, a [[#RIFA Header|RIFA header is present]], followed by sequential [[#RIF|RIFs]].


=== RIFA Structure ===
=== RIFA Header ===


Fields are big-endian.
Fields are big-endian.
Line 211: Line 207:
== RIDX File ==
== RIDX File ==


=== RIDX Structure ===
=== RIDX Header ===


Fields are little-endian.
Fields are little-endian.
Line 246: Line 242:
! style="width: 40%" | Remark
! style="width: 40%" | Remark
|-
|-
| [[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]]
| RIF Offset || <code>0x10</code> || 8 || <code>00 04 00 00 00 00 00 00</code> || Offset into [[#RIFA File|RIFA file]]
Line 256: Line 252:
| Unknown || <code>0x21</code> || 1 || <code>00</code> ||
| Unknown || <code>0x21</code> || 1 || <code>00</code> ||
|-
|-
| RIF Digest || <code>0x22</code> || 8 || - || First 8 bytes of HMACSHA256 of RIF data using per-console data as key
| 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 || - ||  
| Unknown || <code>0x2A</code> || 6 || - ||  
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)