[Mono-bugs] [Bug 73404][Maj] Changed - wrong hash calculation result when using mono. correct result using ms.net 1.1

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 7 Mar 2005 09:43:51 -0500 (EST)

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.


--- shadow/73404	2005-03-06 19:02:46.000000000 -0500
+++ shadow/73404.tmp.1364	2005-03-07 09:43:51.000000000 -0500
@@ -65,6 +65,15 @@
 a) a similar bug in MD5 and SHA1 implementations;
 b) a common bug in the HashAlgorithm class;
 c) a bug related to the use of a FileStream (or a Stream);
 d) a combinaison of a, b and/or c;
 e) something else ;-)
+------- Additional Comments From sebastien@ximian.com  2005-03-07 09:43 -------
+Problem found (a).
+Most hash algorithms won't report correct results if the data length
+is bigger than 2^32 (uint) bits. This will be changed to 2^64 (ulong)
+Note: bits (not bytes) is why it did affect CD size calculations.