Fix comparison

This commit is contained in:
Daniel Lubarov 2022-07-24 08:06:02 -07:00
parent 0e5dd59d35
commit cddc749a7e

View File

@ -130,7 +130,7 @@ impl<F: RichField, H: Hasher<F>> Challenger<F, H> {
/// Absorb any buffered inputs. After calling this, the input buffer will be empty, and the
/// output buffer will be full.
fn duplexing(&mut self) {
assert!(self.input_buffer.len() < SPONGE_RATE);
assert!(self.input_buffer.len() <= SPONGE_RATE);
// Overwrite the first r elements with the inputs. This differs from a standard sponge,
// where we would xor or add in the inputs. This is a well-known variant, though,