Skip to content

Comments

fix: add missing hasher2.reset() before chunks loop in dev tests#2310

Closed
radik878 wants to merge 3 commits intoRustCrypto:masterfrom
radik878:fix/digest-dev-reset-test-bug
Closed

fix: add missing hasher2.reset() before chunks loop in dev tests#2310
radik878 wants to merge 3 commits intoRustCrypto:masterfrom
radik878:fix/digest-dev-reset-test-bug

Conversation

@radik878
Copy link

The test functions fixed_reset_test, variable_reset_test, and xof_reset_test were not resetting hasher2 before the chunks loop, causing state accumulation across different chunk size iterations.

@newpavlov
Copy link
Member

The state is reset by finalize_reset functions.

@newpavlov newpavlov closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants