KCAPI_KPP_KEYGEN(3)
β¨ NAME β¨
kcapi_kpp_keygen β bestie, this one generates a public key π
Okay so real talk, this is a page from the libkcapi manual (section 3, the library-calls section, iykyk), and it's all about making a brand new public key. Let's get into it π«Ά
πΈ SYNOPSIS πΈ
ssize_t kcapi_kpp_keygen(struct kcapi_handle * handle, uint8_t * pubkey,
size_t pubkeylen, int access);
π ARGUMENTS π
handleβ [in] the cipher handle, aka your little passport to the kernel crypto world πpubkeyβ [out] the generated public key lands right here, freshly baked β¨pubkeylenβ [in] how long that key buffer is, bestie, gotta tell itaccessβ [in] the kernel access type, and there are three vibes to pick from:KCAPI_ACCESS_HEURISTICβ uses an internal heuristic to find the fastest kernel access π₯KCAPI_ACCESS_VMSPLICEβ usesvmspliceaccessKCAPI_ACCESS_SENDMSGβ usessendmsgaccess
π DESCRIPTION π
So what does it return, you ask? π
On success it returns the number of bytes returned by the key generation operation. On error it hands you back a negative errno-style error code β not me getting a negative number and knowing exactly what that means π it's giving "something went wrong, check the errno."
π AUTHOR π
Stephan Mueller <smueller@chronox.de> β Author. Periodt. π
π COPYRIGHT π
That's the whole page, bestie π¦ no cap, you now know everything this manual entry has to say.
Sign-off time: this lil masterpiece lives in the libkcapi Manual, version 1.5.0, dated July 2025, and it goes by the name KCAPI_KPP_KEYGEN(3) π Go generate some keys, you main character πβ¨
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms