Exemplo n.º 1
0
 static Security()
 {
     Security instance = new Random();
     map.Add("RANDOM", instance);
     map.Add("0", instance);
     instance = new NullSecurity();
     map.Add("NULLSECURITY", instance);
     map.Add("1", instance);
     instance = new ARCFourSecurity();
     map.Add("ARCFOURSECURITY", instance);
     map.Add("2", instance);
     instance = new MD5Hash();
     map.Add("MD5HASH", instance);
     map.Add("3", instance);
     instance = new HMAC_MD5Hash();
     map.Add("HMAC_MD5HASH", instance);
     map.Add("4", instance);
     instance = new CompressARCFourSecurity();
     map.Add("COMPRESSARCFOURSECURITY", instance);
     map.Add("5", instance);
     instance = new DecompressARCFourSecurity();
     map.Add("DECOMPRESSARCFOURSECURITY", instance);
     map.Add("6", instance);
     instance = new DecompressSecurity();
     map.Add("DECOMPRESSSECURITY", instance);
     map.Add("7", instance);
 }
Exemplo n.º 2
0
 public override Object Clone()
 {
     ARCFourSecurity o = new ARCFourSecurity();
     Array.Copy(perm, 0, o.perm, 0, 256);
     return o;
 }