Sponsor:

Your company here, and a link to your site. Click to find out more.

kcapi_kpp_keygen - Man Page

generate a public key

Synopsis

ssize_t kcapi_kpp_keygen(struct kcapi_handle * handle, uint8_t * pubkey, size_t pubkeylen, int access);

Arguments

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)

Description

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

Author

Stephan Mueller <smueller@chronox.de>

Author.

Info

January 2024 libkcapi Manual 1.4.0 Programming Interface