mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
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>
This commit is contained in:
parent
7624917069
commit
ed01811e71
1 changed files with 4 additions and 4 deletions
|
@ -43,8 +43,8 @@ const methods = {
|
||||||
bench.start();
|
bench.start();
|
||||||
for (let i = 0; i < n; ++i) {
|
for (let i = 0; i < n; ++i) {
|
||||||
generateKeyPairSync('dsa', {
|
generateKeyPairSync('dsa', {
|
||||||
modulusLength: 512,
|
modulusLength: 1024,
|
||||||
divisorLength: 256,
|
divisorLength: 160,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
bench.end(n);
|
bench.end(n);
|
||||||
|
@ -60,8 +60,8 @@ const methods = {
|
||||||
bench.start();
|
bench.start();
|
||||||
for (let i = 0; i < n; ++i)
|
for (let i = 0; i < n; ++i)
|
||||||
generateKeyPair('dsa', {
|
generateKeyPair('dsa', {
|
||||||
modulusLength: 512,
|
modulusLength: 1024,
|
||||||
divisorLength: 256,
|
divisorLength: 160,
|
||||||
}, done);
|
}, done);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue