crypto_lskcipher_blocksize(9)
β¨ crypto_lskcipher_blocksize(9) β¨
okay bestie, buckle up β this is a page from the Kernel API Manual, and it's literally the cutest little getter you ever did see π
π NAME π
crypto_lskcipher_blocksize β obtain block size of cipher
like, you ask the cipher "hey girl, how big are your blocks?" and she tells you π«Ά
πΈ SYNOPSIS πΈ
unsigned int crypto_lskcipher_blocksize (struct crypto_lskcipher *tfm );
one function, one argument, returns an unsigned int. no cap, that's the whole vibe β¨
π¦ ARGUMENTS π¦
tfmβ cipher handle π this is your little passport to the cipher, the thing you got back when you allocated it. no handle, no blocksize, periodt.
π DESCRIPTION π
so here's the tea: this function returns the block size for the lskcipher that the cipher handle (tfm) is referencing. that's it, that's the whole thing π
and likeβ¦ why do you care? because the caller β that's you, bestie β may use that information to allocate appropriate memory for the data returned by the encryption or decryption operation. so if you're about to encrypt or decrypt something and you need to know how much room to carve out, this is your girl. main character energy honestly π
β RETURN β
block size of cipher π₯ that's the return value, and yes it's exactly what it says on the tin π
π§ SEE ALSO π§
this list is lowkey a whole friend group, so let me introduce everyone π
β all from 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_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)
go say hi to all of them, they're iconic πΈ
aaaand that's the page!! π sign-off time: this lil beauty lives under ./include/crypto, it's dated October 2026, and it's the crypto_lskcipher_blocksize(9) page from the Kernel API Manual. iykyk π slay, go read your blocksizes, ily, bye π¦β¨
π¦ 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