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