Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2021-10-12 02:26:49 +0300
committerMichaël Zasso <targos@protonmail.com>2021-11-04 13:23:13 +0300
commit996bc6e840aac137772083808ccaa51e2fbfba21 (patch)
tree0769fe9f3c5faed88e34bacd08c244a28583f112 /benchmark
parent04c2cbecb9283c41556e316c9919c1c2f07546c7 (diff)
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>
Diffstat (limited to 'benchmark')
-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 e055a02cd2b..373be24c80e 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);
},
};