Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect SHA-3 computation with the streaming API #14852

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

jedisct1
Copy link
Contributor

@jedisct1 jedisct1 commented Mar 8, 2023

Fixes #14851

Also add a test for this.

Leftover bytes should be added to the buffer, not to the state.

(or, always to the state; we can and probably should eventually get
rid of the buffer)

Fixes ziglang#14851
@jedisct1 jedisct1 enabled auto-merge (squash) March 8, 2023 21:57
@jedisct1 jedisct1 merged commit 134e574 into ziglang:master Mar 9, 2023
@jedisct1 jedisct1 deleted the sha3-streaming-fix branch March 12, 2023 23:41
truemedian pushed a commit to truemedian/zig that referenced this pull request Mar 30, 2023
* Fix SHA3 with streaming

Leftover bytes should be added to the buffer, not to the state.

(or, always to the state; we can and probably should eventually get
rid of the buffer)

Fixes ziglang#14851

* Add a test for SHA-3 with streaming
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.

Streaming SHA3 incorrect output
1 participant