diff options
author | Paul Duncan <pabs@pablotron.org> | 2023-09-01 16:45:37 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2023-09-01 16:45:37 -0400 |
commit | c7f630ed23144939a540219787c7be3ffe14b24c (patch) | |
tree | d8952a4b64c61e92fe552c54ea26e0d5b6d99a34 /sha3.h | |
download | sha3-c7f630ed23144939a540219787c7be3ffe14b24c.tar.bz2 sha3-c7f630ed23144939a540219787c7be3ffe14b24c.zip |
initial commit
Diffstat (limited to 'sha3.h')
-rw-r--r-- | sha3.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 */ |