From 5a7eea601652ce1be1864e6c75e143659384ab3b Mon Sep 17 00:00:00 2001 From: couturie Date: Wed, 24 Oct 2018 10:47:59 +0200 Subject: [PATCH] update of enhance one round with cbc rm --- .../EnhancedOneRound/enhanced_oneround.cpp | 67 ++++++++++--------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp b/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp index 37ecfaf..389a223 100644 --- a/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp +++ b/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp @@ -917,30 +917,32 @@ void encrypt_cbc_rm(uchar* seq_in, uchar *seq_out, int len,uchar* RM, int *Pbox, uchar *RM2; uchar tmp[h]; + + int gg=(Sbox1[12]&(h-1))*(Sbox2[32]&(h-1)); + for(int a=0;a