[erlang-bugs] Incomplete Elliptic Curve Cipher Suites in R16B01 and R16B02

Andrew Thompson <>
Sat Oct 5 00:57:37 CEST 2013

I think I've found the second issue. gnutls-cli and Erlang negotiate the
cipher as


Then erlang picks secp256k1 as the curve to use, despite the fact that
GNUTLS only advertised it supported secp192r1, secp224r1, secp256r1,
secp384r1 and secp521k1 in the client hello.

However, erlang completely ignores the ECC curves the client advertises
in the Client Hello. If you change the assignment of client_ecc:


To instead pull the eliptic curves out of the #client_hello.extensions,
it'll actually work: I did something like this:

hello(Hello = #client_hello{client_version = ClientVersion,
                            extensions = #hello_extensions{hash_signs = HashSigns, elliptic_curves={elliptic_curves, ClientECC}}},
                                        client_ecc = {ClientECC, EcPointFormats}});

And that made it so gnutls-cli could connect. I realize this isn't
perfect, but it certainly illustrates the problem, SSL is ignoring what
the client asks for. I think it is also ignoring the EC point formats.


More information about the erlang-bugs mailing list