Home | History | Annotate | Download | only in ec
      1 package org.bouncycastle.math.ec;
      2 
      3 /**
      4  * Class holding precomputation data for the WNAF (Window Non-Adjacent Form)
      5  * algorithm.
      6  */
      7 class WNafPreCompInfo implements PreCompInfo
      8 {
      9     /**
     10      * Array holding the precomputed <code>ECPoint</code>s used for the Window
     11      * NAF multiplication in <code>
     12      * {@link org.bouncycastle.math.ec.multiplier.WNafMultiplier.multiply()
     13      * WNafMultiplier.multiply()}</code>.
     14      */
     15     private ECPoint[] preComp = null;
     16 
     17     /**
     18      * Holds an <code>ECPoint</code> representing twice(this). Used for the
     19      * Window NAF multiplication in <code>
     20      * {@link org.bouncycastle.math.ec.multiplier.WNafMultiplier.multiply()
     21      * WNafMultiplier.multiply()}</code>.
     22      */
     23     private ECPoint twiceP = null;
     24 
     25     protected ECPoint[] getPreComp()
     26     {
     27         return preComp;
     28     }
     29 
     30     protected void setPreComp(ECPoint[] preComp)
     31     {
     32         this.preComp = preComp;
     33     }
     34 
     35     protected ECPoint getTwiceP()
     36     {
     37         return twiceP;
     38     }
     39 
     40     protected void setTwiceP(ECPoint twiceThis)
     41     {
     42         this.twiceP = twiceThis;
     43     }
     44 }
     45