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/FixedPointPreCompInfo.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/FixedPointPreCompInfo.cs')
-rw-r--r-- | crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs b/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs index 56a6326a1..11bdadc6f 100644 --- a/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs +++ b/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs @@ -6,11 +6,13 @@ public class FixedPointPreCompInfo : PreCompInfo { + protected ECPoint m_offset = null; + /** * Array holding the precomputed <code>ECPoint</code>s used for a fixed * point multiplication. */ - protected ECPoint[] m_preComp = null; + protected ECPoint[] m_preComp = null; /** * The width used for the precomputation. If a larger width precomputation @@ -19,6 +21,12 @@ */ protected int m_width = -1; + public virtual ECPoint Offset + { + get { return m_offset; } + set { this.m_offset = value; } + } + public virtual ECPoint[] PreComp { get { return m_preComp; } |