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

Private GIT Repository
new
authorcouturie <you@example.com>
Tue, 17 Apr 2018 13:18:32 +0000 (15:18 +0200)
committercouturie <you@example.com>
Tue, 17 Apr 2018 13:18:32 +0000 (15:18 +0200)
Old_one_round/one_round_light_auth.cpp

index 6e6a4afcd8310e95c8280dae6ea71ebb365a00d6..97abebf8df93a77125167842048d90a6fb09d919 100644 (file)
@@ -140,7 +140,7 @@ void myhash(uchar *X, uchar* RM2, uchar *Sbox2) {
 
 
     Y[0]=X2[0]^X2[h-1];
 
 
     Y[0]=X2[0]^X2[h-1];
-    for(int a=4;a<h;a++) {
+    for(int a=1;a<h;a++) {
       Y[a]=Y[a-1]^X2[a-1];
     }
     
       Y[a]=Y[a-1]^X2[a-1];
     }