Skip to main content

mul_montgomery_form

Function mul_montgomery_form 

Source
pub(crate) const fn mul_montgomery_form<const LIMBS: usize>(
    a: &Uint<LIMBS>,
    b: &Uint<LIMBS>,
    modulus: &Odd<Uint<LIMBS>>,
    mod_neg_inv: Limb,
) -> Uint<LIMBS>
Expand description

Computes the Montgomery product of a and b modulo modulus, where a and b are in Montgomery form.