[Mono-devel-list] mono.math

halaszi gabor kukocs at freemail.hu
Sat Aug 9 09:50:02 EDT 2003


hi!

i want to do some RSA-specific stuff in mono, and was unable to use this
method:

Mono.Math.BigInteger.genPseudoPrime(int)

throws: A null value was found where an object instance was
required

i've attached a _simple testcase, it's not for the UTs, and nunit test
result


i'm not familiar with this BigInteger stuff, so i'm unable to resolve
this:(

by:
	kukocs

ps: if it's really a bug, can somebody send it to bugzilla?
-------------- next part --------------
//
// MonoTests.Mono.Math.PseudoPrimenTest.cs
//
// Authors:
//	Halaszi Gabor
//
// Copyright (c) 2003 Halaszi Gabor. All rights reserved
//

using System;
using Mono.Math;
using NUnit.Framework;

namespace MonoTests.Mono.Math {
	
	[TestFixture]
	public class PseudoPrimeTests : Assertion {
		private BigInteger a;
		[Test]
		public void TestPseudoPrime () {
			a = BigInteger.genPseudoPrime(128);
		}
	}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestResult.xml
Type: text/xml
Size: 2785 bytes
Desc: 
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030809/5eae04d5/attachment.xml 


More information about the Mono-devel-list mailing list