From c7f630ed23144939a540219787c7be3ffe14b24c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 1 Sep 2023 16:45:37 -0400 Subject: initial commit --- sha3.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sha3.h (limited to 'sha3.h') 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 + +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 */ -- cgit v1.2.3