From 30be9a8adbb937be7bd7d416d631f99086ecab03 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 1 Feb 2014 11:36:32 +0700 Subject: Fix Nat*.Gte methods --- crypto/src/math/ec/custom/sec/Nat192.cs | 4 ++-- crypto/src/math/ec/custom/sec/Nat256.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crypto/src/math/ec/custom') diff --git a/crypto/src/math/ec/custom/sec/Nat192.cs b/crypto/src/math/ec/custom/sec/Nat192.cs index 22f79c9d3..b2f29221c 100644 --- a/crypto/src/math/ec/custom/sec/Nat192.cs +++ b/crypto/src/math/ec/custom/sec/Nat192.cs @@ -180,7 +180,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (x_i > y_i) return true; } - return false; + return true; } public static bool GteExt(uint[] xx, uint[] yy) @@ -193,7 +193,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (xx_i > yy_i) return true; } - return false; + return true; } public static uint Inc(uint[] z, int zOff) diff --git a/crypto/src/math/ec/custom/sec/Nat256.cs b/crypto/src/math/ec/custom/sec/Nat256.cs index b0326716a..40e287b9b 100644 --- a/crypto/src/math/ec/custom/sec/Nat256.cs +++ b/crypto/src/math/ec/custom/sec/Nat256.cs @@ -198,7 +198,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (x_i > y_i) return true; } - return false; + return true; } public static bool GteExt(uint[] xx, uint[] yy) @@ -211,7 +211,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (xx_i > yy_i) return true; } - return false; + return true; } public static uint Inc(uint[] z, int zOff) -- cgit 1.5.1