doc: fix padding mode of crypto.publicDecrypt
PR-URL: https://github.com/nodejs/node/pull/14036 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
f2149d4ea4
commit
996a62e08a
@ -1643,8 +1643,8 @@ added: v1.1.0
|
||||
- `key` {string} A PEM encoded private key.
|
||||
- `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`, which may be: `crypto.constants.RSA_NO_PADDING` or
|
||||
`RSA_PKCS1_PADDING`.
|
||||
- `buffer` {Buffer | TypedArray | DataView}
|
||||
|
||||
Decrypts `buffer` with `publicKey`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user