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);
printf("h %d\n",h);
printf("lena %d\n",lena);
printf("size_buf %d\n",size_buf);
-
+*/
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();
equal=false;
}
}
- cout<<"RESULT CORRECT: "<<equal<<endl;
+ //cout<<"RESULT CORRECT: "<<equal<<endl;
}
--- /dev/null
+#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"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+