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

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