Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: crypto.createDiffieHellmanGroup() not documented #28523

Closed
bnoordhuis opened this issue Jul 3, 2019 · 6 comments
Closed

doc: crypto.createDiffieHellmanGroup() not documented #28523

bnoordhuis opened this issue Jul 3, 2019 · 6 comments
Labels
crypto Issues and PRs related to the crypto subsystem. doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors.

Comments

@bnoordhuis
Copy link
Member

bnoordhuis commented Jul 3, 2019

See title. Class DiffieHellmanGroup isn't documented either.

Usage:

const name = 'modp1';
const dh = crypto.createDiffieHellmanGroup(name);

It takes a well-known modp group as its argument but otherwise works the same as DiffieHellman.

name is taken from RFC 2412 (modp1 and 2) and RFC 3526:

$ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
modp1  #  768 bits
modp2  # 1024 bits
modp5  # 1536 bits
modp14 # 2048 bits
modp15 # etc.
modp16
modp17
modp18
@bnoordhuis bnoordhuis added crypto Issues and PRs related to the crypto subsystem. doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors. labels Jul 3, 2019
@someone-1
Copy link

Hi
is this issue fixed ?
can i take it up ?

@bnoordhuis
Copy link
Member Author

@someone-1 You're welcome to take it.

@someone-1
Copy link

hi @bnoordhuis

in the file crypto.js
module.exports = {
getDiffieHellman: createDiffieHellmanGroup,
createDiffieHellmanGroup,
}
i think there is 2 things exported with different name.
and documentation for getDiffieHellman is already present in

getDiffieHellman in crypto.js
createDiffieHellmanGroup in crypto.js

could you suggest me how to proceed ?

Thank you

@bnoordhuis
Copy link
Member Author

Oh, that's a good point. You could add a section explaining it's an alias and link to crypto.getDiffieHellman().

Important to note that crypto.createDiffieHellmanGroup() was added in v0.9.3. (Class DiffieHellmanGroup was added in v0.7.5 though.)

@joe9111 joe9111 mentioned this issue Jul 7, 2019
2 tasks
@joe9111
Copy link

joe9111 commented Jul 7, 2019

Hi, I am working on this as well!

@olingern
Copy link

olingern commented Jul 24, 2019

I believe @Trott merged #28585 in 11c52d9 so it looks like this can be closed

@Trott Trott closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Issues and PRs related to the crypto subsystem. doc Issues and PRs related to the documentations. good first issue Issues that are suitable for first-time contributors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants