qcrypto_cipher_aad()

Updated: May 06, 2022

Provide cipher additional authenticated data (AAD)

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_cipher_aad(qcrypto_ctx_t *ctx,
                       const uint8_t *aad,
                       size_t aadsize)

Arguments:

ctx
The algorithm context object.
aad
The AAD data.
aadsize
The AAD data size.

Library:

libqcrypto

Description:

This function is used in AEAD encryption modes such as AES GCM to provide an encryption operation with AAD.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.