summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-02 23:43:10 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-02 23:43:10 -0400
commit9e3d518710945923681e0babc632200a7d82a122 (patch)
tree505162f1818506f26829b09e622770426611007b /sha3.h
parentabc6db76520b4675f3fe1bba9c8d57f6d44b6015 (diff)
downloadsha3-9e3d518710945923681e0babc632200a7d82a122.tar.bz2
sha3-9e3d518710945923681e0babc632200a7d82a122.zip
sha3.[hc]: add cshake256 functions and tests
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sha3.h b/sha3.h
index 56e151c..99e15b5 100644
--- a/sha3.h
+++ b/sha3.h
@@ -43,10 +43,16 @@ typedef struct {
const size_t custom_len; // length of customization string, in bytes
} cshake_params_t;
+void cshake128(const cshake_params_t params, const uint8_t * const msg, const size_t msg_len, uint8_t * const dst, const size_t dst_len);
+void cshake256(const cshake_params_t params, const uint8_t * const msg, const size_t msg_len, uint8_t * const dst, const size_t dst_len);
+
void cshake128_xof_init(sha3_xof_t * const xof, const cshake_params_t params);
_Bool cshake128_xof_absorb(sha3_xof_t * const xof, const uint8_t * const msg, const size_t len);
void cshake128_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t len);
-void cshake128(const cshake_params_t params, const uint8_t * const msg, const size_t msg_len, uint8_t * const dst, const size_t dst_len);
+
+void cshake256_xof_init(sha3_xof_t * const xof, const cshake_params_t params);
+_Bool cshake256_xof_absorb(sha3_xof_t * const xof, const uint8_t * const msg, const size_t len);
+void cshake256_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t len);
#ifdef __cplusplus
}