summaryrefslogtreecommitdiff
path: root/src/sha1.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sha1.hh')
-rw-r--r--src/sha1.hh15
1 files changed, 15 insertions, 0 deletions
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 <array> // IWYU pragma: export
+#include <cstdint> // IWYU pragma: export
+#include <span> // IWYU pragma: export
+
+namespace sha1 {
+
+std::array<uint8_t, 20> hash(std::span<uint8_t const> input);
+std::array<uint8_t, 20> hash(std::span<char const> input);
+
+} // namespace sha1
+
+#endif // SHA1_HH