Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

mod_inverse

Function 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.