Fix for out of bounds exception
[mono.git] / mcs / class / corlib / System.Security.Cryptography / SHA256.cs
index 7003449fec8a1f59979aba61ea94ffb8e6bef04f..842a615e0cfdd1affe43e7a46b3c58b278c73ed3 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,12 +33,10 @@ 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