1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-28 01:07:08 -05:00

Add IANA kex name sntrup761x25519-sha512.

draft-ietf-sshm-ntruprime-ssh-00 asserts that it's identical to the
@openssh.com version we already implement:
'[sntrup761x25519-sha512@openssh.com] became the default key exchange
algorithm in OpenSSH during 2022. That is identical to the
"sntrup761x25519-sha512" mechanism described in this document.'
This commit is contained in:
Jacob Nevins 2024-11-09 23:55:57 +00:00
parent 28a5d72a18
commit 23572715fd

View File

@ -1869,15 +1869,25 @@ static const ecdh_keyalg ssh_ntru_selector_vt = {
.description = ssh_ntru_description,
};
static const ssh_kex ssh_ntru_curve25519 = {
static const ssh_kex ssh_ntru_curve25519_openssh = {
.name = "sntrup761x25519-sha512@openssh.com",
.main_type = KEXTYPE_ECDH,
.hash = &ssh_sha512,
.ecdh_vt = &ssh_ntru_selector_vt,
};
static const ssh_kex ssh_ntru_curve25519 = {
/* Same as sntrup761x25519-sha512@openssh.com but with an
* IANA-assigned name */
.name = "sntrup761x25519-sha512",
.main_type = KEXTYPE_ECDH,
.hash = &ssh_sha512,
.ecdh_vt = &ssh_ntru_selector_vt,
};
static const ssh_kex *const hybrid_list[] = {
&ssh_ntru_curve25519,
&ssh_ntru_curve25519_openssh,
};
const ssh_kexes ssh_ntru_hybrid_kex = { lenof(hybrid_list), hybrid_list };