DOKK / manpages / debian 12 / libkcapi-dev / kcapi_aead_setassoclen.3.en
KCAPI_AEAD_SETASSOCL(3) Programming Interface KCAPI_AEAD_SETASSOCL(3)

kcapi_aead_setassoclen - set authentication data size

void kcapi_aead_setassoclen(struct kcapi_handle * handle, size_t assoclen);

handle

[in] cipher handle

assoclen

[in] length of associated data length

The associated data is retained in the cipher handle. During initialization of a cipher handle, it is sent to the kernel. The kernel cipher implementations may verify the appropriateness of the authentication data size and may return an error during initialization if the authentication size is not considered appropriate.

Stephan Mueller <smueller@chronox.de>

Author.

February 2022 libkcapi Manual 1.4.0