[Mono-bugs] [Bug 51322][Maj] New - Problems using CryptoStream with NetworkStream

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 23 Nov 2003 19:25:44 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by brendan@brendanp.no-ip.org.

http://bugzilla.ximian.com/show_bug.cgi?id=51322

--- shadow/51322	2003-11-23 19:25:43.000000000 -0500
+++ shadow/51322.tmp.4033	2003-11-23 19:25:43.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 51322
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Mandrake 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: brendan@brendanp.no-ip.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problems using CryptoStream with NetworkStream
+
+Description of Problem:
+When using a CryptoStream with a network stream a OperationNotSupported
+exception occurs when trying to read from the CryptoStream
+
+
+Steps to reproduce the problem:
+1. NetWorkStream ns = new NetworkStream(socket);
+2. CyrptoStream cs = new CryptoStream(ns);
+3. cs.ReadByte(); //generates an exception
+4. Some details have been left out(like initializing the transform
+
+Actual Results:
+a OperationNotSupported error occures
+
+Expected Results:
+it should decrypt the data
+
+How often does this happen? 
+always
+
+Additional Information:
+the CryptoStream tryis to use the Position propoery on the network stream,
+however the network stream does not support this. I would just change it
+but it seems the ReadBlock method needs to know when the end of the stream is