summary refs log tree commit diff
path: root/crypto/src/math/ec/AbstractECLookupTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/AbstractECLookupTable.cs')
-rw-r--r--crypto/src/math/ec/AbstractECLookupTable.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/src/math/ec/AbstractECLookupTable.cs b/crypto/src/math/ec/AbstractECLookupTable.cs
new file mode 100644
index 000000000..fbd272d0c
--- /dev/null
+++ b/crypto/src/math/ec/AbstractECLookupTable.cs
@@ -0,0 +1,16 @@
+using System;
+
+namespace Org.BouncyCastle.Math.EC
+{
+    public abstract class AbstractECLookupTable
+        : ECLookupTable
+    {
+        public abstract ECPoint Lookup(int index);
+        public abstract int Size { get; }
+
+        public virtual ECPoint LookupVar(int index)
+        {
+            return Lookup(index);
+        }
+    }
+}