| Updated: October 28, 2024 |
Save a symmetric key to memory
#include <qcrypto/qcrypto_keys.h>
int qcrypto_key_to_mem(qcrypto_ctx_t *ctx,
qcrypto_key_t *key,
uint8_t *kbuf,
size_t *ksize)
This function saves a symmetric key to the specified memory buffer.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.