GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: list supported MODP groups explicitly · nodejs/node@bf9bcef

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • crypto.md
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.