43 lines
916 B
C
43 lines
916 B
C
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API int wc_Pkcs11_Initialize(Pkcs11Dev* dev, const char* library,
|
|
void* heap);
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API void wc_Pkcs11_Finalize(Pkcs11Dev* dev);
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API int wc_Pkcs11Token_Init(Pkcs11Token* token, Pkcs11Dev* dev,
|
|
int slotId, const char* tokenName, const unsigned char *userPin,
|
|
int userPinSz);
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API void wc_Pkcs11Token_Final(Pkcs11Token* token);
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API int wc_Pkcs11Token_Open(Pkcs11Token* token, int readWrite);
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API void wc_Pkcs11Token_Close(Pkcs11Token* token);
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API int wc_Pkcs11StoreKey(Pkcs11Token* token, int type, int clear,
|
|
|
|
/*!
|
|
\ingroup PKCS11
|
|
*/
|
|
WOLFSSL_API int wc_Pkcs11_CryptoDevCb(int devId, wc_CryptoInfo* info,
|
|
void* ctx);
|