]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Limit --reneg-bytes to 64MB when using small block ciphers contains
authorSteffan Karger <steffan.karger@fox-it.com>
Fri, 28 Oct 2016 12:10:07 +0000 (14:10 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Fri, 28 Oct 2016 12:41:32 +0000 (14:41 +0200)
commita91ddc99a524014ec79560d873721e8fa81a5631
treee3e523f8d4ac521c15f627069820c971d3c59ce2
parentd72c3835e20593091d4d2c69466329f994b69ae6
Limit --reneg-bytes to 64MB when using small block ciphers

Following the earlier warning about small block ciphers, now limit the
--reneg-bytes value when using a cipher that susceptible to SWEET32-like
attacks.  The 64 MB value has been selected with the researchers who
published the SWEET32 paper.

Note that this will not change a user-set --reneg-bytes value, to allow a
user to align a gun with his feet^w^w^w^w^w^w override this behaviour if
really needed.

Furthermore, in contrast with the patch for master, this will not limit
--reneg-bytes on the client side.  This allows server administrators to
revert to the old behaviour, or increase --reneg-bytes to something they
believe is workable, without having to change client configs.  (The master
branch provides cipher negotiation as a real solution, so we can be
stricter there.)

v2: obey user-set --reneg-bytes 0 to revert to old behaviour, use more firm
    language in warning message, add URL to man page, and only limit at the
    server side.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <1477656607-7440-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12799.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
doc/openvpn.8
src/openvpn/crypto.c
src/openvpn/options.c
src/openvpn/ssl.c