KCAPI_AEAD_OUTBUFLEN(3)
π KCAPI_AEAD_OUTBUFLEN(3) π
okay bestie, so this is a page from the libkcapi manual (section 3, the library-call girlies β¨), and it's all about one very specific little function: kcapi_aead_outbuflen_enc. no cap, that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
kcapi_aead_outbuflen_enc β return minimum encryption output buffer length
like, it tells you how much room your output buffer needs. that's it. that's the girl. π
πΈ SYNOPSIS πΈ
size_t kcapi_aead_outbuflen_enc(struct kcapi_handle * handle,
size_t inlen, size_t assoclen,
size_t taglen);
π ARGUMENTS π
handleβ [in] cipher handle. your main character struct, the one holding the cipher vibes πinlenβ [in] size of plaintext. how many bytes of actual message you're bringing to the party πassoclenβ [in] size of associated data (AD). the extra authenticated-but-not-encrypted data, yk the side quest πtaglenβ [in] size of authentication tag. the little seal of approval at the end, iconic π
π¦ DESCRIPTION π¦
return minimum size of output data length in bytes π«
that's the whole thing, bestie. it hands you back a size_t and that number is the smallest your output buffer can be in bytes. no guessing, no vibes-based malloc, just a number. periodt.
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author. (yes that's literally what it says, we love a credited icon π«Ά)
π COPYRIGHT π
the manpage itself is from the libkcapi Manual 1.5.0, dated July 2025, and it's filed under KCAPI_AEAD_OUTBUFLEN(3) in the man system π
so yeah, that's the page. kcapi_aead_outbuflen_enc, minimum encryption output buffer length, four args, one size_t back. lowkey simple, highkey useful. go check your buffer sizes before you write anything, fr fr πβ¨
libkcapi Manual 1.5.0 Β· July 2025 Β· KCAPI_AEAD_OUTBUFLEN(3) β mwah, slay, bye bestie π ππ
π¦ 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