Skip to content

Commit 23c67de

Browse files
MoonBalladdaleax
authored andcommitted
doc: fix padding mode of crypto.publicDecrypt
PR-URL: #14036 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent d4a6ca6 commit 23c67de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,8 @@ added: v1.1.0
16431643
- `key` {string} A PEM encoded private key.
16441644
- `passphrase` {string} An optional passphrase for the private key.
16451645
- `padding` {crypto.constants} An optional padding value defined in
1646-
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,
1647-
`RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`.
1646+
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or
1647+
`RSA_PKCS1_PADDING`.
16481648
- `buffer` {Buffer | TypedArray | DataView}
16491649

16501650
Decrypts `buffer` with `publicKey`.

0 commit comments

Comments
 (0)