-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Case-sensitive algorithm argument in crypto.createVerify() #5031
Comments
Strictly speaking it's the documentation that is wrong. The official openssl name is either We could add a |
Ah, interesting. But wouldn't just uppercasing the passed in |
Unfortunately not. If you uppercase e.g. |
I've created a pull request which corrects this issue in the documentation |
Cool, thanks! |
Fixes: nodejs#5031 PR-URL: nodejs#5044 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Contrary to what can be seen & read in the documentation,
crypto.createVerify()
throws if the algorithm argument is lowercase:It works perfectly fine if the algorithm is uppercased. Is this intended behavior (and the documentation just needs updating) or is this indeed a minor bug?
The text was updated successfully, but these errors were encountered: