Function fiat_crypto::p384_scalar_32::fiat_p384_scalar_sub
source · pub fn fiat_p384_scalar_sub(
out1: &mut fiat_p384_scalar_montgomery_domain_field_element,
arg1: &fiat_p384_scalar_montgomery_domain_field_element,
arg2: &fiat_p384_scalar_montgomery_domain_field_element
)
Expand description
The function fiat_p384_scalar_sub subtracts 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