summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-03-05 11:53:21 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-03-05 11:53:21 +0700
commit7e777150e04e7e74dbf28f8e0a922bd2a5f8d94a (patch)
treea9ce36cb2d6a01be55b4876492bab81c8ca75463 /crypto/src/math/ec/custom/sec/SecP192K1Field.cs
parentFix infinite loop issue when there is no sqrt (diff)
downloadBouncyCastle.NET-ed25519-7e777150e04e7e74dbf28f8e0a922bd2a5f8d94a.tar.xz
Use Nat methods instead of specific Nat*.*Ext methods
Reduction improvements in curve25519 and secp256r1
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP192K1Field.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP192K1Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP192K1Field.cs b/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
index 8ce5619a0..6f6f28f91 100644
--- a/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
+++ b/crypto/src/math/ec/custom/sec/SecP192K1Field.cs
@@ -27,7 +27,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         public static void AddExt(uint[] xx, uint[] yy, uint[] zz)
         {
             uint c = Nat.Add(12, xx, yy, zz);
-            if (c != 0 || (zz[11] == PExt11 && Nat192.GteExt(zz, PExt)))
+            if (c != 0 || (zz[11] == PExt11 && Nat.Gte(12, zz, PExt)))
             {
                 if (Nat.AddTo(PExtInv.Length, PExtInv, zz) != 0)
                 {