KCAPI_KPP_INIT(3)
β¨ KCAPI_KPP_INIT β¨
okay bestie, welcome to kcapi_kpp_init(3) from the Programming Interface corner of the libkcapi manual π this is the one that spins up a KPP cipher handle for you, no cap.
πΈ NAME πΈ
kcapi_kpp_init β initialize cipher handle π
π SYNOPSIS π
int kcapi_kpp_init(struct kcapi_handle ** handle,
const char * ciphername, uint32_t flags);
π¦ ARGUMENTS π¦
handleβ [out] the cipher handle, all filled in for you by the time this call is done. it's giving "here's your new bestie" π«Άciphernameβ [in] the kernel crypto API cipher name, exactly as it's spelled in/proc/crypto(yes, literally that file, go look π)flagsβ [in] flags that say what type of cipher handle you want β¨
π DESCRIPTION π
so this function does the whole init thing: it sets up a KPP cipher handle and opens up the connection to the kernel. main character energy, truly π
on success, a pointer to a kcapi_handle object gets handed back to you in *handle. and bestie, listen β you have to call kcapi_kpp_destroy afterwards to free those resources. don't leave it hanging, that's not the vibe π
returns 0 upon success; -ENOENT β algorithm not available; -EOPNOTSUPP β AF_ALG family not available; -EINVAL β accept syscall failed; -ENOMEM β cipher handle cannot be allocated π
lowkey important: that -ENOMEM one means the cipher handle could not be allocated, so like... nothing to clean up, but also nothing to use π
β AUTHOR β
Stephan Mueller <smueller@chronox.de> β Author. iconic behavior, we stan π§
π COPYRIGHT π
that's the whole page, periodt π
and that's a wrap on the KCAPI_KPP_INIT(3) page, bestie β brought to you by libkcapi Manual 1.5.0, dated July 2025. go forth and initialize responsibly ππ
π¦ 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