From d823572a65a213b68a5bb60b739a2c50bebe8803 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 18 Mar 2020 09:57:30 +0100 Subject: [PATCH] doc,crypto: clarify oaepHash option's impact --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 9008c4f640be5e..e5a271ad6d758e 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.