Skip to content
Permalink
Browse files

crypto: use EVP_PKEY_X448 in GetEphemeralKeyInfo

PR-URL: #26988
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information...
cjihrig committed Mar 29, 2019
1 parent 6ac692a commit 05bd6071a63077187c86fe163c2fc50825514a80
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/node_crypto.cc
  2. +1 −0 test/parallel/test-tls-client-getephemeralkeyinfo.js
@@ -2452,8 +2452,8 @@ void SSLWrap<Base>::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) {
@@ -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');

0 comments on commit 05bd607

Please sign in to comment.
You can’t perform that action at this time.