From 53e20e1ef7226b5154fd8823f34de7b433cd0999 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Sat, 5 Dec 2020 18:22:51 -0500 Subject: [PATCH] feature: Expose KeccakState::reset --- src/keccak.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keccak.rs b/src/keccak.rs index a7db0b8..cdde8bb 100644 --- a/src/keccak.rs +++ b/src/keccak.rs @@ -53,6 +53,11 @@ impl Keccak { state: KeccakState::new(bits_to_rate(bits), Self::DELIM), } } + + /// Resets the internal state + pub fn reset(&mut self) { + self.state.reset(); + } } impl Hasher for Keccak {