[Mono-bugs] [Bug 76398][Nor] Changed -
SymmetricTransform.TransformFinalBlock only works once.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Oct 11 08:26:30 EDT 2005
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 at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76398
--- shadow/76398 2005-10-11 03:20:30.000000000 -0400
+++ shadow/76398.tmp.24610 2005-10-11 08:26:30.000000000 -0400
@@ -78,6 +78,23 @@
If I understand your reply correctly I have to a) use CryptoStream and
b) create the transforms for every instance?
Thanks,
Joerg.
+
+------- Additional Comments From sebastien at ximian.com 2005-10-11 08:26 -------
+a) use CryptoStream and
+
+Honestly I don't like CryptoStream ;-) but yes it's "easier" that way
+(i.e. harder to make some mistakes) but you still have to check
+CanReuseTransform before reusing transforms (as the ctor accept a
+transform) but not if you can transform multiple blocks.
+
+b) create the transforms for every instance
+
+It's safer to do so (i.e. it's safe to ignore CanReuseTransform if you
+don't reuse it). It's also safer to assume that a transform can only
+process one block (CanTransformMultipleBlock can then be ignored too).
+
+But for performance you may want to check both properties and use them
+(reuse, multiple blocks) when available.
More information about the mono-bugs
mailing list