tree: 2eaa0c39d31fd1edec91b669eedc0d2b15c46e03 [path history] [tgz]
  1. src/
  2. BUILD.gn
  3. LICENSE-APACHE
  4. LICENSE-MIT
  5. README.md
third_party/modinv/README.md

The Rust num-bigint crate has a useful function for efficiently calculating modular multiplicative inverses, but is unfortunately not public. The function is copied here and modified to be public.

Source: https://github.com/rust-num/num-bigint/blob/4024df9670d408934984c68a5c4faed2e6a3e923/src/monty.rs#L15