crypto_aead_ivsize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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