CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/06/08 05:52:43

Modified files:
        lib/libssl     : ssl_kex.c 

Log message:
ssl_kex: ensure the public key uses uncompressed encoding

EC_POINT_oct2point() does most of the validation we need it to do, but it
has to accept the point at infinity, compressed and hybrid encodings for
historic reasons. So exclude these cases: the point at infinity makes no
sense here and will be caught later in ECDH_compute_key(), the compressed
and hybrid encodings MUST NOT be supported per RFC 8422 section 5.1.2.

This is implemented using the strategy already used in ec_convert.c since
the point_conversion_form_t is completely unfit for anything.

Set decode_error to ensure we send that alert. We may make some effort to
use illegal_parameter later.

Issue about the missing alert and the point at infinity raised by Lucca
Hirschi et al.

ok jsing kenjiro

Reply via email to