CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
pkcs11_init.h File Reference

PKCS11 Library Initialization & Context. More...

#include "atca_compiler.h"
#include "pkcs11_config.h"
#include "pkcs11_os.h"
#include "cryptoauthlib.h"

Data Structures

struct  pkcs11_dev_ctx
 
struct  pkcs11_dev_res
 
struct  pkcs11_dev_state
 
struct  pkcs11_lib_ctx_s
 

Macros

#define PKCS11_AES_OP   (0x0u)
 
#define PKCS11_DIGEST_OP_0   (0x1u)
 
#define PKCS11_DIGEST_OP_1   (0x2u)
 
#define PKCS11_AUTH_OP_0   (0x3u)
 
#define PKCS11_AUTH_OP_1   (0x4u)
 
#define PKCS11_MAX_DEV_CTX   (5u)
 
#define MAX_DIGEST_SESSIONS   (2u)
 
#define MAX_AUTH_SESSIONS   (2u)
 

Typedefs

typedef struct pkcs11_lib_ctx_s pkcs11_lib_ctx
 

Functions

CK_RV pkcs11_init (CK_C_INITIALIZE_ARGS const *pInitArgs)
 Initializes the PKCS11 API Library for Cryptoauthlib.
 
CK_RV pkcs11_deinit (CK_VOID_PTR pReserved)
 
CK_RV pkcs11_init_check (pkcs11_lib_ctx_ptr *ppContext, CK_BBOOL lock)
 Check if the library is initialized properly.
 
pkcs11_lib_ctx_ptr pkcs11_get_context (void)
 Retrieve the current library context.
 
CK_RV pkcs11_lock_context (pkcs11_lib_ctx_ptr pContext)
 
CK_RV pkcs11_unlock_context (pkcs11_lib_ctx_ptr pContext)
 
CK_RV pkcs11_lock_device (pkcs11_lib_ctx_ptr pContext)
 
CK_RV pkcs11_unlock_device (pkcs11_lib_ctx_ptr pContext)
 
CK_RV pkcs11_lock_both (pkcs11_lib_ctx_ptr pContext)
 
CK_RV pkcs11_unlock_both (pkcs11_lib_ctx_ptr pContext)
 

Detailed Description

PKCS11 Library Initialization & Context.

Typedef Documentation

◆ pkcs11_lib_ctx

Library Context