Skip to content

Commit 05bd607

Browse files
committed
crypto: use EVP_PKEY_X448 in GetEphemeralKeyInfo
PR-URL: #26988 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 6ac692a commit 05bd607

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2452,8 +2452,8 @@ void SSLWrap<Base>::GetEphemeralKeyInfo(
24522452
.FromJust();
24532453
break;
24542454
case EVP_PKEY_EC:
2455-
// TODO(shigeki) Add EVP_PKEY_X448.
24562455
case EVP_PKEY_X25519:
2456+
case EVP_PKEY_X448:
24572457
{
24582458
const char* curve_name;
24592459
if (kid == EVP_PKEY_EC) {

test/parallel/test-tls-client-getephemeralkeyinfo.js

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ test(2048, 'DH', undefined, 'DHE-RSA-AES128-GCM-SHA256');
6060
test(256, 'ECDH', 'prime256v1', 'ECDHE-RSA-AES128-GCM-SHA256');
6161
test(521, 'ECDH', 'secp521r1', 'ECDHE-RSA-AES128-GCM-SHA256');
6262
test(253, 'ECDH', 'X25519', 'ECDHE-RSA-AES128-GCM-SHA256');
63+
test(448, 'ECDH', 'X448', 'ECDHE-RSA-AES128-GCM-SHA256');

0 commit comments

Comments
 (0)