Skip to content

Commit

Permalink
doc,crypto: clarify oaepHash option's impact
Browse files Browse the repository at this point in the history
PR-URL: #32340
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
panva authored and targos committed Apr 22, 2020
1 parent df890ad commit d3b9a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ changes:
-->

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

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

0 comments on commit d3b9a88

Please sign in to comment.