From a66bfebaa250175e91299fe0143e201b6bcfbe43 Mon Sep 17 00:00:00 2001 From: couturie Date: Sat, 30 Sep 2017 18:25:30 +0200 Subject: [PATCH] new --- OneRoundIoT/OneRound/one_round_new.cpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/OneRoundIoT/OneRound/one_round_new.cpp b/OneRoundIoT/OneRound/one_round_new.cpp index 76fb91c..d068226 100644 --- a/OneRoundIoT/OneRound/one_round_new.cpp +++ b/OneRoundIoT/OneRound/one_round_new.cpp @@ -489,7 +489,10 @@ int main(int argc, char** argv) { - double time=0; + double time_encrypt=0; + double time_decrypt=0; + + double t=TimeStart(); rc4key(DK, Sbox1, 8); @@ -507,8 +510,8 @@ int main(int argc, char** argv) { rc4keyperm(&DK[48], h2, rp, PboxRM, 16); - time+=TimeStop(t); - cout<<"Time initializaton "<