{
return modPow(BigInteger.valueOf(base), exponent, modulus);
}
public static void reloadConfiguration()
{
<BUG>useGMPForModPow = SystemConfiguration.getProperty("paillier.useGMPForModPow").equals("true");

useGMPConstantTimeMethods = SystemConfiguration.getProperty("paillier.GMPConstantTimeMode").equals("true");
</BUG>
}

{
private static boolean useGMPForModPow = SystemConfiguration.isSetTrue("paillier.useGMPForModPow");
private static boolean useGMPConstantTimeMethods = SystemConfiguration.isSetTrue("paillier.GMPConstantTimeMode");
public static BigInteger modPow(BigInteger base, BigInteger exponent, BigInteger modulus)
{
BigInteger result;
if (useGMPForModPow)
{
if (useGMPConstantTimeMethods)
{
result = Gmp.modPowSecure(base, exponent, modulus);
