Skip to content
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

Merged
merged 13 commits into from
May 9, 2019

Conversation

SergiySW
Copy link
Contributor

No description provided.

@SergiySW SergiySW added this to the V19.0 milestone Apr 24, 2019
@SergiySW SergiySW self-assigned this Apr 24, 2019
auto result (XXH64_digest (state));
XXH64_freeState (state);
blake2b_state state;
blake2b_init (&state, sizeof (result));
Copy link
Contributor

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.

Copy link
Contributor Author

@SergiySW SergiySW Apr 25, 2019

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

@SergiySW
Copy link
Contributor Author

Can be modified with random_constants from #1928

@wezrule
Copy link
Contributor

wezrule commented Apr 27, 2019

I did an ASAN run on core_test/live and it didn't hit any of CryptoPP uninitialized global warnings, so LGTM.

@zhyatt zhyatt requested a review from cryptocode April 30, 2019 16:11
@SergiySW SergiySW merged commit 8ce0b7c into nanocurrency:master May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants