Top Description Fields Constructors Methods
org.bouncycastle.math.ec

public Class WNafPreCompInfo

extends Object
implements PreCompInfo
Class Inheritance
All Implemented Interfaces
org.bouncycastle.math.ec.PreCompInfo

Class holding precomputation data for the WNAF (Window Non-Adjacent Form) algorithm.

Field Summary

Modifier and TypeField and Description
protected int
protected ECPoint[]
preComp

Array holding the precomputed ECPoints used for a Window NAF multiplication.

protected ECPoint[]
preCompNeg

Array holding the negations of the precomputed ECPoints used for a Window NAF multiplication.

pack-priv volatile int
protected ECPoint
twice

Holds an ECPoint representing twice(this).

protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public int
public ECPoint[]
public ECPoint[]
pack-priv int
public ECPoint
public int
public boolean
public void
setConfWidth(int confWidth)

public void
setPreComp(ECPoint[] preComp)

public void
setPreCompNeg(ECPoint[] preCompNeg)

pack-priv void
setPromotionCountdown(int promotionCountdown)

public void
public void
setWidth(int width)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

confWidthback to summary
protected int confWidth
preCompback to summary
protected ECPoint[] preComp

Array holding the precomputed ECPoints used for a Window NAF multiplication.

preCompNegback to summary
protected ECPoint[] preCompNeg

Array holding the negations of the precomputed ECPoints used for a Window NAF multiplication.

promotionCountdownback to summary
pack-priv volatile int promotionCountdown
twiceback to summary
protected ECPoint twice

Holds an ECPoint representing twice(this). Used for the Window NAF multiplication to create or extend the precomputed values.

widthback to summary
protected int width

Constructor Detail

WNafPreCompInfoback to summary
public WNafPreCompInfo()

Method Detail

decrementPromotionCountdownback to summary
pack-priv int decrementPromotionCountdown()
getConfWidthback to summary
public int getConfWidth()
getPreCompback to summary
public ECPoint[] getPreComp()
getPreCompNegback to summary
public ECPoint[] getPreCompNeg()
getPromotionCountdownback to summary
pack-priv int getPromotionCountdown()
getTwiceback to summary
public ECPoint getTwice()
getWidthback to summary
public int getWidth()
isPromotedback to summary
public boolean isPromoted()
setConfWidthback to summary
public void setConfWidth(int confWidth)
setPreCompback to summary
public void setPreComp(ECPoint[] preComp)
setPreCompNegback to summary
public void setPreCompNeg(ECPoint[] preCompNeg)
setPromotionCountdownback to summary
pack-priv void setPromotionCountdown(int promotionCountdown)
setTwiceback to summary
public void setTwice(ECPoint twice)
setWidthback to summary
public void setWidth(int width)