crypto_lskcipher_statesize(9)
β¨ 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:
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_lskcipher_ivsize(9)crypto_skcipher_blocksize(9)crypto_lskcipher_blocksize(9)crypto_skcipher_chunksize(9)crypto_lskcipher_chunksize(9)crypto_skcipher_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)
π‘ 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
- 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