Re: [TLS] Data volume limits

Brian Smith <brian@briansmith.org> Wed, 16 December 2015 03:01 UTC

Return-Path: <brian@briansmith.org>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60E041A1B91 for <tls@ietfa.amsl.com>; Tue, 15 Dec 2015 19:01:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1cJ0H3DLsxw1 for <tls@ietfa.amsl.com>; Tue, 15 Dec 2015 19:01:34 -0800 (PST)
Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE9C01A1B89 for <tls@ietf.org>; Tue, 15 Dec 2015 19:01:33 -0800 (PST)
Received: by mail-oi0-x22b.google.com with SMTP id i186so17433625oia.2 for <tls@ietf.org>; Tue, 15 Dec 2015 19:01:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=briansmith-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tzqw2Wvk4CPE8/xEcCxVHo+Ch9g2X6XxOK5G3+1ahPw=; b=y3qa7fyhgzJSjurB521dVdKi8BhhEg+IBAPw1b3fLk5kARUSc8/LmFm5Nk7RolszrS Y/CcFLlaAcg0nSy12mOEUQi5JvrCPB7iVLmHtl/PnfY+L2B1CiS6ezikuWexpZYZLf5M CC7gIwFwAPqZgfORlB/SNUv3er5rHNzPhJeinARSsatIg//MdhgEa5oLrqkAQYStaXgp XVCmpwO4uyh1oJxNlISEgOWCZ93RqT1DPWHTkOheqSZzv3V9gtOai5XQKLtJHMuq3Af+ pFaUDMF6ZG9n9tOHfm2tm7/+117pI4n75Q6w5Rz8c5K9f0QZ2fapDDwto3AjRotwpxKh CssA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Tzqw2Wvk4CPE8/xEcCxVHo+Ch9g2X6XxOK5G3+1ahPw=; b=l1k/z6lx23r0CPYKHZrMMFYgfV5neA2p5tzEj1J8Fkg1Zvs+69BrcrJwulBjRdUX/W rHd8etIi45L5ncc8T34jAPXaHeV40j9Xo3OXtsxkIHI1bBz9uBfoiOj5P+nNSAkPDhC4 sznPkCuCZ45nwl+pyE1Q11jzrw4xidnWIzb2bF5S0KvcPgX2itBpg/n4fjWyF3vcQgO1 o4RHfrdkbiIYTyeicjfSumkUg2D2sXIZv7/WdMSL8AoaWNw7KcG2fSW3LMFkh0/dMyDf 1dhJp2DcVZeuj/F5jXPvA/j4QwV6inoX3n1ZckdxARPINkAepj/gfEvINoWoUgYD5F/D 30LA==
X-Gm-Message-State: ALoCoQnVmguVNVklE9o0OG9pEKsWlP+UXlFC0SSFGpPCGROh6U90AdQ+K7Q4D5EcMSgIWwiCF8TB1nqbcXXwO+TbmUFmhq+dYQ==
MIME-Version: 1.0
X-Received: by 10.202.60.195 with SMTP id j186mr31361516oia.70.1450234893350; Tue, 15 Dec 2015 19:01:33 -0800 (PST)
Received: by 10.76.82.41 with HTTP; Tue, 15 Dec 2015 19:01:33 -0800 (PST)
In-Reply-To: <CABkgnnU67_rsVEWKg_ckaYXcZhiXNEgku4ntaZTF3nTYSMZGsg@mail.gmail.com>
References: <CABcZeBNR76DqPo0Mukf5L2G-WBSC+RCZKhVGqBZq=tJYfEHLUg@mail.gmail.com> <CABkgnnU67_rsVEWKg_ckaYXcZhiXNEgku4ntaZTF3nTYSMZGsg@mail.gmail.com>
Date: Tue, 15 Dec 2015 17:01:33 -1000
Message-ID: <CAFewVt4TjxOQqX-pi0BndnpZW7bN2185dRZJ-zoM9M0-c6jPSg@mail.gmail.com>
From: Brian Smith <brian@briansmith.org>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: multipart/alternative; boundary=001a113cd33ca8d48b0526fb1fd7
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/VUELz5mboYIXrGn82AImeqwSJGs>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Data volume limits
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Dec 2015 03:01:35 -0000

Martin Thomson <martin.thomson@gmail.com> wrote:

> Whatever the actual limits are, I think that implementatios should be
> encouraged to rekey more strongly.
>

Why?


> And suggesting a stupidly high limit (e.g., ChaCha being
> greater than 2^96) leaves people thinking that they can skip
> implementation and testing of the rekey facility; or it just goes
> unused.  If it's not in use, then we'll have a good chance of creating
> a protocol feature we can't rely on if it really is needed.
>

I think this is exactly why the limit matters. If we are not in danger of
reaching the limit, then we don't need the rekeying mechanism and it should
be removed. The rekeying mechanism adds considerable complexity and that
complexity needs to be justified.

Alternatively, we'd need a new justification for the rekeying mechanism.
The new justification would affect the design of the rekeying mechanism.
For example, if the purpose of the rekeying mechanism is to get similar
effects to, say, the Axolotl ratchet, then we should ensure that the
rekeying mechanism actually has similar properties to Axolotl.

In light of that, the actual limits don't matter that much to me.  As
> David McGrew suggested, set a limit at 2^32 and avoid having to think
> too hard about how close to the failure point you might be.


First, let's figure out why TLS 1.3 needs a rekeying mechanism, if it does.
Then we can figure out how frequently we should suggest rekeying occur
based on sound reasoning.

Cheers,
Brian
-- 
https://briansmith.org/