X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/baa3ba339cf98c71a013ab96c1af552e82470efe..8447de27d254ebc4b598b4209d62a3ead3bbc343:/OneRoundIoT/OneRound/one_round_new.cpp 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<