Fix for out of bounds exception
[mono.git] / mcs / class / corlib / System.Security.Cryptography / RSAPKCS1SignatureFormatter.cs
index df4323ad37d6791087ab7da3e3eab115296910cb..bb6fdf64298125f49651cbc52d3cbc4599d093cb 100644 (file)
@@ -32,9 +32,7 @@ using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
        
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public class RSAPKCS1SignatureFormatter : AsymmetricSignatureFormatter {
        
                private RSA rsa;
@@ -72,12 +70,8 @@ namespace System.Security.Cryptography {
        
                public override void SetKey (AsymmetricAlgorithm key) 
                {
-#if NET_2_0
                        if (key == null)
                                throw new ArgumentNullException ("key");
-#else
-                       // 1.0/1.1 accepted null without an ArgumentNullException!
-#endif
                        rsa = (RSA) key;
                }
        }