Re: [TLS] Version in record MAC

Eric Rescorla <ekr@rtfm.com> Mon, 19 October 2015 18:18 UTC

Return-Path: <ekr@rtfm.com>
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 51C601B2AA9 for <tls@ietfa.amsl.com>; Mon, 19 Oct 2015 11:18:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 Ep50ejBUpZUQ for <tls@ietfa.amsl.com>; Mon, 19 Oct 2015 11:18:22 -0700 (PDT)
Received: from mail-yk0-f178.google.com (mail-yk0-f178.google.com [209.85.160.178]) (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 D032A1B2B36 for <tls@ietf.org>; Mon, 19 Oct 2015 11:18:20 -0700 (PDT)
Received: by ykdz2 with SMTP id z2so66086301ykd.3 for <tls@ietf.org>; Mon, 19 Oct 2015 11:18:20 -0700 (PDT)
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:from:date :message-id:subject:to:cc:content-type; bh=uPg/Nsnxc1Q/mEhFmhiGjdKFs7G1Oo1cMd1fkIFZ1Gc=; b=gkj+KbTj5jWKJSx9WpzRkrIHusenofHN8a6K8mixSVrO9k1KQSwQWXoe5vjACnCj37 dPrbfvW7s0E8nwX9T0Wo0M3XpfW23zdcRAJEQD4N5vBN33MB99Xwb+6gBN2oxCIDKySL wJzy0HH2jpFXMLrz88DuuJedl13sTBi9fDu0I/iRQd7yWcHfZkvfiy4Pcmg3nHS65fb/ wuuypA9lQ4O1AXb7dA6qUcpxuBvi30VGhvbg7F/ht+5/oFxlEdZElubl5phI3YARRFOl SW78fVvganuL2zE/qDcnpkf4TKatZVXfC7Q+dVI7skJkNgtHLxzRd0wfoVc+76FzUIby JASA==
X-Gm-Message-State: ALoCoQnIjh3x10efPGiOx8U3kCRAKogV0h2xdxoUVgqooi8nH7io2rVgjGsghUDRtp5mn3Er50TU
X-Received: by 10.129.154.67 with SMTP id r64mr5177108ywg.166.1445278700140; Mon, 19 Oct 2015 11:18:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.114.85 with HTTP; Mon, 19 Oct 2015 11:17:40 -0700 (PDT)
In-Reply-To: <CABkgnnXis0mwqcsd1D0S61kqL6kvq9=ZU0BRbwbLH7Jesj0Y-w@mail.gmail.com>
References: <CABcZeBODjk8rapgbNTST8bmFFVzKqB4tJyrvje-CTgk1=gfqFw@mail.gmail.com> <CABkgnnV+QrjcXJdZwwAGW-SpX0Z0_JroEVT-kMJgUAVe7DDQUw@mail.gmail.com> <CABcZeBOrL=TosONYfM_QPPYfT5N4VH7yR4hFw3Qt8W4V0uznkw@mail.gmail.com> <CABkgnnXis0mwqcsd1D0S61kqL6kvq9=ZU0BRbwbLH7Jesj0Y-w@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 19 Oct 2015 11:17:40 -0700
Message-ID: <CABcZeBNpV3uqOF4YohiCrtq03hR7LPnPGdny6yWB+zysVufiqA@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: multipart/alternative; boundary="94eb2c0b84cc862efd0522792b5a"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/QMXhNLbiWPhUQISPLZRhCwoI67s>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] Version in record MAC
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: Mon, 19 Oct 2015 18:18:28 -0000

On Mon, Oct 19, 2015 at 11:13 AM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 19 October 2015 at 11:12, Eric Rescorla <ekr@rtfm.com> wrote:
> >
> >
> > On Mon, Oct 19, 2015 at 11:06 AM, Martin Thomson <
> martin.thomson@gmail.com>
> > wrote:
> >>
> >> On 19 October 2015 at 09:28, Eric Rescorla <ekr@rtfm.com> wrote:
> >> >      1. Don't MAC the version at all.
> >> >      2. MAC the negotiated version (which should be clear at
> >> >         this point).
> >>
> >>
> >> 3. Nothing
> >>
> >> The version is implicit in the key derivation (yeah, there are lots of
> >> rounds of HMAC between, but it's there.
> >>
> >> The sequence number is fed into the nonce.
> >
> >
> > How is this different from #1?
>
> #1 implies the sequence number is covered by the MAC.
>

Yeah, I think that's riding the nonce far too hard.

-Ekr