Package org.bouncycastle.math.ec
Class WNafPreCompInfo
- java.lang.Object
 - 
- org.bouncycastle.math.ec.WNafPreCompInfo
 
 
- 
- All Implemented Interfaces:
 PreCompInfo
public class WNafPreCompInfo extends java.lang.Object implements PreCompInfo
Class holding precomputation data for the WNAF (Window Non-Adjacent Form) algorithm. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected intconfWidthprotected ECPoint[]preCompArray holding the precomputedECPoints used for a Window NAF multiplication.protected ECPoint[]preCompNegArray holding the negations of the precomputedECPoints used for a Window NAF multiplication.protected ECPointtwiceHolds anECPointrepresenting twice(this).protected intwidth 
- 
Constructor Summary
Constructors Constructor Description WNafPreCompInfo() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConfWidth()ECPoint[]getPreComp()ECPoint[]getPreCompNeg()ECPointgetTwice()intgetWidth()booleanisPromoted()voidsetConfWidth(int confWidth)voidsetPreComp(ECPoint[] preComp)voidsetPreCompNeg(ECPoint[] preCompNeg)voidsetTwice(ECPoint twice)voidsetWidth(int width) 
 - 
 
- 
- 
Field Detail
- 
confWidth
protected int confWidth
 
- 
preComp
protected ECPoint[] preComp
Array holding the precomputedECPoints used for a Window NAF multiplication. 
- 
preCompNeg
protected ECPoint[] preCompNeg
Array holding the negations of the precomputedECPoints used for a Window NAF multiplication. 
- 
twice
protected ECPoint twice
Holds anECPointrepresenting twice(this). Used for the Window NAF multiplication to create or extend the precomputed values. 
- 
width
protected int width
 
 - 
 
- 
Method Detail
- 
isPromoted
public boolean isPromoted()
 
- 
getConfWidth
public int getConfWidth()
 
- 
setConfWidth
public void setConfWidth(int confWidth)
 
- 
getPreComp
public ECPoint[] getPreComp()
 
- 
setPreComp
public void setPreComp(ECPoint[] preComp)
 
- 
getPreCompNeg
public ECPoint[] getPreCompNeg()
 
- 
setPreCompNeg
public void setPreCompNeg(ECPoint[] preCompNeg)
 
- 
getTwice
public ECPoint getTwice()
 
- 
setTwice
public void setTwice(ECPoint twice)
 
- 
getWidth
public int getWidth()
 
- 
setWidth
public void setWidth(int width)
 
 - 
 
 -