crypto_lskcipher_chunksize(9)
πΈ crypto_lskcipher_chunksize(9) β Kernel API Manual πΈ
okay bestie, welcome to the manual page for crypto_lskcipher_chunksize(9), straight out of the Linux Kernel API Manual π
this one's short but it's important, so pay attention.
β¨ NAME β¨
crypto_lskcipher_chunksize β obtain chunk size π
π¦ SYNOPSIS π¦
unsigned int crypto_lskcipher_chunksize (struct crypto_lskcipher *tfm );
π ARGUMENTS π
tfmβ the cipher handle. that's it, that's the whole vibe. it's your little handle to the cipher you're working with π«Ά
π DESCRIPTION π
okay so here's the tea β β for ciphers like CTR, the block size is set to one. one! literally just one. wild, i know.
but β and this is the part people miss β you still need to provide incremental updates in multiples of the underlying block size, because the IV does not have sub-block granularity. the IV is not out here doing fractional little baby steps, she's a whole-block girlie π
this concept, this "how much do you actually have to feed me at a time" number, is known in this API as the chunk size. main character energy, honestly π and now you know, iykyk.
β RETURN β
the chunk size, in bytes. that's it. that's the return value π₯
π SEE ALSO π
buckle up bestie, this list is long β but every single one of these is your friend π
- 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_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)
ngl, that's a lot of cross-references, but slay, you got this π§
and that's the whole page, bestie π this lil gem lives under ./include/crypto, dated October 2026, and it's filed as crypto_lskcipher_chunksize(9) β periodt. go forth and chunk responsibly π
π¦ 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