]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/ec/ec_lib.c
EC_POINT_is_on_curve does not return a boolean
authorMatt Caswell <matt@openssl.org>
Thu, 4 Jun 2015 13:22:00 +0000 (14:22 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Jun 2015 09:43:53 +0000 (10:43 +0100)
commit68886be7e2cd395a759fcd41d2cede461b68843d
treea2cc07973cf021a2601394abee80cf3a4ea22f57
parentb8b12aadd8edfd3bd327157c8899b1cf3403177f
EC_POINT_is_on_curve does not return a boolean

The function EC_POINT_is_on_curve does not return a boolean value.
It returns 1 if the point is on the curve, 0 if it is not, and -1
on error. Many usages within OpenSSL were incorrectly using this
function and therefore not correctly handling error conditions.

With thanks to the Open Crypto Audit Project for reporting this issue.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
crypto/ec/ec2_oct.c
crypto/ec/ec_check.c
crypto/ec/ec_key.c
crypto/ec/ec_lib.c
crypto/ec/ecp_oct.c
test/ectest.c