From 79be83dde9aec5830226a07bba15dc430d035980 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/23732 Refs: https://github.com/nodejs/node/pull/23430 Reviewed-By: Sam Roberts Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Tobias Nießen --- 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',