Bouncy Castle Cryptography 1.50

org.bouncycastle.math.ec
Class ReferenceMultiplier

java.lang.Object
  extended by org.bouncycastle.math.ec.AbstractECMultiplier
      extended by org.bouncycastle.math.ec.ReferenceMultiplier
All Implemented Interfaces:
ECMultiplier

public class ReferenceMultiplier
extends AbstractECMultiplier


Constructor Summary
ReferenceMultiplier()
           
 
Method Summary
protected  ECPoint multiplyPositive(ECPoint p, java.math.BigInteger k)
          Simple shift-and-add multiplication.
 
Methods inherited from class org.bouncycastle.math.ec.AbstractECMultiplier
multiply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceMultiplier

public ReferenceMultiplier()
Method Detail

multiplyPositive

protected ECPoint multiplyPositive(ECPoint p,
                                   java.math.BigInteger k)
Simple shift-and-add multiplication. Serves as reference implementation to verify (possibly faster) implementations in ECPoint.

Specified by:
multiplyPositive in class AbstractECMultiplier
Parameters:
p - The point to multiply.
k - The factor by which to multiply.
Returns:
The result of the point multiplication k * p.

Bouncy Castle Cryptography 1.50