Function mod_exp
Source pub fn mod_exp(base: &BigUint, exponent: &BigUint, modulus: &BigUint) -> BigUint
Expand description
Calculates the modular exponentiation of a base raised to an exponent modulo a modulus.
§Arguments
base - The base of the exponentiation.
exponent - The exponent.
modulus - The modulus.
§Returns
The result of the modular exponentiation as a BigUint.