crypto_shash_export_core(9)
π« crypto_shash_export_core(9) π«
okay so real talk, this one is from the Kernel API Manual, and it's genuinely such a useful little function bestie, let me put you on π«Ά
β¨ NAME β¨
crypto_shash_export_core β extract core state for message digest π
πΈ SYNOPSIS πΈ
int crypto_shash_export_core (struct shash_desc *desc , void *out );
π ARGUMENTS π
descβ this is the reference to the operational state handle whose state is being exported, like that's the whole vibe of it π₯outβ the output buffer, and it has to be of sufficient size so it can hold the hash state. no cap, size it right or it's not gonna slay π
π¦ DESCRIPTION π¦
okay so what this does: it exports the hash state without the partial block buffer.
that's it. that's the whole thing. the partial block buffer is literally not invited to this party π
π CONTEXT π
softirq or process context π (yes those are the two, that's the whole list, don't come for me)
β RETURN β
0if the export creation was successful π< 0if an error occurred π
πΈ SEE ALSO πΈ
- Kernel file
./include/crypto/internal/hash.hπ crypto_ahash_export_core(9)crypto_ahash_import_core(9)crypto_shash_import_core(9)
that's the whole page bestie, go export some state, ily π
ok and one lil sign-off from the source at ./include/crypto/internal, dated October 2026 β periodt, that's the meta, that's the lore π§β¨
π¦ 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