crypto_shash_export_core(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 ⭐

  • 0 if the export creation was successful πŸ’–
  • < 0 if an error occurred πŸ’€

🌸 SEE ALSO 🌸


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