From: couturie Date: Sat, 30 Sep 2017 16:25:30 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/a66bfebaa250175e91299fe0143e201b6bcfbe43?ds=sidebyside;hp=ad75149ea8d6c07ac4477018b5355a559b5117bf new --- 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 "<