kcapi_aead_getdata_input(3)

kcapi_aead_getdata_input3

Get the pointers into input buffer

Usage

void kcapi_aead_getdata_input(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

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

taglen

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

Overview

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.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Stephan Mueller <[email protected]>

Author.

From libkcapi-dev 1.4.0-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.