1 package org.bouncycastle.math.ec; 2 3 /** 4 * Class holding precomputation data for the WTNAF (Window 5 * <code>τ</code>-adic Non-Adjacent Form) algorithm. 6 */ 7 class WTauNafPreCompInfo implements PreCompInfo 8 { 9 /** 10 * Array holding the precomputed <code>ECPoint.F2m</code>s used for the 11 * WTNAF multiplication in <code> 12 * {@link org.bouncycastle.math.ec.multiplier.WTauNafMultiplier.multiply() 13 * WTauNafMultiplier.multiply()}</code>. 14 */ 15 private ECPoint.F2m[] preComp = null; 16 17 /** 18 * Constructor for <code>WTauNafPreCompInfo</code> 19 * @param preComp Array holding the precomputed <code>ECPoint.F2m</code>s 20 * used for the WTNAF multiplication in <code> 21 * {@link org.bouncycastle.math.ec.multiplier.WTauNafMultiplier.multiply() 22 * WTauNafMultiplier.multiply()}</code>. 23 */ 24 WTauNafPreCompInfo(ECPoint.F2m[] preComp) 25 { 26 this.preComp = preComp; 27 } 28 29 /** 30 * @return the array holding the precomputed <code>ECPoint.F2m</code>s 31 * used for the WTNAF multiplication in <code> 32 * {@link org.bouncycastle.math.ec.multiplier.WTauNafMultiplier.multiply() 33 * WTauNafMultiplier.multiply()}</code>. 34 */ 35 protected ECPoint.F2m[] getPreComp() 36 { 37 return preComp; 38 } 39 } 40