[Mono-bugs] [Bug 46143][Nor] Changed - CryptoStream.Close throws Exception when not read to end
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 30 Jul 2003 15:01:42 -0400 (EDT)
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 spouliot@videotron.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=46143
--- shadow/46143 Fri Jul 11 06:07:23 2003
+++ shadow/46143.tmp.4124 Wed Jul 30 15:01:42 2003
@@ -1,14 +1,14 @@
Bug#: 46143
Product: Mono/Class Libraries
Version: unspecified
OS: Debian Woody
OS Details:
-Status: NEW
+Status: ASSIGNED
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: JoergR@voelcker.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -47,6 +47,23 @@
It happened when deserializing objects from crypted files.
------- Additional Comments From JoergR@voelcker.com 2003-07-11 06:07 -------
Created an attachment (id=4839)
Test case
+
+------- Additional Comments From spouliot@videotron.ca 2003-07-30 15:01 -------
+Exception fixed in CVS. Close called FlushFinalBlock for read-only
+stream.
+
+However, I'll keep this bug open because we're not returning the
+same results as MS.
+
+MS returns: "Please enc" (10 unicode chars == 20 bytes == length of
+stream that has been read).
+Mono returns: "Please e" (8 unicode chars == 16 bytes == AES block
+size).
+
+This probably means that the decryption is done by block size
+(rounded up) but only returns the specified length (the rest is
+probably cached). This is more complex than the current (quick)
+design. CryptoStream needs to be re-written.