Skip to content

Commit ab43581

Browse 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 <[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]>
1 parent edf4298 commit ab43581

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/api/crypto.md

+6-4
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)