Bouncy Castle Cryptography Library 1.64

org.bouncycastle.math.ec
Class MixedNafR2LMultiplier

java.lang.Object
  extended byorg.bouncycastle.math.ec.AbstractECMultiplier
      extended byorg.bouncycastle.math.ec.MixedNafR2LMultiplier
All Implemented Interfaces:
ECMultiplier

public class MixedNafR2LMultiplier
extends AbstractECMultiplier

Class implementing the NAF (Non-Adjacent Form) multiplication algorithm (right-to-left) using mixed coordinates.


Field Summary
protected  int additionCoord
           
protected  int doublingCoord
           
 
Constructor Summary
MixedNafR2LMultiplier()
          By default, addition will be done in Jacobian coordinates, and doubling will be done in Modified Jacobian coordinates (independent of the original coordinate system of each point).
MixedNafR2LMultiplier(int additionCoord, int doublingCoord)
           
 
Method Summary
protected  ECCurve configureCurve(ECCurve c, int coord)
           
protected  ECPoint multiplyPositive(ECPoint p, java.math.BigInteger k)
           
 
Methods inherited from class org.bouncycastle.math.ec.AbstractECMultiplier
checkResult, multiply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

additionCoord

protected int additionCoord

doublingCoord

protected int doublingCoord
Constructor Detail

MixedNafR2LMultiplier

public MixedNafR2LMultiplier()
By default, addition will be done in Jacobian coordinates, and doubling will be done in Modified Jacobian coordinates (independent of the original coordinate system of each point).


MixedNafR2LMultiplier

public MixedNafR2LMultiplier(int additionCoord,
                             int doublingCoord)
Method Detail

multiplyPositive

protected ECPoint multiplyPositive(ECPoint p,
                                   java.math.BigInteger k)
Specified by:
multiplyPositive in class AbstractECMultiplier

configureCurve

protected ECCurve configureCurve(ECCurve c,
                                 int coord)

Bouncy Castle Cryptography Library 1.64