pub unsafe extern "C" fn kcapi_kpp_keygen(
    handle: *mut kcapi_handle,
    pubkey: *mut u8,
    pubkeylen: size_t,
    access: c_int
) -> ssize_t
Expand description

kcapi_kpp_keygen - generate a public key

@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