crypto_shash_finup(9)
β¨ crypto_shash_finup(9) β¨
Okay bestie, welcome to the Kernel API Manual β we're looking at crypto_shash_finup(9) today and honestly? It's giving "one function to rule them all." π
πΈ NAME πΈ
crypto_shash_finup β calculate the message digest of a buffer, the shortcut way π
π¦ SYNOPSIS π¦
int crypto_shash_finup (struct shash_desc *desc , const u8 *data ,
unsigned int len , u8 *out );
π ARGUMENTS π
descβ no thoughts, head empty, just go readcrypto_shash_finalfor the deets β¨dataβ bestie, this one's explained over incrypto_shash_updatelenβ same situation,crypto_shash_updatehas you coveredoutβ and this one?crypto_shash_final, periodt π
π₯ DESCRIPTION π₯
So here's the vibe: this function is literally a "short-hand" for calling crypto_shash_update and then crypto_shash_final. That's it, that's the whole personality. π
The parameters mean exactly the same thing as they do for those two separate functions β same meanings, same energy, just fewer lines of code on your end. Not me being efficient with my life ππ
π CONTEXT π
Softirq or process context. That's the whole vibe check. π«Ά
β RETURN β
0β the message digest creation was successful, slay π< 0β an error happened, sad girl hours π
π§ SEE ALSO π§
- Kernel file
./include/crypto/hash.h - Message 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_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_update(9)
- crypto_shash_final(9)
that's the whole page bestie, go forth and hash π
This lil masterpiece lives in ./include/crypto and it's stamped October 2026 β page crypto_shash_finup(9), signing off πβ¨
π¦ 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