Skip to content

Commit d3b9a88

Browse files
panvatargos
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 df890ad commit d3b9a88

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
@@ -2439,7 +2439,7 @@ changes:
24392439
-->
24402440

24412441
* `privateKey` {Object | string | Buffer | KeyObject}
2442-
* `oaepHash` {string} The hash function to use for OAEP padding.
2442+
* `oaepHash` {string} The hash function to use for OAEP padding and MGF1.
24432443
**Default:** `'sha1'`
24442444
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
24452445
padding. If not specified, no label is used.
@@ -2529,7 +2529,7 @@ changes:
25292529

25302530
* `key` {Object | string | Buffer | KeyObject}
25312531
* `key` {string | Buffer | KeyObject} A PEM encoded public or private key.
2532-
* `oaepHash` {string} The hash function to use for OAEP padding.
2532+
* `oaepHash` {string} The hash function to use for OAEP padding and MGF1.
25332533
**Default:** `'sha1'`
25342534
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
25352535
padding. If not specified, no label is used.

0 commit comments

Comments
 (0)