1KCAPI_KPP_KEYGEN(3) Programming Interface KCAPI_KPP_KEYGEN(3)
2
3
4
6 kcapi_kpp_keygen - generate a public key
7
9 ssize_t kcapi_kpp_keygen(struct kcapi_handle * handle,
10 uint8_t * pubkey, size_t pubkeylen,
11 int access);
12
14 handle
15 [in] cipher handle
16
17 pubkey
18 [out] generated public key
19
20 pubkeylen
21 [in] length of key buffer
22
23 access
24 [in] kernel access type (KCAPI_ACCESS_HEURISTIC - use internal
25 heuristic for fastest kernel access; KCAPI_ACCESS_VMSPLICE - use
26 vmsplice access; KCAPI_ACCESS_SENDMSG - sendmsg access)
27
29 return number of bytes returned by the key generation operation upon
30 success; a negative errno-style error code if an error occurred
31
33 Stephan Mueller <smueller@chronox.de>
34 Author.
35
37libkcapi Manual 1.4.0 August 2022 KCAPI_KPP_KEYGEN(3)