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

Use the built-in crypto:pbkdf2_hmac function #5053

Merged
merged 1 commit into from
May 13, 2024

Conversation

nickva
Copy link
Contributor

@nickva nickva commented May 13, 2024

The fix to make crypto:pbkdf2_hmac/5 yield properly is now in all the supported Erlang/OTP versions, so we can switch to use it [1].

This also removes the build dependency on OpenSSL dev package.

[1] erlang/otp#8174

The fix to make `crypto:pbkdf2_hmac/5` yield properly is now in all the supported
Erlang/OTP versions, so we can switch to use it [1].

This also removes the build dependency on OpenSSL dev package.

[1] erlang/otp#8174
Copy link
Contributor

@jaydoane jaydoane left a comment

Choose a reason for hiding this comment

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

Thanks for tracking the exact versions that your fix landed.

Did you happen to check an OTP 27 RC to confirm it's also in that major release?

Comment on lines +83 to +91
% crypto:pbkdf2_hmac/5 was blocking schedulers in
% versions < 24.3.4.17, < 25.3.2.10 and < 26.2.3
%
case VerList of
% Leave example around if we have to exlude specific versions
% [22, 0, N | _] when N < 5 -> BadErlang(VerString);
[24, 3, 4, N | _] when N < 17 -> BadErlang(VerString);
[25, 3, 2, N | _] when N < 10 -> BadErlang(VerString);
[26, 2, N | _] when N < 3 -> BadErlang(VerString);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is super helpful!

@nickva nickva merged commit ada5135 into main May 13, 2024
14 checks passed
@nickva nickva deleted the use-built-in-pbkdf2-function branch May 13, 2024 18:39
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.

None yet

2 participants