1KCAPI_AEAD_GETDATA_O(3)      Programming Interface     KCAPI_AEAD_GETDATA_O(3)
2
3
4

NAME

6       kcapi_aead_getdata_output - get the pointers into output buffer
7

SYNOPSIS

9       void kcapi_aead_getdata_output(struct kcapi_handle * handle,
10                                      uint8_t * encdata, uint32_t encdatalen,
11                                      int enc, uint8_t ** aad,
12                                      uint32_t * aadlen, uint8_t ** data,
13                                      uint32_t * datalen, uint8_t ** tag,
14                                      uint32_t * taglen);
15

ARGUMENTS

17       handle
18           [in] cipher handle
19
20       encdata
21           [in] data buffer returned by the encryption operation
22
23       encdatalen
24           [in] size of the encryption data buffer
25
26       enc
27           [in] does output buffer hold encryption or decryption result?
28
29       aad
30           [out] AD buffer pointer; when set to NULL, no data pointer is
31           returned; returned pointer may also be NULL
32
33       aadlen
34           [out] length of AD; when aad was set to NULL, no information is
35           returned
36
37       data
38           [out] pointer to output buffer from AEAD encryption operation when
39           set to NULL, no data pointer is returned
40
41       datalen
42           [out] length of data buffer; when data was set to NULL, no
43           information is returned
44
45       tag
46           [out] tag buffer pointer; when set to NULL, no data pointer is
47           returned; returned pointer may also be NULL
48
49       taglen
50           [out] length of tag; when tag was set to NULL, no information is
51           returned
52

DESCRIPTION

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

AUTHOR

60       Stephan Mueller <smueller@chronox.de>
61           Author.
62
64libkcapi Manual 1.1.4            February 2019         KCAPI_AEAD_GETDATA_O(3)
Impressum