vitasdk
Documentation of the vitasdk
npdrm.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_NPDRM_H_
7 #define _PSP2KERN_NPDRM_H_
8 
9 #include <psp2kern/types.h>
10 #include <psp2common/npdrm.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 
25 int ksceNpDrmGetRifName(char *name, SceUInt64 aid);
26 
35 int ksceNpDrmGetFixedRifName(char *name, SceUInt64 aid);
36 
45 
57 int ksceNpDrmCheckActData(int *act_type, int *version_flag, SceUInt64 *account_id, SceUInt64 *act_start_time, SceUInt64 *act_end_time);
58 
71 int ksceNpDrmGetRifVitaKey(const SceNpDrmLicense *license, void *klicense, int *flags, int *sku_flags, SceUInt64 *lic_start_time, SceUInt64 *lic_exp_time);
72 
84 int ksceNpDrmGetRifPspKey(const SceNpDrmLicense *license, void *klicense, int *flags, SceUInt64 *lic_start_time, SceUInt64 *lic_exp_time);
85 
104 int ksceNpDrmGetRifInfo(const SceNpDrmLicense *license, SceSize license_size, int check_sign, char *content_id, SceUInt64 *account_id, int *license_version, int *license_flags, int *flags, int *sku_flags, SceInt64 *lic_start_time, SceInt64 *lic_exp_time, SceUInt64 *flags2);
105 
114 int ksceNpDrmEbootSigVerify(const char *eboot_pbp_path, const void *eboot_signature);
115 
124 int ksceNpDrmPspEbootVerify(const char *eboot_pbp_path, const void *eboot_signature);
125 
135 int ksceNpDrmPspEbootSigGen(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature);
136 
146 int ksceNpDrmEbootSigConvert(const char *eboot_pbp_path, const void* old_eboot_signature, void* new_eboot_signature);
147 
158 int ksceNpDrmEbootSigGenPsp(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int sw_version);
159 
170 int ksceNpDrmEbootSigGenPs1(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int sw_version);
171 
182 int ksceNpDrmEbootSigGenMultiDisc(const char *eboot_pbp_path, const void *sce_discinfo, void *eboot_signature, int sw_version);
183 
184 #ifdef __cplusplus
185 }
186 #endif
187 
188 #endif /* _PSP2KERN_NPDRM_H_ */
int flags
Event flags.
Definition: debug.h:3
Definition: npdrm.h:31
Definition: npdrm.h:48
int ksceNpDrmGetRifVitaKey(const SceNpDrmLicense *license, void *klicense, int *flags, int *sku_flags, SceUInt64 *lic_start_time, SceUInt64 *lic_exp_time)
Get license key info.
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 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 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 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 ksceNpDrmGetRifInfo(const SceNpDrmLicense *license, SceSize license_size, int check_sign, char *content_id, SceUInt64 *account_id, int *license_version, int *license_flags, int *flags, int *sku_flags, SceInt64 *lic_start_time, SceInt64 *lic_exp_time, SceUInt64 *flags2)
Get license info.
int ksceNpDrmGetFixedRifName(char *name, SceUInt64 aid)
Get license file name with fixed.
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 ksceNpDrmReadActData(SceNpDrmActivationData *act_data)
Get current activation data.
unsigned int SceSize
Definition: types.h:56
int64_t SceInt64
Definition: types.h:50
uint64_t SceUInt64
Definition: types.h:51