disable broken tests on net_4_0
[mcs.git] / class / Mono.Security.Win32 / Mono.Security.Cryptography / MD4.cs
blob06cb43a891a178b53765b1461da39789ca624cb8
1 //
2 // MD4.cs - Message Digest 4 Abstract class
3 //
4 // Author:
5 // Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
10 using System;
11 using System.Security.Cryptography;
13 namespace Mono.Security.Cryptography {
15 public abstract class MD4 : HashAlgorithm {
17 protected MD4 ()
19 // MD4 hash length are 128 bits long
20 HashSizeValue = 128;
23 public static new MD4 Create ()
25 // for this to work we must register ourself with CryptoConfig
26 return Create ("MD4");
29 public static new MD4 Create (string hashName)
31 object o = CryptoConfig.CreateFromName (hashName);
32 // in case machine.config isn't configured to use any MD4 implementation
33 if (o == null) {
34 o = new MD4CryptoServiceProvider ();
36 return (MD4) o;