-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
There was a problem hiding this 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.
We will need to update upstream e.g. |
Since this is a library (and not a deployable artifact in itself) I'll merge the PR. |
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 innone
as the digest algorithm, and we get back the behavior ofcrypto:public_encrypt/4
. The same goes for decrypting (withcrypto:verify
now).