MESSAGE DIGEST ALGORITHM DEFINITIONS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… Message Digest Algorithm Definitions πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this page is short and sweet and it's giving "backstage pass to the hash world" πŸŽ€

🌸 DESCRIPTION 🌸

so like, these data structures are literally the blueprint for modular message digest algorithm implementations πŸ’– they're the whole vibe β€” you define your digest algorithm in a nice lil modular way, and the kernel handles all the registration drama for you.

who manages them? these four icons, that's who πŸ‘‘

  • crypto_register_ahash β€” signs your async hash algo up for the roster πŸ’«
  • crypto_register_shash β€” same energy, but for the synchronous girlies πŸ¦‹
  • crypto_unregister_ahash β€” yep, taking the async one back off the roster πŸ™ˆ
  • crypto_unregister_shash β€” and the synchronous one too, bye bestie πŸ‘‹

that's the entire description, no cap β€” the actual struct definitions live over in the headers and the per-API pages, so go click through the list below ⬇️


✨ SEE ALSO ✨

first up, the actual file you're gonna wanna open, no cap πŸ“‚

  • ./include/crypto/hash.h β€” Kernel file, the mothership 🏠

then the two struct pages, the main character energy of this whole page πŸ‘‘

  • struct ahash_alg(9)
  • struct shash_alg(9)

πŸ¦‹ Asynchronous Message Digest API(9) β€” the async girlies πŸ¦‹

πŸŽ€ Asynchronous Hash Request Handle(9) β€” the request squad πŸŽ€

🌈 Synchronous Message Digest API(9) β€” the sync girlies 🌈

fr fr that's every single reference, don't skip any of them, iykyk 🫢

mwah, that's the whole page bestie πŸ˜­πŸ’œ it lives at ./include/crypto and it's dated October 2026 β€” go forth and hash, you're gonna slay β­πŸ‘‘

πŸ“¦ where this page comes from