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

NAME

6       kcapi_aead_stream_update_last - send last data for processing (stream)
7

SYNOPSIS

9       ssize_t kcapi_aead_stream_update_last(struct kcapi_handle * handle,
10                                             struct iovec * iov,
11                                             size_t iovlen);
12

ARGUMENTS

14       handle
15           [in] cipher handle
16
17       iov
18           [in] scatter/gather list with data to be processed by the cipher
19           operation.
20
21       iovlen
22           [in] number of scatter/gather list elements.
23

DESCRIPTION

25       Using this function call, more plaintext for encryption or ciphertext
26       for decryption can be submitted to the kernel.
27
28       This call is identical to the kcapi_aead_stream_update call with the
29       exception that it marks the last data buffer before the cipher
30       operation is triggered. Typically, the tag value is provided with this
31       call.
32

WARNING

34       The memory referenced by iov is not accessed by the kernel during this
35       call. The memory is first accessed when kcapi_cipher_stream_op is
36       called. Thus, you MUST make sure that the referenced memory is still
37       present at the time kcapi_cipher_stream_op is called.
38
39       return number of bytes sent to the kernel upon success; a negative
40       errno-style error code if an error occurred
41

AUTHOR

43       Stephan Mueller <smueller@chronox.de>
44           Author.
45
47libkcapi Manual 1.3.1              July 2021           KCAPI_AEAD_STREAM_UP(3)
Impressum