summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2021-10-11 19:26:49 -0400
committerBrian White <mscdex@mscdex.net>2021-10-16 06:03:10 -0400
commited01811e71fc955729448d4d22ec6720fe3f8633 (patch)
treed0b00a2cc201b5c74fb0703cd7f8e7ba325ac943
parent76249170691b8bf08e5cd81a13f123f3586525d0 (diff)
downloadnode-new-ed01811e71fc955729448d4d22ec6720fe3f8633.tar.gz
benchmark: increase crypto DSA keygen params
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 <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
-rw-r--r--benchmark/crypto/keygen.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/crypto/keygen.js b/benchmark/crypto/keygen.js
index e055a02cd2..373be24c80 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);
},
};