crypto_free_shash(9)
π crypto_free_shash(9) π
okay so this is a page from the Kernel API Manual β yes, the actual kernel man pages, we're in the big leagues now bestie π
β¨ NAME β¨
crypto_free_shash β zeroize and free the message digest handle π§Ήπ
like, it wipes the thing clean AND frees it. two jobs, one function, main character energy fr.
πΈ SYNOPSIS πΈ
void crypto_free_shash (struct crypto_shash *tfm );
that's it. that's the whole call. no return value, no drama, just vibes π
π¦ ARGUMENTS π¦
tfmβ the cipher handle that's getting freed π«Ά this is the one you're letting go of, bestie.
β DESCRIPTION β
So here's the thing, and it's genuinely the nicest little safety net ever: if tfm is a NULL pointer or an error pointer, this function just... does nothing. π§ zero. zilch. It does not freak out, it does not crash, it does not make you look bad in front of the whole group chat. It simply vibes. no cap.
lowkey iconic behaviour tbh β guard clauses are the moment π
π₯ SEE ALSO π₯
okay buckle up, this list is LONG and honestly it ate:
- Kernel file
./include/crypto/hash.hMessage Digest Algorithm Definitions(9) struct ahash_alg(9)struct shash_alg(9)- Asynchronous Message Digest API(9)
crypto_alloc_ahash(9)crypto_free_ahash(9)crypto_has_ahash(9)crypto_ahash_blocksize(9)crypto_ahash_digestsize(9)crypto_ahash_statesize(9)crypto_ahash_reqtfm(9)crypto_ahash_reqsize(9)crypto_ahash_setkey(9)crypto_ahash_finup(9)crypto_ahash_final(9)crypto_ahash_digest(9)crypto_ahash_export(9)crypto_ahash_import(9)crypto_ahash_init(9)crypto_ahash_update(9)- Asynchronous Hash Request Handle(9)
ahash_request_set_tfm(9)ahash_request_alloc(9)ahash_request_free(9)ahash_request_set_callback(9)ahash_request_set_crypt(9)ahash_request_set_virt(9)- Synchronous Message Digest API(9)
crypto_alloc_shash(9)crypto_shash_blocksize(9)crypto_shash_digestsize(9)crypto_shash_descsize(9)crypto_shash_setkey(9)crypto_shash_digest(9)crypto_shash_tfm_digest(9)crypto_shash_export(9)crypto_shash_import(9)crypto_shash_init(9)crypto_shash_finup(9)crypto_shash_update(9)crypto_shash_final(9)
like I said. it ATE. go read them, iykyk ππ
and that's the whole page bestie π this one came out of ./include/crypto, dated October 2026, and you just read crypto_free_shash(9) β mwah, slay, go free those handles 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