summary refs log tree commit diff
path: root/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs')
-rw-r--r--crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs b/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs
index 306f40a11..56a6326a1 100644
--- a/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs
+++ b/crypto/src/math/ec/multiplier/FixedPointPreCompInfo.cs
@@ -12,10 +12,23 @@
          */
         protected ECPoint[] m_preComp = null;
 
+        /**
+         * The width used for the precomputation. If a larger width precomputation
+         * is already available this may be larger than was requested, so calling
+         * code should refer to the actual width.
+         */
+        protected int m_width = -1;
+
         public virtual ECPoint[] PreComp
         {
             get { return m_preComp; }
             set { this.m_preComp = value; }
         }
+
+        public virtual int Width
+        {
+            get { return m_width; }
+            set { this.m_width = value; }
+        }
     }
 }