KCAPI_KPP_KEYGEN_AIO(3)
β¨ KCAPI_KPP_KEYGEN_AIO(3) β¨
okay bestie, welcome to the Programming Interface section of the libkcapi manual π this one's kcapi_kpp_keygen_aio and it's literally the moment you generate a public key, asynchronous one-shot style π¦
π NAME π
kcapi_kpp_keygen_aio β generate a public key (asynchronous one shot) π
β¨ SYNOPSIS β¨
ssize_t kcapi_kpp_keygen_aio(struct kcapi_handle * handle,
struct iovec * outiov, size_t iovlen,
int access);
πΈ ARGUMENTS πΈ
handleβ [in] the cipher handle, your main character π«Άoutiovβ [out] head of the scatter-gather list of the destination buffers that get filled with the generated public key β¨iovlenβ [in] how many scatter-gather list entries there are, fr fr π’accessβ [in] the kernel access type. Your options are:KCAPI_ACCESS_HEURISTICβ use the internal heuristic for the fastest kernel access πKCAPI_ACCESS_VMSPLICEβ use vmsplice access π§KCAPI_ACCESS_SENDMSGβ sendmsg access π
π DESCRIPTION π
So here's the tea: the individual scatter-gather list entries get processed with separate invocations of the given cipher. One at a time, no cap π
The memory should be aligned at the page boundary using posix_memalign(sysconf(_SC_PAGESIZE)). And like, if it's not aligned at the page boundary, the vmsplice call may not send all data to the kernel. That's the vibe check you do not wanna fail β οΈ
not me warning you about alignment again β align your memory bestie, it's giving self care π
Return number of bytes verify upon success; a negative errno-style error code if an error occurred. Slay when it works, π when it doesn't.
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author. iconic behavior honestly π
β COPYRIGHT β
and that's the whole page bestie, you ate π this was libkcapi Manual 1.5.0 from July 2025 β KCAPI_KPP_KEYGEN_AIO(3) out π
β¨
π¦ 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