diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-02-01 08:36:43 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-02-01 08:36:43 +0400 |
commit | 0481d233b1671a5ad9846b6c5809cf2dd4ddad00 (patch) | |
tree | 01491f5990f4a7b910e459a4d37a76b02f01dad6 /core/src/main/java/org/bouncycastle/math | |
parent | 47fbc35135b5df8362e33f86798cd02752cf15d3 (diff) |
Fix Nat*.gte methods
Diffstat (limited to 'core/src/main/java/org/bouncycastle/math')
3 files changed, 6 insertions, 6 deletions
diff --git a/core/src/main/java/org/bouncycastle/math/ec/Nat.java b/core/src/main/java/org/bouncycastle/math/ec/Nat.java index a7fafee0..ddadf7e5 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/Nat.java +++ b/core/src/main/java/org/bouncycastle/math/ec/Nat.java @@ -149,7 +149,7 @@ public abstract class Nat if (x_i > y_i) return true; } - return false; + return true; } public static boolean gteExt(int len, int[] xx, int[] yy) @@ -164,7 +164,7 @@ public abstract class Nat if (xx_i > yy_i) return true; } - return false; + return true; } public static int inc(int len, int[] z, int zOff) diff --git a/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat192.java b/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat192.java index 625954a6..6351a64c 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat192.java +++ b/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat192.java @@ -182,7 +182,7 @@ public abstract class Nat192 if (x_i > y_i) return true; } - return false; + return true; } public static boolean gteExt(int[] xx, int[] yy) @@ -196,7 +196,7 @@ public abstract class Nat192 if (xx_i > yy_i) return true; } - return false; + return true; } public static int inc(int[] z, int zOff) diff --git a/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat256.java b/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat256.java index 0ffc6d35..1a7ea9d3 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat256.java +++ b/core/src/main/java/org/bouncycastle/math/ec/custom/sec/Nat256.java @@ -200,7 +200,7 @@ public abstract class Nat256 if (x_i > y_i) return true; } - return false; + return true; } public static boolean gteExt(int[] xx, int[] yy) @@ -214,7 +214,7 @@ public abstract class Nat256 if (xx_i > yy_i) return true; } - return false; + return true; } public static int inc(int[] z, int zOff) |