qcrypto_algorithm_op_init

Updated: April 19, 2023

Initialize an algorithm

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_algorithm_op_init)(qcrypto_state_ctx_t *sctx);

Arguments:

sctx
The algorithm state context object.

Library:

libqcrypto

Description:

This function is called when an algorithm is requested to allow plugins to allocate resources and prepare the algorithm for use. The algorithm parameters are passed back to the function so that plugins can use them if they need to.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.