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