Function comlib_math::mod_pow[][src]

pub fn mod_pow<I: Integer>(base: I, exponent: I, modulus: I) -> I
Expand description

Raises base to given exponent in the given modulus.

Note that it’s up to the caller to ensure that the type can store (modulus-1)^2. If this is not the case, it is undefined what this function returns.