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". The documented behavior is very different from the actual behavior, and this difference could easily lead to security issues in applications that use these APIs as the DiffieHellman may be used as the basis for application-level security, implications are consequently broad.
{ "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "0.10.25~dfsg2-2ubuntu1.2+esm2", "binary_name": "nodejs" }, { "binary_version": "0.10.25~dfsg2-2ubuntu1.2+esm2", "binary_name": "nodejs-dbg" }, { "binary_version": "0.10.25~dfsg2-2ubuntu1.2+esm2", "binary_name": "nodejs-dbgsym" }, { "binary_version": "0.10.25~dfsg2-2ubuntu1.2+esm2", "binary_name": "nodejs-dev" }, { "binary_version": "0.10.25~dfsg2-2ubuntu1.2+esm2", "binary_name": "nodejs-dev-dbgsym" }, { "binary_version": "0.10.25~dfsg2-2ubuntu1.2+esm2", "binary_name": "nodejs-legacy" } ] }
{ "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "4.2.6~dfsg-1ubuntu4.2+esm3", "binary_name": "nodejs" }, { "binary_version": "4.2.6~dfsg-1ubuntu4.2+esm3", "binary_name": "nodejs-dbg" }, { "binary_version": "4.2.6~dfsg-1ubuntu4.2+esm3", "binary_name": "nodejs-dbgsym" }, { "binary_version": "4.2.6~dfsg-1ubuntu4.2+esm3", "binary_name": "nodejs-dev" }, { "binary_version": "4.2.6~dfsg-1ubuntu4.2+esm3", "binary_name": "nodejs-dev-dbgsym" }, { "binary_version": "4.2.6~dfsg-1ubuntu4.2+esm3", "binary_name": "nodejs-legacy" } ] }
{ "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "8.10.0~dfsg-2ubuntu0.4+esm5", "binary_name": "nodejs" }, { "binary_version": "8.10.0~dfsg-2ubuntu0.4+esm5", "binary_name": "nodejs-dbgsym" }, { "binary_version": "8.10.0~dfsg-2ubuntu0.4+esm5", "binary_name": "nodejs-dev" }, { "binary_version": "8.10.0~dfsg-2ubuntu0.4+esm5", "binary_name": "nodejs-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "10.19.0~dfsg-3ubuntu1.6", "binary_name": "libnode-dev" }, { "binary_version": "10.19.0~dfsg-3ubuntu1.6", "binary_name": "libnode64" }, { "binary_version": "10.19.0~dfsg-3ubuntu1.6", "binary_name": "libnode64-dbgsym" }, { "binary_version": "10.19.0~dfsg-3ubuntu1.6", "binary_name": "nodejs" }, { "binary_version": "10.19.0~dfsg-3ubuntu1.6", "binary_name": "nodejs-dbgsym" }, { "binary_version": "10.19.0~dfsg-3ubuntu1.6", "binary_name": "nodejs-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "12.22.9~dfsg-1ubuntu3.5", "binary_name": "libnode-dev" }, { "binary_version": "12.22.9~dfsg-1ubuntu3.5", "binary_name": "libnode72" }, { "binary_version": "12.22.9~dfsg-1ubuntu3.5", "binary_name": "libnode72-dbgsym" }, { "binary_version": "12.22.9~dfsg-1ubuntu3.5", "binary_name": "nodejs" }, { "binary_version": "12.22.9~dfsg-1ubuntu3.5", "binary_name": "nodejs-dbgsym" }, { "binary_version": "12.22.9~dfsg-1ubuntu3.5", "binary_name": "nodejs-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "18.19.1+dfsg-2ubuntu4", "binary_name": "libnode-dev" }, { "binary_version": "18.19.1+dfsg-2ubuntu4", "binary_name": "libnode108" }, { "binary_version": "18.19.1+dfsg-2ubuntu4", "binary_name": "libnode108-dbgsym" }, { "binary_version": "18.19.1+dfsg-2ubuntu4", "binary_name": "nodejs" }, { "binary_version": "18.19.1+dfsg-2ubuntu4", "binary_name": "nodejs-dbgsym" }, { "binary_version": "18.19.1+dfsg-2ubuntu4", "binary_name": "nodejs-doc" } ] }