[Mono-bugs] [Bug 60573][Nor] Changed - CryptoStream output 1 block short after Flush

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Jun 2004 14:22:47 -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 t7@pobox.com.

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

--- shadow/60573	2004-06-22 13:34:56.000000000 -0400
+++ shadow/60573.tmp.25548	2004-06-22 14:22:47.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 60573
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: Other
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: System.Security
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: t7@pobox.com               
 QAContact: mono-bugs@ximian.com
@@ -220,6 +220,18 @@
 // System.Security.Cryptography CryptoStream.cs
 //
 // Authors:
 //      Thomas Neidhart (tome@sbox.tugraz.at)
 //      Sebastien Pouliot (sebastien@ximian.com)
 /
+
+------- Additional Comments From t7@pobox.com  2004-06-22 14:22 -------
+I'm still not certain, but looking at the source and the following
+comment, it looks like it is intentional that it doesn't output the
+last block on Flush().  (I thought Flush() would call
+FlushFinalBlock() - but it doesn't.  Should it?)
+
+from CryptoStream.cs: Write(..) (from 0.96 release sources)
+// transform all except the last block (which may be the last block
+// of the stream and require TransformFinalBlock)
+
+So, perhaps this isn't abug afterall (??...)