RIF: Difference between revisions

From PSP Developer wiki
Jump to navigation Jump to search
(Created page with "Located on ms0:/PSP/LICENSE/<CONTENT_ID>.rif <br> Stands for Rights Information File")
 
No edit summary
Line 2: Line 2:
<br>
<br>
Stands for Rights Information File
Stands for Rights Information File
{| class="wikitable sortable"
|-
! Offset !! Size !! Notes
|-
| 0x00 || 2 || Version (shared with act.dat)
|-
| 0x02 || 2 || Version flag (shared with act.dat)
|-
| 0x04 || 2 || DRM Type
|-
| 0x06 || 2 || License Flags
|-
| 0x08 || 8 || NP Account ID (in little-endian) for Network and Local DRM, 8 first bytes of sha-1 of some key for Free DRM.
|-
| 0x10 || 0x30 || Content ID
|-
| 0x40 || 0x10 || Encrypted account keyring index for Network and Local DRM, 12 last bytes of sha-1 of some key + 4 bytes of zeroes for Free DRM.
|-
| 0x50 || 0x10 || Encrypted RIF Key
|-
| 0x60 || 8 || License start time
|-
| 0x68 || 8 || License expiration time
|-
| 0x70 || 0x28 || ECDSA Signature
|}

Revision as of 23:17, 29 May 2023

Located on ms0:/PSP/LICENSE/<CONTENT_ID>.rif
Stands for Rights Information File

Offset Size Notes
0x00 2 Version (shared with act.dat)
0x02 2 Version flag (shared with act.dat)
0x04 2 DRM Type
0x06 2 License Flags
0x08 8 NP Account ID (in little-endian) for Network and Local DRM, 8 first bytes of sha-1 of some key for Free DRM.
0x10 0x30 Content ID
0x40 0x10 Encrypted account keyring index for Network and Local DRM, 12 last bytes of sha-1 of some key + 4 bytes of zeroes for Free DRM.
0x50 0x10 Encrypted RIF Key
0x60 8 License start time
0x68 8 License expiration time
0x70 0x28 ECDSA Signature