Updated: April 19, 2023 |
Retrieve a cipher tag
#include <qcrypto/qcrypto.h>
int qcrypto_cipher_get_tag(qcrypto_ctx_t *ctx, uint8_t *tag, size_t *tagsize)
This function gets the authentication tag after encryption is complete. It is only available for AEAD ciphers.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.