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:

SceSblPostSsMgrForDriver_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (8, SceSblRsaDataParam)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceSblRsaPublicKeyParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, SceSblRsaPrivateKeyParam)
 
int ksceSblRSA2048CreateSignature (SceSblRsaDataParam *rsa_signature, SceSblRsaDataParam *hash, SceSblRsaPrivateKeyParam *private_key, int type)
 Create the new RSA signature. More...
 
int ksceSblRSA2048VerifySignature (SceSblRsaDataParam *rsa_signature, SceSblRsaDataParam *hash, SceSblRsaPublicKeyParam *public_key, int type)
 Verufy the new RSA signature. More...
 

Data Structure Documentation

◆ SceSblRsaDataParam

struct SceSblRsaDataParam
Data Fields
void * data
unsigned int size

◆ SceSblRsaPublicKeyParam

struct SceSblRsaPublicKeyParam
Data Fields
const void * n
const void * k

◆ SceSblRsaPrivateKeyParam

struct SceSblRsaPrivateKeyParam
Data Fields
int unk_0x00
int unk_0x04
int unk_0x08
int unk_0x0C
void * p
void * q
void * dp
void * dq
void * qp

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/3]

VITASDK_BUILD_ASSERT_EQ ( ,
SceSblRsaDataParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/3]

VITASDK_BUILD_ASSERT_EQ ( ,
SceSblRsaPublicKeyParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/3]

VITASDK_BUILD_ASSERT_EQ ( 0x24  ,
SceSblRsaPrivateKeyParam   
)

◆ ksceSblRSA2048CreateSignature()

int ksceSblRSA2048CreateSignature ( SceSblRsaDataParam rsa_signature,
SceSblRsaDataParam hash,
SceSblRsaPrivateKeyParam private_key,
int  type 
)

Create the new RSA signature.

Parameters
[in,out]rsa_signature- The RSA signature result
[in]hash- The RSA signature hash
[in]private_key- The RSA private key
[in]type- The RSA signature type. [2, 4, 5, 0xB, 0xC, 0xD, 0xE]
Returns
SCE_OK on success, < 0 on error

◆ ksceSblRSA2048VerifySignature()

int ksceSblRSA2048VerifySignature ( SceSblRsaDataParam rsa_signature,
SceSblRsaDataParam hash,
SceSblRsaPublicKeyParam public_key,
int  type 
)

Verufy the new RSA signature.

Parameters
[in]rsa_signature- The RSA signature input
[in]hash- The RSA signature hash
[in]public_key- The RSA public key
[in]type- The RSA signature type. [2, 4, 5, 0xB, 0xC, 0xD, 0xE]
Returns
SCE_OK on success, < 0 on error