Expand description
Implements modular arithmetic for constant moduli.
Modules§
- constant_
mod - Implements
Residue
s, supporting modular arithmetic with a constant modulus. - runtime_
mod - Implements
DynResidue
s, supporting modular arithmetic with a modulus set at runtime.
Traits§
- Retrieve
- A generalization for numbers kept in optimized representations (e.g. Montgomery) that can be converted back to the original form.
Functions§
- montgomery_
reduction - Algorithm 14.32 in Handbook of Applied Cryptography https://cacr.uwaterloo.ca/hac/about/chap14.pdf