NPDRM: Difference between revisions
CelesteBlue (talk | contribs) No edit summary |
CelesteBlue (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
'''The info on this page is an extract (and simplify) of talk page, conversations and forum posts, please digest the info and move it to this page''' | '''The info on this page is an extract (and simplify) of talk page, conversations and forum posts, please digest the info and move it to this page''' | ||
See also [https://wiki.henkaku.xyz/vita/SceNpDrm]. | |||
= Introduction = | = Introduction = |
Revision as of 19:20, 25 December 2019
This article is marked for rewrite/restructuring in proper wiki format. You can help PS3 Developer wiki by editing it. |
The info on this page is an extract (and simplify) of talk page, conversations and forum posts, please digest the info and move it to this page
See also [1].
Introduction
Once the user is trying to start a SELF, the vsh looks for the appinfo header type; if the type is 8, then the control digest element type 3 (NPD element) is located. From this NPD header the vsh gets the License Types (network license, local or free).
- Type 1 (Network License): if a remote paid content is to be loaded, the vsh loads the act.dat and the rif associated to the content (will download to vsh process memory).
- Type 2 (Local): For this paid content too, the vsh locate a file with the same title id on NPD element (CONTENT_ID), then the signature is checked (last 0x28 bytes of both RIF and act.dat).
- Type 3 (Free): if a free content (no license check: no need for rif/act.dat) is detected then a generic klicense will be use for further steps (go to LV2).
Using the RIF_KEY with the act.dat index decryption key, it will obtain the actdatIndex, and finally having the actDat key index, the execution pass to LV2 Syscalls 471.
This function has different parameters depending if the content is debug, paid (type 1 & 2) or free (type 3):
PAID: syscall471(npd.type, &npd.titleID, NULL, &actdat.keyTable[rif.actDatIndex], &rif.key, npd.license, &npd); FREE: syscall471(npd.type, &npd.titleID, freeklicensee, NULL, NULL, npd.license, &npd);
- *PAID can also include free games/apps too but require this licensing check
The lv2 keeps a memory table with contentID and the associated key:
- Paid content: the rif.key is converted to the klicensee (by using a constant value on lv2, IDPS and the act.dat) and once transformed it is stored on memory table.
- free content: copies the titleID and the generic klicensee to the table.
From there, the lv1 hypervisor by loading Appldr, will transform (again) this key by using the klic_dec_key and finally remove the NPDRM layer for start the SELF decryption.
See also:
- http://wololo.net/talk/viewtopic.php?f=67&t=40656 Tutorial: How to find dev klicensee by Mysis
Tools
|