mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-22 08:23:44 +08:00

Negative x coordinate was tested with the value -1. It happens to be one of the low order points both for Curve25519 and Curve448 and might be rejected because of that and not because it is negative. Make sure that x < 0 is the only plausible reason for the point to be rejected. Signed-off-by: Janos Follath <janos.follath@arm.com>