From 2d9d59f427dd409db1b5d892376d3454ca01cdca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 28 Dec 2019 16:27:56 +0100 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Sam Roberts --- doc/api/crypto.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index b5702c5dd8245c..36163a2f279005 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