]> AND Private Git Repository - Cipher_code.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
authorcouturie <you@example.com>
Sun, 24 Feb 2019 13:50:18 +0000 (14:50 +0100)
committercouturie <you@example.com>
Sun, 24 Feb 2019 13:50:18 +0000 (14:50 +0100)
OneRoundIoT/NEW/scprng.cpp

index 5f1a3d54c156ac50cfa43b58f32688656aaf343d..83765d1feda8884b8d93b5bfe06c8f5fc4ef9c1e 100644 (file)
@@ -364,10 +364,15 @@ int main() {
     Val[Pbox[i]]=splitmix64_stateless(i+DK[i&63]);
   }
 
     Val[Pbox[i]]=splitmix64_stateless(i+DK[i&63]);
   }
 
+  t=TimeStart();
   for(uint iter=0;iter<nb_test;iter++) {
     scprng(SEQ2, SEQ, bufsize, nb_bloc, Val,Sbox1, Sbox2, Pbox, Pbox2, DK, delta);
   }
 
   for(uint iter=0;iter<nb_test;iter++) {
     scprng(SEQ2, SEQ, bufsize, nb_bloc, Val,Sbox1, Sbox2, Pbox, Pbox2, DK, delta);
   }
 
+
+  time=TimeStop(t);
+  printf("time %e\n",nb_test*nb_bloc*bufsize*8/time);
+  
   if(lena) {
     for(int i=0;i<oneD;i++) {
       data_R[i]=seq[i];
   if(lena) {
     for(int i=0;i<oneD;i++) {
       data_R[i]=seq[i];