qcrypto_cipher_ivsize()

Updated: May 06, 2022

Retrieve the cipher initialization vector (IV) size

Synopsis:

#include <qcrypto/qcrypto.h>
size_t qcrypto_cipher_ivsize(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 IV size in bytes.