| | | 1 | | using System; |
| | | 2 | | |
| | | 3 | | namespace Renci.SshNet.Security.Org.BouncyCastle.Math.EC.Multiplier |
| | | 4 | | { |
| | | 5 | | /** |
| | | 6 | | * Class holding precomputation data for fixed-point multiplications. |
| | | 7 | | */ |
| | | 8 | | internal class FixedPointPreCompInfo |
| | | 9 | | : PreCompInfo |
| | | 10 | | { |
| | 3 | 11 | | protected ECPoint m_offset = null; |
| | | 12 | | |
| | | 13 | | /** |
| | | 14 | | * Lookup table for the precomputed <code>ECPoint</code>s used for a fixed point multiplication. |
| | | 15 | | */ |
| | 3 | 16 | | protected ECLookupTable m_lookupTable = null; |
| | | 17 | | |
| | | 18 | | /** |
| | | 19 | | * The width used for the precomputation. If a larger width precomputation |
| | | 20 | | * is already available this may be larger than was requested, so calling |
| | | 21 | | * code should refer to the actual width. |
| | | 22 | | */ |
| | 3 | 23 | | protected int m_width = -1; |
| | | 24 | | |
| | | 25 | | public virtual ECLookupTable LookupTable |
| | | 26 | | { |
| | 45 | 27 | | get { return m_lookupTable; } |
| | 9 | 28 | | set { this.m_lookupTable = value; } |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public virtual ECPoint Offset |
| | | 32 | | { |
| | 27 | 33 | | get { return m_offset; } |
| | 9 | 34 | | set { this.m_offset = value; } |
| | | 35 | | } |
| | | 36 | | |
| | | 37 | | public virtual int Width |
| | | 38 | | { |
| | 27 | 39 | | get { return m_width; } |
| | 9 | 40 | | set { this.m_width = value; } |
| | | 41 | | } |
| | | 42 | | } |
| | | 43 | | } |