]> AND Private Git Repository - Cipher_code.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
update
authorRaphaël Couturier <raphael.couturier@univ-fcomte.fr>
Sat, 12 Jun 2021 15:15:23 +0000 (17:15 +0200)
committerRaphaël Couturier <raphael.couturier@univ-fcomte.fr>
Sat, 12 Jun 2021 15:15:23 +0000 (17:15 +0200)
OneRoundIoT/NEW/scprng.cpp
OneRoundIoT/OneRound/one_round_new4.cpp

index 98e27c6e24c99ab768af4482cfc1df273bf2683d..75b952c542f76d484b87ba3694c8874a48d31843 100644 (file)
@@ -377,7 +377,7 @@ int main(int argc, char **argv) {
   }
   
   
-  int delta=16;
+  int delta=64;
 
 
   
index 414c03c495a1403f7c81704ab918a4caeffd40dd..ecee0d6593fa1b421570c80a62534453b0795a63 100644 (file)
@@ -219,13 +219,6 @@ void encrypt_ctr(uchar* seq_in, uchar *seq_out, int len,uchar* RM1,int *Pbox, in
     }
 
 
-    for(int a=0;a<h2/8;a+=2) {
-      ((unsigned long*)X)[a]=((unsigned long*)X)[a]^((unsigned long*)RM1)[a];
-      ((unsigned long*)X)[a+1]=((unsigned long*)X)[a+1]^((unsigned long*)RM1)[a+1];
-    }
-
-
-
 
     for(int a=0;a<h2/8;a+=2) {