summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs
index 5d1fea8b5..d2ff05cb7 100644
--- a/crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs
+++ b/crypto/src/math/ec/custom/sec/SecP256K1FieldElement.cs
@@ -1,5 +1,4 @@
 using System;
-using System.Diagnostics;
 
 using Org.BouncyCastle.Math.Raw;
 using Org.BouncyCastle.Utilities;
@@ -95,7 +94,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         {
             //return Multiply(b.Invert());
             uint[] z = Nat256.Create();
-            Mod.Invert(SecP256K1Field.P, ((SecP256K1FieldElement)b).x, z);
+            SecP256K1Field.Inv(((SecP256K1FieldElement)b).x, z);
             SecP256K1Field.Multiply(z, x, z);
             return new SecP256K1FieldElement(z);
         }
@@ -118,7 +117,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         {
             //return new SecP256K1FieldElement(ToBigInteger().ModInverse(Q));
             uint[] z = Nat256.Create();
-            Mod.Invert(SecP256K1Field.P, x, z);
+            SecP256K1Field.Inv(x, z);
             return new SecP256K1FieldElement(z);
         }