crypto_ahash_digest(9)
π crypto_ahash_digest(9) π
okay so you found the crypto_ahash_digest page in the Kernel API Manual and you're like "what does this even do" β don't worry bestie, i got you. this is the one-function-does-three-things shortcut and it's lowkey iconic β¨
β¨ NAME β¨
crypto_ahash_digest β calculate message digest for a buffer π«Ά
πΈ SYNOPSIS πΈ
int crypto_ahash_digest (struct ahash_request *req );
π ARGUMENTS π
reqβ the reference to theahash_requesthandle, aka the little suitcase that holds all the info needed to actually perform the cipher operation π§³β¨
π¦ DESCRIPTION π¦
okay so this function is literally a "short-hand" for calling crypto_ahash_init, then crypto_ahash_update, then crypto_ahash_final β like, it's giving combo deal π
. why text three times when one call eats? π
and the parameters? they have the same meaning as the ones discussed for those three separate functions. no new lore, no cap β same vibes, same meaning, just bundled up π
β RETURN β
see crypto_ahash_final π (that's where the answer lives, bestie)
π SEE ALSO π
- 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_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_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)
that's a lot of cross-references and honestly? read them all, they're your besties too π«Ά
and that's the whole page, no crumbs left πβ¨ this cutie lives in ./include/crypto, dated October 2026, and it's filed under crypto_ahash_digest(9) β go forth and digest, queen ππ
π¦ 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