Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! doc: clarify DiffieHellmanGroup class docs
  • Loading branch information
Linkgoron committed Apr 29, 2021
commit 5473d419ede8c1d06eb2e9306cb5f255940994e7
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. In other words, it does not implement `setPublicKey()`
or `setPrivateKey()` methods.

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