summaryrefslogtreecommitdiff
path: root/crypto/ec/ec2_oct.c
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2015-08-31 16:19:30 +0900
committerKyungwook Tak <k.tak@samsung.com>2015-08-31 16:21:32 +0900
commitca2b56e2594c5e549d1c5c2e0ea625770f59bb75 (patch)
tree7712fcee7b020d7ebc0820aac202f8af2de6a924 /crypto/ec/ec2_oct.c
parenta23523f545972af9d67393bb41a17e1564e36cd4 (diff)
parent13ea66c69fd44fadc3e1493311a74537b8cb5d7c (diff)
downloadopenssl-ca2b56e2594c5e549d1c5c2e0ea625770f59bb75.tar.gz
openssl-ca2b56e2594c5e549d1c5c2e0ea625770f59bb75.tar.bz2
openssl-ca2b56e2594c5e549d1c5c2e0ea625770f59bb75.zip
Change-Id: I4adbd2d17c72f228aea1396678f1e11a67b63bdc
Diffstat (limited to 'crypto/ec/ec2_oct.c')
-rw-r--r--crypto/ec/ec2_oct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec2_oct.c b/crypto/ec/ec2_oct.c
index c245d88..0d04cc6 100644
--- a/crypto/ec/ec2_oct.c
+++ b/crypto/ec/ec2_oct.c
@@ -387,7 +387,7 @@ int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
}
/* test required by X9.62 */
- if (!EC_POINT_is_on_curve(group, point, ctx)) {
+ if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
ECerr(EC_F_EC_GF2M_SIMPLE_OCT2POINT, EC_R_POINT_IS_NOT_ON_CURVE);
goto err;
}