From bcc065d76a6156a8f1c829babd0fefbcc175ffab Mon Sep 17 00:00:00 2001 From: couturie Date: Sun, 20 Aug 2017 09:28:52 +0200 Subject: [PATCH 1/1] new --- OneRoundIoT/OneRound/one_round_new.cpp | 94 +++++++++++++++++++++----- 1 file changed, 76 insertions(+), 18 deletions(-) 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 "<