KCAPI_AEAD_OUTBUFLEN(3)
π NAME π
kcapi_aead_outbuflen_dec β bestie, this one tells you the minimum size your decryption output buffer needs to be. no cap, that's the whole job π
β¨ SYNOPSIS β¨
size_t kcapi_aead_outbuflen_dec(struct kcapi_handle * handle,
size_t inlen, size_t assoclen,
size_t taglen);
π¦ ARGUMENTS π¦
handleβ [in] the cipher handle, aka your little crypto bestie you've been passing aroundinlenβ [in] size of the ciphertext, so like, how many bytes of secret soup you're feeding inassoclenβ [in] size of the associated data (AD) β yes that AD, the extra authenticated-but-not-encrypted bit π«Άtaglenβ [in] size of the authentication tag, the little seal that says "yep this is legit"
πΈ DESCRIPTION πΈ
okay so basically: this function returns the minimum size of output data length, in bytes π
like, it's giving "how much room do I need to malloc for my plaintext" energy. ask it before you allocate, don't be out here guessing, fr fr β¨
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
β Author. we stan. π
π COPYRIGHT π
this is from the libkcapi Manual 1.5.0, dated July 2025 π«Ά
that's it, that's the page β go allocate responsibly bestie, and remember: check your buffer length before you write to it πβ¨ππ¦πΈπ
π¦ 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