public SecT193FieldElement(BigInteger x)
        {
            if (x == null || x.SignValue < 0 || x.BitLength > 193)
            {
                throw new ArgumentException("value invalid for SecT193FieldElement", "x");
            }

            this.x = SecT193Field.FromBigInteger(x);
        }
        public override ECFieldElement SquarePow(int pow)
        {
            if (pow < 1)
            {
                return(this);
            }

            ulong[] z = Nat256.Create64();
            SecT193Field.SquareN(x, pow, z);
            return(new SecT193FieldElement(z));
        }
        public override ECFieldElement MultiplyPlusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
        {
            ulong[] ax = this.x, bx = ((SecT193FieldElement)b).x;
            ulong[] xx = ((SecT193FieldElement)x).x, yx = ((SecT193FieldElement)y).x;

            ulong[] tt = Nat256.CreateExt64();
            SecT193Field.MultiplyAddToExt(ax, bx, tt);
            SecT193Field.MultiplyAddToExt(xx, yx, tt);

            ulong[] z = Nat256.Create64();
            SecT193Field.Reduce(tt, z);
            return(new SecT193FieldElement(z));
        }
 public override ECFieldElement Multiply(ECFieldElement b)
 {
     ulong[] z = Nat256.Create64();
     SecT193Field.Multiply(x, ((SecT193FieldElement)b).x, z);
     return(new SecT193FieldElement(z));
 }
 public override ECFieldElement AddOne()
 {
     ulong[] z = Nat256.Create64();
     SecT193Field.AddOne(x, z);
     return(new SecT193FieldElement(z));
 }