---
name: "kcapi_aead_setassoclen"
section: "3"
platform: "linux"
package: "libkcapi-dev"
version: "1.4.0-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kcapi_aead_setassoclen"
---

# kcapi\_aead\_setassoclen(3)

set authentication data size

## NAME

kcapi\_aead\_setassoclen - set authentication data size

## SYNOPSIS

**void kcapi\_aead\_setassoclen(struct kcapi\_handle \*** *handle***, size\_t** *assoclen***);**

## ARGUMENTS

*handle*

\[in\] cipher handle

*assoclen*

\[in\] length of associated data length

## DESCRIPTION

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.

## AUTHOR

**Stephan Mueller** \<smueller@chronox.de\>

Author.

## COPYRIGHT
