crypto_ahash_export_core(9)
π crypto_ahash_export_core β extract core state for message digest π
Okay so bestie, welcome to the crypto_ahash_export_core(9) page β it's a Kernel API Manual moment and honestly? Iconic. Pull up a chair, we're talking about hash state and you're gonna get it, I promise. π«Ά
β¨ SYNOPSIS β¨
int crypto_ahash_export_core (struct ahash_request *req , void *out );
Yeah she's tiny, she's cute, she takes exactly two things. Let's meet them. π
πΈ ARGUMENTS πΈ
reqβ a reference to theahash_requesthandle whose state is getting exported. Like, this is the request we're yoinking the state from, iykyk. πoutβ your output buffer. And not just any buffer β it has to be of sufficient size that it can hold the hash state. Do not skimp on the buffer, bestie, that's not the vibe. π¦
π DESCRIPTION π
So what does it actually do? It exports the hash state without the partial block buffer. That's the whole thing. The core state gets pulled out, the partial block buffer stays home. No cap. β¨
π₯ CONTEXT π₯
Where can you call this? Softirq or process context. Both work, she's flexible. π
β RETURN β
0β the export creation was successful, slay, we ate. π< 0β an error occurred, and honestly π that's the sad path.
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/internal/hash.hβ go read it, fr fr, it's giving source of truth. crypto_ahash_import_core(9)β the other half of this duo, the import to your export. π§crypto_shash_export_core(9)β same energy,shashflavor.crypto_shash_import_core(9)β and its matching import. The whole friend group, honestly. π
π Reminder for the group chat: out needs to be big enough to hold the hash state. That's the one thing that'll ruin your day if you forget it. π
Okay that's the page! This one's from ./include/crypto/internal, dated October 2026, and it's the Kernel API Manual β crypto_ahash_export_core(9), 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