

def powMod(x, y, mod):
    "\n    (Efficiently) Calculate and return `x' to the power of `y' mod `mod'.\n\n    If possible, the three numbers are converted to GMPY's bignum\n    representation which speeds up exponentiation.  If GMPY is not installed,\n    built-in exponentiation is used.\n    "
    x = mpz(x)
    y = mpz(y)
    mod = mpz(mod)
    return pow(x, y, mod)

dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/common/modexp.py powMod/original