Package org.bouncycastle.math.ec
Class WNafPreCompInfo
java.lang.Object
org.bouncycastle.math.ec.WNafPreCompInfo
- All Implemented Interfaces:
PreCompInfo
Class holding precomputation data for the WNAF (Window Non-Adjacent Form)
algorithm.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected ECPoint[]
Array holding the precomputedECPoint
s used for a Window NAF multiplication.protected ECPoint[]
Array holding the negations of the precomputedECPoint
s used for a Window NAF multiplication.protected ECPoint
Holds anECPoint
representing twice(this).protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
ECPoint[]
ECPoint[]
getTwice()
int
getWidth()
boolean
void
setConfWidth
(int confWidth) void
setPreComp
(ECPoint[] preComp) void
setPreCompNeg
(ECPoint[] preCompNeg) void
void
setWidth
(int width)
-
Field Details
-
confWidth
protected int confWidth -
preComp
Array holding the precomputedECPoint
s used for a Window NAF multiplication. -
preCompNeg
Array holding the negations of the precomputedECPoint
s used for a Window NAF multiplication. -
twice
Holds anECPoint
representing twice(this). Used for the Window NAF multiplication to create or extend the precomputed values. -
width
protected int width
-
-
Constructor Details
-
WNafPreCompInfo
public WNafPreCompInfo()
-
-
Method Details
-
isPromoted
public boolean isPromoted() -
getConfWidth
public int getConfWidth() -
setConfWidth
public void setConfWidth(int confWidth) -
getPreComp
-
setPreComp
-
getPreCompNeg
-
setPreCompNeg
-
getTwice
-
setTwice
-
getWidth
public int getWidth() -
setWidth
public void setWidth(int width)
-