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

PKCS11 Library Configuration. More...

#include <stdbool.h>
#include "cryptoauthlib.h"
#include "pkcs11_config.h"
#include "pkcs11_debug.h"
#include "pkcs11_slot.h"
#include "pkcs11_object.h"
#include "pkcs11_key.h"
#include "pkcs11_cert.h"
#include "pkcs11_os.h"
#include "pkcs11_util.h"
#include <limits.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>

Data Structures

struct  pkcs11_conf_filedata_s
 

Macros

#define PKCS11_CONFIG_U8_MAX   0xFFL
 
#define PKCS11_CONFIG_U16_MAX   0xFFFFL
 
#define PKCS11_CONFIG_U32_MAX   0xFFFFFFFFL
 

Typedefs

typedef struct pkcs11_conf_filedata_s pkcs11_conf_filedata
 
typedef struct pkcs11_conf_filedata_spkcs11_conf_filedata_ptr
 

Functions

void pkcs11_config_set_key_size (pkcs11_object_ptr pObject)
 
void pkcs11_config_init_private (pkcs11_object_ptr pObject, const char *label, size_t len)
 
void pkcs11_config_init_public (pkcs11_object_ptr pObject, const char *label, size_t len)
 
void pkcs11_config_init_secret (pkcs11_object_ptr pObject, const char *label, size_t len, size_t keylen)
 
void pkcs11_config_init_cert (pkcs11_object_ptr pObject, const char *label, size_t len)
 
void pkcs11_config_split_string (char *s, char splitter, int *argc, char *argv[])
 
CK_RV pkcs11_config_cert (pkcs11_lib_ctx_ptr pLibCtx, pkcs11_slot_ctx_ptr pSlot, pkcs11_object_ptr pObject, CK_ATTRIBUTE_PTR pLabel)
 
CK_RV pkcs11_config_key (pkcs11_lib_ctx_ptr pLibCtx, pkcs11_slot_ctx_ptr pSlot, pkcs11_object_ptr pObject, CK_ATTRIBUTE_PTR pLabel)
 
CK_RV pkcs11_config_remove_object (pkcs11_lib_ctx_ptr pLibCtx, pkcs11_slot_ctx_ptr pSlot, pkcs11_object_ptr pObject)
 
CK_RV pkcs11_config_load_objects (pkcs11_slot_ctx_ptr slot_ctx)
 
CK_RV pkcs11_config_load (pkcs11_slot_ctx_ptr slot_ctx)
 

Detailed Description

PKCS11 Library Configuration.