aboutsummaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-02 01:57:40 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-02 01:57:40 -0400
commitcdd3961d4a370041176d27d97129f998d2c1f549 (patch)
tree2450764abbaf751b572ec4625cf103e34d2f9db8 /sha3.h
parent5f0124c4923dc44a6f2bf1666fafcecc0c90306b (diff)
downloadsha3-cdd3961d4a370041176d27d97129f998d2c1f549.tar.bz2
sha3-cdd3961d4a370041176d27d97129f998d2c1f549.zip
sha3.[hc], main.c: remove absorb_done(), make squeeze always succeed
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h6
1 files changed, 2 insertions, 4 deletions
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
}