summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-01 16:45:37 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-01 16:45:37 -0400
commitc7f630ed23144939a540219787c7be3ffe14b24c (patch)
treed8952a4b64c61e92fe552c54ea26e0d5b6d99a34 /sha3.h
downloadsha3-c7f630ed23144939a540219787c7be3ffe14b24c.tar.bz2
sha3-c7f630ed23144939a540219787c7be3ffe14b24c.zip
initial commit
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sha3.h b/sha3.h
new file mode 100644
index 0000000..6e49a40
--- /dev/null
+++ b/sha3.h
@@ -0,0 +1,22 @@
+#ifndef SHA3_H
+#define SHA3_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <stdint.h>
+
+void sha3_224(const uint8_t *m, size_t m_len, uint8_t dst[static 28]);
+void sha3_256(const uint8_t *m, size_t m_len, uint8_t dst[static 32]);
+void sha3_384(const uint8_t *m, size_t m_len, uint8_t dst[static 48]);
+void sha3_512(const uint8_t *m, size_t m_len, uint8_t dst[static 64]);
+
+void shake128(const uint8_t *m, size_t m_len, uint8_t dst[static 16]);
+void shake256(const uint8_t *m, size_t m_len, uint8_t dst[static 32]);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* SHA3_H */