From 996bc6e840aac137772083808ccaa51e2fbfba21 Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 11 Oct 2021 19:26:49 -0400 Subject: [PATCH] benchmark: increase crypto DSA keygen params MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OpenSSL 3.0 increased the minimum values for these parameters. PR-URL: https://github.com/nodejs/node/pull/40416 Fixes: https://github.com/nodejs/node/issues/40410 Reviewed-By: Luigi Pinca Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: Richard Lau Reviewed-By: Zijian Liu --- benchmark/crypto/keygen.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/crypto/keygen.js b/benchmark/crypto/keygen.js index e055a02cd2b116..373be24c80e5ab 100644 --- a/benchmark/crypto/keygen.js +++ b/benchmark/crypto/keygen.js @@ -43,8 +43,8 @@ const methods = { bench.start(); for (let i = 0; i < n; ++i) { generateKeyPairSync('dsa', { - modulusLength: 512, - divisorLength: 256, + modulusLength: 1024, + divisorLength: 160, }); } bench.end(n); @@ -60,8 +60,8 @@ const methods = { bench.start(); for (let i = 0; i < n; ++i) generateKeyPair('dsa', { - modulusLength: 512, - divisorLength: 256, + modulusLength: 1024, + divisorLength: 160, }, done); }, };