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

            // in case machine.config isn't configured to use any MD2 implementation
            if (o == null)
            {
                o = new MD2CryptoServiceProvider();
            }
            return((MD2)o);
        }
	public void Setup () 
	{
		hash = new MD2CryptoServiceProvider ();
	}