Skip to content

Commit

Permalink
crypto: use EVP_PKEY_X448 in GetEphemeralKeyInfo
Browse files Browse the repository at this point in the history
PR-URL: #26988
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
cjihrig committed Apr 1, 2019
1 parent 6ac692a commit 05bd607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-tls-client-getephemeralkeyinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.