From: couturie Date: Thu, 17 Aug 2017 18:45:45 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/8447de27d254ebc4b598b4209d62a3ead3bbc343?ds=sidebyside;hp=-c new --- 8447de27d254ebc4b598b4209d62a3ead3bbc343 diff --git a/OneRoundIoT/OneRound/one_round_new.cpp b/OneRoundIoT/OneRound/one_round_new.cpp index 95c602e..a222855 100644 --- a/OneRoundIoT/OneRound/one_round_new.cpp +++ b/OneRoundIoT/OneRound/one_round_new.cpp @@ -27,7 +27,7 @@ using namespace std; int key_size=256; - +int nb_test=1; const int h=16; const int h2=h*h; @@ -308,7 +308,7 @@ void Dynamickeygenerationnew(uchar *Secretkey, uchar *counter) { for (int i = 48; i < 64; i++) keyp[i-48] = DK[i]; - cout<10000) { + printf("nb tests is not correct\n"); + exit(0); + } + else + printf("nb tests = %d\n\n",nb_test); int seed=time(NULL); cout<