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 🫢)

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