qcrypto_kdf_op_gen

Updated: April 19, 2023

Generate a symmetric key using a key derivation function (KDF)

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_kdf_op_gen)(qcrypto_state_ctx_t *sctx,
            qcrypto_key_ctx_t *kctx,
            size_t keysize,
            const qcrypto_kdf_args_t *kdfargs);

Arguments:

sctx
The algorithm state context object.
kctx
The key context object.
keysize
The size of key to generate, in bytes.
kdfargs
The KDF arguments.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.