diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-05 11:53:21 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-03-05 11:53:21 +0700 |
commit | 7e777150e04e7e74dbf28f8e0a922bd2a5f8d94a (patch) | |
tree | a9ce36cb2d6a01be55b4876492bab81c8ca75463 /crypto/src/math/ec/custom/sec/SecP224R1Field.cs | |
parent | Fix infinite loop issue when there is no sqrt (diff) | |
download | BouncyCastle.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.cs | 2 |
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) { |