01: package org.bouncycastle.math.ec;
02:
03: /**
04: * Class holding precomputation data for the WTNAF (Window
05: * <code>τ</code>-adic Non-Adjacent Form) algorithm.
06: */
07: class WTauNafPreCompInfo implements PreCompInfo {
08: /**
09: * Array holding the precomputed <code>ECPoint.F2m</code>s used for the
10: * WTNAF multiplication in <code>
11: * {@link org.bouncycastle.math.ec.multiplier.WTauNafMultiplier.multiply()
12: * WTauNafMultiplier.multiply()}</code>.
13: */
14: private ECPoint.F2m[] preComp = null;
15:
16: /**
17: * Constructor for <code>WTauNafPreCompInfo</code>
18: * @param preComp Array holding the precomputed <code>ECPoint.F2m</code>s
19: * used for the WTNAF multiplication in <code>
20: * {@link org.bouncycastle.math.ec.multiplier.WTauNafMultiplier.multiply()
21: * WTauNafMultiplier.multiply()}</code>.
22: */
23: WTauNafPreCompInfo(ECPoint.F2m[] preComp) {
24: this .preComp = preComp;
25: }
26:
27: /**
28: * @return the array holding the precomputed <code>ECPoint.F2m</code>s
29: * used for the WTNAF multiplication in <code>
30: * {@link org.bouncycastle.math.ec.multiplier.WTauNafMultiplier.multiply()
31: * WTauNafMultiplier.multiply()}</code>.
32: */
33: protected ECPoint.F2m[] getPreComp() {
34: return preComp;
35: }
36: }
|