qcrypto_cipher_tagsize()

Updated: October 26, 2022

Retrieve the cipher tag size

Synopsis:

#include <qcrypto/qcrypto.h>
size_t qcrypto_cipher_tagsize(qcrypto_ctx_t *ctx)

Arguments:

ctx
The algorithm context object.

Library:

libqcrypto

Description:

The value returned is the default size that the algorithm supports. Although some cipher modes may support alternative values, in almost all cases, the default size is recommended. See the documentation for each cipher mode for additional details.

Returns:

The tag size in bytes.