macro_rules! const_monty_form {
($variable:ident, $modulus:ident) => { ... };
}
Expand description
Creates a ConstMontyForm
with the given value for a specific modulus.
For example, const_monty_form!(U256::from(105u64), MyModulus);
creates a ConstMontyForm
for 105 mod MyModulus
.
The modulus must be odd, or this will panic.