KCAPI_AEAD_INIT(3)
π kcapi_aead_init(3) β the libkcapi glow-up π
okay bestie, sit DOWN, because we're about to talk about kcapi_aead_init from the libkcapi manual, and honestly? it's giving β¨ establishing a connection to the kernel β¨ and I'm obsessed.
πΈ NAME πΈ
kcapi_aead_init β literally just the initialization of a cipher handle, no biggie, just your girl getting the whole thing set up π
β¨ SYNOPSIS β¨
int kcapi_aead_init(struct kcapi_handle ** handle,
const char * ciphername, uint32_t flags);
π¦ ARGUMENTS π¦
handleβ [out] the cipher handle, which gets filled in during the call π«Άciphernameβ [in] the kernel crypto API cipher name, exactly as specified in/proc/crypto(yes, that file, go look π)flagsβ [in] the flags that specify the type of cipher handle π
π DESCRIPTION π
so here's the vibe: this function initializes an AEAD cipher handle and establishes the connection to the kernel. main character energy, fr fr π
On success, a pointer to the kcapi_handle object is returned in *handle. And bestie, listen β you gotta call kcapi_aead_destroy afterwards to free the resources. Don't leave it hanging, that's not cute π
and now the returns, no cap:
0upon success π-ENOENTβ algorithm not available π-EOPNOTSUPPβ AF_ALG family not available π-EINVALβ accept syscall failed-ENOMEMβ cipher handle cannot be allocated π
like, not me listing every single one of these error codes with my whole chest, but you NEED them, iykyk π§
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author. that's it, that's the credit, and we stan π
π COPYRIGHT π
and that's the whole page, bestie!! π this was libkcapi Manual version 1.5.0, dated July 2025 β mwah, slay, periodt β¨ππ
π¦ 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