X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/8ecaf9b70f89bea2b5f99256ea91716eb438b4a9..5a7eea601652ce1be1864e6c75e143659384ab3b:/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp 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