Title: Uninitialized DH computeSecret should throw instead of returning empty buffers · Issue #63674 · nodejs/node · GitHub
Open Graph Title: Uninitialized DH computeSecret should throw instead of returning empty buffers · Issue #63674 · nodejs/node
X Title: Uninitialized DH computeSecret should throw instead of returning empty buffers · Issue #63674 · nodejs/node
Description: When a DH instance does not have a private key initialized, it just happily returns empty buffers for all public keys. That is a footgun and needs to be fixed (turned into a throw). Welcome to Node.js v26.2.0. Type ".help" for more infor...
Open Graph Description: When a DH instance does not have a private key initialized, it just happily returns empty buffers for all public keys. That is a footgun and needs to be fixed (turned into a throw). Welcome to Node...
X Description: When a DH instance does not have a private key initialized, it just happily returns empty buffers for all public keys. That is a footgun and needs to be fixed (turned into a throw). Welcome to Node...
Opengraph URL: https://github.com/nodejs/node/issues/63674
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uninitialized DH computeSecret should throw instead of returning empty buffers","articleBody":"When a DH instance does not have a private key initialized, it just happily returns empty buffers for all public keys.\n\nThat is a footgun and needs to be fixed (turned into a throw).\n\n```js\nWelcome to Node.js v26.2.0.\nType \".help\" for more information.\n\u003e require('crypto').createDiffieHellman(512).computeSecret(Buffer.alloc(64,1))\n\u003cBuffer \u003e\n```\n\nSee also #62838 ","author":{"url":"https://github.com/ChALkeR","@type":"Person","name":"ChALkeR"},"datePublished":"2026-05-31T06:32:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/63674/node/issues/63674"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7165b6dd-6944-dd59-4963-7214c6d4d296 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0CC:2C9E7F:A1A571:D9930A:6A4D4091 |
| html-safe-nonce | 5cf1cafb85195dca1f286cef96890f12471a61dff22ca21ea824243b8f0fd342 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMENDOjJDOUU3RjpBMUE1NzE6RDk5MzBBOjZBNEQ0MDkxIiwidmlzaXRvcl9pZCI6Ijg3OTYzNzE3MDI5NDQ0NDg2NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e25d0523cdbb1b3c3f81e3dddb06f2c3254ec90b0c8f1dff7271f1c091d985f0 |
| hovercard-subject-tag | issue:4556783467 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/63674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af8e74fa8dbe830c2713457c87e735f8afee244fcd04cd3a18306daf64a3dbdb/nodejs/node/issues/63674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af8e74fa8dbe830c2713457c87e735f8afee244fcd04cd3a18306daf64a3dbdb/nodejs/node/issues/63674 |
| og:image:alt | When a DH instance does not have a private key initialized, it just happily returns empty buffers for all public keys. That is a footgun and needs to be fixed (turned into a throw). Welcome to Node... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChALkeR |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width