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:17:44 +0000 (17:17 +0100)
commitb14e60155009f4f1d168e220fa01cd2b75557b72
tree5a9d75432d7308b24eaaee50d402133e05c92507
parent2de108dfa343c3e06eb98beb122cd06306bb12fd
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)
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