Exemplo n.º 1
0
 public FpCurve(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor) : base(q)
 {
     this.m_q        = q;
     this.m_r        = FpFieldElement.CalculateResidue(q);
     this.m_infinity = new FpPoint(this, null, null);
     base.m_a        = this.FromBigInteger(a);
     base.m_b        = this.FromBigInteger(b);
     base.m_order    = order;
     base.m_cofactor = cofactor;
     base.m_coord    = 4;
 }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
0
 public FpFieldElement(BigInteger q, BigInteger x) : this(q, FpFieldElement.CalculateResidue(q), x)
 {
 }