All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spongycastle.math.ec.WNafPreCompInfo Maven / Gradle / Ivy

Go to download

The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider for the Bouncy Castle Cryptography APIs for JDK 1.5 to JDK 1.7.

There is a newer version: 1.47.0.3
Show newest version
package org.spongycastle.math.ec;

/**
 * Class holding precomputation data for the WNAF (Window Non-Adjacent Form)
 * algorithm.
 */
class WNafPreCompInfo implements PreCompInfo
{
    /**
     * Array holding the precomputed ECPoints used for the Window
     * NAF multiplication in 
     * {@link org.spongycastle.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 org.spongycastle.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy