Function strict_mod_exp

Source
pub fn strict_mod_exp<T>(base: T, exponent: &T, modulus: &T) -> T
where for<'a> T: PartialOrd + One + Zero + OverflowingAdd + OverflowingSub + Shr<usize, Output = T> + RemAssign<&'a T> + DivAssign<&'a T> + ShrAssign<usize> + Rem<&'a T, Output = T>, for<'a> &'a T: Rem<&'a T, Output = T> + BitAnd<Output = T>,
Expand description

ยงModular Exponentiation (Strict)

Most constrained version that works with references. Requires OverflowingAdd and OverflowingSub traits to be implemented, and all multiplication contraints as well.