Editing NPDRM

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 45: Line 45:
! Value !! Type !! Remarks
! Value !! Type !! Remarks
|-
|-
| 0 || Unknown (official name) || It does not require any license. Set in [[EDAT_files|SDATA files]].
| 0 || Debug || Used in SDAT files.
|-
|-
| 1 || Network || It requires network authentication every time the content is launched. See [http://en.wikipedia.org/wiki/PlayStation_Network_outage#Inability_to_use_PlayStation_3_content inability example].
| 1 || Network || It requires network authentication every time the content is launched. See [http://en.wikipedia.org/wiki/PlayStation_Network_outage#Inability_to_use_PlayStation_3_content inability example].
Line 51: Line 51:
| 2 || Local || It requires first time activation online (paid content but also demo and free of charge content).
| 2 || Local || It requires first time activation online (paid content but also demo and free of charge content).
|-
|-
| 3 || Free || On PS3, it does not require any license file nor console activation (act.dat). PS3 disc bind contents use this DRM Type. On PSP, when a .rif is present for Free DRM Type, the RIF NP Account ID is replaced by a Magic Gate Memory Stick command result and the RIF encrypted account keyring index is replaced by the sha1 digest of this Magic Gate Memory Stick command result.
| 3 || Free || On PS3, it does not require any license file nor console activation (act.dat). PS3 disc bind contents use this DRM Type.
|-
|-
| 4 || PSP || This type exists according to PS3 make_package_npdrm.exe revision 1972. However, no .rif holding this DRM Type was ever seen.
| 4 || PSP || This type was found in make_package_npdrm.exe revision 1972.
|-
|-
| 0xD || Free (PSP2/PSM) || Used for Free contents but with license (.rif) requirement, unlike DRM Type 3. Requires either pd0:license/rifname.rif (for Welcome Park) or /app/TITLEID/sce_sys/package/temp.bin (for .pkg installed from PS Store).
| 0xD || "PS Vita Free" (guessed name) || Free but with license (.rif) requirement, unlike DRM Type 3.
|-
| 0x100 || Network (PSP/PSP2) || Seen in PSP and PS Vita OS. On PSP, extends the RIF ECDSA signed data with IDPS and Fuse ID. On PS Vita, forces OpenPSID comparison in RIF and thus RIF RSA signature verification.
|-
| 0x400 || GameCard (PSP2) || Requires a .rif stored in the gamecard filesystem and the gamecard  to be inserted for authentication.
|-
| 0x2000 || Unknown (PS3) || Seen in EP0001-NPEB00560_00-GRAW2PS3REMPKG01.rif.
|}
|}


NPDRM contents decryption requires a key, the key licensee or klicensee. Depending on the content's DRM Type, klicensee is got in different ways:
NPDRM contents decryption requires a key, the key licensee or klicensee. Depending on the content's DRM Type, klicensee is got in different ways:
* DRM type Network: klicensee is generated using associated RIF downloaded on-load from PS Store + ?to detail?
* DRM type Network: klicensee is generated using rif + ?to detail?
* DRM type Local: klicensee is generated using associated RIF downloaded on-installation from PS Store + act.dat + console's IDPS
* DRM type Local: klicensee is generated using act.dat + associated rif + console's IDPS
* DRM type Free: klicensee is the constant PS3 Free klicensee (see [[Keys#NPDRM_Keys|NPDRM keys]] and [[Keys#Appldr|appldr keys]])
* DRM type Free: klicensee is the constant PS3 Free klicensee (see NPDRM [[Keys]] and appldr keys)
* DRM type Free (PSP2/PSM): klicensee is derived from associated RIF stored in the NPDRM PKG file
* DRM type "PS Vita Free": maybe same as Local: to check.
* DRM type GameCard: klicensee is derived from associated RIF stored in the gamecard and gamecard authentication command
 
Free games/applications, e.g. demos and free additional contents can either use Free, Free (PSP2/PSM) or Local DRM Types.
 
= License Flags =
 
License Flags are guessed to be either 4 or 6 bytes long (leaving DRM Type either 2 or 4 bytes long).
 
See [[RIF]].


* 1 by default
Free games/applications, e.g. demos and some additional contents can either use Free, Local or "PS Vita Free" DRM Types.
* 0x200 for preordered content that is not usable yet. Seen in EP1004-BLES01807_00-GTAVDLCATOMICBLI.rif, EP1004-NPEB01283_00-GTAVDIGITALDOWNL.rif and EP1004-NPEP00231_00-TGRANDTHEF000001.rif.


= Tools =
= Tools =
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 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)