The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys,…
NodeJS Node
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| NodeJS Node |
| No fix yet |
Original description
The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPrivateKey(). However, the documentation says this API call: "Generates private and public Diffie-Hellman key values".