コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: PolynomialMethods.cs プロジェクト: Tgjmjgj/edsa
 public PolynomialMethods(HcsrWithSEED hcr)
 {
     this.hcr = hcr;
 }