X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.Cryptography%2FMD5.cs;h=4d41fc7a2114ec5cda3d0cd38d58537f2579551a;hb=e2b2d181084848f3c5dde2788370db1b79893c69;hp=6fa2d7bebdefa6ed0e3a8d86a995df1fd416cea0;hpb=669beaed8380fa592533c8755f72593b4422d01d;p=mono.git diff --git a/mcs/class/corlib/System.Security.Cryptography/MD5.cs b/mcs/class/corlib/System.Security.Cryptography/MD5.cs index 6fa2d7bebde..4d41fc7a211 100644 --- a/mcs/class/corlib/System.Security.Cryptography/MD5.cs +++ b/mcs/class/corlib/System.Security.Cryptography/MD5.cs @@ -1,5 +1,5 @@ // -// System.Security.Cryptography MD5 Class implementation +// System.Security.Cryptography.MD5.cs // // Authors: // Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu) @@ -33,9 +33,7 @@ using System.Runtime.InteropServices; namespace System.Security.Cryptography { -#if NET_2_0 [ComVisible (true)] -#endif public abstract class MD5 : HashAlgorithm { // Why is it protected when others abstract hash classes are public ? @@ -46,12 +44,16 @@ namespace System.Security.Cryptography { public static new MD5 Create () { +#if FULL_AOT_RUNTIME + return new System.Security.Cryptography.MD5CryptoServiceProvider (); +#else return Create ("System.Security.Cryptography.MD5"); +#endif } - public static new MD5 Create (string hashName) + public static new MD5 Create (string algName) { - return (MD5) CryptoConfig.CreateFromName (hashName); + return (MD5) CryptoConfig.CreateFromName (algName); } } }