public class DebugGroupImplNoExpMultiExp extends DebugGroupImpl
DebugGroupImpl implementation that counts operations not done inside (multi-)exponentiations
and counts (multi-)exponentiations as their own unit.name, zn| Constructor and Description |
|---|
DebugGroupImplNoExpMultiExp(Representation repr) |
DebugGroupImplNoExpMultiExp(java.lang.String name,
java.math.BigInteger n) |
| Modifier and Type | Method and Description |
|---|---|
GroupElementImpl |
exp(GroupElementImpl base,
java.math.BigInteger exponent,
SmallExponentPrecomputation precomputation)
Can be overwritten to implement a custom exponentiation algorithm for the group.
|
boolean |
implementsOwnExp()
Indicates whether this group implements its own custom exponentiation algorithm by overwriting
GroupImpl.exp(org.cryptimeleon.math.structures.groups.GroupElementImpl, java.math.BigInteger, org.cryptimeleon.math.structures.groups.exp.SmallExponentPrecomputation). |
boolean |
implementsOwnMultiExp()
Indicates whether this group implements its own multi-exponentiation algorithm
by overwriting
GroupImpl.multiexp(Multiexponentiation). |
GroupElementImpl |
multiexp(Multiexponentiation mexp)
Can be overwritten to implement a custom multi-exponentiation algorithm for the group.
|
equals, estimateCostInvPerOp, getGenerator, getNeutralElement, getRepresentation, getUniformlyRandomElement, getUniformlyRandomNonNeutral, getUniqueByteLength, hashCode, hasPrimeSize, isCommutative, restoreElement, size, toString, wrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitrestoreFromRepresentationpublic DebugGroupImplNoExpMultiExp(java.lang.String name,
java.math.BigInteger n)
public DebugGroupImplNoExpMultiExp(Representation repr)
public GroupElementImpl exp(GroupElementImpl base, java.math.BigInteger exponent, SmallExponentPrecomputation precomputation)
GroupImplbase - the base of the exponentiationexponent - the exponent of the exponentiationprecomputation - a set of precomputations that can be used to speed up the exponentiationbase base to the power of exponentpublic GroupElementImpl multiexp(Multiexponentiation mexp)
GroupImplmexp - contains the multi-exponentiation termspublic boolean implementsOwnExp()
GroupImplGroupImpl.exp(org.cryptimeleon.math.structures.groups.GroupElementImpl, java.math.BigInteger, org.cryptimeleon.math.structures.groups.exp.SmallExponentPrecomputation).GroupImpl.exp(org.cryptimeleon.math.structures.groups.GroupElementImpl, java.math.BigInteger, org.cryptimeleon.math.structures.groups.exp.SmallExponentPrecomputation), else falsepublic boolean implementsOwnMultiExp()
GroupImplGroupImpl.multiexp(Multiexponentiation).