Skip to main content

modpow

Function modpow 

Source
pub fn modpow(base: &BigInt, exp: &BigInt, m: &BigInt) -> BigInt
Expand description

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