@@ -9,7 +9,7 @@ const keyFixtures = {
99 publicKey : fs . readFileSync ( `${ fixtures_keydir } /ec_p256_public.pem` )
1010 . toString ( ) ,
1111 privateKey : fs . readFileSync ( `${ fixtures_keydir } /ec_p256_private.pem` )
12- . toString ( )
12+ . toString ( ) ,
1313} ;
1414
1515const data = crypto . randomBytes ( 256 ) ;
@@ -20,7 +20,7 @@ let keyObjects;
2020function getKeyObject ( { privateKey, publicKey } ) {
2121 return {
2222 privateKey : crypto . createPrivateKey ( privateKey ) ,
23- publicKey : crypto . createPublicKey ( publicKey )
23+ publicKey : crypto . createPublicKey ( publicKey ) ,
2424 } ;
2525}
2626
@@ -60,15 +60,15 @@ function measureAsyncSerial(n, privateKey, publicKey, keys) {
6060 data ,
6161 {
6262 key : privateKey || keys [ n - remaining ] . privateKey ,
63- dsaEncoding : 'ieee-p1363'
63+ dsaEncoding : 'ieee-p1363' ,
6464 } ,
6565 ( err , signature ) => {
6666 crypto . verify (
6767 'sha256' ,
6868 data ,
6969 {
7070 key : publicKey || keys [ n - remaining ] . publicKey ,
71- dsaEncoding : 'ieee-p1363'
71+ dsaEncoding : 'ieee-p1363' ,
7272 } ,
7373 signature ,
7474 done ) ;
@@ -104,7 +104,7 @@ function measureAsyncParallel(n, privateKey, publicKey, keys) {
104104function main ( { n, mode, keyFormat } ) {
105105 pems ||= [ ...Buffer . alloc ( n ) ] . map ( ( ) => ( {
106106 privateKey : keyFixtures . privateKey ,
107- publicKey : keyFixtures . publicKey
107+ publicKey : keyFixtures . publicKey ,
108108 } ) ) ;
109109 keyObjects ||= pems . map ( getKeyObject ) ;
110110
0 commit comments