summary refs log tree commit diff
path: root/crypto/src/math/ec/Nat.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/Nat.cs')
-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)
             {