crypto_aead_chunksize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_aead_chunksize(9) β€” the Kernel API Manual, bestie edition ✨

okay so this page is crypto_aead_chunksize(9), straight out of the Kernel API Manual, and it's genuinely such a little icon β€” tiny page, huge lore. let's get into it πŸŽ€


✨ NAME ✨

crypto_aead_chunksize β€” obtain chunk size 🧚

like. it does exactly what it says on the tin. no notes.


🌸 SYNOPSIS 🌸

unsigned int crypto_aead_chunksize (struct crypto_aead *tfm );

that's the whole vibe check right there β€” one function, one argument, returns an unsigned int. simple. clean. ate. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • tfm β€” the cipher handle πŸ’– this is your little handle to the cipher, and yes you literally have to hand it over. it's giving "give me the keys" energy.

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea, and it's lowkey kind of weird but stay with me bestie 🫢

the block size is set to one for ciphers such as CCM. one!! a whole block size of one. iconic behaviour honestly.

but β€” and this is the part that matters β€” you still need to provide incremental updates in multiples of the underlying block size, because the IV does not have sub-block granularity. so even though the block size says one, you can't just go feral and send whatever arbitrary length you want. nope. multiples of the underlying block size only, queen. πŸ‘‘

in this API, that whole concept is known as the chunk size. that's the name. that's the thing this function hands you. iykyk ✨


⭐ RETURN ⭐

the chunk size, in bytes πŸ’œ that's it. that's the whole return.


🌈 SEE ALSO 🌈

  • Kernel file ./include/crypto/internal/aead.h β€” go read it, it's right there, slay πŸ“–

πŸ’€ reminder bestie: multiples of the underlying block size. the IV does NOT have sub-block granularity. no cap. do not test this. do not come crying to me when your incremental updates are the wrong size. πŸ™ˆ

and that's the page!! short, sweet, and honestly kind of a bop 🌸 this one shipped in the ./include/crypto/internal corner of the kernel, in the edition dated October 2026 β€” so like, remember this moment, because we were all here for it πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from