KCAPI_AEAD_IVSIZE(3)

πŸ’– kcapi_aead_ivsize β€” the libkcapi girlie's guide πŸ’–

okay bestie, this one is from the libkcapi crew, and it's a manual page for kcapi_aead_ivsize(3) ✨ yes she's a C function, yes she's part of the AEAD situation, and yes she's literally just here to tell you how big your IV needs to be πŸŽ€


🌸 NAME 🌸

kcapi_aead_ivsize β€” return size of IV required for cipher πŸ’…

like, that's the whole job. she tells you the IV size. that's it. that's her. and she's iconic for it πŸ‘‘


✨ SYNOPSIS ✨

uint32_t kcapi_aead_ivsize(struct kcapi_handle * handle);

so we're returning a uint32_t and taking one pointer, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • handle β€” [in] cipher handle 🌈 this is the one thing you hand over. it's the handle for your cipher, and she needs it to do her lil thing.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea, bestie: she returns a value > 0 that specifies the IV size 🎯

and if things go sideways? you get 0 on error 😭 that's the whole vibe check β€” big number = IV size, zero = nope, something went wrong.

fr fr, 0 is not a size here. 0 is the error flag. don't be out here treating zero as "zero-byte IV", okay? πŸ™ˆ

🧚 AUTHOR 🧚

Stephan Mueller <smueller@chronox.de> β€” Author 🫢


that's all she wrote, bestie πŸ’–


and that's a wrap on the libkcapi Manual, version 1.5.0, from July 2025 🌟 she ate, she left no crumbs, and the IV size question is officially answered πŸ’…βœ¨

πŸ“¦ where this page comes from