crypto_ahash_import_core(9)
π crypto_ahash_import_core(9) β like, the whole kernel API manual moment π
okay so bestie, welcome to the Kernel API Manual entry for crypto_ahash_import_core β yes that's a mouthful, yes it's iconic, and yes we're gonna get through it together. sit down, hydrate, let's go β¨
πΈ NAME πΈ
crypto_ahash_import_core β import core state π«Ά
β¨ SYNOPSIS β¨
int crypto_ahash_import_core (struct ahash_request *req , const void *in );
that's the whole vibe. one function, two args, one int coming back atcha π«
π¦ ARGUMENTS π¦
reqβ a reference to theahash_requesthandle that the state is being imported into. like, this is the destination, the main character of the operation πinβ the buffer that's holding the state. the source. the lore. the payload π
π DESCRIPTION π
so what it does is: import the hash state β without the partial block buffer. that's it, that's the whole thing. no partial block buffer invited to this party, ngl π
π CONTEXT π
- Softirq or process context. that's the vibe check, and it passed β
β RETURN β
0if the import was successful π< 0if an error occurred π (not the slay outcome, but forewarned is forearmed)
π₯ SEE ALSO π₯
- Kernel file
./include/crypto/internal/hash.hβ go read it, it's giving source of truth π crypto_ahash_export_core(9)crypto_shash_export_core(9)crypto_shash_import_core(9)
the whole friend group fr fr π
and that's the page bestie!! π§ββοΈ this little gem lives in ./include/crypto/internal, dated October 2026 β that's the source/version and date flex, periodt π
πΈ
π¦ 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