Re: [TLS] Constraining ECH to HKDF-based HPKE ciphersuites

Christopher Wood <caw@heapingbits.net> Mon, 17 August 2020 23:06 UTC

Return-Path: <caw@heapingbits.net>
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 7558E3A141C for <tls@ietfa.amsl.com>; Mon, 17 Aug 2020 16:06:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=heapingbits.net header.b=TtsYtM7a; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=rtlyq+7G
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 a2cITHdbBvjL for <tls@ietfa.amsl.com>; Mon, 17 Aug 2020 16:06:03 -0700 (PDT)
Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6CAD53A1417 for <tls@ietf.org>; Mon, 17 Aug 2020 16:06:03 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id AB311A9F for <tls@ietf.org>; Mon, 17 Aug 2020 19:06:02 -0400 (EDT)
Received: from imap4 ([10.202.2.54]) by compute1.internal (MEProxy); Mon, 17 Aug 2020 19:06:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heapingbits.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=aneUDfY1OavWrUQnyW6bUuyiNm/mPQR jGHYI3aC7ig0=; b=TtsYtM7an3zU/eQpcYXFs/6e5kW/M4FohHyOO9/fjOu6Ec7 s4qG9VCe1DF1a+2m4xaNxY6yoAEMZcz7kExzwTcJBVpIfHE1zxAg+KycKe4bSQdE tzT2XLvpDVbVHHxh8/FYe1L+3bzDYQRRNoVwHHzo5tJSsFtbYlNU5mJS16fwXvgn piwFt13StlbLaNGY9rh18OaNNdunJNJRA4GtfgA+EuA19yMwru/ICvg4gfqFG0WQ DbC3WkX3WTlwXCS/qh5QW2Bn0phNINsAMxsPwokggtuAdAPjzuVvsglrbZQLOXD2 PNKK+csVgNkqPQjAu34OwAUd++RGt80HFYAZJWQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=aneUDf Y1OavWrUQnyW6bUuyiNm/mPQRjGHYI3aC7ig0=; b=rtlyq+7GeGPgBpILHZpBRT VJAIDJZ2qYLhuUadSj2iQuT5ZYx5j8T8R1GWU0AyclDMSbLi4J0wcXxwhcvb5FYc ajJEWXSKVB83gQXy3aBIzXhMkGhIWm4te3xZkgPLyWJbnJD6idmAL3DY6gmgZSKp oDGqZ3DTW8k8Ea5QI/8Bie+gifkmwn4eU138/NK/NtbL+nVQeXi1jev/5vNmE5jJ 5Q/YXw9FgDcBL+Nu65MvOrfwJp/GEP1T9po9r/v3ijChRdoukupXhf+x3kbkgJXK IDnLaM7KHvb5zROQywllD4wYcS/JD6/iTCpUQrETJNSAZgSi4xVNqMm1AWUEjGAA ==
X-ME-Sender: <xms:Wg07X-E1WUeJRfPSAVkEUOwpS8riiZKmKFaM46RFUWgKrpOPyEy1MA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddthedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfvehhrhhishhtohhphhgvrhcuhghoohgufdcuoegtrgif sehhvggrphhinhhgsghithhsrdhnvghtqeenucggtffrrghtthgvrhhnpeduffeitddutd etgfegfeekgedvkeelvdeiiedtjeetteeuvdejveelleeltedtheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegtrgifsehhvggrphhinhhgsg hithhsrdhnvght
X-ME-Proxy: <xmx:Wg07X_UyxphCtlYTAlc99fKne-kAYge_gHSsxBUiE-7k1pgcRdU6dg> <xmx:Wg07X4IoaIWTEHmUpxRlwBLwlMXPQfs6yQN5ZbpzUthOdEcS_BmwQg> <xmx:Wg07X4F3ebpwewVsb3WSa8N9rLLrhVwsHGCdjUymQf1t5I1_oWR6aw> <xmx:Wg07X1V5wgE5PV-JB_ZYbxas-VzMfwlLupVmpRSq1-4JjwhGjmKr3A>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 021A53C00A1; Mon, 17 Aug 2020 19:06:02 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-192-gd9d7a78-fm-20200816.001-gd9d7a786
Mime-Version: 1.0
Message-Id: <bafae3e2-b1f4-4838-9808-aa20af3d13a7@www.fastmail.com>
In-Reply-To: <dae86080-2818-4ea8-8c2d-ae8cf55ab149@www.fastmail.com>
References: <ee8c4bb1-554a-4f45-a1d5-17e49b320562@www.fastmail.com> <170e077f-2ad1-4794-9227-b7e9fcf74b0c@www.fastmail.com> <CAG2Zi22BdP_EYGrCiDMqKrkQN4ZwE-igBjQypMbUJrSiaXER=A@mail.gmail.com> <dae86080-2818-4ea8-8c2d-ae8cf55ab149@www.fastmail.com>
Date: Mon, 17 Aug 2020 16:05:40 -0700
From: Christopher Wood <caw@heapingbits.net>
To: "TLS@ietf.org" <tls@ietf.org>
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/_4rf8u1mCYE63_2zrgXlcDcLhis>
Subject: Re: [TLS] Constraining ECH to HKDF-based HPKE ciphersuites
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
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, 17 Aug 2020 23:06:06 -0000

On Mon, Aug 17, 2020, at 3:30 PM, Martin Thomson wrote:
> 
> 
> On Tue, Aug 18, 2020, at 07:55, Christopher Patton wrote:
> > Hi Martin, 
> >  
> > > Or maybe just running the HPKE KDF with a fixed input.
> > Do you mean something like this? Let `config_digest = KDF.extract("some 
> > salt", "some label", config)`, where `config` is the ECH configuration?
> 
> Sure.  I would probably use all of HKDF though, see below.

If we're going to use all of HKDF (extract + expand), then let's just use the HPKE's Extract+Expand functions in sequence. 

Best,
Chris