class WNafMultiplier extends java.lang.Object implements ECMultiplier
Constructor and Description |
---|
WNafMultiplier() |
Modifier and Type | Method and Description |
---|---|
ECPoint |
multiply(ECPoint p,
java.math.BigInteger k,
PreCompInfo preCompInfo)
Multiplies
this by an integer k using the
Window NAF method. |
byte[] |
windowNaf(byte width,
java.math.BigInteger k)
Computes the Window NAF (non-adjacent Form) of an integer.
|
public byte[] windowNaf(byte width, java.math.BigInteger k)
width
- The width w
of the Window NAF. The width is
defined as the minimal number w
, such that for any
w
consecutive digits in the resulting representation, at
most one is non-zero.k
- The integer of which the Window NAF is computed.k = ∑i=0l-1 ki2i
, where the ki
denote the elements of the
returned byte[]
.public ECPoint multiply(ECPoint p, java.math.BigInteger k, PreCompInfo preCompInfo)
this
by an integer k
using the
Window NAF method.multiply
in interface ECMultiplier
k
- The integer by which this
is multiplied.p
- The ECPoint
to be multiplied.ECPoint
which equals this
multiplied by k
.Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.