qcrypto_mac_final()

Updated: October 26, 2022

Finalize a MAC algorithm

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_mac_final(qcrypto_ctx_t *ctx,
                      uint8_t *tag,
                      size_t *size)

Arguments:

ctx
The algorithm context object.
tag
The MAC tag buffer.
size
The combined size of the MAC tag buffer and the retrieved tag.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.