diff options
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs index b67fc44f0..795fe3b2e 100644 --- a/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs +++ b/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs @@ -94,7 +94,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec { // return Multiply(b.invert()); uint[] z = Nat160.Create(); - Mod.Invert(SecP160R2Field.P, ((SecP160R2FieldElement)b).x, z); + SecP160R2Field.Inv(((SecP160R2FieldElement)b).x, z); SecP160R2Field.Multiply(z, x, z); return new SecP160R2FieldElement(z); } @@ -117,7 +117,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec { // return new SecP160R2FieldElement(ToBigInteger().modInverse(Q)); uint[] z = Nat160.Create(); - Mod.Invert(SecP160R2Field.P, x, z); + SecP160R2Field.Inv(x, z); return new SecP160R2FieldElement(z); } |