From 8ac0ff7b66a42e5a2c74d21a101d46278b7dd083 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Sep 2023 03:27:34 -0400 Subject: sha3.[hc]: add kmac128_xof_{init,absorb,squeeze,once}(), test_kmac128_xof() --- sha3.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sha3.h') 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 */ -- cgit v1.2.3