devcrypto_mac_op_final

Finalize a MAC algorithm state

Synopsis:

#include <dev/crypto/devcrypto_plugin.h>
typedef int(* devcrypto_mac_op_final)(devcrypto_state_ctx_t *sctx,
            uint8_t *mac,
            uint32_t *size);

Arguments:

sctx
The state context.
mac
The MAC buffer.
size
The size of the MAC buffer and final MAC.

Library:

devcr

Returns:

EOK if successful or errno if an error occurred.