Function constrained_compute_montgomery_params_with_method

Source
pub fn constrained_compute_montgomery_params_with_method<T>(
    modulus: &T,
    method: NPrimeMethod,
) -> Option<(T, T, T, usize)>
where for<'a> T: Clone + Zero + One + PartialEq + PartialOrd + WrappingAdd + WrappingSub + Shl<usize, Output = T> + Sub<Output = T> + for<'a> Rem<&'a T, Output = T> + Add<&'a T, Output = T> + Sub<&'a T, Output = T> + Mul<&'a T, Output = T> + RemAssign<&'a T>, for<'a> &'a T: Sub<T, Output = T> + Div<&'a T, Output = T> + Rem<&'a T, Output = T> + BitAnd<&'a T, Output = T>,
Expand description

Montgomery parameter computation (Constrained) Computes R, R^(-1) mod N, N’, and R bit length for Montgomery arithmetic Returns None if N’ computation fails or R^(-1) mod N cannot be found