Skip to content

Commit aa16d80

Browse files
bnoordhuiscodebytere
authored andcommittedFeb 27, 2020
doc,crypto: re-document oaepLabel option
Erroneously removed in #29516. Fixes: #31810 Refs: #29516 PR-URL: #31825 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent acb3aff commit aa16d80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎doc/api/crypto.md

+4
Original file line numberDiff line numberDiff line change
@@ -2476,6 +2476,8 @@ changes:
24762476
* `privateKey` {Object | string | Buffer | KeyObject}
24772477
* `oaepHash` {string} The hash function to use for OAEP padding.
24782478
**Default:** `'sha1'`
2479+
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
2480+
padding. If not specified, no label is used.
24792481
* `padding` {crypto.constants} An optional padding value defined in
24802482
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,
24812483
`crypto.constants.RSA_PKCS1_PADDING`, or
@@ -2564,6 +2566,8 @@ changes:
25642566
* `key` {string | Buffer | KeyObject} A PEM encoded public or private key.
25652567
* `oaepHash` {string} The hash function to use for OAEP padding.
25662568
**Default:** `'sha1'`
2569+
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
2570+
padding. If not specified, no label is used.
25672571
* `passphrase` {string | Buffer} An optional passphrase for the private key.
25682572
* `padding` {crypto.constants} An optional padding value defined in
25692573
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,

0 commit comments

Comments
 (0)