aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/bouncycastle/math/ec/ECMultiplier.java
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2013-04-12 06:57:21 -0700
committerKenny Root <kenny@the-b.org>2013-04-12 06:57:21 -0700
commit82da776132927427339c6c801e955f75c70e4435 (patch)
treee7431dc664ed8e2c7e413fac47bc69bf173f7a86 /src/org/bouncycastle/math/ec/ECMultiplier.java
parentf7beb3b827f0eb6d03d8ff3589782a0df14fd2f5 (diff)
downloadconnectbot-82da776132927427339c6c801e955f75c70e4435.tar.gz
connectbot-82da776132927427339c6c801e955f75c70e4435.tar.bz2
connectbot-82da776132927427339c6c801e955f75c70e4435.zip
Add missing EC math files
Diffstat (limited to 'src/org/bouncycastle/math/ec/ECMultiplier.java')
-rw-r--r--src/org/bouncycastle/math/ec/ECMultiplier.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/org/bouncycastle/math/ec/ECMultiplier.java b/src/org/bouncycastle/math/ec/ECMultiplier.java
new file mode 100644
index 0000000..4d72e33
--- /dev/null
+++ b/src/org/bouncycastle/math/ec/ECMultiplier.java
@@ -0,0 +1,19 @@
+package org.bouncycastle.math.ec;
+
+import java.math.BigInteger;
+
+/**
+ * Interface for classes encapsulating a point multiplication algorithm
+ * for <code>ECPoint</code>s.
+ */
+interface ECMultiplier
+{
+ /**
+ * Multiplies the <code>ECPoint p</code> by <code>k</code>, i.e.
+ * <code>p</code> is added <code>k</code> times to itself.
+ * @param p The <code>ECPoint</code> to be multiplied.
+ * @param k The factor by which <code>p</code> i multiplied.
+ * @return <code>p</code> multiplied by <code>k</code>.
+ */
+ ECPoint multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo);
+}