01: package org.bouncycastle.math.ec;
02:
03: import java.math.BigInteger;
04:
05: /**
06: * Interface for classes encapsulating a point multiplication algorithm
07: * for <code>ECPoint</code>s.
08: */
09: interface ECMultiplier {
10: /**
11: * Multiplies the <code>ECPoint p</code> by <code>k</code>, i.e.
12: * <code>p</code> is added <code>k</code> times to itself.
13: * @param p The <code>ECPoint</code> to be multiplied.
14: * @param k The factor by which <code>p</code> i multiplied.
15: * @return <code>p</code> multiplied by <code>k</code>.
16: */
17: ECPoint multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo);
18: }
|