• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.bouncycastle.math.ec;
2 
3 import java.math.BigInteger;
4 
5 /**
6  * Interface for classes encapsulating a point multiplication algorithm
7  * for <code>ECPoint</code>s.
8  */
9 public interface ECMultiplier
10 {
11     /**
12      * Multiplies the <code>ECPoint p</code> by <code>k</code>, i.e.
13      * <code>p</code> is added <code>k</code> times to itself.
14      * @param p The <code>ECPoint</code> to be multiplied.
15      * @param k The factor by which <code>p</code> is multiplied.
16      * @return <code>p</code> multiplied by <code>k</code>.
17      */
multiply(ECPoint p, BigInteger k)18     ECPoint multiply(ECPoint p, BigInteger k);
19 }
20