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 29, 2021
1 parent 13c55c3 commit 5473d41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/crypto.md
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. In other words, it does not implement `setPublicKey()`
or `setPrivateKey()` methods.

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

0 comments on commit 5473d41

Please sign in to comment.