-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xxh3: keys are xored, instead of added
In UMAC, keys are added, instead of xored. According to its authors, that's because adds are 10% faster on their target platform (a Pentium IV, this was early 2000). In measurements with SSE/AVX, it makes no difference today. However, additions make it possible to reason about delta between fields, meaning it's easier to engineer a collision just knowing these deltas. Xoring instead messes that up. Since it's performance free, let's to that.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 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