Skip to content

Commit e98626d

Browse files
bnoordhuiscodebytere
authored andcommitted
doc,crypto: re-document oaepLabel option
Erroneously removed in #29516. Fixes: #31810 Refs: #29516 PR-URL: #31825 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 3796501 commit e98626d

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
@@ -2441,6 +2441,8 @@ changes:
24412441
* `privateKey` {Object | string | Buffer | KeyObject}
24422442
* `oaepHash` {string} The hash function to use for OAEP padding.
24432443
**Default:** `'sha1'`
2444+
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
2445+
padding. If not specified, no label is used.
24442446
* `padding` {crypto.constants} An optional padding value defined in
24452447
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,
24462448
`crypto.constants.RSA_PKCS1_PADDING`, or
@@ -2529,6 +2531,8 @@ changes:
25292531
* `key` {string | Buffer | KeyObject} A PEM encoded public or private key.
25302532
* `oaepHash` {string} The hash function to use for OAEP padding.
25312533
**Default:** `'sha1'`
2534+
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
2535+
padding. If not specified, no label is used.
25322536
* `passphrase` {string | Buffer} An optional passphrase for the private key.
25332537
* `padding` {crypto.constants} An optional padding value defined in
25342538
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,

0 commit comments

Comments
 (0)