summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP224R1Field.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/SecP224R1Field.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/SecP224R1Field.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP224R1Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP224R1Field.cs b/crypto/src/math/ec/custom/sec/SecP224R1Field.cs
index 8ffc9aa65..9b29ff3d1 100644
--- a/crypto/src/math/ec/custom/sec/SecP224R1Field.cs
+++ b/crypto/src/math/ec/custom/sec/SecP224R1Field.cs
@@ -26,7 +26,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
         public static void AddExt(uint[] xx, uint[] yy, uint[] zz)
         {
             uint c = Nat.Add(14, xx, yy, zz);
-            if (c != 0 || (zz[13] == PExt13 && Nat224.GteExt(zz, PExt)))
+            if (c != 0 || (zz[13] == PExt13 && Nat.Gte(14, zz, PExt)))
             {
                 if (Nat.AddTo(PExtInv.Length, PExtInv, zz) != 0)
                 {