crypto_lskcipher_ivsize(9)
π crypto_lskcipher_ivsize(9) π
okay so bestie, welcome to the Kernel API Manual β yes the actual kernel, yes the actual manual, we're doing this π this one's about crypto_lskcipher_ivsize, and it's lowkey the easiest page in the whole crypto folder, so consider this your lil warm-up stretch before the big ones β¨
πΈ NAME πΈ
crypto_lskcipher_ivsize β obtain IV size π¦
like, it gets you the IV size. that's the whole job. she's a one-task queen and she ate π
β¨ SYNOPSIS β¨
unsigned int crypto_lskcipher_ivsize (struct crypto_lskcipher *tfm );
that's it. one function, one argument, returns an unsigned int. no cap, no surprises, no drama π
π«Ά ARGUMENTS π«Ά
tfmβ the cipher handle π this is your lil pointer to thestruct crypto_lskcipher, i.e. the thing that actually knows about the cipher you're working with. you bring the handle, she brings the facts.
π DESCRIPTION π
so the size of the IV for the lskcipher referenced by the cipher handle is returned πβ¨ that's the whole vibe.
and here's the important lil detail β this IV size may be zero if the cipher does not need an IV π which is literally fine and normal, some ciphers are just like "no IV for me thanks" and that's their main character energy. so don't panic when you get a 0, it's not a bug, it's a lifestyle π¦
β RETURN β
IV size in bytes π that's the answer, that's the unit, bytes, go forth and use it π
π SEE ALSO π
okay this is the long part, grab a snack π β the kernel file ./include/crypto/skcipher.h, plus struct skcipher_request(9), struct skcipher_alg(9), struct lskcipher_alg(9), Symmetric Key Cipher API(9), crypto_alloc_skcipher(9), crypto_alloc_lskcipher(9), crypto_free_skcipher(9), crypto_free_lskcipher(9), crypto_has_skcipher(9), crypto_skcipher_ivsize(9), crypto_skcipher_blocksize(9), crypto_lskcipher_blocksize(9), crypto_skcipher_chunksize(9), crypto_lskcipher_chunksize(9), crypto_skcipher_statesize(9), crypto_lskcipher_statesize(9), crypto_skcipher_setkey(9), crypto_lskcipher_setkey(9), crypto_skcipher_reqtfm(9), crypto_skcipher_encrypt(9), crypto_skcipher_decrypt(9), crypto_skcipher_export(9), crypto_skcipher_import(9), crypto_lskcipher_encrypt(9), crypto_lskcipher_decrypt(9), Symmetric Key Cipher Request Handle(9), crypto_skcipher_reqsize(9), skcipher_request_set_tfm(9), skcipher_request_alloc(9), skcipher_request_free(9), skcipher_request_set_callback(9), skcipher_request_set_crypt(9) π
like I said. long list. she has a lot of friends, we love a social queen π
π real talk tho: don't get theskcipherandlskcipherversions mixed up in your head β this page is thelskcipherone, andcrypto_skcipher_ivsize(9)is its sibling. both listed above, both valid, pick the one that matches your handle iykyk π§
and that's the page!! ty for reading bestie, go get that IV size πβ¨π
from ./include/crypto, dated October 2026 β mwah, see u in the next manpage π«Άπ
π¦ 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