From: couturie Date: Wed, 24 Oct 2018 08:47:59 +0000 (+0200) Subject: update of enhance one round with cbc rm X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/5a7eea601652ce1be1864e6c75e143659384ab3b update of enhance one round with cbc rm --- 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