Skip to content
Permalink
Browse files

doc: fix return type for crypto.createDiffieHellmanGroup()

PR-URL: #29696
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information...
exoego authored and Trott committed Sep 24, 2019
1 parent d742535 commit 03b7a5a4bf50672d7a2ebc87fd8a78f45f891df2
Showing with 4 additions and 3 deletions.
  1. +3 −3 doc/api/crypto.md
  2. +1 −0 tools/doc/type-parser.js
@@ -1824,7 +1824,7 @@ added: v0.9.3
-->

* `name` {string}
* Returns: {DiffieHellman}
* Returns: {DiffieHellmanGroup}

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

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

* `groupName` {string}
* Returns: {DiffieHellman}
* Returns: {DiffieHellmanGroup}

Creates a predefined `DiffieHellman` key exchange object. The
Creates a predefined `DiffieHellmanGroup` key exchange object. The
supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in
[RFC 2412][], but see [Caveats][]) and `'modp14'`, `'modp15'`,
`'modp16'`, `'modp17'`, `'modp18'` (defined in [RFC 3526][]). The
@@ -52,6 +52,7 @@ const customTypesMap = {
'Cipher': 'crypto.html#crypto_class_cipher',
'Decipher': 'crypto.html#crypto_class_decipher',
'DiffieHellman': 'crypto.html#crypto_class_diffiehellman',
'DiffieHellmanGroup': 'crypto.html#crypto_class_diffiehellmangroup',
'ECDH': 'crypto.html#crypto_class_ecdh',
'Hash': 'crypto.html#crypto_class_hash',
'Hmac': 'crypto.html#crypto_class_hmac',

0 comments on commit 03b7a5a

Please sign in to comment.
You can’t perform that action at this time.