summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/chacha.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* revert __bounded change; it causes way more problems for portable thandjm2014-05-021-6/+6
| | | | it solves; pointed out by dtucker@
* use __bounded(...) attribute recently added to sys/cdefs.h instead ofdjm2014-03-261-6/+6
| | | | | | longform __attribute__(__bounded(...)); for brevity and a warning free compilation with llvm/clan
* Add a new protocol 2 transport cipher "chacha20-poly1305@openssh.com"djm2013-11-211-0/+35
that combines Daniel Bernstein's ChaCha20 stream cipher and Poly1305 MAC to build an authenticated encryption mode. Inspired by and similar to Adam Langley's proposal for TLS: http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-03 but differs in layout used for the MAC calculation and the use of a second ChaCha20 instance to separately encrypt packet lengths. Details are in the PROTOCOL.chacha20poly1305 file. Feedback markus@, naddy@; manpage bits Loganden Velvindron @ AfriNIC ok markus@ naddy@