[][src]Function num_bigint_dig::algorithms::mod_inverse

pub fn mod_inverse(g: Cow<BigUint>, n: Cow<BigUint>) -> Option<BigInt>

Calculate the modular inverse of g. Implementation is based on the naive version from wikipedia.