|
|
@@ -1654,6 +1654,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 = {
|
|
|
"[email protected]", NULL, KEXTYPE_ECDH,
|
|
|
&ssh_sha256, &kex_extra_curve25519,
|
|
|
};
|
|
|
@@ -1696,6 +1701,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,
|