devcrypto_algorithm_op_init

Initialize an algorithm

Synopsis:

#include <dev/crypto/devcrypto_plugin.h>
typedef int(* devcrypto_algorithm_op_init)(devcrypto_state_ctx_t *sctx);

Arguments:

sctx
The state context.

Library:

devcr

Description:

This function is called when an algorithm is requested to allow plugins to allocate resources and prepare the algorithm for use.

Returns:

EOK if successful or errno if an error occurred.