[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
Sun, 6 Mar 2005 19:02:46 -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 17:29:15.000000000 -0500
+++ shadow/73404.tmp.11872	2005-03-06 19:02:46.000000000 -0500
@@ -1,23 +1,23 @@
 Bug#: 73404
 Product: Mono: Class Libraries
 Version: unspecified
 OS: other
 OS Details: Linux: Fedora Core3, Windows: WinXP SP1
-Status: NEW   
+Status: ASSIGNED   
 Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: sebastien@ximian.com                            
 ReportedBy: ch.trassl@web.de               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
-Summary: wrong md5 calculation result when using mono. corrent result using ms.net 1.1.
+Summary: wrong hash calculation result when using mono. correct result using ms.net 1.1
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 The attached MonoBugMd5sum.cs calculates the string hash value of a file as
@@ -55,6 +55,16 @@
 Attached Sourcefile.
 ------- Additional Comments From ch.trassl@web.de  2005-03-06 17:15 -------
 Created an attachment (id=14564)
 command-line md5sum checker sourcecode for bug 73404
+------- Additional Comments From sebastien@ximian.com  2005-03-06 19:02 -------
+By modifying your sample I could duplicate the problem using both MD5
+and SHA1 (compared to md5sum and sha1sum). So this is either:
+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 ;-)