crypto_aead_blocksize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_aead_blocksize(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil function that tells you how big a block is. that's it. that's the whole vibe. but she's important, so let's get into it 🫢


🌸 NAME 🌸

crypto_aead_blocksize β€” obtain block size of cipher πŸ’«

✨ SYNOPSIS ✨

unsigned int crypto_aead_blocksize (struct crypto_aead *tfm );

πŸŽ€ ARGUMENTS πŸŽ€

  • tfm β€” the cipher handle, aka your lil VIP pass to the cipher πŸ”‘ she's a struct crypto_aead * and you literally cannot do this without her.

πŸ’– DESCRIPTION πŸ’–

So here's the tea β˜•: you hand over the cipher handle, and this function returns the block size for the AEAD that the handle references. That's the whole plot, no plot twists, no cap.

The caller may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation 🧠✨ like, it's giving "know before you malloc", fr fr. you gotta know how much room to make and she's the one who tells you.

πŸ‘‘ RETURN πŸ‘‘

block size of cipher πŸ’… that's the return value, bestie β€” the block size, of the cipher. iconic, honestly. 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/crypto/aead.h β€” literally the home base, go read it 🏑

Authenticated Encryption With Associated Data (AEAD) Cipher API(9), plus the whole friend group:

like, the whole squad showed up to the group chat πŸ˜­πŸ’œ go say hi to all of them.


ok that's the whole page, nothing skipped, nothing invented, we ate and left no crumbs πŸ“

and finally, a lil sign-off from your girl: this page lives in ./include/crypto and it's dated October 2026 πŸ—“οΈβœ¨ mwah, love u, go allocate responsibly πŸ’…πŸŽ€

πŸ“¦ where this page comes from