- double time=0;
+ double time_encrypt=0;
+ double time_decrypt=0;
+
+
double t=TimeStart();
rc4key(DK, Sbox1, 8);
rc4keyperm(&DK[48], h2, rp, PboxRM, 16);
- time+=TimeStop(t);
- cout<<"Time initializaton "<<time<<endl;
+ //time+=TimeStop(t);
+ //cout<<"Time initializaton "<<time<<endl;
- time=0;
+ time_encrypt=0;
t=TimeStart();
int i;
}
break;
}
- time+=TimeStop(t);
- cout<<"Time encrypt "<<time<<endl;
+ time_encrypt+=TimeStop(t);
+ //cout<<"Time encrypt "<<
+ cout<<(double)imsize*nb_test/time_encrypt<<"\t";
if(lena) {
}
- time=0;
+ time_decrypt=0;
t=TimeStart();
switch(h) {
case 4:
break;
}
- time+=TimeStop(t);
- cout<<"Time decrypt "<<time<<endl;
+ time_decrypt+=TimeStop(t);
+ //cout<<"Time decrypt "
+ cout<<(double)imsize*nb_test/time_decrypt<<"\t";
if(lena) {
for(int i=0;i<oneD;i++) {