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

Private GIT Repository
new
authorcouturie <you@example.com>
Fri, 8 Mar 2019 16:31:54 +0000 (17:31 +0100)
committercouturie <you@example.com>
Fri, 8 Mar 2019 16:31:54 +0000 (17:31 +0100)
Hash/rc4_hash.cpp
OneRoundIoT/OneRound/one_round_hash_new.cpp

index bdb3da1c925146ef909b4cb7c84ea4a6b92544b9..2b4afca29c59012d4c4b97d6ce47fb665b93ccc3 100644 (file)
@@ -295,7 +295,6 @@ int main(int argc, char** argv) {
   }
   cout<<endl;
 
-  cout<<"qoisudiosud"<<endl;  
   
   time=0;
   double t=TimeStart();
index 84e1ee61e2481d75aa9ce332299a3325838f0a84..0bd5788a22481663ae73bb12fd46de6a3bfcd4ac 100644 (file)
@@ -202,34 +202,6 @@ void hash_DSD_BIN(uchar* seq_in, uchar* RM1,int len, int *PboxRM, uchar *Sbox1,
     
 
     
-    // Z[h-1]=Y[h-1]^Y[0];
-    // Z[h-2]=Z[h-1]^Y[h-1];
-    // for(int a=h-2;a>0;a-=2) {
-    //   Z[a-1]=Z[a]^Y[a];
-    //   Z[a-2]=Z[a-1]^Y[a-1];
-    // }
-    
-    // /*
-    // Z[h-1]=Y[h-1]^Y[0];
-    // Z[h-2]=Z[h-1]^Y[h-1];
-    // Z[h-3]=Z[h-2]^Y[h-2];
-    // Z[h-4]=Z[h-3]^Y[h-3];
-    // for(int a=h-4;a>0;a-=4) {
-    //   Z[a-1]=Z[a]^Y[a];
-    //   Z[a]=Z[a+1]^Y[a+1];
-    //   Z[a+1]=Z[a+2]^Y[a+2];
-    //   Z[a+2]=Z[a+3]^Y[a+3];
-    // }
-    // */
-    
-    // for(int a=0;a<h;a+=4) {
-    //   RM1[a]=Z[a];
-    //   RM1[a+1]=Z[a+1];
-    //   RM1[a+2]=Z[a+2];
-    //   RM1[a+3]=Z[a+3];
-      
-
-    // }
     
   }
 
@@ -256,7 +228,6 @@ int main(int argc, char** argv) {
   
   for(int i=1; i<argc; i++){
     if(strncmp(argv[i],"nb",2)==0)    nb_test = atoi(&(argv[i][2]));    //nb of test         
-    if(strncmp(argv[i],"ctr",3)==0) ctr = atoi(&(argv[i][3]));          //CTR ? 1  otherwise CBC like
     if(strncmp(argv[i],"h",1)==0) h = atoi(&(argv[i][1]));          //size of block
     if(strncmp(argv[i],"sizebuf",7)==0) size_buf = atoi(&(argv[i][7]));          //SIZE of the buffer
     if(strncmp(argv[i],"lena",4)==0) lena = atoi(&(argv[i][4]));          //Use Lena or buffer