Skip to main content

mod_inverse

Function mod_inverse 

Source
pub fn mod_inverse(a: &BigInt, m: &BigInt) -> Option<BigInt>
Expand description

The modular inverse a⁻¹ mod m via the extended Euclidean algorithm, or None if gcd(a, m) ≠ 1.