crypto_aead_ivsize(9)
π crypto_aead_ivsize β from the Kernel API Manual, bestie π
okay so before we even start: this page lives in the Kernel API Manual and it is shockingly short, which honestly? iconic behaviour. lowkey a one-job girlie. let's get into it β¨
πΈ NAME πΈ
crypto_aead_ivsize β obtain IV size π¦
like. it gets the IV size. that's the whole personality. and we respect it for that.
β SYNOPSIS β
unsigned int crypto_aead_ivsize (struct crypto_aead *tfm );
no cap, that's it. one function, one argument, returns an unsigned int. main character energy with zero extra drama π
π«Ά ARGUMENTS π«Ά
tfmβ the cipher handle π like, this is your lil pass to the crypto subsystem, bestie. you hand it over and the function does its thing.
β¨ DESCRIPTION β¨
so here's the tea π: the size of the IV for the aead referenced by the cipher handle gets returned. that's the vibe. that's the whole function.
and listen β this IV size may be zero if the cipher does not need an IV. so if you get a 0 back, don't panic, don't spiral, do not text your ex. it literally just means no IV needed. some ciphers are low-maintenance like that π
π RETURN π
IV size in bytes π₯ plain and simple, she gives you a number, you say thank you.
π SEE ALSO π
if you're gonna fall down the AEAD rabbit hole (and tbh you should, it's giving lore), here's the whole reading list, go off π§:
- Kernel file
./include/crypto/aead.h - Authenticated Encryption With Associated Data (AEAD) Cipher API(9)
struct aead_request(9)struct aead_alg(9)crypto_alloc_aead(9)crypto_free_aead(9)crypto_has_aead(9)crypto_aead_authsize(9)crypto_aead_blocksize(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)
ngl this page is a short read and honestly? slay. sometimes you just need one number and a dream π
and that's the whole page, bestie π before you close the tab: this beauty ships from ./include/crypto, dated October 2026, and it's filed under crypto_aead_ivsize(9) β periodt π
β¨ take care of her, she's a legend π
π¦ 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