Re: [TLS] Issue #964: Shortened HKDF labels

Eric Rescorla <ekr@rtfm.com> Mon, 24 April 2017 15:29 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 861971316D7 for <tls@ietfa.amsl.com>; Mon, 24 Apr 2017 08:29:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 LmqiS7tlGxxE for <tls@ietfa.amsl.com>; Mon, 24 Apr 2017 08:29:16 -0700 (PDT)
Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (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 DDE671316CB for <tls@ietf.org>; Mon, 24 Apr 2017 08:29:15 -0700 (PDT)
Received: by mail-yw0-x22d.google.com with SMTP id k11so35930094ywb.1 for <tls@ietf.org>; Mon, 24 Apr 2017 08:29:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q+uRUd3HvykD4eQGpukVu/vksyh7TqCqU+rFJxJggKw=; b=0KSNu33/wjPZodY3RpcbXBHCSJSWEX8TivNGlFK1ipbbNhRSeKIS1cL6qMhKVKzj3b Q3JFYkHXxYW4yiADiEn/61ZyzN/Ry3nPnIWLTwqJz7BNjGHsquGMMwlYbDp0HTqx7Ot4 LqmzLUUbLRFBvqJfFiMUMtMZiIsLMQJqOH7ntWDABxib9nY3Pb/IsxA9hhKZBuw5aa5S 7McERtPF6M9FOjsgwinUa6Wieryeb2KrJGsLo+j1QXskvmCT7wolUDQ55oguzdYsRNS1 FqTtRPsFHWcnDu9YdDSamiCJyQLJJzfrk1O7omPNJP5Fcj0C7/GQBVvyT9w5E2A5990m mpJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q+uRUd3HvykD4eQGpukVu/vksyh7TqCqU+rFJxJggKw=; b=cUlLf877vCnb8Xaixw8jcMvHQsL86Bt+5aWiKD+fVHT4A+r1xgjx79jEBhG7MdcHB6 hwUD1trOlow2gWhZmsgZ4nnKzgE9oKP5XUpvGH0SQtRR0xgLwD+JbsqFQZ6U3bEdDHG2 CLt/7KBlFxFdRz7yLo1KXFElXK+/1mxA16CBIMpqrVzfF5hm21rPoKRcGSGPPhBuKFb6 5GNrx8cIrHquVbAat3IE3gDia0y0j1SsAvyY2UddDeCvejceoFWK96DdFslFJykTZTQ9 gOL3SxbI3oJYnimoNr4tDAYoltinUVSwWx8Hf+I4rlEMShwWQVdZY6cS8mcOLEqxzS0g SMOA==
X-Gm-Message-State: AN3rC/5e8XzQaweOP0jO+xh/tZlcXZdm2xNkofi+KPf9PoPX2OInaqXV S7tZc6iESLYKx2372yKgsxjJwIuPbAmt
X-Received: by 10.129.167.3 with SMTP id e3mr5691396ywh.327.1493047754127; Mon, 24 Apr 2017 08:29:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.113.7 with HTTP; Mon, 24 Apr 2017 08:28:33 -0700 (PDT)
In-Reply-To: <20170424152422.GA18543@LK-Perkele-V2.elisa-laajakaista.fi>
References: <CABcZeBP_0d+14_3SQ3sk+knytxpo4yxq5eYwGn++GC8H9BpUfw@mail.gmail.com> <20170424152422.GA18543@LK-Perkele-V2.elisa-laajakaista.fi>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 24 Apr 2017 08:28:33 -0700
Message-ID: <CABcZeBOoFRwwKO7SqjgcVGMU2UneUiaNXGr4GRO=80C3tsxo-w@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Cc: "tls@ietf.org" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c1461f20485a9054deb452e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/0lE22OliPfq547Krr_vlZJMo3UI>
Subject: Re: [TLS] Issue #964: Shortened HKDF labels
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
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, 24 Apr 2017 15:29:19 -0000

On Mon, Apr 24, 2017 at 8:24 AM, Ilari Liusvaara <ilariliusvaara@welho.com>
wrote:

> On Mon, Apr 24, 2017 at 05:56:58AM -0700, Eric Rescorla wrote:
> > https://github.com/tlswg/tls13-spec/issues/964
> >
> > Here is a proposed set of new labels, which, while slightly less clear,
> all
> > fit
> > into the 18 byte limit which Ilari (and I agree) says is what we have.
>
> Doing a santiy check...
>
> > external binder # was external psk binder key
> > resumption binder # was resumption psk binder key
> > client e. traffic # was client early traffic
>
> Isn't the previous label "client early traffic secret"?
>

Oops. Yeah, search and replace fail.



> e. exporter master # was early exporter master secret
> > client hs traffic # was client handshake traffic secret
> > server hs traffic # was server handshake traffic secret
> > client app traffic # was client application traffic secret
> > server app traffic # was server application traffic secret
> > exporter master # was exporter master secret
> > resumption # was resumption master secret
> > key # was key
> > iv # was iv
> > finished # was finished
> > traffic key update  # was application traffic secret
> > exporter # was exporter
>
> Seems to be missing:
>
> derived secret # was derived secret
>

Yep. This one we can keep.

Thans,
-Ekr


>
> All look to fit into 18 bytes and none seem to be duplicated.
>
>
> -Ilari
>