Package org.bouncycastle.math.ec
Class MixedNafR2LMultiplier
- java.lang.Object
-
- org.bouncycastle.math.ec.AbstractECMultiplier
-
- org.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
Fields Modifier and Type Field Description protected int
additionCoord
protected int
doublingCoord
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classAbstractECMultiplier
-
-