mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc,crypto: re-document oaepLabel option
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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
committed by
Tobias Nießen
parent
341c06f088
commit
793cfe54cd
@@ -2484,6 +2484,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
|
||||
@@ -2572,6 +2574,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`,
|
||||
|
||||
Reference in New Issue
Block a user