---
name: "kcapi_aead_getdata_output"
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_getdata_output"
---

# kcapi\_aead\_getdata\_output(3)

get the pointers into output buffer

## NAME

kcapi\_aead\_getdata\_output - get the pointers into output buffer

## SYNOPSIS

**void kcapi\_aead\_getdata\_output(struct kcapi\_handle \*** *handle***, uint8\_t \*** *encdata***, size\_t** *encdatalen***, int** *enc***, uint8\_t \*\*** *aad***, size\_t \*** *aadlen***, uint8\_t \*\*** *data***, size\_t \*** *datalen***, uint8\_t \*\*** *tag***, size\_t \*** *taglen***);**

## ARGUMENTS

*handle*

\[in\] cipher handle

*encdata*

\[in\] data buffer returned by the encryption operation

*encdatalen*

\[in\] size of the encryption data buffer

*enc*

\[in\] does output buffer hold encryption or decryption result?

*aad*

\[out\] AD buffer pointer; when set to NULL, no data pointer is returned; returned pointer may also be NULL

*aadlen*

\[out\] length of AD; when aad was set to NULL, no information is returned

*data*

\[out\] pointer to output buffer from AEAD encryption operation when set to NULL, no data pointer is returned

*datalen*

\[out\] length of data buffer; when data was set to NULL, no information is returned

*tag*

\[out\] tag buffer pointer; when set to NULL, no data pointer is returned; returned pointer may also be NULL

*taglen*

\[out\] length of tag; when tag was set to NULL, no information is returned

## DESCRIPTION

This function is a service function to the consumer to locate the right ciphertext buffer offset holding the authentication tag. In addition, it provides the consumer with the length of the tag and the length of the ciphertext.

## AUTHOR

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

Author.

## COPYRIGHT
