-
- if(1 != EVP_DecryptUpdate(ctx, plaintext, &len, ciphertext, ciphertext_len))
- handleErrors();
- plaintext_len = len;
+/* static double time=0;
+ double t=0;
+ t=TimeStart();
+*/
+ for(int i=0;i<nb_test;i++)
+ {
+ plaintext_len = 0;
+ if(1 != EVP_DecryptUpdate(ctx, plaintext, &len, ciphertext, ciphertext_len))
+ handleErrors();
+ plaintext_len = len;
+ }
+/* time+=TimeStop(t);
+// if(index==nb_test-1)
+ printf("Time decrypt %f\n",time);
+*/