vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceSblSsMgrForDriver_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x10, SceConsoleId)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceOpenPsId)
 
 VITASDK_BUILD_ASSERT_EQ (8, ScePsCode)
 
int ksceSblAimgrGetConsoleId (SceConsoleId *cid)
 
int ksceSblAimgrGetOpenPsId (SceOpenPsId *open_psid)
 
int ksceSblAimgrGetPscode (ScePsCode *pscode)
 
int ksceSblRngPseudoRandomNumber (void *result, SceSize size)
 
int ksceSblDmac5AesCbcDec (const void *src, void *dst, int size, const void *key, int key_size, void *iv, int mask_enable)
 
int ksceSblDmac5AesCbcEnc (const void *src, void *dst, int size, const void *key, int key_size, void *iv, int mask_enable)
 
int ksceSblDmac5AesCtrDec (const void *src, void *dst, int size, const void *key, int key_size, void *iv, int mask_enable)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, ScePortabilityData)
 
int ksceSblSsDecryptWithPortability (SceUInt32 key_type, void *iv, ScePortabilityData *src, ScePortabilityData *dst)
 

Macros

#define ksceSblSsMgrAesCtrDecrypt   ksceSblDmac5AesCtrDec
 

Data Structure Documentation

◆ SceConsoleId

struct SceConsoleId
Data Fields
uint16_t unk
uint16_t company_code
uint16_t product_code
uint16_t product_sub_code
union SceConsoleId __unnamed__
uint8_t unk3[7]

◆ SceOpenPsId

struct SceOpenPsId
Data Fields
uint8_t open_psid[0x10]

◆ ScePsCode

struct ScePsCode
Data Fields
uint16_t company_code
uint16_t product_code
uint16_t product_sub_code
uint16_t factory_code

◆ ScePortabilityData

struct ScePortabilityData
Data Fields
SceSize msg_size
uint8_t msg[0x20]

◆ SceConsoleId.__unnamed32__

union SceConsoleId.__unnamed32__
Data Fields
__unnamed32__ __unnamed__
uint8_t chassis_check

◆ SceConsoleId.__unnamed32__.__unnamed34__

struct SceConsoleId.__unnamed32__.__unnamed34__
Data Fields
uint8_t unk2: 2
uint8_t factory_code: 6

Macro Definition Documentation

◆ ksceSblSsMgrAesCtrDecrypt

#define ksceSblSsMgrAesCtrDecrypt   ksceSblDmac5AesCtrDec

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/4]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceConsoleId   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/4]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceOpenPsId   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/4]

VITASDK_BUILD_ASSERT_EQ ( ,
ScePsCode   
)

◆ ksceSblAimgrGetConsoleId()

int ksceSblAimgrGetConsoleId ( SceConsoleId cid)

◆ ksceSblAimgrGetOpenPsId()

int ksceSblAimgrGetOpenPsId ( SceOpenPsId open_psid)

◆ ksceSblAimgrGetPscode()

int ksceSblAimgrGetPscode ( ScePsCode pscode)

◆ ksceSblRngPseudoRandomNumber()

int ksceSblRngPseudoRandomNumber ( void *  result,
SceSize  size 
)

◆ ksceSblDmac5AesCbcDec()

int ksceSblDmac5AesCbcDec ( const void *  src,
void *  dst,
int  size,
const void *  key,
int  key_size,
void *  iv,
int  mask_enable 
)

◆ ksceSblDmac5AesCbcEnc()

int ksceSblDmac5AesCbcEnc ( const void *  src,
void *  dst,
int  size,
const void *  key,
int  key_size,
void *  iv,
int  mask_enable 
)

◆ ksceSblDmac5AesCtrDec()

int ksceSblDmac5AesCtrDec ( const void *  src,
void *  dst,
int  size,
const void *  key,
int  key_size,
void *  iv,
int  mask_enable 
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/4]

VITASDK_BUILD_ASSERT_EQ ( 0x24  ,
ScePortabilityData   
)

◆ ksceSblSsDecryptWithPortability()

int ksceSblSsDecryptWithPortability ( SceUInt32  key_type,
void *  iv,
ScePortabilityData src,
ScePortabilityData dst 
)