DOKK / manpages / debian 11 / libkcapi-dev / kcapi_kpp_keygen.3.en
KCAPI_KPP_KEYGEN(3) Programming Interface KCAPI_KPP_KEYGEN(3)

kcapi_kpp_keygen - generate a public key

int32_t kcapi_kpp_keygen(struct kcapi_handle * handle, uint8_t * pubkey, uint32_t pubkeylen, int access);

handle

[in] cipher handle

pubkey

[out] generated public key

pubkeylen

[in] length of key buffer

access

[in] kernel access type (KCAPI_ACCESS_HEURISTIC - use internal heuristic for fastest kernel access; KCAPI_ACCESS_VMSPLICE - use vmsplice access; KCAPI_ACCESS_SENDMSG - sendmsg access)

return number of bytes returned by the key generation operation upon success; a negative errno-style error code if an error occurred

Stephan Mueller <smueller@chronox.de>

Author.

November 2020 libkcapi Manual 1.2.1