コード例 #1
0
ファイル: HAVAL128.cs プロジェクト: symform/crimson
 public static new HAVAL128 Create(string hashName)
 {
     object o = CryptoConfig.CreateFromName (hashName);
     // in case machine.config isn't configured to use any HAVAL128 implementation
     if (o == null) {
         o = new HAVAL128Native ();
     }
     return (HAVAL128) o;
 }
コード例 #2
0
        public static new HAVAL128 Create(string hashName)
        {
            object o = CryptoConfig.CreateFromName(hashName);

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