| java.lang.Object org.bouncycastle.math.ec.WNafMultiplier
WNafMultiplier | class WNafMultiplier implements ECMultiplier(Code) | | Class implementing the WNAF (Window Non-Adjacent Form) multiplication
algorithm.
|
Method Summary | |
public ECPoint | multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo) Multiplies this by an integer k using the
Window NAF method.
Parameters: k - The integer by which this is multiplied. | public byte[] | windowNaf(byte width, BigInteger k) Computes the Window NAF (non-adjacent Form) of an integer.
Parameters: width - The width w of the Window NAF. |
multiply | public ECPoint multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo)(Code) | | Multiplies this by an integer k using the
Window NAF method.
Parameters: k - The integer by which this is multiplied. A new ECPoint which equals this multiplied by k . |
windowNaf | public byte[] windowNaf(byte width, BigInteger k)(Code) | | Computes the Window NAF (non-adjacent Form) of an integer.
Parameters: width - The width w of the Window NAF. The width isdefined as the minimal number w , such that for anyw consecutive digits in the resulting representation, atmost one is non-zero. Parameters: k - The integer of which the Window NAF is computed. The Window NAF of the given width, such that the following holds:k = ∑i=0l-1 ki2i , where the ki denote the elements of thereturned byte[] . |
|
|