Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91e7c14

Browse filesBrowse 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 <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent 17a48f1 commit 91e7c14
Copy full SHA for 91e7c14

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+1-2Lines changed: 1 addition & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.