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

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