Skip to content

Commit 394f8ca

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 bd9f4d2 commit 394f8ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ changes:
24742474
-->
24752475

24762476
* `privateKey` {Object | string | Buffer | KeyObject}
2477-
* `oaepHash` {string} The hash function to use for OAEP padding.
2477+
* `oaepHash` {string} The hash function to use for OAEP padding and MGF1.
24782478
**Default:** `'sha1'`
24792479
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
24802480
padding. If not specified, no label is used.
@@ -2564,7 +2564,7 @@ changes:
25642564

25652565
* `key` {Object | string | Buffer | KeyObject}
25662566
* `key` {string | Buffer | KeyObject} A PEM encoded public or private key.
2567-
* `oaepHash` {string} The hash function to use for OAEP padding.
2567+
* `oaepHash` {string} The hash function to use for OAEP padding and MGF1.
25682568
**Default:** `'sha1'`
25692569
* `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP
25702570
padding. If not specified, no label is used.

0 commit comments

Comments
 (0)