vitasdk
Documentation of the vitasdk
sblgcauthmgr.h
Go to the documentation of this file.
1
6#ifndef _PSP2_SBLGCAUTHMGR_H_
7#define _PSP2_SBLGCAUTHMGR_H_
8
10#include <psp2/types.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
19VITASDK_BUILD_ASSERT_EQ(0x20, SceMediaIdType01); // size is from FW 3.60
20
26
34
43
48VITASDK_BUILD_ASSERT_EQ(0x1090, ScePcactActivationData); // size is from FW 3.60
49
59VITASDK_BUILD_ASSERT_EQ(0x80, ScePcactChallenge); // size is from FW 3.60
60
66VITASDK_BUILD_ASSERT_EQ(0x10, ScePcactGetChallengeOpt); // size is from FW 3.60
67
74
89
105int _sceSblGcAuthMgrPcactActivation(const ScePcactActivationData *activation_data, SceSize activation_data_size);
106
125
141int _sceSblGcAuthMgrPkgVry(const SceUInt8 *hash, const SceUInt8 *signature, const SceSblGcAuthMgrPkgVryInfo *info);
142
143#ifdef __cplusplus
144}
145#endif
146
147#endif /* _PSP2_SBLGCAUTHMGR_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
SceUInt8 reserved[0xD]
Must be set to zero.
Definition sblgcauthmgr.h:38
SceUInt8 activation_data[0x1040]
Activation payload passed to NPDRM after verification.
Definition sblgcauthmgr.h:46
ScePcactMode
PC activation challenge modes.
Definition sblgcauthmgr.h:28
SceUInt8 packet_type
Set to 0x11.
Definition sblgcauthmgr.h:52
SceUInt8 protected_data[0x60]
Protected challenge data.
Definition sblgcauthmgr.h:56
ScePcactMode mode
Must match the mode of the saved challenge state.
Definition sblgcauthmgr.h:37
SceUInt8 phase
Set to 1.
Definition sblgcauthmgr.h:53
int _sceSblGcAuthMgrPcactActivation(const ScePcactActivationData *activation_data, SceSize activation_data_size)
Validate and install PC activation data.
SceUInt32 reserved[2]
Ignored on FW 3.60.
Definition sblgcauthmgr.h:64
SceSize challenge_size
Number of result bytes copied; maximum 0x80.
Definition sblgcauthmgr.h:63
ScePcactMode mode
Requested challenge mode.
Definition sblgcauthmgr.h:54
SceUInt16 magic
Must be set to 0x0211.
Definition sblgcauthmgr.h:36
SceUInt8 protected_data[0x30]
Protected data bound to the saved challenge state.
Definition sblgcauthmgr.h:39
int _sceSblGcAuthMgrGetMediaIdType01(SceMediaIdType01 *media_id, const SceSblGcAuthMgrGetMediaIdType01Opt *opt)
Get the type-01 game-card media ID.
SceUInt32 reserved
Ignored on FW 3.60.
Definition sblgcauthmgr.h:23
SceUInt8 data[0x20]
Opaque output produced by secure command 0x23.
Definition sblgcauthmgr.h:17
SceSize media_id_size
Number of result bytes to copy; maximum 0x20.
Definition sblgcauthmgr.h:22
SceSize hash_size
Number of hash bytes copied; use 0x14.
Definition sblgcauthmgr.h:69
SceUInt8 reserved[0xD]
Set to zero.
Definition sblgcauthmgr.h:55
int _sceSblGcAuthMgrPkgVry(const SceUInt8 *hash, const SceUInt8 *signature, const SceSblGcAuthMgrPkgVryInfo *info)
Verify a package ECDSA-160 signature.
SceSize epassword_size
Number of password bytes copied; use 0x20.
Definition sblgcauthmgr.h:62
SceSize sig_size
Number of signature bytes copied; use 0x28.
Definition sblgcauthmgr.h:70
SceUInt8 verification_tag[0x10]
Tag verified before the protected data is accepted.
Definition sblgcauthmgr.h:40
SceUInt64 reserved
Ignored on FW 3.60.
Definition sblgcauthmgr.h:71
int _sceSblGcAuthMgrPcactGetChallenge(SceUInt32 mode, const SceUInt8 *e_password, ScePcactChallenge *challenge, const ScePcactGetChallengeOpt *opt)
Create a PC activation challenge.
ScePcactActivationKeyData key_data
Envelope verified against the saved challenge state.
Definition sblgcauthmgr.h:45
SceUInt8 authentication_tag[0x10]
Packet authentication tag.
Definition sblgcauthmgr.h:57
@ SCE_PCACT_MODE_2
Bypasses the previous challenge expiration check.
Definition sblgcauthmgr.h:31
@ SCE_PCACT_MODE_0
Requires the previous challenge to have expired.
Definition sblgcauthmgr.h:29
@ SCE_PCACT_MODE_1
Requires activation data to be absent and records a new expiration.
Definition sblgcauthmgr.h:30
Definition sblgcauthmgr.h:16
Definition sblgcauthmgr.h:44
Definition sblgcauthmgr.h:35
PC activation challenge packet.
Definition sblgcauthmgr.h:51
Definition sblgcauthmgr.h:61
Definition sblgcauthmgr.h:21
Definition sblgcauthmgr.h:68
unsigned int SceSize
Definition types.h:56
uint16_t SceUInt16
Definition types.h:42
uint64_t SceUInt64
Definition types.h:51
uint32_t SceUInt32
Definition types.h:45
uint8_t SceUInt8
Definition types.h:36