mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: clarify DiffieHellmanGroup class docs
Make it clearer in the docs that DiffieHellmanGroup does not support changing the keys after creation. PR-URL: https://github.com/nodejs/node/pull/38363 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Adrian Estrada <edsadr@gmail.com>
This commit is contained in:
1 parent
c0f0c9a92d
commit
ae9128ec61
1 file changed
+4
-2
+4
-2
@@ -1114,8 +1114,10 @@ module):
|
||||
added: v0.7.5
|
||||
-->
|
||||
|
||||
The `DiffieHellmanGroup` class takes a well-known modp group as its argument but
|
||||
otherwise works the same as `DiffieHellman`.
|
||||
The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
|
||||
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');
|
||||
|
||||
Reference in new issue
Block a user