aboutsummaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-03 03:27:34 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-03 03:27:34 -0400
commit8ac0ff7b66a42e5a2c74d21a101d46278b7dd083 (patch)
tree722f8535697f9953f072ffb067b79474900d2695 /sha3.h
parent28df13db758044b0455723b8c1fefdba524b69ee (diff)
downloadsha3-8ac0ff7b66a42e5a2c74d21a101d46278b7dd083.tar.bz2
sha3-8ac0ff7b66a42e5a2c74d21a101d46278b7dd083.zip
sha3.[hc]: add kmac128_xof_{init,absorb,squeeze,once}(), test_kmac128_xof()
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sha3.h b/sha3.h
index aea3704..e5025ff 100644
--- a/sha3.h
+++ b/sha3.h
@@ -64,6 +64,11 @@ typedef struct {
void kmac128(const kmac_params_t params, const uint8_t * const msg, const size_t msg_len, uint8_t * const dst, const size_t dst_len);
void kmac256(const kmac_params_t params, const uint8_t * const msg, const size_t msg_len, uint8_t * const dst, const size_t dst_len);
+void kmac128_xof_init(sha3_xof_t * const xof, const kmac_params_t params);
+_Bool kmac128_xof_absorb(sha3_xof_t * const xof, const uint8_t * const msg, const size_t len);
+void kmac128_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t len);
+void kmac128_xof_once(const kmac_params_t params, const uint8_t * const src, const size_t src_len, uint8_t * const dst, const size_t dst_len);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */