Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa16d80

Browse filesBrowse 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 <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
Copy full SHA for aa16d80

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.