Improve compatibility of point and curve checks
authorMatt Caswell <matt@openssl.org>
Mon, 21 May 2018 14:24:56 +0000 (15:24 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 24 May 2018 16:18:14 +0000 (17:18 +0100)
commit926b21117df939241f1cd63f2f9e3ab87819f0ed
tree58ec07df41f366ffc24ad3ea40bba973b2318697
parent6d3cfd13a904a03fc3522da935136dcdd12e9014
Improve compatibility of point and curve checks

We check that the curve name associated with the point is the same as that
for the curve.

Fixes #6302

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6323)

(cherry picked from commit b14e60155009f4f1d168e220fa01cd2b75557b72)
crypto/ec/ec2_smpl.c
crypto/ec/ec_curve.c
crypto/ec/ec_lcl.h
crypto/ec/ec_lib.c
crypto/ec/ec_mult.c
crypto/ec/ec_oct.c
crypto/ec/ecp_nistz256.c
crypto/ec/ecp_smpl.c