qcrypto_cipher_op_aad

Updated: April 19, 2023

Add additional authenticated data (AAD) to a cipher

Synopsis:

#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_cipher_op_aad)(qcrypto_state_ctx_t *sctx,
            const uint8_t *aad,
            size_t aadsize);

Arguments:

sctx
The algorithm state context object.
aad
The AAD data.
aadsize
The size of the AAD data.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.