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

NAME

6       kcapi_kpp_keygen_aio - generate a public key (asynchronous one shot)
7

SYNOPSIS

9       int32_t kcapi_kpp_keygen_aio(struct kcapi_handle * handle,
10                                    struct iovec * outiov, uint32_t iovlen,
11                                    int access);
12

ARGUMENTS

14       handle
15           [in] cipher handle
16
17       outiov
18           [out] head of scatter-gather list of the destination buffers filled
19           with the generated public key
20
21       iovlen
22           [in] number of scatter-gather list entries
23
24       access
25           [in] kernel access type (KCAPI_ACCESS_HEURISTIC - use internal
26           heuristic for fastest kernel access; KCAPI_ACCESS_VMSPLICE - use
27           vmsplice access; KCAPI_ACCESS_SENDMSG - sendmsg access)
28

DESCRIPTION

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

AUTHOR

41       Stephan Mueller <smueller@chronox.de>
42           Author.
43
45libkcapi Manual 1.1.5            January 2020          KCAPI_KPP_KEYGEN_AIO(3)
Impressum