-
Notifications
You must be signed in to change notification settings - Fork 795
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
Replace xxHash with blake2b #1919
Conversation
auto result (XXH64_digest (state)); | ||
XXH64_freeState (state); | ||
blake2b_state state; | ||
blake2b_init (&state, sizeof (result)); |
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.
Let's use the blake2b_init_key initializer which does the key-initialization for us.
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.
It's much slower than extra blake2b_update, like 1.5-2 times
Can be modified with random_constants from #1928 |
I did an ASAN run on core_test/live and it didn't hit any of CryptoPP uninitialized global warnings, so LGTM. |
No description provided.