Re: [quicwg/base-drafts] Tls restore compat (#1256)
Martin Thomson <notifications@github.com> Wed, 04 April 2018 06:59 UTC
Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 75FFF126CC4 for <quic-issues@ietfa.amsl.com>; Tue, 3 Apr 2018 23:59:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 dV1YAWRe3euE for <quic-issues@ietfa.amsl.com>; Tue, 3 Apr 2018 23:59:27 -0700 (PDT)
Received: from o4.sgmail.github.com (o4.sgmail.github.com [192.254.112.99]) (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 E6BB6124B17 for <quic-issues@ietf.org>; Tue, 3 Apr 2018 23:59:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=o/Ju1qTyIJUpEy4Ye2VC/atqNl0=; b=sgZVRwIvfFvpflIn m8X9OwdXUIhsgzsJo6QTBm81t5Tps56SFkFgoumNGr7PRnopW4jfLsopu0dSNABv L3oOCiTc0rWfLyzz3bcG7fMcEef9Pm57tytI3KJ7i7DpFzNM3znet0sWpbX3E/5j uZG0fRamET9DUz8p3s8jjvuNUHg=
Received: by filter0507p1las1.sendgrid.net with SMTP id filter0507p1las1-8058-5AC47784-2 2018-04-04 06:58:12.188230074 +0000 UTC
Received: from smtp.github.com (out-1.smtp.github.com [192.30.252.192]) by ismtpd0001p1iad2.sendgrid.net (SG) with ESMTP id RslxHL6nQ4WMQ6gdDfCsIA for <quic-issues@ietf.org>; Wed, 04 Apr 2018 06:58:12.056 +0000 (UTC)
Date: Wed, 04 Apr 2018 06:58:12 +0000
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab402ca2f3020b28eea370c7eccfa232f6dcd658c592cf0000000116dc398392a169ce127c064f@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1256/review/109208113@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1256@github.com>
References: <quicwg/base-drafts/pull/1256@github.com>
Subject: Re: [quicwg/base-drafts] Tls restore compat (#1256)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5ac47783f20c7_3d3e3fc42cb0ef346248be"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak3xa/8CWvRHbVWddAZh7khfp79TJKlvcf82wb 7iCHyRxtOWrVg3mnsenR29B8XFDLCJm/SHvD6kvIeh0z9ZDRW/bQALVwUxOGZhNtFJF8WgyPRQeB9F 8tff3dJaD7UJWTOw2VbN4puT1ixmfOgu34a2k7ZKfFvCQ8KLRZWITJrzduLyixiz21TE+FSSh1Ld4p A=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/FyWp-W--oLA1rb5CTdxd3i_sWKQ>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Apr 2018 06:59:28 -0000
martinthomson commented on this pull request.
I'm not a fan of making this sort of change. It seems that it's a product of the idiosyncratic API provided by picotls more than anything else.
Don't take that as an indictment on the goals of the API. I really like the idea that the details of determining keys and IVs are kept contained. I only wish that NSS were anywhere near as principled. We have to break the PKCS#11 boundary to get HKDF to work.
For mine, a more principled AEAD API would take two labels: one for the key and one for the label, and avoid baking in the specific details of the TLS HKDF info structure. A hacky API change could distinguish between a NULL hash and an empty hash.
In summation, I'd prefer not to have to explain to future users of QUIC that this isn't a null terminator on the string, but a product of a design decision made before QUIC even really existed.
> @@ -703,12 +703,13 @@ structure:
struct {
uint16 length = Length;
opaque label<6..255> = "QUIC " + Label;
+ uint8 hashLength = 0;
This needs to be explained, or people will ask why the hash is zero length.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/1256#pullrequestreview-109208113
- [quicwg/base-drafts] Tls restore compat (#1256) Christian Huitema
- Re: [quicwg/base-drafts] Tls restore compat (#125… Marten Seemann
- Re: [quicwg/base-drafts] Tls restore compat (#125… Martin Thomson
- Re: [quicwg/base-drafts] Tls restore compat (#125… Kazuho Oku
- Re: [quicwg/base-drafts] Tls restore compat (#125… ekr
- Re: [quicwg/base-drafts] Tls restore compat (#125… Martin Thomson
- Re: [quicwg/base-drafts] Tls restore compat (#125… Christian Huitema
- Re: [quicwg/base-drafts] Tls restore compat (#125… Christian Huitema