mirror of
https://github.com/cuberite/polarssl.git
synced 2025-08-16 00:56:12 -04: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>