From 7518e87f14f0576c740ad748565a03050d581261 Mon Sep 17 00:00:00 2001 From: radik878 Date: Wed, 18 Feb 2026 16:30:29 +0200 Subject: [PATCH 1/3] fix: add missing hasher2.reset() before chunks loop in dev tests --- digest/src/dev/xof.rs | 1 + 1 file changed, 1 insertion(+) 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) { From 95f20884aae4a22b94c46ac8ec3df00b05e12c95 Mon Sep 17 00:00:00 2001 From: radik878 Date: Wed, 18 Feb 2026 16:32:19 +0200 Subject: [PATCH 2/3] fix: add missing hasher2.reset() before chunks loop in dev tests --- digest/src/dev/fixed.rs | 1 + 1 file changed, 1 insertion(+) 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) { From 7eddb4cb75020d932d47674042e1f4e1ba2a1396 Mon Sep 17 00:00:00 2001 From: radik878 Date: Wed, 18 Feb 2026 16:32:49 +0200 Subject: [PATCH 3/3] fix: add missing hasher2.reset() before chunks loop in dev tests --- digest/src/dev/variable.rs | 1 + 1 file changed, 1 insertion(+) 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) {