public final class ModPowAbstraction
extends java.lang.Object
Constructor and Description |
---|
ModPowAbstraction() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
modPow(java.math.BigInteger base,
java.math.BigInteger exponent,
java.math.BigInteger modulus)
Performs modPow: (
base ^exponent ) mod modulus
This method uses the values of paillier.useGMPForModPow and paillier.GMPConstantTimeMode as they were when the class was loaded to decide
which implementation of modPow to invoke. |
static java.math.BigInteger |
modPow(long base,
java.math.BigInteger exponent,
java.math.BigInteger modulus) |
static void |
reloadConfiguration() |
public static java.math.BigInteger modPow(java.math.BigInteger base, java.math.BigInteger exponent, java.math.BigInteger modulus)
base
^exponent
) mod modulus
This method uses the values of paillier.useGMPForModPow
and paillier.GMPConstantTimeMode
as they were when the class was loaded to decide
which implementation of modPow to invoke.
These values can be reloaded by invoking static method ModPowAbstraction.reloadConfiguration()
public static java.math.BigInteger modPow(long base, java.math.BigInteger exponent, java.math.BigInteger modulus)
public static void reloadConfiguration()