vitasdk
Documentation of the vitasdk
sblqafmgr.h
Go to the documentation of this file.
1
6#ifndef _PSP2_SBLQAFMGR_H_
7#define _PSP2_SBLQAFMGR_H_
8
10#include <psp2/types.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
23VITASDK_BUILD_ASSERT_EQ(0x80, SceQafTokenEnc); // size is from FW 3.60
24
25typedef struct SceQafTokenEx {
32 SceUInt8 sig[0x100];
34VITASDK_BUILD_ASSERT_EQ(0x180, SceQafTokenEx); // size is from FW 3.60
35
42
57
60
69
82int sceSblQafMgrGetQafName(char *buffer, SceSize max_length);
83
97
100
103
106
109
112
115
123
126
129
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif /* _PSP2_SBLQAFMGR_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
void * buffer
Definition bt.h:6
int sceSblQafMgrDeleteQafToken2(void)
Delete the stored extended QAF token and mark the NVS token slot empty.
int sceSblQafMgrIsAllowMinimumDebugMenuDisplay(void)
SceUInt8 token_data[0x80]
Input to sceSblQafMgrSetQafToken2 has the layout of SceQafTokenEnc.
Definition sblqafmgr.h:31
int sceSblQafMgrIsAllowRemoteSysmoduleLoad(void)
int sceSblQafMgrIsAllowAllDebugMenuDisplay(void)
int sceSblQafManagerIsAllowKernelDebugForUser(void)
int sceSblQafManagerGetQafNameForUser(char *buffer, SceSize max_length)
Copy up to 0x18 bytes of the active QAF profile name to user memory.
int sceSblQafMgrIsAllowNonQAPup(void)
int sceSblQafMgrSetQafToken2(const SceQafTokenEx *qaf_token)
Validate and install an extended QAF token.
int sceSblQafMgrGetQafToken2(SceQafTokenEx *qaf_token)
Retrieve and transform the stored 0x180-byte extended QAF token.
int sceSblQafMgrIsAllowLimitedDebugMenuDisplay(void)
int sceSblQafMgrIsAllowNpTest(void)
Check whether NP test mode is enabled.
int sceSblQafMgrIsAllowForceUpdate(void)
char qaf_name[0x18]
NUL-terminated or padded QAF profile name.
Definition sblqafmgr.h:20
int sceSblQafMgrGetQafName(char *buffer, SceSize max_length)
Validate the stored extended QAF token and return its active profile name.
int sceSblQafMgrIsAllowNpFullTest(void)
char magic[4]
Token magic.
Definition sblqafmgr.h:18
SceUInt8 enc_data[0x60]
Encrypted token payload.
Definition sblqafmgr.h:21
int sceSblQafManagerDeleteQafTokenForUser(void)
Does nothing on FW 3.60; does not delete a legacy QAF token.
int sceSblQafMgrIsAllowScreenShotAlways(void)
SceUInt32 qaf_version
QAF token version; FW 3.60 uses its second byte as the version counter.
Definition sblqafmgr.h:19
SceUInt8 sig[0x100]
0x100-byte token signature.
Definition sblqafmgr.h:32
Unencrypted header and encrypted payload in the first 0x80 token bytes.
Definition sblqafmgr.h:17
Definition sblqafmgr.h:25
unsigned int SceSize
Definition types.h:56
uint32_t SceUInt32
Definition types.h:45
uint8_t SceUInt8
Definition types.h:36