CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
pkcs11_slot.c File Reference

PKCS11 Library Slot Handling. More...

#include "cryptoauthlib.h"
#include "pkcs11_config.h"
#include "pkcs11_debug.h"
#include "pkcs11_init.h"
#include "pkcs11_slot.h"
#include "pkcs11_info.h"
#include "pkcs11_util.h"
#include "pkcs11_object.h"
#include "pkcs11_os.h"
#include <stdio.h>

Functions

pkcs11_slot_ctx_ptr pkcs11_slot_get_context (pkcs11_lib_ctx_ptr lib_ctx, CK_SLOT_ID slotID)
 Retrieve the current slot context.
 
pkcs11_slot_ctx_ptr pkcs11_slot_get_new_context (pkcs11_lib_ctx_ptr lib_ctx)
 
CK_VOID_PTR pkcs11_slot_initslots (CK_ULONG pulCount)
 
CK_RV pkcs11_slot_deinitslots (pkcs11_lib_ctx_ptr lib_ctx)
 
CK_RV pkcs11_slot_config (CK_SLOT_ID slotID)
 
CK_RV pkcs11_slot_init (CK_SLOT_ID slotID)
 This is an internal function that initializes a pkcs11 slot - it must already have the locks in place before being called.
 
CK_RV pkcs11_slot_get_list (CK_BBOOL tokenPresent, CK_SLOT_ID_PTR pSlotList, CK_ULONG_PTR pulCount)
 
CK_RV pkcs11_slot_get_info (CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo)
 Obtains information about a particular slot.
 

Detailed Description

PKCS11 Library Slot Handling.

The nomenclature here can lead to some confusion - the pkcs11 slot is not the same as a device slot. So for example each slot defined here is a specific device (most systems would have only one). The "slots" as defined by the device specification would be enumerated seperately as related to specific supported mechanisms as cryptographic "objects".