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=bf56211c84048fbadbb49d4071a46e9794f2e782;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mcs/class/corlib/System.Security.Cryptography/MD5.cs b/mcs/class/corlib/System.Security.Cryptography/MD5.cs index bf56211c840..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) @@ -7,11 +7,7 @@ // // Copyright 2001 by Matthew S. Ford. // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com) -// (C) 2004 Novell (http://www.novell.com) -// - -// -// Copyright (C) 2004 Novell, Inc (http://www.novell.com) +// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -32,9 +28,12 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // + +using System.Runtime.InteropServices; namespace System.Security.Cryptography { + [ComVisible (true)] public abstract class MD5 : HashAlgorithm { // Why is it protected when others abstract hash classes are public ? @@ -45,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); } } }