17#ifndef YUBIHSM_PKCS11_H
18#define YUBIHSM_PKCS11_H
22#include <openssl/evp.h>
25#define YUBIHSM_PKCS11_OP_BUFSIZE 4096
26#define MAX_ECDH_SESSION_KEYS 255
27#define ECDH_KEY_BUF_SIZE 128
28#define ECDH_KEY_TYPE 0x00FF
37#define SESSION_AUTHENTICATED \
38 (SESSION_AUTHENTICATED_RO | SESSION_AUTHENTICATED_RW)
39#define SESSION_NOT_AUTHENTICATED (SESSION_RESERVED_RO | SESSION_RESERVED_RW)
unsigned long int CK_ULONG
size_t len
The length of the key.
CK_MECHANISM_TYPE mechanism
CK_UNLOCKMUTEX unlock_mutex
CK_DESTROYMUTEX destroy_mutex
CK_CREATEMUTEX create_mutex
yh_object_descriptor object
yubihsm_pkcs11_attribute sign
yubihsm_pkcs11_attribute decrypt
yubihsm_pkcs11_attribute wrap
yubihsm_pkcs11_attribute exportable
yubihsm_pkcs11_attribute derive
yubihsm_pkcs11_attribute verify
yubihsm_pkcs11_attribute encrypt
yubihsm_pkcs11_attribute unwrap
yubihsm_pkcs11_op_type type
unsigned int buffer_length
yubihsm_pkcs11_op_info operation
yubihsm_pkcs11_slot * slot
yubihsm_pkcs11_session_state session_state
yh_session * device_session
#define YH_MAX_ITEMS_COUNT
Max items the device may hold.
#define YH_OBJ_LABEL_LEN
Max length of object labels.
#define YH_MAX_ALGORITHM_COUNT
Max number of algorithms defined here.
ecdh_session_key ecdh_key
session operation mechanism mechanism
yubihsm_pkcs11_session_state
@ SESSION_AUTHENTICATED_RW
@ SESSION_AUTHENTICATED_RO
#define YUBIHSM_PKCS11_OP_BUFSIZE
#define ECDH_KEY_BUF_SIZE