diff options
author | Tobias Nießen <tniessen@tnie.de> | 2019-12-28 18:27:56 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-12-30 19:16:10 +0300 |
commit | 689fdd6422759d6670f927497fcb37fa2289420f (patch) | |
tree | a61c04f91e4b1a0bed0b8fad7e370319da32b62b /doc/api/crypto.md | |
parent | 8a96d05ec7f0c9ef5b8a47ae0a6eac45b475320d (diff) |
doc: fix createDiffieHellman generator type
OpenSSL does not provide a straight-forward way to implement a
non-integer generator, so createDiffieHellman never supported anything
other than a number as the generator. (This only applies to the
signature where the first argument is the size of the prime, and
therefore a number.)
Refs: https://github.com/nodejs/node-v0.x-archive/pull/7086
Refs: https://github.com/nodejs/node/pull/21782
PR-URL: https://github.com/nodejs/node/pull/31121
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index a8a072dd0aa..c12b4a77f64 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1855,8 +1855,7 @@ added: v0.5.0 --> * `primeLength` {number} -* `generator` {number | string | Buffer | TypedArray | DataView} **Default:** - `2` +* `generator` {number} **Default:** `2` * Returns: {DiffieHellman} Creates a `DiffieHellman` key exchange object and generates a prime of |