Go to the documentation of this file.
41 #define HSM_MAX_SESSIONS 100
43 #define HSM_MAX_ALGONAME 16
45 #define HSM_ERROR_MSGSIZE 512
49 #define HSM_MAX_SIGNATURE_LENGTH 512
55 #define HSM_MAX_PIN_LENGTH 255
62 #define HSM_ERROR 0x10000001
63 #define HSM_PIN_INCORRECT 0x10000002
64 #define HSM_CONFIG_FILE_ERROR 0x10000003
65 #define HSM_REPOSITORY_NOT_FOUND 0x10000004
66 #define HSM_NO_REPOSITORIES 0x10000005
67 #define HSM_MODULE_NOT_FOUND 0x10000006
70 #define HSM_PIN_FIRST 0
71 #define HSM_PIN_RETRY 1
72 #define HSM_PIN_SAVE 2
77 unsigned int use_pubkey;
94 unsigned long session;
100 unsigned long private_key;
101 unsigned long public_key;
108 char *algorithm_name;
109 unsigned long keysize;
122 const char *error_action;
146 char *(pin_callback)(
unsigned int,
const char *,
unsigned int));
159 hsm_prompt_pin(
unsigned int id,
const char *repository,
unsigned int mode);
171 hsm_check_pin(
unsigned int id,
const char *repository,
unsigned int mode);
257 const char *repository);
275 const char *repository);
307 const char *repository,
308 unsigned long keysize);
324 const char *repository,
325 unsigned long keysize);
340 const char *repository);
418 unsigned char *buffer,
419 unsigned long length);
458 const char *token_name,
478 const char *repository);