[corlib] Parse datetime string using culture calendar. Fixes #18052
[mono.git] / mcs / class / corlib / System.Security.Cryptography / SHA256.cs
index dcbcced48d1038aeb89e6c8269abcb5d44873d57..1af226c03e95cbeff03231db9cfeccd7db74249c 100644 (file)
@@ -7,11 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 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
 // 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;
 \r
 namespace System.Security.Cryptography {\r
 
+       [ComVisible (true)]
        public abstract class SHA256 : HashAlgorithm {\r
 
-               public SHA256 () \r
+               protected SHA256 ()
                {\r
                        HashSizeValue = 256;\r
                }\r
        \r
                public static new SHA256 Create () \r
                {\r
+#if FULL_AOT_RUNTIME
+                       return new System.Security.Cryptography.SHA256Managed ();
+#else
                        return Create ("System.Security.Cryptography.SHA256");\r
+#endif
                }\r
        \r
                public static new SHA256 Create (string hashName) \r