Function basic_compute_montgomery_params

Source
pub fn basic_compute_montgomery_params<T>(
    modulus: T,
) -> Option<(T, T, T, usize)>
where T: Copy + Zero + One + PartialEq + PartialOrd + Shl<usize, Output = T> + Div<Output = T> + Sub<Output = T> + Mul<Output = T> + Rem<Output = T> + Add<Output = T> + BitAnd<Output = T>,
Expand description

Montgomery parameter computation (Basic) with default method Computes R, R^(-1) mod N, N’, and R bit length for Montgomery arithmetic using trial search Returns None if parameter computation fails