From 8447de27d254ebc4b598b4209d62a3ead3bbc343 Mon Sep 17 00:00:00 2001 From: couturie Date: Thu, 17 Aug 2017 20:45:45 +0200 Subject: [PATCH 1/1] new --- OneRoundIoT/OneRound/one_round_new.cpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) 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<