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

NAME

6       kcapi_akcipher_decrypt_aio - decrypt data (asynchronous one shot)
7

SYNOPSIS

9       ssize_t kcapi_akcipher_decrypt_aio(struct kcapi_handle * handle,
10                                          struct iovec * iniov,
11                                          struct iovec * outiov,
12                                          size_t iovlen, int access);
13

ARGUMENTS

15       handle
16           [in] cipher handle
17
18       iniov
19           [in] head of scatter-gather list array holding the plaintext
20
21       outiov
22           [out] head of scatter-gather list of the destination buffers filled
23           with ciphertext
24
25       iovlen
26           [in] number of scatter-gather list entries
27
28       access
29           [in] kernel access type (KCAPI_ACCESS_HEURISTIC - use internal
30           heuristic for fastest kernel access; KCAPI_ACCESS_VMSPLICE - use
31           vmsplice access; KCAPI_ACCESS_SENDMSG - sendmsg access)
32

DESCRIPTION

34       The individual scatter-gather list entries are processed with separate
35       invocations of the the given cipher.
36
37       The memory should be aligned at the page boundary using
38       posix_memalign(sysconf(_SC_PAGESIZE)), If it is not aligned at the page
39       boundary, the vmsplice call may not send all data to the kernel.
40
41       return number of bytes decrypted upon success; a negative errno-style
42       error code if an error occurred
43

AUTHOR

45       Stephan Mueller <smueller@chronox.de>
46           Author.
47
49libkcapi Manual 1.3.1            January 2022          KCAPI_AKCIPHER_DECRY(3)
Impressum