mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
Add the ChaCha20-Poly1305 cipher+MAC, as implemented by OpenSSH.
This commit is contained in:

committed by
Simon Tatham

parent
5d9a9a7bdf
commit
b0823fc5be
3
ssh.c
3
ssh.c
@ -6340,6 +6340,9 @@ static void do_ssh2_transport(Ssh ssh, const void *vin, int inlen,
|
||||
case CIPHER_ARCFOUR:
|
||||
s->preferred_ciphers[s->n_preferred_ciphers++] = &ssh2_arcfour;
|
||||
break;
|
||||
case CIPHER_CHACHA20:
|
||||
s->preferred_ciphers[s->n_preferred_ciphers++] = &ssh2_ccp;
|
||||
break;
|
||||
case CIPHER_WARN:
|
||||
/* Flag for later. Don't bother if it's the last in
|
||||
* the list. */
|
||||
|
Reference in New Issue
Block a user