Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
yubihsm_pkcs11.h File Reference
#include "pkcs11y.h"
#include "list.h"
#include <openssl/evp.h>
#include <sys/time.h>
Include dependency graph for yubihsm_pkcs11.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yubihsm_pkcs11_object_desc
 
struct  find_info
 
struct  sign_info
 
struct  digest_info
 
struct  decrypt_info
 
struct  encrypt_info
 
struct  verify_info
 
union  op
 
struct  mechanism
 
struct  ecdh_session_key
 
struct  yubihsm_pkcs11_op_info
 
struct  yubihsm_pkcs11_context
 
struct  yubihsm_pkcs11_slot
 
struct  yubihsm_pkcs11_session
 
struct  yubihsm_pkcs11_object_template
 

Macros

#define YUBIHSM_PKCS11_OP_BUFSIZE   4096
 
#define MAX_ECDH_SESSION_KEYS   255
 
#define ECDH_KEY_BUF_SIZE   128
 
#define ECDH_KEY_TYPE   0x00FF
 
#define SESSION_AUTHENTICATED    (SESSION_AUTHENTICATED_RO | SESSION_AUTHENTICATED_RW)
 
#define SESSION_NOT_AUTHENTICATED   (SESSION_RESERVED_RO | SESSION_RESERVED_RW)
 

Enumerations

enum  yubihsm_pkcs11_session_state { SESSION_RESERVED_RO = 1 << 0 , SESSION_RESERVED_RW = 1 << 1 , SESSION_AUTHENTICATED_RO = 1 << 2 , SESSION_AUTHENTICATED_RW = 1 << 3 }
 
enum  yubihsm_pkcs11_op_type {
  OPERATION_NOOP , OPERATION_FIND , OPERATION_GEN , OPERATION_SIGN ,
  OPERATION_DIGEST , OPERATION_DECRYPT , OPERATION_VERIFY , OPERATION_ENCRYPT
}
 
enum  yubihsm_pkcs11_attribute { ATTRIBUTE_NOT_SET = 0 , ATTRIBUTE_FALSE , ATTRIBUTE_TRUE }
 

Macro Definition Documentation

◆ ECDH_KEY_BUF_SIZE

#define ECDH_KEY_BUF_SIZE   128

Definition at line 27 of file yubihsm_pkcs11.h.

◆ ECDH_KEY_TYPE

#define ECDH_KEY_TYPE   0x00FF

Definition at line 28 of file yubihsm_pkcs11.h.

◆ MAX_ECDH_SESSION_KEYS

#define MAX_ECDH_SESSION_KEYS   255

Definition at line 26 of file yubihsm_pkcs11.h.

◆ SESSION_AUTHENTICATED

#define SESSION_AUTHENTICATED    (SESSION_AUTHENTICATED_RO | SESSION_AUTHENTICATED_RW)

Definition at line 37 of file yubihsm_pkcs11.h.

37#define SESSION_AUTHENTICATED \
38 (SESSION_AUTHENTICATED_RO | SESSION_AUTHENTICATED_RW)

◆ SESSION_NOT_AUTHENTICATED

#define SESSION_NOT_AUTHENTICATED   (SESSION_RESERVED_RO | SESSION_RESERVED_RW)

Definition at line 39 of file yubihsm_pkcs11.h.

◆ YUBIHSM_PKCS11_OP_BUFSIZE

#define YUBIHSM_PKCS11_OP_BUFSIZE   4096

Definition at line 25 of file yubihsm_pkcs11.h.

Enumeration Type Documentation

◆ yubihsm_pkcs11_attribute

Enumerator
ATTRIBUTE_NOT_SET 
ATTRIBUTE_FALSE 
ATTRIBUTE_TRUE 

Definition at line 171 of file yubihsm_pkcs11.h.

171 {
yubihsm_pkcs11_attribute
@ ATTRIBUTE_NOT_SET
@ ATTRIBUTE_TRUE
@ ATTRIBUTE_FALSE

◆ yubihsm_pkcs11_op_type

Enumerator
OPERATION_NOOP 
OPERATION_FIND 
OPERATION_GEN 
OPERATION_SIGN 
OPERATION_DIGEST 
OPERATION_DECRYPT 
OPERATION_VERIFY 
OPERATION_ENCRYPT 

Definition at line 47 of file yubihsm_pkcs11.h.

47 {
yubihsm_pkcs11_op_type
@ OPERATION_FIND
@ OPERATION_DIGEST
@ OPERATION_GEN
@ OPERATION_ENCRYPT
@ OPERATION_SIGN
@ OPERATION_NOOP
@ OPERATION_VERIFY
@ OPERATION_DECRYPT

◆ yubihsm_pkcs11_session_state

Enumerator
SESSION_RESERVED_RO 
SESSION_RESERVED_RW 
SESSION_AUTHENTICATED_RO 
SESSION_AUTHENTICATED_RW 

Definition at line 30 of file yubihsm_pkcs11.h.

30 {
31 SESSION_RESERVED_RO = 1 << 0,
32 SESSION_RESERVED_RW = 1 << 1,
yubihsm_pkcs11_session_state
@ SESSION_AUTHENTICATED_RW
@ SESSION_AUTHENTICATED_RO
@ SESSION_RESERVED_RO
@ SESSION_RESERVED_RW