'\" t .\" Title: kcapi_aead_getdata_input .\" Author: .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: November 2020 .\" Manual: Programming Interface .\" Source: libkcapi Manual 1.2.1 .\" Language: English .\" .TH "KCAPI_AEAD_GETDATA_I" "3" "November 2020" "libkcapi Manual 1\&.2\&.1" "Programming Interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kcapi_aead_getdata_input \- get the pointers into input buffer .SH "SYNOPSIS" .HP \w'void\ kcapi_aead_getdata_input('u .BI "void kcapi_aead_getdata_input(struct\ kcapi_handle\ *\ " "handle" ", uint8_t\ *\ " "encdata" ", uint32_t\ " "encdatalen" ", int\ " "enc" ", uint8_t\ **\ " "aad" ", uint32_t\ *\ " "aadlen" ", uint8_t\ **\ " "data" ", uint32_t\ *\ " "datalen" ", uint8_t\ **\ " "tag" ", uint32_t\ *\ " "taglen" ");" .SH "ARGUMENTS" .PP \fIhandle\fR .RS 4 [in] cipher handle .RE .PP \fIencdata\fR .RS 4 [in] data buffer returned by the encryption operation .RE .PP \fIencdatalen\fR .RS 4 [in] size of the encryption data buffer .RE .PP \fIenc\fR .RS 4 [in] does output buffer hold encryption or decryption result? .RE .PP \fIaad\fR .RS 4 [out] AD buffer pointer; when set to NULL, no data pointer is returned .RE .PP \fIaadlen\fR .RS 4 [out] length of AD; when aad was set to NULL, no information is returned .RE .PP \fIdata\fR .RS 4 [out] pointer to output buffer from AEAD encryption operation when set to NULL, no data pointer is returned .RE .PP \fIdatalen\fR .RS 4 [out] length of data buffer; when data was set to NULL, no information is returned .RE .PP \fItag\fR .RS 4 [out] tag buffer pointer; when set to NULL, no data pointer is returned .RE .PP \fItaglen\fR .RS 4 [out] length of tag; when tag was set to NULL, no information is returned .RE .SH "DESCRIPTION" .PP 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\&. .SH "AUTHOR" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br