crypto_lskcipher_statesize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ crypto_lskcipher_statesize(9) ✨

okay bestie, buckle up β€” this is a page straight out of the Kernel API Manual, and honestly it's a short one but it's important, so let's get into it πŸ’…


🌸 NAME 🌸

crypto_lskcipher_statesize β€” obtain state size πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int crypto_lskcipher_statesize(struct crypto_lskcipher *tfm);

πŸ’– ARGUMENTS πŸ’–

  • tfm β€” the cipher handle, aka your little crypto bestie that you're asking the question about 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• β€” some algorithms literally cannot be chained with the IV alone. like, that's just not how they roll. they carry internal state with them, and if you want to process data incrementally (chunk by chunk, no cap), that state has to be replicated. 😭

and the way you find out how big that state is? literally this function. that's it. that's the whole vibe check. ✨


⭐ RETURN ⭐

the state size, in bytes πŸ’€ (yes, bytes, not bits, don't come for me)


🌈 SEE ALSO 🌈

okay this list is long but we're not skipping a single one, periodt. all of these live in the Kernel file ./include/crypto/skcipher.h:


πŸ’‘ pro tip from your fave: if you're doing incremental processing and you forgot to ask for the state size first, that's a you problem and the algorithm is gonna be real mad about it πŸ™ˆ

and that's the whole page, bestie β€” short, sweet, and serving exactly what it says on the tin πŸ“ this gem lives in ./include/crypto, and it's dated October 2026, filed under crypto_lskcipher_statesize(9) πŸ’œ mwah, go read the manpage, ily 🧚

πŸ“¦ where this page comes from