decaf377::fields::fr::u32::fiat

Function fr_mul

Source
pub fn fr_mul(
    out1: &mut FrMontgomeryDomainFieldElement,
    arg1: &FrMontgomeryDomainFieldElement,
    arg2: &FrMontgomeryDomainFieldElement,
)
Expand description

The function fr_mul multiplies two field elements in the Montgomery domain.

Preconditions: 0 ≤ eval arg1 < m 0 ≤ eval arg2 < m Postconditions: eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg2)) mod m 0 ≤ eval out1 < m