RIF: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
* Acronym for Rights Information File (Found in PSP SDK)
RIF is the acronym for Rights Information File (found in PSP SDK). For Network and Local License, it is tied to and act.dat (see [[NPDRM_Selfs|NPDRM Selfs]] for more info). For Free License, it is not bound to act.dat. It contains information needed to derive the Key License of the bound content.
* Tied to IDPS and act.dat of purchased game/dlc (see [[NPDRM_Selfs | NPDRM Selfs]] for more info)


= Table of Contents for a RIF =
= Structure =


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 8: Line 7:
! Offset !! Size !! Notes  
! Offset !! Size !! Notes  
|-
|-
| 0x00 || 4 || License version (shared with act.dat)
| 0x00 || 2 || Version (shared with act.dat)
|-
|-
| 0x04 || 4 || File version? (last byte is DRM_Type)
| 0x02 || 2 || Version flag (shared with act.dat)
|-
|-
| 0x08 || 8 || Account ID (in little endian)
| 0x04 || 2 || License Type
|-
| 0x06 || 2 || License Flags
|-
| 0x08 || 8 || NP Account ID (in little-endian) for Network and Local License, 8 first bytes of sha-1 of some key for Free License
|-
|-
| 0x10 || 0x30 || Content ID
| 0x10 || 0x30 || Content ID
|-
|-
| 0x40 || 0x10 || Encrypted act.dat key index
| 0x40 || 0x10 || Encrypted account keyring index
|-
|-
| 0x50 || 0x10 || Hash generated from license key
| 0x50 || 0x10 || Encrypted RIF Key
|-
|-
| 0x60 || 8 || License start time
| 0x60 || 8 || License start time
Line 25: Line 28:
|-
|-
| 0x70 || 0x28 || ECDSA Signature
| 0x70 || 0x28 || ECDSA Signature
|-
|}
|}


{{File Formats}}<noinclude>[[Category:Main]]</noinclude>
{{File Formats}}<noinclude>[[Category:Main]]</noinclude>

Revision as of 03:50, 1 June 2021

RIF is the acronym for Rights Information File (found in PSP SDK). For Network and Local License, it is tied to and act.dat (see NPDRM Selfs for more info). For Free License, it is not bound to act.dat. It contains information needed to derive the Key License of the bound content.

Structure

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