6#ifndef _PSP2KERN_NPDRM_H_
7#define _PSP2KERN_NPDRM_H_
110int ksceNpDrmGetRifInfo(
const SceNpDrmLicense *license,
SceSize license_size,
int check_sign,
char *content_id,
SceUInt64 *account_id,
int *license_version,
int *drm_type,
int *
flags,
int *sku_flags,
SceInt64 *lic_start_time,
SceInt64 *lic_exp_time,
SceUInt64 *rif_data_0x98);
int flags
Event flags.
Definition debug.h:3
int ksceNpDrmGetRifVitaKey(const SceNpDrmLicense *license, void *klicense, int *flags, int *sku_flags, SceUInt64 *lic_start_time, SceUInt64 *lic_exp_time)
Get license key info.
SceBool ksceNpDrmIsLooseAccountBind(void)
int ksceNpDrmWriteActData(const void *npdrm_act_data, const void *aes_dec_key)
Validate and install NPDRM activation data.
int ksceNpDrmCheckActData(int *act_type, int *version_flag, SceUInt64 *account_id, SceUInt64 *act_start_time, SceUInt64 *act_end_time)
Check you have npdrm activation data, and get information from it.
int ksceNpDrmPspEbootVerify(const char *eboot_pbp_path, const void *eboot_signature)
Verify an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" from firmware <2.00.
int ksceNpDrmVerifyRif(const SceNpDrmLicense *license, SceSize license_size)
Verify a RIF signature.
int ksceNpDrmEbootSigConvert(const char *eboot_pbp_path, const void *old_eboot_signature, void *new_eboot_signature)
Convert an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" to a 0x200 byte one used in firmware...
int ksceNpDrmPackageSetGameExist(SceBool game_exists)
Set whether package game content exists.
int ksceNpDrmUpdateActData(void)
Reload and validate tm0:/npdrm/act.dat and refresh the cached activation keys.
int ksceNpDrmPresetRifProvisionalFlag(SceNpDrmLicense *license, SceBool enable)
Set or clear a RIF's provisional flag.
int ksceNpDrmEbootSigGenMultiDisc(const char *eboot_pbp_path, const void *sce_discinfo, void *eboot_signature, int sw_version)
Generate eboot.pbp signature "__sce_discinfo" for a multi-disc PS1 game.
int ksceNpDrmGetRifNameForInstall(char *rif_name, const SceNpDrmLicense *license, SceBool is_fixed)
Get a RIF name for installation.
int ksceNpDrmGetLegacyDocKey(const void *rif, const void *doc_edat, SceSize doc_edat_size, void *legacy_doc_key)
Get a legacy PSP document key.
int ksceNpDrmPspEbootSigGen(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature)
Generate an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" for a PSP game - this is unused in ...
int ksceNpDrmEbootSigVerify(const char *eboot_pbp_path, const void *eboot_signature)
Verify a eboot.pbp signature "__sce_ebootpbp".
int ksceNpDrmEbootSigGenPs1(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int sw_version)
Generate eboot.pbp signature "__sce_ebootpbp" for a single-disc PS1 game.
int ksceNpDrmGetRifPspKey(const SceNpDrmLicense *license, void *klicense, int *flags, SceUInt64 *lic_start_time, SceUInt64 *lic_exp_time)
Get license key info for a PSP game.
int ksceNpDrmUpdateDebugSettings(void)
Refresh the cached NPDRM debug and loose-account-binding settings.
int ksceNpDrmRemoveActData(SceUInt64 *account_id)
Remove tm0:/npdrm/act.dat and clear the cached activation data.
int ksceNpDrmGetFixedRifName(char *name, SceUInt64 aid)
Get license file name with fixed.
int ksceNpDrmVerifyRifFull(SceNpDrmLicense *license)
Fully validate a RIF and update it in place.
int ksceNpDrmGetRifName(char *name, SceUInt64 aid)
Get license file name.
int ksceNpDrmEbootSigGenPsp(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int sw_version)
Generate eboot.pbp signature "__sce_ebootpbp" for a PSP game.
int ksceNpDrmGetRifInfo(const SceNpDrmLicense *license, SceSize license_size, int check_sign, char *content_id, SceUInt64 *account_id, int *license_version, int *drm_type, int *flags, int *sku_flags, SceInt64 *lic_start_time, SceInt64 *lic_exp_time, SceUInt64 *rif_data_0x98)
Get license info.
int ksceNpDrmUpdateAccountId(SceUInt64 account_id)
Update the cached NP account ID.
int ksceNpDrmReadActData(SceNpDrmActivationData *act_data)
Get current activation data.
int SceBool
Definition types.h:59
unsigned int SceSize
Definition types.h:56
int64_t SceInt64
Definition types.h:50
uint64_t SceUInt64
Definition types.h:51