From f1b1880cf01a8abb6016954e51b46c453c3d6d94 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 19 Oct 2025 00:09:53 +0200 Subject: sha1: Add new module SHA1 hasher. Needed by websocket support that is coming soon. Using either libmd or openssl to do the actual hashing. --- src/sha1.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/sha1.hh (limited to 'src/sha1.hh') diff --git a/src/sha1.hh b/src/sha1.hh new file mode 100644 index 0000000..a885a09 --- /dev/null +++ b/src/sha1.hh @@ -0,0 +1,15 @@ +#ifndef SHA1_HH +#define SHA1_HH + +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export + +namespace sha1 { + +std::array hash(std::span input); +std::array hash(std::span input); + +} // namespace sha1 + +#endif // SHA1_HH -- cgit v1.2.3-70-g09d2