예제 #1
0
 public override ECFieldElement Invert()
 {
     //return new SecP192R1FieldElement(ToBigInteger().ModInverse(Q));
     uint[] z = Nat192.Create();
     SecP192R1Field.Inv(x, z);
     return(new SecP192R1FieldElement(z));
 }
예제 #2
0
 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));
 }