Skip to content

crypto/scrypt: add scrypt to crypto - #22216

Merged
spytheman merged 2 commits into
vlang:masterfrom
kimshrier:add-scrypt
Sep 14, 2024
Merged

spytheman merged 2 commits into
vlang:masterfrom
kimshrier:add-scrypt

Conversation

@kimshrier

Copy link
Copy Markdown
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.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.

Comment thread vlib/crypto/scrypt/scrypt.v Outdated
Comment thread vlib/crypto/scrypt/scrypt.v Outdated
Comment thread vlib/crypto/scrypt/scrypt.v Outdated
@spytheman
spytheman merged commit 423f804 into vlang:master Sep 14, 2024
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