_mm_storeu_si128((__m128i *) plainText, m);
}
+
+
+
+
+
+
+
+
+
+
//return 0 if no error
//1 if encryption failed
//2 if decryption failed
*/
- const int nb_times_init=1;
+ const int nb_times_init=1000000;
double time=0;
double t=TimeStart();
for(int i=0;i<nb_times_init;i++) {
rc4key(enc_key,sbox,16);
+ }
+ time=TimeStop(t);
+ printf("init Sbox generation %f\n",time);
+
+
+ t=TimeStart();
+ for(int i=0;i<nb_times_init;i++) {
KeyExpansion(RoundKey, enc_key, 10);
// printf("MY KEYS\n");
aes128_load_key_dec_only(my_key_schedule);
}
time=TimeStop(t);
- printf("init our aes %f\n",time);
+ printf("init our Key schedule aes %f\n",time);
/*