Skip to content

Commit 1521d89

Browse files
AdamMajertargos
authored andcommitted
test: fix invalid modulesLength for DSA keygen
During key generation, the default dsa_builtin_paramgen will reset modulusLength to 512. But in dsa_builtin_paramgen2 this does not happen, leading to lockup in FIPS mode. PR-URL: #23732 Refs: #23430 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent a6fe2ca commit 1521d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-keygen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function convertDERToPEM(label, der) {
182182
{
183183
// Test async DSA key generation.
184184
generateKeyPair('dsa', {
185-
modulusLength: 256,
185+
modulusLength: 512,
186186
divisorLength: 256,
187187
publicKeyEncoding: {
188188
type: 'spki',

0 commit comments

Comments
 (0)