[Mono-bugs] [Bug 609376] HashAlgorithm subclasses function differently than on MS .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 27 10:30:25 EDT 2010



Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED
                 CC|                            |spouliot at novell.com
         AssignedTo|mono-bugs at lists.ximian.com  |spouliot at novell.com

--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2010-05-27 14:30:25 UTC ---
Under MS.NET using ComputeHash re-initialize the state, while it does not when
using TransformFinalBlock. Currently Mono does it on both. 

As a workaround add a:

    md5Hasher.Initialize ();

line after the call to TransformFinalBlock.

Note that your code should check the CanReuseTransform property too.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list