Skip to content

pkcs11.h

Functions

Name
int wc_Pkcs11_Initialize(Pkcs11Dev * dev, const char * library, void * heap)
void wc_Pkcs11_Finalize(Pkcs11Dev * dev)
int wc_Pkcs11Token_Init(Pkcs11Token * token, Pkcs11Dev * dev, int slotId, const char * tokenName, const unsigned char * userPin, int userPinSz)
void wc_Pkcs11Token_Final(Pkcs11Token * token)
int wc_Pkcs11Token_Open(Pkcs11Token * token, int readWrite)
void wc_Pkcs11Token_Close(Pkcs11Token * token)

Functions Documentation

function wc_Pkcs11_Initialize

int wc_Pkcs11_Initialize(
    Pkcs11Dev * dev,
    const char * library,
    void * heap
)

function wc_Pkcs11_Finalize

void wc_Pkcs11_Finalize(
    Pkcs11Dev * dev
)

function wc_Pkcs11Token_Init

int wc_Pkcs11Token_Init(
    Pkcs11Token * token,
    Pkcs11Dev * dev,
    int slotId,
    const char * tokenName,
    const unsigned char * userPin,
    int userPinSz
)

function wc_Pkcs11Token_Final

void wc_Pkcs11Token_Final(
    Pkcs11Token * token
)

function wc_Pkcs11Token_Open

int wc_Pkcs11Token_Open(
    Pkcs11Token * token,
    int readWrite
)

function wc_Pkcs11Token_Close

void wc_Pkcs11Token_Close(
    Pkcs11Token * token
)

Source code


int wc_Pkcs11_Initialize(Pkcs11Dev* dev, const char* library,
                                     void* heap);

void wc_Pkcs11_Finalize(Pkcs11Dev* dev);

int wc_Pkcs11Token_Init(Pkcs11Token* token, Pkcs11Dev* dev,
    int slotId, const char* tokenName, const unsigned char *userPin,
    int userPinSz);

void wc_Pkcs11Token_Final(Pkcs11Token* token);

int wc_Pkcs11Token_Open(Pkcs11Token* token, int readWrite);

void wc_Pkcs11Token_Close(Pkcs11Token* token);

int wc_Pkcs11StoreKey(Pkcs11Token* token, int type, int clear,

int wc_Pkcs11_CryptoDevCb(int devId, wc_CryptoInfo* info,
    void* ctx);

Updated on 2024-03-19 at 01:20:40 +0000