-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: make constants enumeration consistent #20991
Conversation
Add missing prefix `crypto.constants.` to `RSA_PKCS1_PADDING` in crypto.privateEncrypt(), crypto.privateDecrypt(), crypto.publicEncrypt() and crypto.publicDecrypt()
doc/api/crypto.md
Outdated
@@ -1959,7 +1959,7 @@ added: v0.11.14 | |||
- `passphrase` {string} An optional passphrase for the private key. | |||
- `padding` {crypto.constants} An optional padding value defined in | |||
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`, | |||
`RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. | |||
`crypto.constants.RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. |
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.
Wrap at 80 chars?
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.
(Looks like the linter complained about this and the other one. After changing docs, it's a good idea to run make lint-md
if you're not on Windows so that you can get notified of these things.)
doc/api/crypto.md
Outdated
@@ -1902,7 +1902,7 @@ added: v0.11.14 | |||
- `passphrase` {string} An optional passphrase for the private key. | |||
- `padding` {crypto.constants} An optional padding value defined in | |||
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`, | |||
`RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. | |||
`crypto.constants.RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. |
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.
Wrap at 80 chars?
Wrap padding options text at 80 characters to match linter rules
Wrapped text, sorry about that. |
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
Landed in 62c8fb3 |
Add missing prefix `crypto.constants.` to `RSA_PKCS1_PADDING` in `crypto.privateEncrypt()`, `crypto.privateDecrypt()`, `crypto.publicEncrypt()`, and `crypto.publicDecrypt()`. PR-URL: #20991 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
Add missing prefix `crypto.constants.` to `RSA_PKCS1_PADDING` in `crypto.privateEncrypt()`, `crypto.privateDecrypt()`, `crypto.publicEncrypt()`, and `crypto.publicDecrypt()`. PR-URL: #20991 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
Add missing prefix
crypto.constants.
toRSA_PKCS1_PADDING
in crypto.privateEncrypt(), crypto.privateDecrypt(), crypto.publicEncrypt() and crypto.publicDecrypt()Checklist