GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — crypto: skip DH checks for recognized groups by panva · Pull Request #67071 · nodejs/node Conversation
Member
Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: #67067
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsExplicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: nodejs#67067 Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67071 +/- ## ========================================== - Coverage 92.97% 90.67% -2.30% ========================================== Files 428 797 +369 Lines 195284 278320 +83036 Branches 30205 53528 +23323 ========================================== + Hits 181560 252370 +70810 - Misses 13397 16328 +2931 - Partials 327 9622 +9295 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 3b209b2 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@panva do you know in which Node 26 version this will land? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The fix will be included in future 24.x and 26.x releases, following the usual release policy (at least two weeks in a current or alpha release first). Inclusion in any immediate next release is not guaranteed, as potential security releases follow a separate process. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: #67067 Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: #67071 Reviewed-By: Yagiz Nizipli <[email protected]>
Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: #67067 Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: #67071 Backport-PR-URL: #67442 Reviewed-By: Antoine du Hamel <[email protected]>
Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: #67067 Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: #67071 Backport-PR-URL: #67442 Reviewed-By: Antoine du Hamel <[email protected]>
Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: nodejs#67067 Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: nodejs#67071 Backport-PR-URL: nodejs#67442 Reviewed-By: Antoine du Hamel <[email protected]>
Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups. Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API. Fixes: nodejs#67067 Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Codex PR-URL: nodejs#67071 Reviewed-By: Yagiz Nizipli <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
crypto: createDiffieHellman(prime, generator) blocks for seconds with standard MODP primes (regression since 24.20.0 and 26.6.0)
There was an error while loading. Please reload this page.