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

Remove deprecated crypto APIs #39

Merged
merged 6 commits into from
Oct 8, 2024
Merged

Remove deprecated crypto APIs #39

merged 6 commits into from
Oct 8, 2024

Conversation

whatyouhide
Copy link
Contributor

This PR is based off of #36 and closes #38.

The issue was that crypto:sign/5 hashes the input before signing it. It's enough to pass in none as the digest algorithm, and we get back the behavior of crypto:public_encrypt/4. The same goes for decrypting (with crypto:verify now).

@whatyouhide whatyouhide requested a review from weppos October 6, 2024 16:08
@weppos weppos requested review from m0rcq, san983 and DXTimer and removed request for weppos October 7, 2024 12:18
@weppos
Copy link
Member

weppos commented Oct 7, 2024

Switching to @DXTimer , @m0rcq , and/or @san983 as reviewers as they focused on this task, and also know what else to cleanup upon completion of this blocker.

Copy link
Contributor

@DXTimer DXTimer left a comment

Choose a reason for hiding this comment

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

Nicely done. Everything works as expected and the API stays compatible with erldns.

@whatyouhide
Copy link
Contributor Author

@DXTimer thanks for the review! 💟

@weppos anything that needs to be done in this PR, or I can go ahead and merge it myself?

@weppos
Copy link
Member

weppos commented Oct 8, 2024

@weppos anything that needs to be done in this PR, or I can go ahead and merge it myself?

It seems good to go.

@DXTimer do we need to ship any change anywhere?

@DXTimer
Copy link
Contributor

DXTimer commented Oct 8, 2024

@DXTimer do we need to ship any change anywhere?

We will need to update upstream e.g. erldns. Otherwise, no additional changes are required.

@whatyouhide
Copy link
Contributor Author

Since this is a library (and not a deployable artifact in itself) I'll merge the PR.

@whatyouhide whatyouhide merged commit e41c294 into main Oct 8, 2024
4 checks passed
@whatyouhide whatyouhide deleted the al/otp-27-support branch October 8, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated Crypto API calls
5 participants