diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-09-17 11:53:45 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-09-17 11:53:45 +0700 |
commit | 992f73598ec5b8325286616515536a5f6f40fa51 (patch) | |
tree | e423d7ae6222a2d48db0b5fc0e67dd1f497436ef /crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs | |
parent | Added GmSSL test vectors for SM3 (diff) | |
download | BouncyCastle.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.cs | 2 |
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) |