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.
Re-exports§
pub use self::div::div;
Modules§
- div
- ⚠️ Collection of division algorithms.
Structs§
- Lehmer
Matrix - ⚠️ Lehmer update matrix
Functions§
- addmul
- ⚠️ Computes
result += a * b
and checks for overflow. - addmul_
n - Computes wrapping
lhs += a * b
when all arguments are the same length. - addmul_
nx1 - Computes
lhs += a * b
and returns the borrow. - gcd
- ⚠️ Lehmer’s GCD algorithms.
- gcd_
extended - ⚠️ Lehmer’s extended GCD.
- inv_mod
- ⚠️ Modular inversion using extended GCD.
- mul_
redc - See Handbook of Applied Cryptography, Algorithm 14.32, p. 601.
- shift_
left_ small - shift_
right_ small - submul_
nx1 - Computes
lhs -= a * b
and returns the borrow.