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

Private GIT Repository
new
authorcouturie <you@example.com>
Sun, 9 Dec 2018 10:29:20 +0000 (11:29 +0100)
committercouturie <you@example.com>
Sun, 9 Dec 2018 10:29:20 +0000 (11:29 +0100)
OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp
OneRoundIoT/EnhancedOneRound/run_test.sh [new file with mode: 0644]

index db3d98c4b1907c0821ccb53f949572c9aad676c8..c895a8ade1df89fd5321ca5f6b705aa35efc738b 100644 (file)
@@ -1459,7 +1459,7 @@ int main(int argc, char** argv) {
     if(strncmp(argv[i],"lena",4)==0) lena = atoi(&(argv[i][4]));          //Use Lena or buffer
   }
 
-  printf("nb times %d\n",nb_test);
+/*  printf("nb times %d\n",nb_test);
   printf("cbcrm %d\n",cbcrm);
   printf("cbcprng %d\n",cbcprng);
   printf("ecbrm %d\n",ecbrm);
@@ -1467,7 +1467,7 @@ int main(int argc, char** argv) {
   printf("h %d\n",h);
   printf("lena %d\n",lena);
   printf("size_buf %d\n",size_buf);
-
+*/
   
 
       
@@ -1511,7 +1511,7 @@ int main(int argc, char** argv) {
   else {
     width=height=size_buf;
     imsize=width*height;
-    cout<<"imsize "<<imsize<<endl;
+    //cout<<"imsize "<<imsize<<endl;
     buffer=new uchar[imsize];
     for(int i=0;i<imsize;i++) {
       buffer[i]=lrand48();
@@ -1883,7 +1883,7 @@ int main(int argc, char** argv) {
        equal=false;
       }
     }
-    cout<<"RESULT CORRECT: "<<equal<<endl;
+    //cout<<"RESULT CORRECT: "<<equal<<endl;
   }
   
 
diff --git a/OneRoundIoT/EnhancedOneRound/run_test.sh b/OneRoundIoT/EnhancedOneRound/run_test.sh
new file mode 100644 (file)
index 0000000..28b3dfd
--- /dev/null
@@ -0,0 +1,30 @@
+#sh run_test.sh  > execution_oneround.txt
+printf "#size \t     ecbprng enc dec   \t \t      cbcprng enc dec    \t \t  cbcrm enc dec\n"
+printf "256\t"; ./enhanced_oneround nb10000000 lena0 ecbprng h256 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h256 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h256 sizebuf16
+printf "\n"
+printf "1024\t"; ./enhanced_oneround nb1000000 lena0 ecbprng h256 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h256 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h256 sizebuf32
+printf "\n"
+printf "4096\t"; ./enhanced_oneround nb100000 lena0 ecbprng h256 sizebuf64; ./enhanced_oneround nb100000 lena0 cbcprng h256 sizebuf64; ./enhanced_oneround nb100000 lena0 cbcrm h256 sizebuf64
+printf "\n"
+printf "16384\t"; ./enhanced_oneround nb100000 lena0 ecbprng h256 sizebuf128; ./enhanced_oneround nb100000 lena0 cbcprng h256 sizebuf128; ./enhanced_oneround nb100000 lena0 cbcrm h256 sizebuf128
+printf "\n"
+printf "65536\t"; ./enhanced_oneround nb10000 lena0 ecbprng h256 sizebuf256; ./enhanced_oneround nb10000 lena0 cbcprng h256 sizebuf256; ./enhanced_oneround nb10000 lena0 cbcrm h256 sizebuf256
+printf "\n"
+printf "262144\t"; ./enhanced_oneround nb1000 lena0 ecbprng h256 sizebuf512; ./enhanced_oneround nb1000 lena0 cbcprng h256 sizebuf512; ./enhanced_oneround nb1000 lena0 cbcrm h256 sizebuf512
+printf "\n"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+