[TLS] ECH padding edge cases

Christopher Wood <caw@heapingbits.net> Mon, 17 August 2020 21:11 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 64C9F3A11B3 for <tls@ietfa.amsl.com>; Mon, 17 Aug 2020 14:11:32 -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_H4=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=OwHh02i0; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=SfoiQuuf
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 IX6whsdw542g for <tls@ietfa.amsl.com>; Mon, 17 Aug 2020 14:11:31 -0700 (PDT)
Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2F39B3A11AE for <TLS@ietf.org>; Mon, 17 Aug 2020 14:11:31 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7382C3AC for <TLS@ietf.org>; Mon, 17 Aug 2020 17:11:30 -0400 (EDT)
Received: from imap4 ([10.202.2.54]) by compute1.internal (MEProxy); Mon, 17 Aug 2020 17:11:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heapingbits.net; h=mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=pKz0lxRhCw9l/GsDyf/PuPFXJyqK41Zp2QhYEzLQYek=; b=OwHh02i0 Wo/KlexpSU6cJJvCEqXLzbUnrDSRxDXRHNcXBjqswrPljGJdTkbxKLzrgg4Rkq2Y K0Cs1NEdWFpdok8Y3IGLLzTfWPRfnX0cK7yl8qx4/IQExBkUP5OYXEHXa+Vh2K4K DETSXFe/qKFgkuRnQqRNgUNr9UjWfotPV+ZAR8u8GP7dfI4cPZ+BmBSy/ht0lWoK 8CeCEpj+/V1eJV2Qam6cOwgw8Dd43tG3jEDM2q5LmcK0r14yZ9OJJkgNDBxww1Io WcOgYwIlvHZ3ABcrBoo694Y8KeGAzBiHb3CZ31NNMYsozxrLDntlwWGkjKfN/5QV eGP8aLAe4g9GMA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=pKz0lxRhCw9l/GsDyf/PuPFXJyqK4 1Zp2QhYEzLQYek=; b=SfoiQuufqmpP1wAwOoaQLgPOMAlOvS/StYWWRwloGjUKH hSBa63ZXVcNpCCyJHyVMJfK7iMWiejKUHJ5HAg4cB55nLFwCSVDqOGLCEplsRaV4 84u1LRTn3s4wxQrplr/2NcBBdgZiWKZhyoNIl7zlHFCnH/S3WvIUxmIScyEVb+vZ ciZMKFst8qzb1RdX2BcqUunb0kT8PpkSGNF/ynQ54yCUK9Y65aGpY+bdDrHBLgxr 7eUkuufRHD8N2+4KBrSEyN0IRRYA/rKp3/M3l1kNFWcNkNa2mROYM8kPwpoCgVif ObEcbafIF3ns4i/fAr2pSa0V202ZPreUWxjoI14Xg==
X-ME-Sender: <xms:gfI6X3-VItoodGwvL2KyJfhrd30PTp8yS6oYmY9hzGedwSjhC5OsNw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddtgedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfvehhrhhishhtohhphhgvrhcuhghoohgufdcuoegtrgifsehh vggrphhinhhgsghithhsrdhnvghtqeenucggtffrrghtthgvrhhnpeefleekheeffffhhe eiieejgefgkedtffetjeekledtheffteeukedvtedtfeejgeenucffohhmrghinhepghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilh hfrhhomheptggrfieshhgvrghpihhnghgsihhtshdrnhgvth
X-ME-Proxy: <xmx:gfI6XzvdEy5OcbA4qXuNkeBSc_6eAf6mRH2XDthxFmLJp-R7ZCKm4Q> <xmx:gfI6X1CM_IrwwLLTEVNTpo6veM_fnwza04zEv6TWVWvmupSNbjVrwQ> <xmx:gfI6XzcKOxIs4JaC7GZrKH02c9PjkaV2bv0p_aoze2evJ3JvEmk3BQ> <xmx:gvI6X2vBVnxwACgbNwNaxxY4rfPeFx88Aqwq6dzm5xIH4VZxtFYPog>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id DC87D3C00A1; Mon, 17 Aug 2020 17:11:29 -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: <92b667e8-c509-4c3d-8c6c-f75d89b3e4e9@www.fastmail.com>
Date: Mon, 17 Aug 2020 14:11:04 -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/WymnW7_Y6yhPjqNsvaDbz2o6YE0>
Subject: [TLS] ECH padding edge cases
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 21:11:32 -0000

Ben Schwartz found some problems and edge cases with the current ECH padding policy text [1]. This PR proposes a fix:

   https://github.com/tlswg/draft-ietf-tls-esni/pull/268

Please have a look and provide feedback. 

Thanks,
Chris

[1] https://github.com/tlswg/draft-ietf-tls-esni/issues/252