qcrypto_cipher_get_tag()

Updated: April 19, 2023

Retrieve a cipher tag

Synopsis:

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

Arguments:

ctx
The algorithm context object.
tag
The tag data.
tagsize
The combined size of the tag data and the retrieved tag.

Library:

libqcrypto

Description:

This function gets the authentication tag after encryption is complete. It is only available for AEAD ciphers.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.