]> AND Private Git Repository - Cipher_code.git/blobdiff - OneRoundIoT/OneRound/one_round_new.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
old time for openssl
[Cipher_code.git] / OneRoundIoT / OneRound / one_round_new.cpp
index f5546cf4ba22e8e5391aff23a65bbcf2fe27e1b0..f0cafd695d5ed9d78fa3bbe9f604d6ef1d62a704 100644 (file)
@@ -204,10 +204,10 @@ void encrypt_ctr(uchar* seq_in, uchar *seq_out, int len,uchar* RM1,int *Pbox, in
     }
 
     for(int a=0;a<h2;a+=4) {
-      fX[a]=X[a]^RM1[a];
-      fX[a+1]=X[a+1]^RM1[a+1];
-      fX[a+2]=X[a+2]^RM1[a+2];
-      fX[a+3]=X[a+3]^RM1[a+3];
+      X[a]=X[a]^RM1[a];
+      X[a+1]=X[a+1]^RM1[a+1];
+      X[a+2]=X[a+2]^RM1[a+2];
+      X[a+3]=X[a+3]^RM1[a+3];
     }
 
     for(int a=0;a<h2;a+=4) {