Function fiat_crypto::curve25519_scalar_64::fiat_25519_scalar_opp
source · pub fn fiat_25519_scalar_opp(
out1: &mut fiat_25519_scalar_montgomery_domain_field_element,
arg1: &fiat_25519_scalar_montgomery_domain_field_element
)
Expand description
The function fiat_25519_scalar_opp negates a field element in the Montgomery domain.
Preconditions: 0 ≤ eval arg1 < m Postconditions: eval (from_montgomery out1) mod m = -eval (from_montgomery arg1) mod m 0 ≤ eval out1 < m