summary refs log tree commit diff
path: root/crypto/src/math/ec/SimpleLookupTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/SimpleLookupTable.cs')
-rw-r--r--crypto/src/math/ec/SimpleLookupTable.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/crypto/src/math/ec/SimpleLookupTable.cs b/crypto/src/math/ec/SimpleLookupTable.cs
index f1e32f215..ed300baaa 100644
--- a/crypto/src/math/ec/SimpleLookupTable.cs
+++ b/crypto/src/math/ec/SimpleLookupTable.cs
@@ -3,7 +3,7 @@
 namespace Org.BouncyCastle.Math.EC
 {
     public class SimpleLookupTable
-        : ECLookupTable
+        : AbstractECLookupTable
     {
         private static ECPoint[] Copy(ECPoint[] points, int off, int len)
         {
@@ -22,12 +22,17 @@ namespace Org.BouncyCastle.Math.EC
             this.points = Copy(points, off, len);
         }
 
-        public virtual int Size
+        public override int Size
         {
             get { return points.Length; }
         }
 
-        public virtual ECPoint Lookup(int index)
+        public override ECPoint Lookup(int index)
+        {
+            throw new NotSupportedException("Constant-time lookup not supported");
+        }
+
+        public override ECPoint LookupVar(int index)
         {
             return points[index];
         }