ecc: make signature check return negative number in error case.

dtls excepted a negative number now, this was a security problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>