KCAPI_AEAD_SETASSOCL(3)
β¨ kcapi_aead_setassoclen β bestie, we're setting the auth data size π
okay so this is a page from the libkcapi manual (section 3, the library-functions section, iykyk), and the function we're obsessing over today is kcapi_aead_setassoclen β literally just "set authentication data size" and nothing more, no cap.
πΈ SYNOPSIS πΈ
void kcapi_aead_setassoclen(struct kcapi_handle * handle,
size_t assoclen);
that's it, that's the whole vibe π
π¦ ARGUMENTS π¦
handleβ [in] the cipher handle, aka your main character β¨assoclenβ [in] the length of associated data length, fr fr π
π DESCRIPTION π
so the associated data? it gets retained in the cipher handle β like it literally lives there, no cap π«Ά. and then, during initialization of a cipher handle, it gets sent to the kernel. periodt.
now here's the part you need to know, bestie: the kernel cipher implementations may verify the appropriateness of the authentication data size π, and they may return an error during initialization if that authentication size is not considered appropriate. so likeβ¦ if the kernel isn't feeling it, initialization is not giving, and you get an error. slay responsibly π
π AUTHOR π
Stephan Mueller <smueller@chronox.de> β Author. iconic behaviour, honestly π
π COPYRIGHT π
that's a wrap on the libkcapi Manual 1.5.0, dated July 2025 β go forth and set those assoc lengths, you absolute legend πβ¨πΈ
π¦ 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