1KCAPI_KPP_SSGEN(3) Programming Interface KCAPI_KPP_SSGEN(3)
2
3
4
6 kcapi_kpp_ssgen - generate a shared secret
7
9 ssize_t kcapi_kpp_ssgen(struct kcapi_handle * handle,
10 const uint8_t * pubkey, size_t pubkeylen,
11 uint8_t * ss, size_t sslen, int access);
12
14 handle
15 [in] cipher handle
16
17 pubkey
18 [in] public key of peer that shall be used to generate the shared
19 secret with
20
21 pubkeylen
22 [in] length of the public key buffer
23
24 ss
25 [out] generated shared secret
26
27 sslen
28 [in] length of key buffer
29
30 access
31 [in] kernel access type (KCAPI_ACCESS_HEURISTIC - use internal
32 heuristic for fastest kernel access; KCAPI_ACCESS_VMSPLICE - use
33 vmsplice access; KCAPI_ACCESS_SENDMSG - sendmsg access)
34
36 return number of bytes returned by the shared secret generation
37 operation upon success; a negative errno-style error code if an error
38 occurred
39
41 Stephan Mueller <smueller@chronox.de>
42 Author.
43
45libkcapi Manual 1.3.1 January 2022 KCAPI_KPP_SSGEN(3)