diff options
author | Tobias Nießen <tniessen@tnie.de> | 2019-09-08 04:41:04 +0200 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2019-09-13 16:58:41 +0200 |
commit | b64446648b61085715908b2769bbdfee7b2c84e4 (patch) | |
tree | 26ec47a23bb197aeb926a18cde73bf15ff23d0d0 /doc | |
parent | dff22dd176d584f3c050a659fa514f079ab5f208 (diff) | |
download | android-node-v8-b64446648b61085715908b2769bbdfee7b2c84e4.tar.gz android-node-v8-b64446648b61085715908b2769bbdfee7b2c84e4.tar.bz2 android-node-v8-b64446648b61085715908b2769bbdfee7b2c84e4.zip |
crypto: add oaepLabel option
The label acts as the "L" input to the RSA-OAEP algorithm.
PR-URL: https://github.com/nodejs/node/pull/29489
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/crypto.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 137d6e0508..ca2e02d190 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2383,6 +2383,9 @@ An array of supported digest functions can be retrieved using <!-- YAML added: v0.11.14 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/29489 + description: The `oaepLabel` option was added. - version: v12.9.0 pr-url: https://github.com/nodejs/node/pull/28335 description: The `oaepHash` option was added. @@ -2394,6 +2397,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 @@ -2467,6 +2472,9 @@ be passed instead of a public key. <!-- YAML added: v0.11.14 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/29489 + description: The `oaepLabel` option was added. - version: v12.9.0 pr-url: https://github.com/nodejs/node/pull/28335 description: The `oaepHash` option was added. @@ -2477,6 +2485,8 @@ changes: * `key` {Object | string | Buffer | KeyObject} - `key` {string | Buffer | KeyObject} A PEM encoded public or private key. + - `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP + padding. If not specified, no label is used. - `oaepHash` {string} The hash function to use for OAEP padding. **Default:** `'sha1'` - `passphrase` {string | Buffer} An optional passphrase for the private key. |