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

NAME

6       kcapi_akcipher_stream_op - obtain processed data (stream)
7

SYNOPSIS

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

ARGUMENTS

13       handle
14           [in] cipher handle
15
16       iov
17           [in/out] scatter/gather list pointing to buffers to be filled with
18           the resulting data from a cipher operation.
19
20       iovlen
21           [in] number of scatter/gather list elements.
22

DESCRIPTION

24       This call can be called interleaved with kcapi_akcipher_stream_update
25       to fetch the processed data.
26
27       This function may cause the caller to sleep if the kernel buffer
28       holding the data is empty. The process will be woken up once more data
29       is sent by calling kcapi_cipher_stream_update.
30
31       Note, when supplying buffers that are not multiple of block size, the
32       buffers will only be filled up to the maximum number of full block
33       sizes that fit into the buffer.
34
35       return number of bytes obtained from the kernel upon success; a
36       negative errno-style error code if an error occurred
37

AUTHOR

39       Stephan Mueller <smueller@chronox.de>
40           Author.
41
43libkcapi Manual 1.3.1              July 2021           KCAPI_AKCIPHER_STREA(3)
Impressum