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 <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
panva authored and addaleax committed Mar 30, 2020
1 parent bd9f4d2 commit 394f8ca
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 @@ -2474,7 +2474,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 @@ -2564,7 +2564,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 394f8ca

Please sign in to comment.