summary refs log tree commit diff
path: root/crypto/src/math
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-01 15:36:40 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-01 15:36:40 +0700
commita14d64a6bdc72a679af82ba70bad4123b1756e2d (patch)
tree1250acac41d22429d99bfaba12474104401f031b /crypto/src/math
parentRename locals in Reduce() methods (diff)
downloadBouncyCastle.NET-ed25519-a14d64a6bdc72a679af82ba70bad4123b1756e2d.tar.xz
Fix IncExt
Diffstat (limited to 'crypto/src/math')
-rw-r--r--crypto/src/math/ec/Nat.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/Nat.cs b/crypto/src/math/ec/Nat.cs
index e20304dd6..593cb4ecf 100644
--- a/crypto/src/math/ec/Nat.cs
+++ b/crypto/src/math/ec/Nat.cs
@@ -185,7 +185,7 @@ namespace Org.BouncyCastle.Math.EC
 
         public static uint IncExt(int len, uint[] zz, int zzOff)
         {
-            int extLen = len;
+            int extLen = len << 1;
             Debug.Assert(zzOff <= extLen);
             for (int i = zzOff; i < extLen; ++i)
             {