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 374b776

Browse filesBrowse files
tniessenruyadorno
authored andcommitted
doc: list supported MODP groups explicitly
Instead of referring users to perl to find information about supported MODP groups in crypto_groups.h, explicitly list the groups with their respective strengths and with references to the defining RFC sections. Refs: #43896 PR-URL: #43986 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 4603977 commit 374b776
Copy full SHA for 374b776

File tree

Expand file treeCollapse file tree

1 file changed

+11
-14
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-14
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+11-14Lines changed: 11 additions & 14 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1181,20 +1181,16 @@ const { createDiffieHellmanGroup } = require('node:crypto');
11811181
const dh = createDiffieHellmanGroup('modp1');
11821182
```
11831183

1184-
The name (e.g. `'modp1'`) is taken from [RFC 2412][] (modp1 and 2) and
1185-
[RFC 3526][]:
1186-
1187-
```console
1188-
$ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
1189-
modp1 # 768 bits
1190-
modp2 # 1024 bits
1191-
modp5 # 1536 bits
1192-
modp14 # 2048 bits
1193-
modp15 # etc.
1194-
modp16
1195-
modp17
1196-
modp18
1197-
```
1184+
The following groups are supported:
1185+
1186+
* `'modp1'` (768 bits, [RFC 2409][] Section 6.1)
1187+
* `'modp2'` (1024 bits, [RFC 2409][] Section 6.2)
1188+
* `'modp5'` (1536 bits, [RFC 3526][] Section 2)
1189+
* `'modp14'` (2048 bits, [RFC 3526][] Section 3)
1190+
* `'modp15'` (3072 bits, [RFC 3526][] Section 4)
1191+
* `'modp16'` (4096 bits, [RFC 3526][] Section 5)
1192+
* `'modp17'` (6144 bits, [RFC 3526][] Section 6)
1193+
* `'modp18'` (8192 bits, [RFC 3526][] Section 7)
11981194

11991195
## Class: `ECDH`
12001196

@@ -6099,6 +6095,7 @@ See the [list of SSL OP Flags][] for details.
60996095
[Nonce-Disrespecting Adversaries]: https://github.com/nonce-disrespect/nonce-disrespect
61006096
[OpenSSL's SPKAC implementation]: https://www.openssl.org/docs/man1.1.0/apps/openssl-spkac.html
61016097
[RFC 1421]: https://www.rfc-editor.org/rfc/rfc1421.txt
6098+
[RFC 2409]: https://www.rfc-editor.org/rfc/rfc2409.txt
61026099
[RFC 2412]: https://www.rfc-editor.org/rfc/rfc2412.txt
61036100
[RFC 2818]: https://www.rfc-editor.org/rfc/rfc2818.txt
61046101
[RFC 3526]: https://www.rfc-editor.org/rfc/rfc3526.txt

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.