qcrypto_mac_init()

Updated: April 19, 2023

Initialize a MAC algorithm

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_mac_init(qcrypto_ctx_t *ctx,
                     qcrypto_key_t *key)

Arguments:

ctx
The algorithm context object.
key
The symmetric key.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.