crypto_aead_blocksize(9)
π 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 astruct 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:
struct aead_request(9)struct aead_alg(9)crypto_alloc_aead(9)crypto_free_aead(9)crypto_has_aead(9)crypto_aead_ivsize(9)crypto_aead_authsize(9)crypto_aead_setkey(9)crypto_aead_setauthsize(9)crypto_aead_encrypt(9)crypto_aead_decrypt(9)- Asynchronous AEAD Request Handle(9)
crypto_aead_reqsize(9)aead_request_set_tfm(9)aead_request_alloc(9)aead_request_free(9)aead_request_set_callback(9)aead_request_set_crypt(9)aead_request_set_ad(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms