bouncycastle.math.ec.WNafPreCompInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of woodlouse Show documentation
Show all versions of woodlouse Show documentation
Lightweight crypto toolkit for Android and Java 6+
The newest version!
package bouncycastle.math.ec;
/**
* Class holding precomputation data for the WNAF (Window Non-Adjacent Form)
* algorithm.
*/
class WNafPreCompInfo implements PreCompInfo
{
/**
* Array holding the precomputed ECPoint
s used for the Window
* NAF multiplication in
* {@link bouncycastle.math.ec.multiplier.WNafMultiplier.multiply()
* WNafMultiplier.multiply()}
.
*/
private ECPoint[] preComp = null;
/**
* Holds an ECPoint
representing twice(this). Used for the
* Window NAF multiplication in
* {@link bouncycastle.math.ec.multiplier.WNafMultiplier.multiply()
* WNafMultiplier.multiply()}
.
*/
private ECPoint twiceP = null;
protected ECPoint[] getPreComp()
{
return preComp;
}
protected void setPreComp(ECPoint[] preComp)
{
this.preComp = preComp;
}
protected ECPoint getTwiceP()
{
return twiceP;
}
protected void setTwiceP(ECPoint twiceThis)
{
this.twiceP = twiceThis;
}
}