Ejemplo n.º 1
0
 public FpCurve(BigInteger q, BigInteger a, BigInteger b)
 {
     this.q        = q;
     this.a        = FromBigInteger(a);
     this.b        = FromBigInteger(b);
     this.infinity = new FpPoint(this, null, null);
 }
Ejemplo n.º 2
0
        protected FpCurve(BigInteger q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor)
            : base(FiniteFields.GetPrimeField(q))
        {
            this.m_q        = q;
            this.m_r        = r;
            this.m_infinity = new FpPoint(this, null, null);

            this.m_a        = a;
            this.m_b        = b;
            this.m_order    = order;
            this.m_cofactor = cofactor;
            this.m_coord    = FP_DEFAULT_COORDS;
        }
Ejemplo n.º 3
0
        public FpCurve(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor)
            : base(FiniteFields.GetPrimeField(q))
        {
            this.m_q        = q;
            this.m_r        = FpFieldElement.CalculateResidue(q);
            this.m_infinity = new FpPoint(this, null, null);

            this.m_a        = FromBigInteger(a);
            this.m_b        = FromBigInteger(b);
            this.m_order    = order;
            this.m_cofactor = cofactor;
            this.m_coord    = FP_DEFAULT_COORDS;
        }
Ejemplo n.º 4
0
		public FpCurve(BigInteger q, BigInteger a, BigInteger b)
        {
            this.q = q;
            this.a = FromBigInteger(a);
            this.b = FromBigInteger(b);
			this.infinity = new FpPoint(this, null, null);
        }
 /// <summary>
 /// Create an ECGroupElementBCImpl object.
 /// </summary>
 /// <param name="point">A Bouncy Castle FpPoint object.</param>
 public ECGroupElementBCImpl(FpPoint point)
 {
     Point = point;
 }