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=inline;hp=d735546871edb38c8bee499b5116489308f69193 new --- 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<