Skip to content

Commit d823572

Browse files
committed
doc,crypto: clarify oaepHash option's impact
1 parent 1a3c747 commit d823572

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)