Module runtime_mod

Module runtime_mod 

Source
Expand description

Implements DynResidues, supporting modular arithmetic with a modulus set at runtime.

Modulesยง

runtime_add ๐Ÿ”’
Additions between residues with a modulus set at runtime
runtime_inv ๐Ÿ”’
Multiplicative inverses of residues with a modulus set at runtime
runtime_mul ๐Ÿ”’
Multiplications between residues with a modulus set at runtime
runtime_neg ๐Ÿ”’
Negations of residues with a modulus set at runtime
runtime_pow ๐Ÿ”’
Exponentiation of residues with a modulus set at runtime
runtime_sub ๐Ÿ”’
Subtractions between residues with a modulus set at runtime

Structsยง

DynResidue
A residue represented using LIMBS limbs. The odd modulus of this residue is set at runtime.
DynResidueParams
The parameters to efficiently go to and from the Montgomery form for an odd modulus provided at runtime.