* Mono.Posix.dll.sources: Rename Mono.Posix to Mono.Unix.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / CryptoAPITransform.cs
index b31799d41593d7efeedf1def78ea40d38ee4a25d..c81e7353c9bd57d4ed0a4b881f23a431f1c88599 100755 (executable)
@@ -4,10 +4,6 @@
 // Authors:
 //     Thomas Neidhart (tome@sbox.tugraz.at)
 //     Sebastien Pouliot (sebastien@ximian.com)
-//
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 //
@@ -47,10 +43,12 @@ namespace System.Security.Cryptography {
                        m_disposed = false;
                }
 
+#if ! NET_2_0
                ~CryptoAPITransform () 
                {
                        Dispose (false);
                }
+#endif
 
                public bool CanReuseTransform {
                        get { return true; }
@@ -78,7 +76,7 @@ namespace System.Security.Cryptography {
                        GC.SuppressFinalize (this);  // Finalization is now unnecessary
                }
 
-               public void Clear() 
+               public void Clear () 
                {
                        Dispose (false);
                }
@@ -101,7 +99,14 @@ namespace System.Security.Cryptography {
 
                public byte[] TransformFinalBlock (byte[] inputBuffer, int inputOffset, int inputCount)
                {
+                       // Reset (); should be called here before returning final data
                        return null;
                }
+
+#if NET_2_0
+               public void Reset ()
+               {
+               }
+#endif
        }
 }