Skip to content
Browse files

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: nodejs/node-v0.x-archive#7086
Refs: #21782

PR-URL: #31121
Reviewed-By: James M Snell <>
Reviewed-By: Rich Trott <>
Reviewed-By: Sam Roberts <>
  • Loading branch information
tniessen authored and Trott committed Dec 28, 2019
1 parent 8a96d05 commit 689fdd6422759d6670f927497fcb37fa2289420f
Showing with 1 addition and 2 deletions.
  1. +1 −2 doc/api/
@@ -1855,8 +1855,7 @@ added: v0.5.0

* `primeLength` {number}
* `generator` {number | string | Buffer | TypedArray | DataView} **Default:**
* `generator` {number} **Default:** `2`
* Returns: {DiffieHellman}

Creates a `DiffieHellman` key exchange object and generates a prime of

0 comments on commit 689fdd6

Please sign in to comment.
You can’t perform that action at this time.