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

scrypt: parallel implementation #79

Open
smessmer opened this issue Dec 30, 2020 · 2 comments
Open

scrypt: parallel implementation #79

smessmer opened this issue Dec 30, 2020 · 2 comments
Labels
enhancement scrypt scrypt key derivation function

Comments

@smessmer
Copy link

smessmer commented Dec 30, 2020

Looking at the source code, it seems this crate always uses a sequential algorithm and only one core, even when the scrypt parameter p is larger than 1. For p>1, the derivation could be made faster by using a parallel algorithm. Are there plans to implement this?

@tarcieri
Copy link
Member

Seems like a nice feature to add, potentially leveraging something like rayon as an optional dependency.

@newpavlov
Copy link
Member

pbkdf2 has the parallel feature, which uses rayon for computing long output keys (though AFAIK such keys are usually not used in practice since they do not improve security). A PR which will add a similar feature to scrypt is welcomed!

@newpavlov newpavlov changed the title Parallel implementation scrypt: parallel implementation Dec 30, 2020
@tarcieri tarcieri added scrypt scrypt key derivation function enhancement labels Jan 29, 2021
dns2utf8 pushed a commit to dns2utf8/password-hashes that referenced this issue Jan 24, 2023
signature: improve docs for `signature_derive`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement scrypt scrypt key derivation function
Projects
None yet
Development

No branches or pull requests

3 participants