Skip to content

Commit 996bc6e

Browse files
mscdextargos
authored andcommitted
benchmark: increase crypto DSA keygen params
OpenSSL 3.0 increased the minimum values for these parameters. PR-URL: #40416 Fixes: #40410 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Zijian Liu <[email protected]>
1 parent 04c2cbe commit 996bc6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmark/crypto/keygen.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const methods = {
4343
bench.start();
4444
for (let i = 0; i < n; ++i) {
4545
generateKeyPairSync('dsa', {
46-
modulusLength: 512,
47-
divisorLength: 256,
46+
modulusLength: 1024,
47+
divisorLength: 160,
4848
});
4949
}
5050
bench.end(n);
@@ -60,8 +60,8 @@ const methods = {
6060
bench.start();
6161
for (let i = 0; i < n; ++i)
6262
generateKeyPair('dsa', {
63-
modulusLength: 512,
64-
divisorLength: 256,
63+
modulusLength: 1024,
64+
divisorLength: 160,
6565
}, done);
6666
},
6767
};

0 commit comments

Comments
 (0)