Function decaf377::fields::fr::u32::fiat::fr_from_montgomery

source ·
pub fn fr_from_montgomery(
    out1: &mut FrNonMontgomeryDomainFieldElement,
    arg1: &FrMontgomeryDomainFieldElement,
)
Expand description

The function fr_from_montgomery translates a field element out of the Montgomery domain.

Preconditions: 0 ≤ eval arg1 < m Postconditions: eval out1 mod m = (eval arg1 * ((2^32)⁻¹ mod m)^8) mod m 0 ≤ eval out1 < m