![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Functions | |
| int | kscePsmDrmGetActInfo (SceUInt32 *act_type, SceUInt32 *version_flag, SceUInt64 *account_id, SceRtcTick *act_start_time, SceRtcTick *act_exp_time) |
| Get PSM activation information. | |
| int | kscePsmDrmGetRifInfo (const ScePsmDrmLicense *license, char *content_id, SceUInt64 *account_id, SceRtcTick *lic_start_time, SceRtcTick *lic_exp_time) |
| Get PSM RIF information. | |
| int | kscePsmDrmGetRifKey (const ScePsmDrmLicense *license, ScePsmDrmKeySet *keydata, SceUInt32 *version_flag, SceRtcTick *lic_start_time, SceRtcTick *lic_exp_time) |
| Get a PSM RIF key set and license information. | |
| int | kscePsmDrmReadActData (void) |
| Reload and validate tm0:/psmdrm/act.dat and refresh the cached activation data. | |
| int | kscePsmDrmRemoveActData (SceUInt64 *account_id) |
| Remove tm0:/psmdrm/act.dat and clear the cached PSM activation data. | |
| int | kscePsmDrmWriteActData (const void *psm_act_data, const void *aes_dec_key) |
| Validate and install PSM activation data. | |
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
| int kscePsmDrmGetActInfo | ( | SceUInt32 * | act_type, |
| SceUInt32 * | version_flag, | ||
| SceUInt64 * | account_id, | ||
| SceRtcTick * | act_start_time, | ||
| SceRtcTick * | act_exp_time | ||
| ) |
Get PSM activation information.
| [out] | act_type | - Optional activation type output |
| [out] | version_flag | - Optional activation version flag output |
| [out] | account_id | - Optional activated account ID output |
| [out] | act_start_time | - Optional activation start time output |
| [out] | act_exp_time | - Optional activation expiration time output |
| int kscePsmDrmGetRifInfo | ( | const ScePsmDrmLicense * | license, |
| char * | content_id, | ||
| SceUInt64 * | account_id, | ||
| SceRtcTick * | lic_start_time, | ||
| SceRtcTick * | lic_exp_time | ||
| ) |
Get PSM RIF information.
| [in] | license | - Required PSM RIF data (0x400 bytes) |
| [out] | content_id | - Optional content ID buffer (0x30 bytes) |
| [out] | account_id | - Optional license account ID output |
| [out] | lic_start_time | - Optional license start time output |
| [out] | lic_exp_time | - Optional license expiration time output |
| int kscePsmDrmGetRifKey | ( | const ScePsmDrmLicense * | license, |
| ScePsmDrmKeySet * | keydata, | ||
| SceUInt32 * | version_flag, | ||
| SceRtcTick * | lic_start_time, | ||
| SceRtcTick * | lic_exp_time | ||
| ) |
Get a PSM RIF key set and license information.
| [in] | license | - Required PSM RIF data (0x400 bytes) |
| [out] | keydata | - Required ScePsmDrmKeySet output |
| [out] | version_flag | - Optional activation version flag output |
| [out] | lic_start_time | - Optional license start time output |
| [out] | lic_exp_time | - Optional license expiration time output |
The returned start time is the later of the activation and license start times. The returned expiration time is the earlier of their expiration times.
| int kscePsmDrmReadActData | ( | void | ) |
Reload and validate tm0:/psmdrm/act.dat and refresh the cached activation data.
| int kscePsmDrmRemoveActData | ( | SceUInt64 * | account_id | ) |
Remove tm0:/psmdrm/act.dat and clear the cached PSM activation data.
| [out] | account_id | - Optional account ID from the removed activation data |
| int kscePsmDrmWriteActData | ( | const void * | psm_act_data, |
| const void * | aes_dec_key | ||
| ) |
Validate and install PSM activation data.
| [in] | psm_act_data | - PSM-ACT activation data (0x400 bytes) |
| [in] | aes_dec_key | - Optional 0x10-byte AES key used to decrypt the activation data before validation |