devcrypto_mac_op_init

Initialize a MAC algorithm state

Synopsis:

#include <dev/crypto/devcrypto_plugin.h>
typedef int(* devcrypto_mac_op_init)(devcrypto_state_ctx_t *sctx,
            const uint8_t *key,
            uint32_t keysize);

Arguments:

sctx
The state context.
key
The MAC key buffer.
keysize
The size of the MAC key buffer.

Library:

devcr

Returns:

EOK if successful or errno if an error occurred.