@@ -5526,8 +5526,8 @@ void bench_sm4_gcm(void)
55265526
55275527exit :
55285528
5529- WC_FREE_VAR (bench_additional );
5530- WC_FREE_VAR (bench_tag );
5529+ WC_FREE_VAR (bench_additional , HEAP_HINT );
5530+ WC_FREE_VAR (bench_tag , HEAP_HINT );
55315531}
55325532#endif
55335533
@@ -10829,8 +10829,7 @@ void bench_sm2(int useDeviceID)
1082910829#endif
1083010830#if !defined(NO_ASN ) && defined(HAVE_ECC_SIGN )
1083110831#ifdef HAVE_ECC_VERIFY
10832- WC_DECLARE_ARRAY (verify , int , BENCH_MAX_PENDING ,
10833- sizeof (int ), HEAP_HINT );
10832+ int verify [BENCH_MAX_PENDING ];
1083410833#endif
1083510834#endif
1083610835 word32 x [BENCH_MAX_PENDING ];
@@ -10967,10 +10966,10 @@ void bench_sm2(int useDeviceID)
1096710966 for (i = 0 ; i < BENCH_MAX_PENDING ; i ++ ) {
1096810967 if (bench_async_check (& ret , BENCH_ASYNC_GET_DEV (genKey [i ]), 1 ,
1096910968 & times , agreeTimes , & pending )) {
10970- if (genKey [i ]. state == 0 )
10969+ if (genKey [i ]-> state == 0 )
1097110970 x [i ] = ECC_MAX_SIG_SIZE ;
1097210971 ret = wc_ecc_sm2_sign_hash (digest [i ], (word32 )keySize ,
10973- sig [i ], x [i ], & gRng , genKey [i ]);
10972+ sig [i ], & x [i ], & gRng , genKey [i ]);
1097410973 if (!bench_async_handle (& ret ,
1097510974 BENCH_ASYNC_GET_DEV (genKey [i ]), 1 , & times ,
1097610975 & pending )) {
@@ -11013,10 +11012,10 @@ void bench_sm2(int useDeviceID)
1101311012 for (i = 0 ; i < BENCH_MAX_PENDING ; i ++ ) {
1101411013 if (bench_async_check (& ret , BENCH_ASYNC_GET_DEV (genKey [i ]), 1 ,
1101511014 & times , agreeTimes , & pending )) {
11016- if (genKey [i ]. state == 0 )
11015+ if (genKey [i ]-> state == 0 )
1101711016 verify [i ] = 0 ;
1101811017 ret = wc_ecc_sm2_verify_hash (sig [i ], x [i ], digest [i ],
11019- (word32 )keySize , verify [i ], genKey [i ]);
11018+ (word32 )keySize , & verify [i ], genKey [i ]);
1102011019 if (!bench_async_handle (& ret ,
1102111020 BENCH_ASYNC_GET_DEV (genKey [i ]), 1 , & times ,
1102211021 & pending )) {
0 commit comments