| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ef7ffce commit 9a3a190
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1393,8 +1393,10 @@ If `encoding` is provided a string is returned; otherwise a | |||
| 1393 | 1393 | [`Buffer`][] is returned. | |
| 1394 | 1394 | ||
| 1395 | 1395 | This function is a thin wrapper around [`DH_generate_key()`][]. In particular, | |
| 1396 | - once a private key has been generated or set, calling this function only updates | ||
| 1397 | - the public key but does not generate a new private key. | ||
| 1396 | + once a private key has been generated or set, calling this function only | ||
| 1397 | + recomputes the public key from the existing private key. Since the public key is | ||
| 1398 | + determined by the private key, the result will be the same unless the private key | ||
| 1399 | + has been changed via [`diffieHellman.setPrivateKey()`][]. | ||
| 1398 | 1400 | ||
| 1399 | 1401 | ### `diffieHellman.getGenerator([encoding])` | |
| 1400 | 1402 | ||
@@ -6907,6 +6909,7 @@ See the [list of SSL OP Flags][] for details. | |||
| 6907 | 6909 | [`decipher.final()`]: #decipherfinaloutputencoding | |
| 6908 | 6910 | [`decipher.update()`]: #decipherupdatedata-inputencoding-outputencoding | |
| 6909 | 6911 | [`diffieHellman.generateKeys()`]: #diffiehellmangeneratekeysencoding | |
| 6912 | + [`diffieHellman.setPrivateKey()`]: #diffiehellmansetprivatekeyprivatekey-encoding | ||
| 6910 | 6913 | [`diffieHellman.setPublicKey()`]: #diffiehellmansetpublickeypublickey-encoding | |
| 6911 | 6914 | [`ecdh.generateKeys()`]: #ecdhgeneratekeysencoding-format | |
| 6912 | 6915 | [`ecdh.setPrivateKey()`]: #ecdhsetprivatekeyprivatekey-encoding | |
| Back | FazBrowse Home | New Git URL |
0 commit comments