From: Raphaƫl Couturier Date: Sun, 13 Jun 2021 13:32:41 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/32ba6d31b50d6162fa4b2a9d8b435a95c424c424 new --- diff --git a/OneRoundIoT/NEW/run_test.sh b/OneRoundIoT/NEW/run_test.sh new file mode 100644 index 0000000..e8f4c69 --- /dev/null +++ b/OneRoundIoT/NEW/run_test.sh @@ -0,0 +1,19 @@ +#sh run_test.sh > execution_oneround.txt + + +printf "size; throughtput delta enc dec; throughtput enhanced ctr delta enc dec; throughtput AES ctr enc dec" +printf "\n" +printf "64\t"; ./scprng nb10000000 lena0 h8 sizebuf8; ../OneRound/one_round_new4 nb10000000 lena0 ctr1 h8 sizebuf8; ../openssl/openssl_evp nb1000000 lena0 ctr1 h8 sizebuf8 +printf "\n" +printf "256\t"; ./scprng nb1000000 lena0 h16 sizebuf16; ../OneRound/one_round_new4 nb1000000 lena0 ctr1 h16 sizebuf16; ../openssl/openssl_evp nb1000000 lena0 ctr1 h16 sizebuf16 +printf "\n" +printf "1024\t"; ./scprng nb1000000 lena0 h32 sizebuf32; ../OneRound/one_round_new4 nb1000000 lena0 ctr1 h32 sizebuf32; ../openssl/openssl_evp nb1000000 lena0 ctr1 h32 sizebuf32 +printf "\n" +printf "4096\t"; ./scprng nb100000 lena0 h32 sizebuf64; ../OneRound/one_round_new4 nb100000 lena0 ctr1 h32 sizebuf64; ../openssl/openssl_evp nb100000 lena0 ctr1 h32 sizebuf64 +printf "\n" +printf "16384\t"; ./scprng nb100000 lena0 h32 sizebuf128; ../OneRound/one_round_new4 nb100000 lena0 ctr1 h32 sizebuf128; ../openssl/openssl_evp nb100000 lena0 ctr1 h32 sizebuf128 +printf "\n" +printf "65536\t"; ./scprng nb10000 lena0 h32 sizebuf256; ../OneRound/one_round_new4 nb10000 lena0 ctr1 h32 sizebuf256; ../openssl/openssl_evp nb10000 lena0 ctr1 h32 sizebuf256 +printf "\n" +printf "262144\t"; ./scprng nb1000 lena0 h32 sizebuf512; ../OneRound/one_round_new4 nb1000 lena0 ctr1 h32 sizebuf512; ../openssl/openssl_evp nb1000 lena0 ctr1 h32 sizebuf512 +printf "\n" diff --git a/OneRoundIoT/NEW/scprng.cpp b/OneRoundIoT/NEW/scprng.cpp index 75b952c..fe68c03 100644 --- a/OneRoundIoT/NEW/scprng.cpp +++ b/OneRoundIoT/NEW/scprng.cpp @@ -432,7 +432,7 @@ int main(int argc, char **argv) { time=TimeStop(t); - printf("%e\n",nb_test*nb_bloc*h*8/time); + printf("%e\t",nb_test*nb_bloc*h*8/time); if(lena) { for(int i=0;i