ahash_request_set_crypt(9)
π ahash_request_set_crypt(9) β set data buffers β¨
okay so bestie, welcome to this Kernel API Manual page (section 9, we love a kernel moment). This is the one where you set data buffers for an ahash_request. It's short, it's iconic, and it's literally the setup move. no cap.
πΈ NAME πΈ
ahash_request_set_crypt β set data buffers. that's the whole name, periodt.
β¨ SYNOPSIS β¨
void ahash_request_set_crypt (struct ahash_request *req , struct
scatterlist *src , u8 *result , unsigned int nbytes );
π«Ά ARGUMENTS π«Ά
reqβ theahash_requesthandle to be updated. main character energy, honestly.srcβ the source scatter/gather list. yes bestie, scatter/gather, we're fancy like that.resultβ the buffer that is filled with the message digest. caller responsibility alert: the caller must ensure that the buffer has sufficient space by, for example, callingcrypto_ahash_digestsize. do not skip the buffer-size vibe check, iykyk.nbytesβ the number of bytes to process from the source scatter/gather list. that's the byte count, not a vibe count.
π DESCRIPTION π
okay so here's the tea: by using this call, the caller references the source scatter/gather list. that source scatter/gather list points to the data the message digest is to be calculated for.
it's giving βpoint the request at the actual bytesβ energy. that's the description, bestie β short and sweet, no extra lore.
π SEE ALSO π
the whole friend group, fr fr:
- 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_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 bye bestie β source/version vibe is ./include/crypto, dated October 2026, and ahash_request_set_crypt(9) is 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