Expand description
Implements modular arithmetic for constant moduli.
Re-exportsยง
pub use reduction::montgomery_reduction;
Modulesยง
- add ๐
- constant_
mod - Implements
Residues, supporting modular arithmetic with a constant modulus. - div_
by_ ๐2 - inv ๐
- mul ๐
- pow ๐
- reduction ๐
- runtime_
mod - Implements
DynResidues, supporting modular arithmetic with a modulus set at runtime. - sub ๐
Traitsยง
- Retrieve
- A generalization for numbers kept in optimized representations (e.g. Montgomery) that can be converted back to the original form.