From: couturie Date: Sun, 23 Dec 2018 14:45:53 +0000 (+0100) Subject: new tests for eor X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/caa49419c4db8b3925c7af2ab014f14bddea4d21?ds=sidebyside;hp=690cdccf517efa042aaec349f292a9238d56473c new tests for eor --- diff --git a/OneRoundIoT/EnhancedOneRound/run_test_small1.sh b/OneRoundIoT/EnhancedOneRound/run_test_small1.sh new file mode 100644 index 0000000..ea94a40 --- /dev/null +++ b/OneRoundIoT/EnhancedOneRound/run_test_small1.sh @@ -0,0 +1,29 @@ +#sh run_test.sh > execution_oneround.txt +printf "#size \t h \t ecbprng enc dec \t \t cbcprng enc dec \t \t cbcrm enc dec\n" +printf "256 \t 4"; ./enhanced_oneround nb10000000 lena0 ecbprng h4 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h4 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h4 sizebuf16 +printf "\n" +printf "256 \t 8"; ./enhanced_oneround nb10000000 lena0 ecbprng h8 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h8 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h8 sizebuf16 +printf "\n" +printf "256 \t 16"; ./enhanced_oneround nb10000000 lena0 ecbprng h16 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h16 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h16 sizebuf16 +printf "\n" +printf "256 \t 32"; ./enhanced_oneround nb10000000 lena0 ecbprng h32 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h32 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h32 sizebuf16 +printf "\n" +printf "256 \t 64"; ./enhanced_oneround nb10000000 lena0 ecbprng h64 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h64 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h64 sizebuf16 +printf "\n" +printf "256 \t 128"; ./enhanced_oneround nb10000000 lena0 ecbprng h128 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h128 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h128 sizebuf16 +printf "\n" +printf "256 \t 256"; ./enhanced_oneround nb10000000 lena0 ecbprng h256 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcprng h256 sizebuf16; ./enhanced_oneround nb10000000 lena0 cbcrm h256 sizebuf16 +printf "\n" + + + + + + + + + + + + + diff --git a/OneRoundIoT/EnhancedOneRound/run_test_small2.sh b/OneRoundIoT/EnhancedOneRound/run_test_small2.sh new file mode 100644 index 0000000..5d7f4e2 --- /dev/null +++ b/OneRoundIoT/EnhancedOneRound/run_test_small2.sh @@ -0,0 +1,29 @@ +#sh run_test.sh > execution_oneround.txt +printf "#size \t h \t ecbprng enc dec \t \t cbcprng enc dec \t \t cbcrm enc dec\n" +printf "1024 \t 4"; ./enhanced_oneround nb1000000 lena0 ecbprng h4 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h4 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h4 sizebuf32 +printf "\n" +printf "1024 \t 8"; ./enhanced_oneround nb1000000 lena0 ecbprng h8 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h8 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h8 sizebuf32 +printf "\n" +printf "1024 \t 16"; ./enhanced_oneround nb1000000 lena0 ecbprng h16 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h16 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h16 sizebuf32 +printf "\n" +printf "1024 \t 32"; ./enhanced_oneround nb1000000 lena0 ecbprng h32 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h32 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h32 sizebuf32 +printf "\n" +printf "1024 \t 64"; ./enhanced_oneround nb1000000 lena0 ecbprng h64 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h64 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h64 sizebuf32 +printf "\n" +printf "1024 \t 128"; ./enhanced_oneround nb1000000 lena0 ecbprng h128 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h128 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h128 sizebuf32 +printf "\n" +printf "1024 \t 256"; ./enhanced_oneround nb1000000 lena0 ecbprng h256 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcprng h256 sizebuf32; ./enhanced_oneround nb1000000 lena0 cbcrm h256 sizebuf32 +printf "\n" + + + + + + + + + + + + +