1
0
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:
Chris Staite
2015-06-07 12:51:51 +01:00
committed by Simon Tatham
parent 5d9a9a7bdf
commit b0823fc5be
7 changed files with 550 additions and 1 deletions

3
ssh.c
View File

@ -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. */