crypto_ahash_export(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypto_ahash_export(9) πŸ’…

okay so this page is from the Kernel API Manual, bestie, and the main character is crypto_ahash_export πŸ’–

✨ NAME ✨

crypto_ahash_export β€” extract current message digest state. that's the whole vibe. periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int crypto_ahash_export (struct ahash_request *req , void *out );

πŸŽ€ ARGUMENTS πŸŽ€

  • req β€” a reference to the ahash_request handle whose state is exported 🫢
  • out β€” output buffer of sufficient size that can hold the hash state ✨

🌸 DESCRIPTION 🌸

This function exports the hash state of the ahash_request handle into the caller-allocated output buffer out, which must have sufficient size (e.g. by calling crypto_ahash_statesize). like, no cap, out needs to actually be big enough β€” the manual literally says sufficient size, and the example sizing move is crypto_ahash_statesize 🧚

πŸ”₯ RETURN πŸ”₯

  • 0 if the export was successful 😌
  • < 0 if an error occurred 😭

🌈 SEE ALSO 🌈

the whole linked squad, fr fr:


cute little sign-off: this page lives under ./include/crypto, dated October 2026, and it's serving crypto_ahash_export(9) energy πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from