//gcc pixmap_io.c -c
//g++ -O3 one_round_test.cpp pixmap_io.o -o one_round_test -std=c++11
+//
+
+
#include <iostream>
#include <list>
#include<math.h>
}
}
- if(change) {
- buffer[4]++;
- }
}
+ if(change) {
+
+ seq[4]++;
+ }
+
+
int total_len=imsize;
int rp=1;
RM2[i]=RM1[i];
}
+ cout<<"imsize "<<imsize<<endl;
- for(int i=0;i<imsize;i++){
+/* for(int i=0;i<imsize;i++){
cout<<(int)seq[i]<<" ";
}
cout<<endl;
-
+*/
time=0;
t=TimeStart();
-
- hash_DSD_BIN(seq, RM1,len,PboxRM,Sbox1,h);
-
+ for(int i=0;i<nb_test;i++)
+ {
+ hash_DSD_BIN(seq, RM1,len,PboxRM,Sbox1,h);
+ }