From: Guus Sliepen Date: Sat, 29 Oct 2016 20:10:32 +0000 (+0200) Subject: Really fix byte budget calculation. X-Git-Tag: release-1.0.30~3 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=5c8a2a840a648b65b1396efbb0ddb84151ddc7e3;hp=5c8a2a840a648b65b1396efbb0ddb84151ddc7e3 Really fix byte budget calculation. We want to use the underlying cipher's block length, but if it's a stream mode this will be 1. In that case, use the IV length. Ensure we never get a budget that cannot be stored in a 64 bits integer. Thanks to Wessel Dankers for helping getting this right. ---