public override ECFieldElement Invert() { //return new SecP192R1FieldElement(ToBigInteger().ModInverse(Q)); uint[] z = Nat192.Create(); SecP192R1Field.Inv(x, z); return(new SecP192R1FieldElement(z)); }
public override ECFieldElement Divide(ECFieldElement b) { //return Multiply(b.Invert()); uint[] z = Nat192.Create(); SecP192R1Field.Inv(((SecP192R1FieldElement)b).x, z); SecP192R1Field.Multiply(z, x, z); return(new SecP192R1FieldElement(z)); }