[docs] Import of Microsoft BCL Documentation.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / RSAOAEPKeyExchangeDeformatter.cs
index 05b9b1213a8b042edc3bbe59f3d49e2e6033e326..ecb8f2209e0d45a746c1a93eaf4aec21e3cc5c09 100644 (file)
@@ -33,17 +33,14 @@ using Mono.Security.Cryptography;
 
 namespace System.Security.Cryptography { 
 
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter {
        
                private RSA rsa;
-               private string param;
+//             private string param;
        
                public RSAOAEPKeyExchangeDeformatter ()
                {
-                       rsa = null;
                }
        
                public RSAOAEPKeyExchangeDeformatter (AsymmetricAlgorithm key) 
@@ -58,12 +55,10 @@ namespace System.Security.Cryptography {
        
                public override byte[] DecryptKeyExchange (byte[] rgbData) 
                {
-#if NET_2_0
                        if (rsa == null) {
                                string msg = Locale.GetText ("No RSA key specified");
                                throw new CryptographicUnexpectedOperationException (msg);
                        }
-#endif
                        SHA1 sha1 = SHA1.Create ();
                        byte[] result = PKCS1.Decrypt_OAEP (rsa, sha1, rgbData);
                        if (result != null)