summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs
index eade0b8e9..4876fafa9 100644
--- a/crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs
+++ b/crypto/src/math/ec/custom/sec/SecP160R1FieldElement.cs
@@ -94,7 +94,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         {
     //        return multiply(b.invert());
             uint[] z = Nat160.Create();
-            Mod.Invert(SecP160R1Field.P, ((SecP160R1FieldElement)b).x, z);
+            SecP160R1Field.Inv(((SecP160R1FieldElement)b).x, z);
             SecP160R1Field.Multiply(z, x, z);
             return new SecP160R1FieldElement(z);
         }
@@ -117,7 +117,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         {
     //        return new SecP160R1FieldElement(ToBigInteger().modInverse(Q));
             uint[] z = Nat160.Create();
-            Mod.Invert(SecP160R1Field.P, x, z);
+            SecP160R1Field.Inv(x, z);
             return new SecP160R1FieldElement(z);
         }