Add some new 4.0 features in System.Security.Cryptography
[mono.git] / mcs / class / corlib / System.Security.Cryptography / CryptoStream.cs
index 48f3794f8cb04684e4d656580b8ac9fd33e2f415..7b98be5a75c0c0ff742c3c725cc33e2578682993 100644 (file)
@@ -106,12 +106,6 @@ namespace System.Security.Cryptography {
                        Close ();
                }
 
-               // LAMESPEC: A CryptoStream can be close in read mode
-               public override void Close () 
-               {
-                       base.Close ();
-               }
-
                public override int Read ([In,Out] byte[] buffer, int offset, int count)
                {
                        if (_mode != CryptoStreamMode.Read) {
@@ -363,5 +357,10 @@ namespace System.Security.Cryptography {
                                }
                        }
                }
+#if NET_4_0
+               public bool HasFlushedFinalBlock {
+                       get { return _flushedFinalBlock; }
+               }
+#endif
        }
 }