Function num_bigint_dig::algorithms::mod_inverse
source · 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.