Module modular

Module modular 

Source
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.