diff --git a/src/node_crypto.cc b/src/node_crypto.cc index fdc227f4e2d9a9..7a1e5527c56764 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2452,8 +2452,8 @@ void SSLWrap::GetEphemeralKeyInfo( .FromJust(); break; case EVP_PKEY_EC: - // TODO(shigeki) Add EVP_PKEY_X448. case EVP_PKEY_X25519: + case EVP_PKEY_X448: { const char* curve_name; if (kid == EVP_PKEY_EC) { diff --git a/test/parallel/test-tls-client-getephemeralkeyinfo.js b/test/parallel/test-tls-client-getephemeralkeyinfo.js index 113b452db60583..599306993e1252 100644 --- a/test/parallel/test-tls-client-getephemeralkeyinfo.js +++ b/test/parallel/test-tls-client-getephemeralkeyinfo.js @@ -60,3 +60,4 @@ test(2048, 'DH', undefined, 'DHE-RSA-AES128-GCM-SHA256'); test(256, 'ECDH', 'prime256v1', 'ECDHE-RSA-AES128-GCM-SHA256'); test(521, 'ECDH', 'secp521r1', 'ECDHE-RSA-AES128-GCM-SHA256'); test(253, 'ECDH', 'X25519', 'ECDHE-RSA-AES128-GCM-SHA256'); +test(448, 'ECDH', 'X448', 'ECDHE-RSA-AES128-GCM-SHA256');