Skip to main content

mod_pow

Function mod_pow 

Source
pub fn mod_pow(
    base: &ExactInt,
    exp: &ExactInt,
    modulus: &ExactInt,
) -> Option<ExactInt>
Expand description

base^exp mod modulus. exp < 0 or a zero modulus is None. |modulus| = 1 is 0.