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

Implement crypto.pbkdf2 #611

Merged
merged 3 commits into from
May 9, 2023
Merged

Implement crypto.pbkdf2 #611

merged 3 commits into from
May 9, 2023

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented May 5, 2023

This patch implements the crypto.pbkdf2Sync() and crypto.pbkdf2() functions. Work is still needed in a few places, notably async has not been implemented. For some of these changes, it is probably better when some of the other crypto PRs get merged first, e.g. to establish node-internal:crypto_util.

@fhanau fhanau force-pushed the felix/node-crypto-hkdf2 branch 3 times, most recently from 120be04 to e8b39ad Compare May 8, 2023 23:28
JSG_REQUIRE(password.size() < INT32_MAX, RangeError,
"Pbkdf2 failed: password is too large");
JSG_REQUIRE(salt.size() < INT32_MAX, RangeError,
"Pbkdf2 failed: password is too large");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"Pbkdf2 failed: password is too large");
"Pbkdf2 failed: salt is too large");

@fhanau fhanau marked this pull request as ready for review May 9, 2023 21:51
@fhanau fhanau merged commit f473914 into main May 9, 2023
@fhanau fhanau deleted the felix/node-crypto-hkdf2 branch May 25, 2023 16:18
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