Files
crypto/ssh
Han-Wen Nienhuys d94f6bc902 ssh: use io.ReadFull() for reading chacha20-poly1305 packets.
Incomplete reads leave (part of) the verification tag zeroed, leading
to a failing MAC, and this is more likely to happen with larger
packets. The test added in the previous commit should stop this from
regressing.

Reinstate chacha20-poly1305 as a default cipher and prefer it over AES
CTR flavors.

Fixes golang/go#23510

Change-Id: I7599897e59448edb7b814eebcc8226ea15b365d6
Reviewed-on: https://go-review.googlesource.com/89075
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Han-Wen Nienhuys <hanwen@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-01-22 21:37:07 +00:00
..
2017-12-18 18:48:59 +00:00
2014-04-09 13:57:52 -07:00
2017-12-18 18:48:59 +00:00
2018-01-22 08:55:56 +00:00
2017-11-13 21:34:09 +00:00
2017-11-13 21:34:09 +00:00
2017-11-13 21:34:09 +00:00
2017-11-28 17:48:09 +00:00
2017-11-28 17:48:09 +00:00
2017-12-18 18:48:59 +00:00
2017-11-28 19:40:09 +00:00
2014-04-09 13:57:52 -07:00
2016-07-06 16:40:51 +00:00