01: package org.bouncycastle.math.ec;
02:
03: /**
04: * Class holding precomputation data for the WNAF (Window Non-Adjacent Form)
05: * algorithm.
06: */
07: class WNafPreCompInfo implements PreCompInfo {
08: /**
09: * Array holding the precomputed <code>ECPoint</code>s used for the Window
10: * NAF multiplication in <code>
11: * {@link org.bouncycastle.math.ec.multiplier.WNafMultiplier.multiply()
12: * WNafMultiplier.multiply()}</code>.
13: */
14: private ECPoint[] preComp = null;
15:
16: /**
17: * Holds an <code>ECPoint</code> representing twice(this). Used for the
18: * Window NAF multiplication in <code>
19: * {@link org.bouncycastle.math.ec.multiplier.WNafMultiplier.multiply()
20: * WNafMultiplier.multiply()}</code>.
21: */
22: private ECPoint twiceP = null;
23:
24: protected ECPoint[] getPreComp() {
25: return preComp;
26: }
27:
28: protected void setPreComp(ECPoint[] preComp) {
29: this .preComp = preComp;
30: }
31:
32: protected ECPoint getTwiceP() {
33: return twiceP;
34: }
35:
36: protected void setTwiceP(ECPoint twiceThis) {
37: this.twiceP = twiceThis;
38: }
39: }
|