summary refs log tree commit diff
path: root/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-09-17 11:53:45 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-09-17 11:53:45 +0700
commit992f73598ec5b8325286616515536a5f6f40fa51 (patch)
treee423d7ae6222a2d48db0b5fc0e67dd1f497436ef /crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs
parentAdded GmSSL test vectors for SM3 (diff)
downloadBouncyCastle.NET-ed25519-992f73598ec5b8325286616515536a5f6f40fa51.tar.xz
Avoid infinity appearing in lookup table for FixedPointCombMultiplier
Diffstat (limited to 'crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs')
-rw-r--r--crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs b/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs
index a8ef5a77a..05bb4000b 100644
--- a/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs
+++ b/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs
@@ -48,7 +48,7 @@ namespace Org.BouncyCastle.Math.EC.Multiplier
                 R = R.TwicePlus(lookupTable[index]);
             }
 
-            return R;
+            return R.Add(info.Offset);
         }
 
         protected virtual int GetWidthForCombSize(int combSize)