]> AND Private Git Repository - Cipher_code.git/blobdiff - OneRoundIoT/NEW/scprng.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
[Cipher_code.git] / OneRoundIoT / NEW / scprng.cpp
index 5f1a3d54c156ac50cfa43b58f32688656aaf343d..83765d1feda8884b8d93b5bfe06c8f5fc4ef9c1e 100644 (file)
@@ -364,10 +364,15 @@ int main() {
     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);
   }
 
+
+  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];