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
FieldsModifier and TypeFieldDescriptionprotected intprotected ECPoint[]Array holding the precomputedECPoints used for a Window NAF multiplication.protected ECPoint[]Array holding the negations of the precomputedECPoints used for a Window NAF multiplication.protected ECPointHolds anECPointrepresenting twice(this).protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintECPoint[]ECPoint[]getTwice()intgetWidth()booleanvoidsetConfWidth(int confWidth) voidsetPreComp(ECPoint[] preComp) voidsetPreCompNeg(ECPoint[] preCompNeg) voidvoidsetWidth(int width)
-
Field Details
-
confWidth
protected int confWidth -
preComp
Array holding the precomputedECPoints used for a Window NAF multiplication. -
preCompNeg
Array holding the negations of the precomputedECPoints used for a Window NAF multiplication. -
twice
Holds anECPointrepresenting 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)
-