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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Jun 2004 09:28:33 -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 sebastien@ximian.com.

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

--- shadow/60573	2004-06-23 09:07:27.000000000 -0400
+++ shadow/60573.tmp.11156	2004-06-23 09:28:33.000000000 -0400
@@ -262,6 +262,16 @@
 FlushFinalBlock:   -        Actual Write: 8
 
 
 It also seems that we can get the same behaviour by commenting 2 lines
 in CryptoStream.cs. However this makes other unit tests fails on Mono
 (but strangely not on Windows).
+
+------- Additional Comments From sebastien@ximian.com  2004-06-23 09:28 -------
+The difference seems located in the ICryptoTransform used (not in
+CryptoStream). This would explain why the Mono CryptoStream work when
+used on MS runtime (with MS ICryptoTransform's).
+
+It also seems that the Encryptor and Decryptor have different
+behaviour. Encryptor (like used in this bug report) can process the
+full buffer, while Decryptor (like the failing unit tests) will keep
+the last block for the next round.