diff --git a/sshecc.c b/sshecc.c index 8ba2629e..7725013f 100644 --- a/sshecc.c +++ b/sshecc.c @@ -1483,6 +1483,11 @@ static const struct eckex_extra kex_extra_curve25519 = { ssh_ecdhkex_m_getkey, }; const ssh_kex ssh_ec_kex_curve25519 = { + "curve25519-sha256", NULL, KEXTYPE_ECDH, + &ssh_sha256, &kex_extra_curve25519, +}; +/* Pre-RFC alias */ +const ssh_kex ssh_ec_kex_curve25519_libssh = { "curve25519-sha256@libssh.org", NULL, KEXTYPE_ECDH, &ssh_sha256, &kex_extra_curve25519, }; @@ -1525,6 +1530,7 @@ const ssh_kex ssh_ec_kex_nistp521 = { static const ssh_kex *const ec_kex_list[] = { &ssh_ec_kex_curve25519, + &ssh_ec_kex_curve25519_libssh, &ssh_ec_kex_nistp256, &ssh_ec_kex_nistp384, &ssh_ec_kex_nistp521,