Skip to main content

Module reduction

Module reduction 

Source
Expand description

Reduction modulo an odd, potentially secret modulus using fixed-width Montgomery arithmetic.

Functionsยง

to_monty ๐Ÿ”’
Convert any input precision to Montgomery form. Loop counts and allocations depend only on buffer precisions, which callers must choose independently of secret values.