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

crypto/scrypt: add scrypt to crypto #22216

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Conversation

kimshrier
Copy link
Contributor

This is what prompted me to do the other work in the other crypto modules.

This adds scrypt to the library of key derivation functions. I have only 1 scrypt function test in scrypt_test.v because the other tests from RFC-7914 take a long time, 3 minutes on my machine. The other tests in scrypt_test.v are exercising internal functionality that is not public. I will put these slower scrypt function tests in the slower_tests repo after this gets committed (assuming that it does get accepted, of course).

The fact that scrypt is time and/or memory intensive is not a bug. It is for the purpose of making scrypt generated keys more resistant to brute force attacks.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit 423f804 into vlang:master Sep 14, 2024
67 checks passed
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