Skip to content

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

Merged
jedisct1 merged 2 commits into
ziglang:masterfrom
jedisct1:sha3-streaming-fix
Mar 9, 2023
Merged

jedisct1 merged 2 commits into
ziglang:masterfrom
jedisct1:sha3-streaming-fix

Conversation

@jedisct1

@jedisct1 jedisct1 commented Mar 8, 2023

Copy link
Copy Markdown
Contributor

Fixes #14851

Also add a test for this.

jedisct1 added 2 commits March 8, 2023 22:46
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