Skip to content

Commit 154d4e5

Browse files
panvaaddaleax
authored andcommitted
doc,crypto: clarify oaepHash option's impact
PR-URL: #32340 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 400bc5c commit 154d4e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@ changes:
24822482
-->
24832483

24842484
* `privateKey` {Object | string | Buffer | KeyObject}
2485-
* `oaepHash` {string} The hash function to use for OAEP padding.
2485+
* `oaepHash` {string} The hash function to use for OAEP padding and MGF1.
24862486
**Default:** `'sha1'`
24872487
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
24882488
padding. If not specified, no label is used.
@@ -2572,7 +2572,7 @@ changes:
25722572

25732573
* `key` {Object | string | Buffer | KeyObject}
25742574
* `key` {string | Buffer | KeyObject} A PEM encoded public or private key.
2575-
* `oaepHash` {string} The hash function to use for OAEP padding.
2575+
* `oaepHash` {string} The hash function to use for OAEP padding and MGF1.
25762576
**Default:** `'sha1'`
25772577
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
25782578
padding. If not specified, no label is used.

0 commit comments

Comments
 (0)