Top Description Constructors Methods
org.bouncycastle.math.ec

public Class WNafL2RMultiplier

extends AbstractECMultiplier
Class Inheritance
Imports
java.math.BigInteger

Class implementing the WNAF (Window Non-Adjacent Form) multiplication algorithm.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected int

Returns:

the window size to use
getWindowSize
(int
the bit-length of the scalar to multiply by
bits
)

Determine window width to use for a scalar multiplication of the given size.

protected ECPoint

Returns:

A new ECPoint which equals this multiplied by k.
multiplyPositive
(ECPoint p, BigInteger
The integer by which this is multiplied.
k
)

Implements abstract org.bouncycastle.math.ec.AbstractECMultiplier.multiplyPositive.

Multiplies this by an integer k using the Window NAF method.
Inherited from org.bouncycastle.math.ec.AbstractECMultiplier:
checkResultmultiply

Constructor Detail

WNafL2RMultiplierback to summary
public WNafL2RMultiplier()

Method Detail

getWindowSizeback to summary
protected int getWindowSize(int bits)

Determine window width to use for a scalar multiplication of the given size.

Parameters
bits:int

the bit-length of the scalar to multiply by

Returns:int

the window size to use

multiplyPositiveback to summary
protected ECPoint multiplyPositive(ECPoint p, BigInteger k)

Implements abstract org.bouncycastle.math.ec.AbstractECMultiplier.multiplyPositive.

Multiplies this by an integer k using the Window NAF method.

Parameters
k:BigInteger

The integer by which this is multiplied.

Returns:ECPoint

A new ECPoint which equals this multiplied by k.