Merge pull request #3389 from lambdageek/bug-43099
[mono.git] / mcs / class / referencesource / mscorlib / system / security / cryptography / md5.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 // <OWNER>[....]</OWNER>
7 // 
8
9 //
10 // MD5.cs
11 //
12
13 namespace System.Security.Cryptography {
14 [System.Runtime.InteropServices.ComVisible(true)]
15     public abstract class MD5 : HashAlgorithm
16     {      
17         protected MD5() {
18             HashSizeValue = 128;
19         }
20     
21         //
22         // public methods
23         //
24
25         new static public MD5 Create() {
26 #if FULL_AOT_RUNTIME
27             return new System.Security.Cryptography.MD5CryptoServiceProvider ();
28 #else
29             return Create("System.Security.Cryptography.MD5");
30 #endif
31         }
32
33         new static public MD5 Create(String algName) {
34             return (MD5) CryptoConfig.CreateFromName(algName);
35         }
36     }
37 }