[Mono-bugs] [Bug 70169][Nor] Changed - BigInteger modular exponentiation doesn't work when modulus is power of 2

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 3 Dec 2004 16:02:55 -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.

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

--- shadow/70169	2004-12-03 09:03:54.000000000 -0500
+++ shadow/70169.tmp.22625	2004-12-03 16:02:55.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 70169
 Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: Mono.Security
 AssignedTo: sebastien@ximian.com                            
 ReportedBy: pieter@mentalis.org               
 QAContact: mono-bugs@ximian.com
@@ -24,6 +24,14 @@
 	BigInteger e = new BigInteger(10);
 	BigInteger m = new BigInteger(32);
 	Console.WriteLine(e.ModPow(e, m));
 	Console.ReadLine();
 
 The modulus can be any 2^k (for k = 0..inf).
+
+------- Additional Comments From sebastien@ximian.com  2004-12-03 16:02 -------
+Fixed in SVN (both HEAD and MONO-1-0).
+
+The bug was caused by a small error. It wasn't detected because non
+cryptographic test cases are almost inexistant in BigInteger right now
+- and crypto tests deal mostly with odd numbers. BigInteger
+definitively needs more unit tests.