Exemple #1
0
 public static new HAVAL256 Create(string hashName)
 {
     object o = CryptoConfig.CreateFromName (hashName);
     // in case machine.config isn't configured to use any HAVAL256 implementation
     if (o == null) {
         o = new HAVAL256Native ();
     }
     return (HAVAL256) o;
 }
Exemple #2
0
        public static new HAVAL256 Create(string hashName)
        {
            object o = CryptoConfig.CreateFromName(hashName);

            // in case machine.config isn't configured to use any HAVAL256 implementation
            if (o == null)
            {
                o = new HAVAL256Native();
            }
            return((HAVAL256)o);
        }