11/* ecc_verify_nonblock.c
22 *
3- * Copyright (C) 2006-2023 wolfSSL Inc.
3+ * Copyright (C) 2006-2024 wolfSSL Inc.
44 *
55 * This file is part of wolfSSL. (formerly known as CyaSSL)
66 *
@@ -121,16 +121,16 @@ int do_sig_ver_test(int eccKeySz)
121121
122122#ifdef NONBLOCK
123123 ecc_nb_ctx_t nb_ctx ;
124- double total_blk_time ;
124+ double total_blk_time ;
125125 double pre_returned_t ; /* previous recent returned time */
126- double returned_t ; /* most recent returned time */
127- double max_t = -1.0 ; /* Maximum blocking time */
128- double min_t = __DBL_MAX__ ; /* Minimum blocking time */
126+ double returned_t ; /* most recent returned time */
127+ double max_t = -1.0 ; /* Maximum blocking time */
128+ double min_t = __DBL_MAX__ ; /* Minimum blocking time */
129129 double blocking_t ; /* current blocking time */
130- int blk_count ;
131-
130+ int blk_count ;
131+
132132#endif
133-
133+
134134
135135
136136 /*
@@ -152,7 +152,7 @@ int do_sig_ver_test(int eccKeySz)
152152
153153 printf ("Key size is %d, byteField = %d\n" , eccKeySz , byteField );
154154
155-
155+
156156
157157 ret = wc_InitRng (& rng );
158158 CHECK_RET (ret , 0 , key_done , "wc_InitRng()" );
@@ -170,7 +170,7 @@ int do_sig_ver_test(int eccKeySz)
170170
171171 ret = wc_ecc_import_x963 (pKeybuff , key_size , & key );
172172 CHECK_RET (ret , 0 , rng_done , "wc_ecc_import_x963()" );
173-
173+
174174
175175#ifdef NONBLOCK
176176 ret = wc_ecc_set_nonblock (& key , & nb_ctx );
@@ -180,8 +180,8 @@ int do_sig_ver_test(int eccKeySz)
180180 pre_returned_t = current_time (1 );
181181
182182 do {
183-
184- ret = wc_ecc_verify_hash (sig , sig_size , hash , sizeof (hash ),
183+
184+ ret = wc_ecc_verify_hash (sig , sig_size , hash , sizeof (hash ),
185185 & verified , & key );
186186 returned_t = current_time (0 );
187187 blocking_t = returned_t - pre_returned_t ;
@@ -198,8 +198,8 @@ int do_sig_ver_test(int eccKeySz)
198198 blk_count ++ ;
199199 } while (ret == FP_WOULDBLOCK );
200200
201- #else
202- ret = wc_ecc_verify_hash (sig , sig_size , hash , sizeof (hash ),
201+ #else
202+ ret = wc_ecc_verify_hash (sig , sig_size , hash , sizeof (hash ),
203203 & verified , & key );
204204#endif /* NONBLOCK */
205205
@@ -237,7 +237,7 @@ int main(){
237237
238238#ifdef DEBUG_MEMORY
239239 return StackSizeCheck (NULL , (thread_func )ecc_verify );
240- #else
240+ #else
241241 return ecc_verify ();
242242#endif
243243}
@@ -268,7 +268,7 @@ int idx_key(int keysize){
268268 return 10 ;
269269 default :
270270 return -1 ;
271- }
271+ }
272272
273- }
273+ }
274274
0 commit comments