[Mono-bugs] [Bug 78560][Nor] New - Incorrect result of Runs-Test in MonoTests.System.Security.Cryptography.RandomNumberGeneratorTest

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 1 05:20:20 EDT 2006


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 jpstotz at gmx.de.

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

--- shadow/78560	2006-06-01 05:20:20.000000000 -0400
+++ shadow/78560.tmp.26146	2006-06-01 05:20:20.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 78560
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jpstotz at gmx.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect result of Runs-Test in MonoTests.System.Security.Cryptography.RandomNumberGeneratorTest
+
+There are three "bugs" in the class 
+"MonoTests.System.Security.Cryptography.RandomNumberGeneratorTest"
+in the method
+"protected void Runs (string rngName, byte[] sample)".
+
+1. The last "run" is just ignored. There is a simple test which 
+demonstrates this bug:
+Feed the method with the sample data eqal to 2500 times 0xFF.
+The result should be 1 run with length 6 or more but the result is 0 for 
+all run-lengthes.
+
+2. AFAIK the Runs-Test require to count all runs 0-runs and 1-runs, not 
+only the 1-runs as it is done at the moment.
+
+3. There is a change notice in the fips1402.pdf concerning the ranges of 
+the 6 run lengthes. For example the number of runs with the length 1 now 
+have to be in the range 2,315 – 2,685 not in the range 2,343 – 2,657 as it 
+is used in the source (see page 62 in the pdf).
+
+Jan


More information about the mono-bugs mailing list