[quicwg/base-drafts] Encrypt key phase (#1339)

Martin Thomson <notifications@github.com> Mon, 07 May 2018 07:08 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 EF66C126D0C for <quic-issues@ietfa.amsl.com>; Mon, 7 May 2018 00:08:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.01
X-Spam-Level:
X-Spam-Status: No, score=-3.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_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-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 p0l88npHsNLD for <quic-issues@ietfa.amsl.com>; Mon, 7 May 2018 00:08:13 -0700 (PDT)
Received: from o7.sgmail.github.com (o7.sgmail.github.com [167.89.101.198]) (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 2E59E126D74 for <quic-issues@ietf.org>; Mon, 7 May 2018 00:08:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=OvN8Bcus/Ef/XdqV9GfFPXbAM/Y=; b=iyagyJncyG2niI78 Vi2DCpD6Ui1rFf5n2NhvWbyvhVJmsN+/oYVdcTeSC2zgIciUvEQMWK2SMHaB1crr 1haI2zhQ6scB9hyzGTv6Fb/qgtGOsUgPyZRJ2XnSVf2QgQIA33OqGLPEhh7PhK2j lZoravY85hvecaentQVYzZjafzk=
Received: by filter0392p1iad2.sendgrid.net with SMTP id filter0392p1iad2-10545-5AEFFB5B-1F 2018-05-07 07:08:11.697615027 +0000 UTC
Received: from github-lowworker-643483b.cp1-iad.github.net (unknown [192.30.252.45]) by ismtpd0040p1mdw1.sendgrid.net (SG) with ESMTP id EiagmkFXTTmzroh-iPl4OQ for <quic-issues@ietf.org>; Mon, 07 May 2018 07:08:11.598 +0000 (UTC)
Received: from github.com (localhost [127.0.0.1]) by github-lowworker-643483b.cp1-iad.github.net (Postfix) with ESMTP id 8C1A66C1AB2 for <quic-issues@ietf.org>; Mon, 7 May 2018 00:08:11 -0700 (PDT)
Date: Mon, 07 May 2018 07:08:12 +0000
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab8e23126c39f8de95b399d9297af78842fef65e6e92cf000000011707bd5b92a169ce131d70d9@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1339@github.com>
Subject: [quicwg/base-drafts] Encrypt key phase (#1339)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5aeffb5b8a69a_33743f9e52490f7c2934ae"; 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
categories: subscribed
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak1tqgk8KZqekRK501XF3iXOPOPcofu51TQuhg QnzskWDkmT30B0xBXsLosZ+QVsXO9lnkGC6Oagiq0cXqT06FTZH991dzzfuwTILJ4ZZPZVznTxvuGQ 66qbzFVpYfEFlJcHlbB51526cgHGmEbNtQKfWYrWxZULZFnKpBM2VwfPEU3KBmsxL3fdfiNrBw5dea A=
X-SG-ID: A4fhEY3diXC81rW45KdZlyZUeIsAZbh4s7lWAZfiJNE=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/K9F4BflvuqVxRBB3RZfVuIh5NUQ>
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: Mon, 07 May 2018 07:08:15 -0000

This is what encrypting the KEY_PHASE might look like, at least to start with.  This builds on #1334.  It's not intended to be merged, just to serve as a discussion point.

@kazuho suggested that we extend the encrypted portion into the type byte.  That's a natural extension of this.  One potential advantage of that is that we might get more bits for packet numbers.

There's also the possibility of making the long and short headers use the same encoding and to use the KEY_PHASE in the long header to indicate use of 0-RTT, which would eliminate the differences I had to introduce here.  I'm sure that there are other options there as well.
You can view, comment on, or merge this pull request online at:

  https://github.com/quicwg/base-drafts/pull/1339

-- Commit Summary --

  * First pass at varint packet numbers
  * tweaks, thanks Martin and Ian
  * long headers too
  * Both long and short have varint PN
  * TLS draft changes for protecting key phase with PN
  * Move the KEY_PHASE into the short header packet number encoding
  * Update examples for shorter encodings
  * Superficial only
  * Merge branch 'fix-pn-example' into encrypt-key-phase
  * Update examples for varying sizes

-- File Changes --

    M draft-ietf-quic-tls.md (51)
    M draft-ietf-quic-transport.md (107)

-- Patch Links --

https://github.com/quicwg/base-drafts/pull/1339.patch
https://github.com/quicwg/base-drafts/pull/1339.diff

-- 
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/1339