From 7e777150e04e7e74dbf28f8e0a922bd2a5f8d94a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 5 Mar 2014 11:53:21 +0700 Subject: Use Nat methods instead of specific Nat*.*Ext methods Reduction improvements in curve25519 and secp256r1 --- crypto/src/math/ec/custom/sec/SecP224K1Field.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/math/ec/custom/sec/SecP224K1Field.cs') diff --git a/crypto/src/math/ec/custom/sec/SecP224K1Field.cs b/crypto/src/math/ec/custom/sec/SecP224K1Field.cs index 57fd1179a..89eb6258e 100644 --- a/crypto/src/math/ec/custom/sec/SecP224K1Field.cs +++ b/crypto/src/math/ec/custom/sec/SecP224K1Field.cs @@ -28,7 +28,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) { -- cgit 1.4.1