pub fn modpow(base: &BigInt, exp: &BigInt, m: &BigInt) -> BigInt
Modular exponentiation base^exp mod m with a full BigInt exponent (square-and-multiply, the exponent’s bits read off by repeated halving).
base^exp mod m
BigInt