Skip to content

Commit a049860

Browse files
exoegoBridgeAR
exoego
authored andcommitted
doc: fix return type for crypto.createDiffieHellmanGroup()
PR-URL: #29696 Reviewed-By: Rich Trott <[email protected]>
1 parent a00cd17 commit a049860

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/api/crypto.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ added: v0.9.3
18241824
-->
18251825

18261826
* `name` {string}
1827-
* Returns: {DiffieHellman}
1827+
* Returns: {DiffieHellmanGroup}
18281828

18291829
An alias for [`crypto.getDiffieHellman()`][]
18301830

@@ -2194,9 +2194,9 @@ added: v0.7.5
21942194
-->
21952195

21962196
* `groupName` {string}
2197-
* Returns: {DiffieHellman}
2197+
* Returns: {DiffieHellmanGroup}
21982198

2199-
Creates a predefined `DiffieHellman` key exchange object. The
2199+
Creates a predefined `DiffieHellmanGroup` key exchange object. The
22002200
supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in
22012201
[RFC 2412][], but see [Caveats][]) and `'modp14'`, `'modp15'`,
22022202
`'modp16'`, `'modp17'`, `'modp18'` (defined in [RFC 3526][]). The

tools/doc/type-parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const customTypesMap = {
5252
'Cipher': 'crypto.html#crypto_class_cipher',
5353
'Decipher': 'crypto.html#crypto_class_decipher',
5454
'DiffieHellman': 'crypto.html#crypto_class_diffiehellman',
55+
'DiffieHellmanGroup': 'crypto.html#crypto_class_diffiehellmangroup',
5556
'ECDH': 'crypto.html#crypto_class_ecdh',
5657
'Hash': 'crypto.html#crypto_class_hash',
5758
'Hmac': 'crypto.html#crypto_class_hmac',

0 commit comments

Comments
 (0)