Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2019-12-28 18:27:56 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2020-01-03 18:22:05 +0300
commit18b34def414e331a822d183395561ee75b34695e (patch)
tree5883f1029b21cb4c8379d4e2e418765e165c8e04 /doc
parentbd047e827719805a709f62bddcf627634ef64440 (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')
-rw-r--r--doc/api/crypto.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md
index ae6e51ef13a..bfe0c8bc6ac 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