From: couturie Date: Sun, 20 Aug 2017 07:28:52 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/bcc065d76a6156a8f1c829babd0fefbcc175ffab?hp=1dc7a9dac04700865be873c50f6347d48e501ea0 new --- diff --git a/OneRoundIoT/OneRound/one_round_new.cpp b/OneRoundIoT/OneRound/one_round_new.cpp index 6a26c6e..1fe114c 100644 --- a/OneRoundIoT/OneRound/one_round_new.cpp +++ b/OneRoundIoT/OneRound/one_round_new.cpp @@ -364,16 +364,24 @@ int main(int argc, char** argv) { int h=32; + int lena=0; + int size_buf=1; + + for(int i=1; i(seq, seq2,len,RM1,Pbox,PboxRM,Sbox1,Sbox2,0); + } + break; + case 64: + for(i=0;i(seq, seq2,len,RM1,Pbox,PboxRM,Sbox1,Sbox2,1); + else + encrypt<64*64>(seq, seq2,len,RM1,Pbox,PboxRM,Sbox1,Sbox2,0); + } break; } @@ -550,12 +589,14 @@ int main(int argc, char** argv) { cout<<"Time encrypt "<(seq2,seq,len,RM2,Pbox,PboxRM,Sbox1,Sbox2,0); } break; + case 64: + for(i=0;i(seq2, seq,len,RM2,Pbox,PboxRM,Sbox1,Sbox2,0); + else + decrypt<64*64>(seq2,seq,len,RM2,Pbox,PboxRM,Sbox1,Sbox2,0); + } + break; } time+=TimeStop(t); cout<<"Time decrypt "<