crypto_ahash_init(9)
π crypto_ahash_init(9) β the kernel API manual, but make it make sense π
okay so bestie, you're looking at crypto_ahash_init(9) from the Kernel API Manual. it's short, it's sweet, and it's literally about wiping the slate clean. let's get into it β¨
β¨ NAME β¨
crypto_ahash_init β (re)initialize message digest handle
like, resets the vibe of your digest. fresh start energy π«
πΈ SYNOPSIS πΈ
int crypto_ahash_init (struct ahash_request *req );
π ARGUMENTS π
reqβ yourahash_requesthandle π«Ά and no cap, it has to already be initialized with all the necessary data using theahash_request_*API functions. like, do your homework first, then come talk to this function. it's giving "prerequisites matter" π
π¦ DESCRIPTION π¦
so basically: this call (re-)initializes the message digest that your ahash_request handle is pointing at. πͺ
and the way that any potentially existing state created by previous operations just gets discarded?? yep. gone. deleted. not me throwing away your whole history π that's the whole point though β clean slate, main character energy, periodt. πβ¨
π RETURN π
the return value? it lives over in crypto_ahash_final β go check there, iykyk π₯
π SEE ALSO π
the friend group π«Ά (all of these, fr fr):
- 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_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_free_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)
okay that's the whole page, you ate that π
sign-off bestie: this little legend lives in the Kernel file ./include/crypto, dated October 2026, and yes the manual name is crypto_ahash_init(9) β now go reinitialize something, slay πΈπ¦β
π¦ 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