Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions digest/src/dev/fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub fn fixed_reset_test<D: FixedOutputReset + Clone + Default + HashMarker>(
}

// 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) {
Expand Down
1 change: 1 addition & 0 deletions digest/src/dev/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub fn variable_reset_test<D: VariableOutputReset + Clone>(
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) {
Expand Down
1 change: 1 addition & 0 deletions digest/src/dev/xof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn xof_reset_test<D: ExtendableOutputReset + Default + Debug + Clone>(
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) {
Expand Down