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