KCAPI_AEAD_INBUFLEN_(3)
π KCAPI_AEAD_INBUFLEN_(3) β the "how much room does my decryption buffer need" girlie
okay bestie, welcome to section 3 of the libkcapi Manual (Programming Interface division, we're fancy like that β¨). This one is a lil function with a big name: kcapi_aead_inbuflen_dec. Say it three times fast, I dare you. π
πΈ NAME πΈ
kcapi_aead_inbuflen_dec β returns the minimum decryption input buffer length, no cap, fr fr
β¨ SYNOPSIS β¨
size_t kcapi_aead_inbuflen_dec(struct kcapi_handle * handle,
size_t inlen, size_t assoclen,
size_t taglen);
like... four arguments and a size_t return, she's lowkey minimalist π
π«Ά ARGUMENTS π«Ά
handleβ[in]the cipher handle, aka the main character of this whole operation πinlenβ[in]the size of the ciphertext, literally how many bytes of scrambled data you're holdingassoclenβ[in]the size of the associated data, aka AD (yes, that's the abbrev, iykyk)taglenβ[in]the size of the authentication tag, the lil proof-of-vibes that everything is legit π₯
π DESCRIPTION π
bestie, she returns the minimum size of output data length in bytes. That's it. That's the whole job. She tells you how much space you gotta have so you don't under-allocate and end up in buffer-overflow city π
π AUTHOR π
Stephan Mueller <smueller@chronox.de> β the author, the icon, the moment. π
π¦ COPYRIGHT π¦
(standard copyright section, she's keeping it mysterious π)
no cap, always trust the return value before you malloc, queen. your future self will thank you. π
and that's the whole page, bestie!! π this was the libkcapi Manual 1.5.0, dated July 2025, section KCAPI_AEAD_INBUFLEN_(3) β slay, ate, left no crumbs, 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