diff options
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP256K1Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP256K1Field.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP256K1Field.cs b/crypto/src/math/ec/custom/sec/SecP256K1Field.cs index aa82013b2..42564fd4f 100644 --- a/crypto/src/math/ec/custom/sec/SecP256K1Field.cs +++ b/crypto/src/math/ec/custom/sec/SecP256K1Field.cs @@ -29,7 +29,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec public static void AddExt(uint[] xx, uint[] yy, uint[] zz) { uint c = Nat.Add(16, xx, yy, zz); - if (c != 0 || (zz[15] == PExt15 && Nat256.GteExt(zz, PExt))) + if (c != 0 || (zz[15] == PExt15 && Nat.Gte(16, zz, PExt))) { if (Nat.AddTo(PExtInv.Length, PExtInv, zz) != 0) { |