public Schoof(int seed, BigInteger a, BigInteger b, BigInteger p, BackgroundWorker bw) { this.ecs = new EllipticCurve(p, a, b, 0, 0); this.bw = bw; q = Maths.Sqrt(p); if (q * q < p) { q++; } p1 = p - 1; q2 = 2 * q; q4 = 4 * q; hcr = new HcsrWithSEED(seed); pm = new PolynomialMethods(hcr); random = new Random(seed); }