Skip to content

Commit

Permalink
doc,crypto: clarify oaepHash option's impact
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 21, 2020
1 parent 1a3c747 commit d823572
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 @@ -2482,7 +2482,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 @@ -2572,7 +2572,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 d823572

Please sign in to comment.