Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab43581

Browse filesBrowse files
DiegoRBaqueroaddaleax
authored andcommitted
doc: make constants enumeration consistent
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 <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent edf4298 commit ab43581
Copy full SHA for ab43581

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+6-4Lines changed: 6 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,8 @@ added: v0.11.14
18971897
- `passphrase` {string} An optional passphrase for the private key.
18981898
- `padding` {crypto.constants} An optional padding value defined in
18991899
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,
1900-
`RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`.
1900+
`crypto.constants.RSA_PKCS1_PADDING`, or
1901+
`crypto.constants.RSA_PKCS1_OAEP_PADDING`.
19011902
- `buffer` {Buffer | TypedArray | DataView}
19021903
- Returns: {Buffer} A new `Buffer` with the decrypted content.
19031904

@@ -1915,7 +1916,7 @@ added: v1.1.0
19151916
- `passphrase` {string} An optional passphrase for the private key.
19161917
- `padding` {crypto.constants} An optional padding value defined in
19171918
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or
1918-
`RSA_PKCS1_PADDING`.
1919+
`crypto.constants.RSA_PKCS1_PADDING`.
19191920
- `buffer` {Buffer | TypedArray | DataView}
19201921
- Returns: {Buffer} A new `Buffer` with the encrypted content.
19211922

@@ -1933,7 +1934,7 @@ added: v1.1.0
19331934
- `passphrase` {string} An optional passphrase for the private key.
19341935
- `padding` {crypto.constants} An optional padding value defined in
19351936
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or
1936-
`RSA_PKCS1_PADDING`.
1937+
`crypto.constants.RSA_PKCS1_PADDING`.
19371938
- `buffer` {Buffer | TypedArray | DataView}
19381939
- Returns: {Buffer} A new `Buffer` with the decrypted content.
19391940

@@ -1954,7 +1955,8 @@ added: v0.11.14
19541955
- `passphrase` {string} An optional passphrase for the private key.
19551956
- `padding` {crypto.constants} An optional padding value defined in
19561957
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,
1957-
`RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`.
1958+
`crypto.constants.RSA_PKCS1_PADDING`, or
1959+
`crypto.constants.RSA_PKCS1_OAEP_PADDING`.
19581960
- `buffer` {Buffer | TypedArray | DataView}
19591961
- Returns: {Buffer} A new `Buffer` with the encrypted content.
19601962

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.