crypto_lskcipher_ivsize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct 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 the skcipher and lskcipher versions mixed up in your head β€” this page is the lskcipher one, and crypto_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