mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Elliptic-curve cryptography support.
This provides support for ECDSA public keys, for both hosts and users, and also ECDH key exchange. Supported curves are currently just the three NIST curves required by RFC 5656.
This commit is contained in:

committed by
Simon Tatham

parent
7d1c30cd50
commit
2bf8688355
@ -563,6 +563,12 @@ const struct ssh_signkey *find_pubkey_alg(const char *name)
|
||||
return &ssh_rsa;
|
||||
else if (!strcmp(name, "ssh-dss"))
|
||||
return &ssh_dss;
|
||||
else if (!strcmp(name, "ecdsa-sha2-nistp256"))
|
||||
return &ssh_ecdsa_nistp256;
|
||||
else if (!strcmp(name, "ecdsa-sha2-nistp384"))
|
||||
return &ssh_ecdsa_nistp384;
|
||||
else if (!strcmp(name, "ecdsa-sha2-nistp521"))
|
||||
return &ssh_ecdsa_nistp521;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user