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

Enable fast feature of ed25519-dalek #190

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Conversation

giarc3
Copy link
Member

@giarc3 giarc3 commented Dec 5, 2024

This fixes a performance regression introduced in 0.14.0 around generating ed25519 keypairs. It will now utilize precomputer basepoint multiplication tables.

use recrypt::api_480::Ed25519Ops as Ed25519Ops480;
use recrypt::api_480::KeyGenOps as KeyGenOps480;
use recrypt::api_480::Recrypt480;
// use recrypt::api_480::CryptoOps as CryptoOps480;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really want all of these commented out as it makes it less clear how to run the 480 benches. Did you comment them out for a specific reason?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to avoid the dead code analysis on the recrypt_bench! line below. I could add it back in if you prefer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it a different way

@giarc3 giarc3 merged commit e54b370 into main Dec 5, 2024
14 checks passed
@giarc3 giarc3 deleted the enable-ed25519-dalek-fast branch December 5, 2024 21:34
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.

2 participants