Skip to content

Commit

Permalink
doc: fix return type for crypto.createDiffieHellmanGroup()
Browse files Browse the repository at this point in the history
PR-URL: #29696
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
exoego authored and BridgeAR committed Oct 9, 2019
1 parent a00cd17 commit a049860
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ added: v0.9.3
-->

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

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

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tools/doc/type-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a049860

Please sign in to comment.