-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: boomerang variable in sha256 hash function (#8581)
Static analyzer found boomerang variable in the function extend_witness. The problem is that variable w_out wasn't connected with variable w_out_raw in the function extend_witness in sha256 hash function. As a result, you can put random variable in the extend_witness. Test was created to prove this issue. You can modify a result of function extend_witness, and the circuit will be correct. Also function extend_witness was patched to remove this issue. --------- Co-authored-by: Rumata888 <isennovskiy@gmail.com>
- Loading branch information
1 parent
1c7b06d
commit f2a1330
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f2a1330
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.05
.nativeconstruct_proof_ultrahonk_power_of_2/20
5797.5111220000035
ms/iter5111.101091999998
ms/iter1.13
wasmconstruct_proof_ultrahonk_power_of_2/20
16605.353931999998
ms/iter14607.624747000003
ms/iter1.14
This comment was automatically generated by workflow using github-action-benchmark.
CC: @ludamad @codygunton