Skip to content

Commit

Permalink
fixup! doc: clarify DiffieHellmanGroup class docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkgoron committed Apr 24, 2021
1 parent 13c55c3 commit cb595b7
Showing 1 changed file with 3 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 @@ -1115,9 +1115,9 @@ added: v0.7.5
-->

The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
Works the same as `DiffieHellman`, except that it does not allow changing its
keys after creation - i.e. does not implement `setPublicKey` or `setPrivateKey`
methods.
It Works the same as `DiffieHellman`, except that it does not allow changing
its keys after creation - i.e. it does not implement `setPublicKey` or
`setPrivateKey` methods.

```mjs
const { createDiffieHellmanGroup } = await import('crypto');
Expand Down

0 comments on commit cb595b7

Please sign in to comment.