Skip to content

Commit ed01811

Browse files
committed
benchmark: increase crypto DSA keygen params
OpenSSL 3.0 increased the minimum values for these parameters. PR-URL: #40416Fixes: #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>
1 parent 7624917 commit ed01811

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎benchmark/crypto/keygen.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const methods = {
4343
bench.start();
4444
for(leti=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(leti=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)