qcrypto_keygen_op_export_raw

Updated: April 19, 2023

Export a key

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_keygen_op_export_raw)(qcrypto_state_ctx_t *sctx,
            qcrypto_key_ctx_t *kctx,
            uint8_t *kbuf,
            size_t *ksize,
            qcrypto_key_format_t fmt);

Arguments:

sctx
The algorithm state context object.
kctx
The key context object.
kbuf
The key buffer.
ksize
The combined size of the key buffer and retrieved key.
fmt
The key encoding format.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.