From 478e360c550df5472364229bbb2bc11ea1be3210 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 18 Oct 2018 15:49:20 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/23430 --- test/parallel/test-crypto-keygen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-keygen.js b/test/parallel/test-crypto-keygen.js index 896deaf90b1bda..072f69565af98e 100644 --- a/test/parallel/test-crypto-keygen.js +++ b/test/parallel/test-crypto-keygen.js @@ -182,7 +182,7 @@ function convertDERToPEM(label, der) { { // Test async DSA key generation. generateKeyPair('dsa', { - modulusLength: 256, + modulusLength: 512, divisorLength: 256, publicKeyEncoding: { type: 'spki',