コード例 #1
0
ファイル: HAVAL256.cs プロジェクト: symform/crimson
 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;
 }
コード例 #2
0
ファイル: HAVAL256.cs プロジェクト: huaan21/crimson
        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);
        }