Module ruint::algorithms
source · [−]Expand description
⚠️ Collection of bignum algorithms.
Warning. Most functions in this module are currently not considered part of the stable API and may be changed or removed in future minor releases.
Structs
⚠️ Lehmer update matrix
Functions
⚠️ Division with remainder.
⚠️ Lehmer’s GCD algorithms.
⚠️ Lehmer’s extended GCD.
⚠️ Modular inversion using extended GCD.
⚠️ Computes result += lhs * rhs
and checks for overflow.
⚠️ Same as mul
, but will always inline.
See Handbook of Applied Cryptography, Algorithm 14.32, p. 601.