crypto_ahash_import(9)
π crypto_ahash_import β a kernel API manual moment
okay bestie, welcome to crypto_ahash_import(9) from the Kernel API Manual β¨ this little icon lives in the kernel crypto world, and she's here to help you import message digest state. yes, that's the whole NAME section, and yes, it's giving main character energy πΈ
β¨ SYNOPSIS β¨
int crypto_ahash_import (struct ahash_request *req , const void *in );
like... that's the whole signature. two args, one int back. slay π
π«Ά ARGUMENTS π«Ά
reqβ a reference to theahash_requesthandle that the state is getting imported into. this is the destination, the home, the landing spot πinβ a buffer holding the state. that's the payload you're bringing in, no cap π¦
π¦ DESCRIPTION π¦
so here's the vibe: this function imports the hash state into the ahash_request handle, pulling it in from the input buffer. lowkey iconic π
π big important detail bestie: that buffer should have been generated with thecrypto_ahash_exportfunction. like, don't just roll up with any random bytes, okay? the state has to come fromcrypto_ahash_exportβ that's the matching pair, iykyk β¨
π RETURN π
0β the import was successful, we ate, we devoured, periodt π< 0β an error occurred π something went sideways, check your vibes
π§ SEE ALSO π§
okay this list is LONG but we're not skipping a single one, bestie β every reference stays, 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_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)
and that's the page, babes π
this cutie is served up from the ./include/crypto corner of the tree, part of the October 2026 edition of the Kernel API Manual β crypto_ahash_import(9), forever iconic, mwah π«Άβ¨
π¦ 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