crypto_free_lskcipher(9)
π crypto_free_lskcipher(9)
okay so this is from the Kernel API Manual bestie, section 9, and it's literally the whole crypto_free_lskcipher situation. it's short. it's sweet. it's giving cleanup era. π
β¨ NAME β¨
crypto_free_lskcipher β zeroize and free cipher handle πΈ
like, it wipes the thing AND frees the thing. two jobs. one function. main character energy fr fr.
π¦ SYNOPSIS π¦
void crypto_free_lskcipher (struct crypto_lskcipher *tfm );
returns void, takes one pointer, no notes. we love a low-drama signature. π
π ARGUMENTS π
tfmβ the cipher handle you want freed. that's it. that's the whole argument. hand it over and it's done π«Ά
π DESCRIPTION π
here's the vibe: crypto_free_lskcipher zeroizes and frees the cipher handle. cleanup queen behavior.
but β and this is the important bit β if tfm is a NULL pointer or an error pointer, this function does nothing. it just... doesn't. no crash, no drama, no error. it looks at your pointer, goes "not my problem", and returns. iconic honestly. πβ¨
ngl this is the kind of defensive coding that saves your whole afternoon. you can call it without checking first and it will simply not care. slay.
π₯ SEE ALSO π₯
grab a snack, this list is long and we're getting through all of it π
- 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_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_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. a lot. but every single one of them is there, no cap. π§
okay that's the whole page bestie, mwah π
this cutie lives in ./include/crypto, and this particular copy is dated October 2026 β so when you cite it, it's the crypto_free_lskcipher(9) page from then. go free your ciphers 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