From cdd3961d4a370041176d27d97129f998d2c1f549 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 2 Sep 2023 01:57:40 -0400 Subject: sha3.[hc], main.c: remove absorb_done(), make squeeze always succeed --- sha3.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sha3.h') diff --git a/sha3.h b/sha3.h index 4fbf0e1..1be9970 100644 --- a/sha3.h +++ b/sha3.h @@ -28,13 +28,11 @@ void shake256(const uint8_t *m, size_t m_len, uint8_t dst[static 32]); void shake128_xof_init(sha3_xof_t * const xof); _Bool shake128_xof_absorb(sha3_xof_t * const xof, const uint8_t * const m, const size_t len); -_Bool shake128_xof_absorb_done(sha3_xof_t * const xof); -_Bool shake128_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t dst_len); +void shake128_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t dst_len); void shake256_xof_init(sha3_xof_t * const xof); _Bool shake256_xof_absorb(sha3_xof_t * const xof, const uint8_t * const m, const size_t len); -_Bool shake256_xof_absorb_done(sha3_xof_t * const xof); -_Bool shake256_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t dst_len); +void shake256_xof_squeeze(sha3_xof_t * const xof, uint8_t * const dst, const size_t dst_len); #ifdef __cplusplus } -- cgit v1.2.3