public class Multiexponentiation
extends java.lang.Object
| Constructor and Description |
|---|
Multiexponentiation() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeMinPrecomputedWindowSize(MultiExpAlgorithm multiExpAlgorithm)
Computes the minimum window size currently offered by the precomputations of all terms as required for
the given algorithm.
|
void |
ensurePrecomputation(int windowSize,
MultiExpAlgorithm multiExpAlgorithm)
Ensures that all terms support the given window size by performing the precomputations that are necessary
to reach the desired window size for the interleaved sliding window algorithm.
|
java.util.Optional<GroupElementImpl> |
getConstantFactor() |
int |
getNumberOfTerms() |
java.util.List<MultiExpTerm> |
getTerms() |
boolean |
isEmpty() |
void |
put(GroupElementImpl groupelem) |
void |
put(GroupElementImpl base,
java.math.BigInteger exponent,
SmallExponentPrecomputation precomputation) |
void |
put(MultiExpTerm term) |
java.lang.String |
toString() |
public void put(MultiExpTerm term)
public void put(GroupElementImpl base, java.math.BigInteger exponent, SmallExponentPrecomputation precomputation)
public void put(GroupElementImpl groupelem)
public void ensurePrecomputation(int windowSize,
MultiExpAlgorithm multiExpAlgorithm)
windowSize - The window size to ensure support forpublic int computeMinPrecomputedWindowSize(MultiExpAlgorithm multiExpAlgorithm)
public java.util.List<MultiExpTerm> getTerms()
public int getNumberOfTerms()
public java.util.Optional<GroupElementImpl> getConstantFactor()
public boolean isEmpty()
public java.lang.String toString()
toString in class java.lang.Object