X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/26d66a941e7914ca129eeec61891c561c968d034..e8291c5548e7edd0beb647e84f4a4585f32b5265:/Hash/rc4_hash.cpp?ds=inline

diff --git a/Hash/rc4_hash.cpp b/Hash/rc4_hash.cpp
index 2b4afca..1dedb0d 100644
--- a/Hash/rc4_hash.cpp
+++ b/Hash/rc4_hash.cpp
@@ -151,7 +151,8 @@ void myhash(uchar* seq_in, int len, uchar* out, int h) {
 /*    for(int i=0;i<h;i++)
       cout<<(int)X[i]<<endl;
 */
-    
+
+//    if(it%5==0)
     prga(S, X, h, out2);
 
 
@@ -253,9 +254,14 @@ int main(int argc, char** argv) {
     seq[14]++;
   }
   if(change==2) {
-    
     seq[15]++;
   }
+  if(change==3 && imsize>=32) {
+    seq[27]++;
+  }
+  if(change==4 && imsize>=128) {
+    seq[67]++;
+  }