qcrypto_cipher_keysize()

Updated: April 19, 2023

Retrieve the cipher key size

Synopsis:

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