vitasdk
Documentation of the vitasdk
npdrmpackage.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_NPDRMPACKAGE_H_
8 #define _PSP2_NPDRMPACKAGE_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
18 typedef struct _sceNpDrmPackageDecrypt {
21 
26  unsigned int identifier;
29 
42 int _sceNpDrmPackageCheck(const void *buffer, SceSize size, int zero, unsigned int identifier);
43 
53 int _sceNpDrmPackageDecrypt(void * __restrict__ buffer, SceSize size, _sceNpDrmPackageDecrypt_opt * __restrict__ opt);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* _PSP2_NPDRMPACKAGE_H_ */
void * buffer
Definition: bt.h:6
SceSize size
struct size(variable size)
Definition: debug.h:0
SceOff offset
The offset in the encrypted data.
Definition: npdrmpackage.h:20
VITASDK_BUILD_ASSERT_EQ(0x10, _sceNpDrmPackageDecrypt_opt)
int _sceNpDrmPackageCheck(const void *buffer, SceSize size, int zero, unsigned int identifier)
Read the header of the PKG and initialize the context.
unsigned int identifier
The identifier specified for _sceNpDrmPackageCheck but NOT ORed with (1 << 8)
Definition: npdrmpackage.h:26
int _sceNpDrmPackageDecrypt(void *__restrict__ buffer, SceSize size, _sceNpDrmPackageDecrypt_opt *__restrict__ opt)
Decrypt a PKG.
Options for _sceNpDrmPackageDecrypt.
Definition: npdrmpackage.h:18
unsigned int SceSize
Definition: types.h:56
SceInt64 SceOff
Offset type.
Definition: types.h:88