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

Monero "slow hash": start to use AES-NI and widening MUL #5666

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

solardiz
Copy link
Member

This optimizes only one of several loops.

Separately, we should also switch to using AES-NI, perhaps via our shared code, in the other loops where it's more complete AES rather than just one round.

The speedup from these changes is moderate - the partial usage of AES-NI may be adding tens of percent of performance, but the widening MUL is hardly measurable (but the generated assembly code does look simpler, with 1 instead of 4 MULs).

@solardiz solardiz merged commit dd770ca into openwall:bleeding-jumbo Feb 13, 2025
35 of 36 checks passed
@solardiz solardiz deleted the monero-opt1 branch February 13, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant