[corlib] Parse datetime string using culture calendar. Fixes #18052
[mono.git] / mcs / class / corlib / System.Security.Cryptography / SHA256.cs
index 7003449fec8a1f59979aba61ea94ffb8e6bef04f..1af226c03e95cbeff03231db9cfeccd7db74249c 100644 (file)
@@ -7,7 +7,7 @@
 //\r
 // Copyright 2001 by Matthew S. Ford.\r
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com)\r
-// Copyright (C) 2004-2005 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
@@ -33,19 +33,21 @@ using System.Runtime.InteropServices;
 \r
 namespace System.Security.Cryptography {\r
 
-#if NET_2_0
        [ComVisible (true)]
-#endif
        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