| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2c566a9 commit 9f77692
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5399,21 +5399,6 @@ and returned `'latin1'` encoded strings by default rather than `Buffer`s. This | |||
| 5399 | 5399 | default was changed after Node.js v0.8 to use [`Buffer`][] objects by default | |
| 5400 | 5400 | instead. | |
| 5401 | 5401 | ||
| 5402 | - ### Recent ECDH changes | ||
| 5403 | - | ||
| 5404 | - Usage of `ECDH` with non-dynamically generated key pairs has been simplified. | ||
| 5405 | - Now, [`ecdh.setPrivateKey()`][] can be called with a preselected private key | ||
| 5406 | - and the associated public point (key) will be computed and stored in the object. | ||
| 5407 | - This allows code to only store and provide the private part of the EC key pair. | ||
| 5408 | - [`ecdh.setPrivateKey()`][] now also validates that the private key is valid for | ||
| 5409 | - the selected curve. | ||
| 5410 | - | ||
| 5411 | - The [`ecdh.setPublicKey()`][] method is now deprecated as its inclusion in the | ||
| 5412 | - API is not useful. Either a previously stored private key should be set, which | ||
| 5413 | - automatically generates the associated public key, or [`ecdh.generateKeys()`][] | ||
| 5414 | - should be called. The main drawback of using [`ecdh.setPublicKey()`][] is that | ||
| 5415 | - it can be used to put the ECDH key pair into an inconsistent state. | ||
| 5416 | - | ||
| 5417 | 5402 | ### Support for weak or compromised algorithms | |
| 5418 | 5403 | ||
| 5419 | 5404 | The `crypto` module still supports some algorithms which are already | |
@@ -5956,7 +5941,6 @@ See the [list of SSL OP Flags][] for details. | |||
| 5956 | 5941 | [`diffieHellman.setPublicKey()`]: #diffiehellmansetpublickeypublickey-encoding | |
| 5957 | 5942 | [`ecdh.generateKeys()`]: #ecdhgeneratekeysencoding-format | |
| 5958 | 5943 | [`ecdh.setPrivateKey()`]: #ecdhsetprivatekeyprivatekey-encoding | |
| 5959 | - [`ecdh.setPublicKey()`]: #ecdhsetpublickeypublickey-encoding | ||
| 5960 | 5944 | [`hash.digest()`]: #hashdigestencoding | |
| 5961 | 5945 | [`hash.update()`]: #hashupdatedata-inputencoding | |
| 5962 | 5946 | [`hmac.digest()`]: #hmacdigestencoding | |
| Back | FazBrowse Home | New Git URL |
0 commit comments