int generate_hsm_key(struct hsm_context *context, uint8_t *key, size_t key_size)
Generate an HSM key.
Definition: generic_hsm_driver.c:67
int decrypt_hsm_blob(struct hsm_context *context, uint8_t *in, size_t in_size, uint8_t **out, size_t *out_size)
Decrypt a byte array wiht the HSM.
Definition: generic_hsm_driver.c:120
int encrypt_hsm_blob(struct hsm_context *context, uint8_t *in, size_t in_size, uint8_t **out, size_t *out_size)
Encrypt a byte array wiht the HSM.
Definition: generic_hsm_driver.c:88
struct hsm_context * init_hsm(void)
Initialises an HSM context.
Definition: generic_hsm_driver.c:23
Definition: generic_hsm_driver.h:19
void * hsm_ctx
Definition: generic_hsm_driver.h:20