Fix corner case for compressed points on binary curves
authortb <tb@openbsd.org>
Mon, 3 May 2021 14:42:45 +0000 (14:42 +0000)
committertb <tb@openbsd.org>
Mon, 3 May 2021 14:42:45 +0000 (14:42 +0000)
commitf33d478c46b7874cde9f7ac7b80478879830bf63
tree167509b01271f9d5252082e188387a975c227125
parent7b306117fd12411a8b9427316c8a86e9a49f60b1
Fix corner case for compressed points on binary curves

Per X9.62 4.4.1.b., the compressed representation of a point with
zero x coordinate on a binary curve must have y_bit unset. Error
out in that case of ec_GF2m_set_compressed_coordinates() instead
of ignoring y_bit.

ok jsing
lib/libcrypto/ec/ec2_oct.c