Package org.bouncycastle.math.ec
Class WNafL2RMultiplier
- java.lang.Object
-
- org.bouncycastle.math.ec.AbstractECMultiplier
-
- org.bouncycastle.math.ec.WNafL2RMultiplier
-
- All Implemented Interfaces:
ECMultiplier
public class WNafL2RMultiplier extends AbstractECMultiplier
Class implementing the WNAF (Window Non-Adjacent Form) multiplication algorithm.
-
-
Constructor Summary
Constructors Constructor Description WNafL2RMultiplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetWindowSize(int bits)Determine window width to use for a scalar multiplication of the given size.protected ECPointmultiplyPositive(ECPoint p, BigInteger k)Multipliesthisby an integerkusing the Window NAF method.-
Methods inherited from class org.bouncycastle.math.ec.AbstractECMultiplier
multiply
-
-
-
-
Method Detail
-
multiplyPositive
protected ECPoint multiplyPositive(ECPoint p, BigInteger k)
Multipliesthisby an integerkusing the Window NAF method.- Specified by:
multiplyPositivein classAbstractECMultiplier- Parameters:
k- The integer by whichthisis multiplied.- Returns:
- A new
ECPointwhich equalsthismultiplied byk.
-
getWindowSize
protected int getWindowSize(int bits)
Determine window width to use for a scalar multiplication of the given size.- Parameters:
bits- the bit-length of the scalar to multiply by- Returns:
- the window size to use
-
-