diff options
author | Filip Skokan <panva.ip@gmail.com> | 2020-03-18 11:57:30 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-29 23:40:19 +0300 |
commit | 154d4e573aabcb230b0774481246cc1e487abcb4 (patch) | |
tree | 1d4ab4848c2a7ce3d7584f1125351310b26635e4 | |
parent | 400bc5cdc0b528a853c6b01b5b5ac993c078f9a2 (diff) |
doc,crypto: clarify oaepHash option's impact
PR-URL: https://github.com/nodejs/node/pull/32340
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
-rw-r--r-- | doc/api/crypto.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 9008c4f640b..e5a271ad6d7 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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. @@ -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. |