qcrypto_mac_init()

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.