Scroll to navigation

KCAPI_AEAD_GETDATA(3) Programming Interface KCAPI_AEAD_GETDATA(3)

NAME

kcapi_aead_getdata - get the resulting data from encryption

SYNOPSIS

void kcapi_aead_getdata(struct kcapi_handle * handle, uint8_t * encdata, uint32_t encdatalen, uint8_t ** aad, uint32_t * aadlen, uint8_t ** data, uint32_t * datalen, uint8_t ** tag, uint32_t * taglen);

ARGUMENTS

handle

[in] cipher handle

encdata

[in] data buffer returned by the encryption operation

encdatalen

[in] size of the encryption data buffer

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

DESCRIPTION

DEPRECATED since 0.13.0

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

July 2017 libkcapi Manual 0.13.0