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

Ilari Liusvaara <ilariliusvaara@welho.com> Mon, 24 April 2017 15:24 UTC

Return-Path: <ilariliusvaara@welho.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 2B09D131675 for <tls@ietfa.amsl.com>; Mon, 24 Apr 2017 08:24:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=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 nEgSd3xBdyEJ for <tls@ietfa.amsl.com>; Mon, 24 Apr 2017 08:24:28 -0700 (PDT)
Received: from welho-filter2.welho.com (welho-filter2.welho.com [83.102.41.24]) by ietfa.amsl.com (Postfix) with ESMTP id BC80F131699 for <tls@ietf.org>; Mon, 24 Apr 2017 08:24:28 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by welho-filter2.welho.com (Postfix) with ESMTP id 38EB8247E7; Mon, 24 Apr 2017 18:24:25 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp2.welho.com ([IPv6:::ffff:83.102.41.85]) by localhost (welho-filter2.welho.com [::ffff:83.102.41.24]) (amavisd-new, port 10024) with ESMTP id ujhniHGk2ci8; Mon, 24 Apr 2017 18:24:24 +0300 (EEST)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp2.welho.com (Postfix) with ESMTPSA id B5FD521C; Mon, 24 Apr 2017 18:24:24 +0300 (EEST)
Date: Mon, 24 Apr 2017 18:24:22 +0300
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Eric Rescorla <ekr@rtfm.com>
Cc: "tls@ietf.org" <tls@ietf.org>
Message-ID: <20170424152422.GA18543@LK-Perkele-V2.elisa-laajakaista.fi>
References: <CABcZeBP_0d+14_3SQ3sk+knytxpo4yxq5eYwGn++GC8H9BpUfw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <CABcZeBP_0d+14_3SQ3sk+knytxpo4yxq5eYwGn++GC8H9BpUfw@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/pUEIpqsxuR6LsDgIt64Li7gdjU4>
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:24:31 -0000

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"?

> 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


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


-Ilari