Skip to content

Commit 478e360

Browse files
committed
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. Refs: nodejs#23430
1 parent 05394d2 commit 478e360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-keygen.js

Lines changed: 1 addition & 1 deletion
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)