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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
9ae658e362
commit
62c8fb33a6
@ -1902,7 +1902,8 @@ 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`.
|
||||
- `buffer` {Buffer | TypedArray | DataView}
|
||||
- Returns: {Buffer} A new `Buffer` with the decrypted content.
|
||||
|
||||
@ -1920,7 +1921,7 @@ added: v1.1.0
|
||||
- `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` or
|
||||
`RSA_PKCS1_PADDING`.
|
||||
`crypto.constants.RSA_PKCS1_PADDING`.
|
||||
- `buffer` {Buffer | TypedArray | DataView}
|
||||
- Returns: {Buffer} A new `Buffer` with the encrypted content.
|
||||
|
||||
@ -1938,7 +1939,7 @@ added: v1.1.0
|
||||
- `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` or
|
||||
`RSA_PKCS1_PADDING`.
|
||||
`crypto.constants.RSA_PKCS1_PADDING`.
|
||||
- `buffer` {Buffer | TypedArray | DataView}
|
||||
- Returns: {Buffer} A new `Buffer` with the decrypted content.
|
||||
|
||||
@ -1959,7 +1960,8 @@ 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`.
|
||||
- `buffer` {Buffer | TypedArray | DataView}
|
||||
- Returns: {Buffer} A new `Buffer` with the encrypted content.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user