diff --git a/digest/src/dev/fixed.rs b/digest/src/dev/fixed.rs index ad57e7741..22d67c5e1 100644 --- a/digest/src/dev/fixed.rs +++ b/digest/src/dev/fixed.rs @@ -20,6 +20,7 @@ pub fn fixed_reset_test( } // Test that it works when accepting the message in chunks + hasher2.reset(); for n in 1..core::cmp::min(17, input.len()) { let mut hasher = D::new(); for chunk in input.chunks(n) { diff --git a/digest/src/dev/variable.rs b/digest/src/dev/variable.rs index aab77a38b..9321f06d2 100644 --- a/digest/src/dev/variable.rs +++ b/digest/src/dev/variable.rs @@ -26,6 +26,7 @@ pub fn variable_reset_test( buf.iter_mut().for_each(|b| *b = 0); // Test that it works when accepting the message in chunks + hasher2.reset(); for n in 1..core::cmp::min(17, input.len()) { let mut hasher = D::new(output.len()).unwrap(); for chunk in input.chunks(n) { diff --git a/digest/src/dev/xof.rs b/digest/src/dev/xof.rs index acd4c8769..70733d51e 100644 --- a/digest/src/dev/xof.rs +++ b/digest/src/dev/xof.rs @@ -27,6 +27,7 @@ pub fn xof_reset_test( buf.iter_mut().for_each(|b| *b = 0); // Test that it works when accepting the message in chunks + hasher2.reset(); for n in 1..core::cmp::min(17, input.len()) { let mut hasher = D::default(); for chunk in input.chunks(n) {