From 282d1e16c0d54f0a87c082db42afcd0a73717d2f 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 OpenSSL 3.0 increased the minimum values for these parameters. Fixes: https://github.com/nodejs/node/issues/40410 --- 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); }, };