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

Function fr_to_montgomery

Source
pub fn fr_to_montgomery(
    out1: &mut FrMontgomeryDomainFieldElement,
    arg1: &FrNonMontgomeryDomainFieldElement,
)
Expand description

The function fr_to_montgomery translates a field element into the Montgomery domain.

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