From fd5aa41178ddb959005328309c279da574027188 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 17 Feb 2020 10:50:58 +0100 Subject: [PATCH] doc,crypto: re-document oaepLabel option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Erroneously removed in https://github.com/nodejs/node/pull/29516. Fixes: https://github.com/nodejs/node/issues/31810 Refs: https://github.com/nodejs/node/pull/29516 PR-URL: https://github.com/nodejs/node/pull/31825 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen --- doc/api/crypto.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 13eccfaf291d5a..40bde378450402 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2441,6 +2441,8 @@ changes: * `privateKey` {Object | string | Buffer | KeyObject} * `oaepHash` {string} The hash function to use for OAEP padding. **Default:** `'sha1'` + * `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP + padding. If not specified, no label is used. * `padding` {crypto.constants} An optional padding value defined in `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`, `crypto.constants.RSA_PKCS1_PADDING`, or @@ -2529,6 +2531,8 @@ changes: * `key` {string | Buffer | KeyObject} A PEM encoded public or private key. * `oaepHash` {string} The hash function to use for OAEP padding. **Default:** `'sha1'` + * `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP + padding. If not specified, no label is used. * `passphrase` {string | Buffer} An optional passphrase for the private key. * `padding` {crypto.constants} An optional padding value defined in `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`,