Function basic_to_montgomery

Source
pub fn basic_to_montgomery<T>(a: T, modulus: T, r: T) -> T
where T: PartialOrd + Copy + Zero + One + BitAnd<Output = T> + WrappingAdd + WrappingSub + Shr<usize, Output = T> + Rem<Output = T>,
Expand description

Convert to Montgomery form (Basic): a -> (a * R) mod N