Skip to content

Commit 91e7c14

Browse files
tniessentargos
authored andcommitted
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 <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Sam Roberts <[email protected]>
1 parent 17a48f1 commit 91e7c14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/crypto.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1855,8 +1855,7 @@ added: v0.5.0
18551855
-->
18561856

18571857
* `primeLength` {number}
1858-
* `generator` {number | string | Buffer | TypedArray | DataView} **Default:**
1859-
`2`
1858+
* `generator` {number} **Default:** `2`
18601859
* Returns: {DiffieHellman}
18611860

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

0 commit comments

Comments
 (0)