@@ -9,7 +9,7 @@ const keyFixtures = {
9
9
publicKey : fs . readFileSync ( `${ fixtures_keydir } /ec_p256_public.pem` )
10
10
. toString ( ) ,
11
11
privateKey : fs . readFileSync ( `${ fixtures_keydir } /ec_p256_private.pem` )
12
- . toString ( )
12
+ . toString ( ) ,
13
13
} ;
14
14
15
15
const data = crypto . randomBytes ( 256 ) ;
@@ -20,7 +20,7 @@ let keyObjects;
20
20
function getKeyObject ( { privateKey, publicKey } ) {
21
21
return {
22
22
privateKey : crypto . createPrivateKey ( privateKey ) ,
23
- publicKey : crypto . createPublicKey ( publicKey )
23
+ publicKey : crypto . createPublicKey ( publicKey ) ,
24
24
} ;
25
25
}
26
26
@@ -60,15 +60,15 @@ function measureAsyncSerial(n, privateKey, publicKey, keys) {
60
60
data ,
61
61
{
62
62
key : privateKey || keys [ n - remaining ] . privateKey ,
63
- dsaEncoding : 'ieee-p1363'
63
+ dsaEncoding : 'ieee-p1363' ,
64
64
} ,
65
65
( err , signature ) => {
66
66
crypto . verify (
67
67
'sha256' ,
68
68
data ,
69
69
{
70
70
key : publicKey || keys [ n - remaining ] . publicKey ,
71
- dsaEncoding : 'ieee-p1363'
71
+ dsaEncoding : 'ieee-p1363' ,
72
72
} ,
73
73
signature ,
74
74
done ) ;
@@ -104,7 +104,7 @@ function measureAsyncParallel(n, privateKey, publicKey, keys) {
104
104
function main ( { n, mode, keyFormat } ) {
105
105
pems ||= [ ...Buffer . alloc ( n ) ] . map ( ( ) => ( {
106
106
privateKey : keyFixtures . privateKey ,
107
- publicKey : keyFixtures . publicKey
107
+ publicKey : keyFixtures . publicKey ,
108
108
} ) ) ;
109
109
keyObjects ||= pems . map ( getKeyObject ) ;
110
110
0 commit comments