forked from BLAKE3-team/BLAKE3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test multiple initial counter values for hash_many
I'm adding the i32::MAX test case here because I personally screwed it up while I was working on BLAKE3-team#271. The correct implementation of the carry bit is the ANDNOT of old high bit (1) and the new high bit (0). Using XOR instead of ANDNOT gives the correct answer in the overflow case, but it also reports an incorrect "extra" overflow when the high bit goes from 0 to 1.
- Loading branch information
1 parent
bd6ce26
commit b7d0901
Showing
1 changed file
with
98 additions
and
90 deletions.
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