Re: KEYS_READY

"Martin Thomson" <mt@lowentropy.net> Thu, 14 February 2019 22:30 UTC

Return-Path: <mt@lowentropy.net>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4873D131209 for <quic@ietfa.amsl.com>; Thu, 14 Feb 2019 14:30:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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=lowentropy.net header.b=Z2zoyHPb; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=xgmC2uYx
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 aCoUb1_p_3L6 for <quic@ietfa.amsl.com>; Thu, 14 Feb 2019 14:30:31 -0800 (PST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9CA371311F4 for <quic@ietf.org>; Thu, 14 Feb 2019 14:30:31 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B2AAD221D1; Thu, 14 Feb 2019 17:30:30 -0500 (EST)
Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Thu, 14 Feb 2019 17:30:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=message-id:in-reply-to:references:date:from:to:cc:subject :content-type; s=fm1; bh=BrQcyV4AiUizc+nNOxItZTMka4fbqNhRxLGsfI+ 6OAY=; b=Z2zoyHPbHPWuWi1bzx5wGTQMRvAtfTGHUqu7uPG9Ba9+4wlcBdeo7At gEJFU2Ey2/l5TjOlvaWQw2WEPFMufj2JFlP/vIf0e5Zmdu/PnNfJO9UeXqqmH/Pz 10v/cZ9xDLryCnlcuRVgFsfyvMyrycHvlyXHMWeb5hcobHVein4GpneOdYGY6rcO AfwPtpl+98ZtGY4zP26cPJ/UGcMwgKm7I0A2iRD83FaaOyXv6ug/wFeCQRRsNW5W RlmJ7cddYTwsSns4HLjHG7EZKfCl+cS4ToRlKlORzeRE/yrYi0xHKD/aHPWTLv9B pxIqGf6qcYhHgtQgJMR6Fw1SGKkv91A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:references:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=BrQcyV4AiUizc+nNO xItZTMka4fbqNhRxLGsfI+6OAY=; b=xgmC2uYxudLHQX+SU2ucSLHdvnRMG/WQH Ma9aSlthDC4g+ElL46qu5WGz/t1fteTKNfvly9nTa0M9WY1AF8A8HitF7COzvKvU 7PoCkz5a41NEcYzgGime8Dnc5RJWdcClLdgbx8kPYLgenMoWzpMUvdaLOgSlv82p DXj39mJ1v5lcaIGDi/YQ8QlkD6C+pHNOfTDCbDuq7rh+d/ROX5O5crKmci+2whoE OwwE/X4exIplMRjMrMamdsqV8g3Cf6tZ2YfmEQl2bv4tgqH9TR2hCLN9eIjZd7Ga b9BerhJolBjjmuVY2yvKcg7qhxXSYsxm120M2WotwQiwFnsrTBpBQ==
X-ME-Sender: <xms:BuxlXA4TpI08wIE_J7rdvwf4P_qlq5HVdt0IUfwCWLEKlJK644ws8g>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddthedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepofgfkfgjfh ffhffvufgtsehttdertderredtnecuhfhrohhmpedfofgrrhhtihhnucfvhhhomhhsohhn fdcuoehmtheslhhofigvnhhtrhhophihrdhnvghtqeenucfrrghrrghmpehmrghilhhfrh homhepmhhtsehlohifvghnthhrohhphidrnhgvthenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:BuxlXGIMa9P7JTIYn9XkZHuN1FJriYWNIb8r5gmJtOs48dDWX8Abcg> <xmx:BuxlXEEquaZUJW6FiDkP4h9MKjecneZkMiIpAM5XSZKNda8qXMrmqA> <xmx:BuxlXEUcWtqmbk-OKu5TzF1plgom_0jSBeK31pZJ015Stag0CzJXJg> <xmx:BuxlXGlBaPBot99QRrU0CKBjiv7AxdJqJjUs40P9-2RSACa-npAqPg>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 070FA7C1EB; Thu, 14 Feb 2019 17:30:30 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.5-832-gba113d7-fmstable-20190201v1
X-Me-Personality: 92534000
Message-Id: <b4364dee-a429-45c5-8b56-b82269f1ab2e@www.fastmail.com>
In-Reply-To: <CAPDSy+4sKR99Fwqt+08JevAmC7E4LUSohUrQgVc+5BA56CLEkQ@mail.gmail.com>
References: <1550022355.557617.1656828112.4DD1CEE6@webmail.messagingengine.com> <CANatvzy_juza_meGR_-KuBV9FA=F754mv54aawxMb8hYWxb1gA@mail.gmail.com> <CAN1APdcVYKWuapZ3XHxXa_nVACwkRD-xeF3ub-5ROttE7QVrmQ@mail.gmail.com> <CAOYVs2ooxAuwu_zr2XZ-y9UqUP5kTbjoFrckAOi40bF9vODGOg@mail.gmail.com> <CAKcm_gNk=jKrnXM4Ht4yF0RX25wtVifjxz0c1gay0uie7PMw6A@mail.gmail.com> <CANatvzxBYzEaDZ1Ftt=o1zT5zVcVTd1EwtGiJOC-mkrNUWzVAQ@mail.gmail.com> <CAN1APdfzepc9DE98UsWw=hB4dM38qKLxdAjpsYuddDBatcscDA@mail.gmail.com> <739AFC55-DD02-47AA-A29E-B9C34ED7D6F9@gmail.com> <CAN1APddWLdmRo+ZZDnmvrBEFQk4TTcS3UK_9AU4KqAeSkiBvJQ@mail.gmail.com> <375A63C5-7120-4688-8873-EEA90693332E@huitema.net> <CANatvzxoOFzpkcH_4VpQscpZq8ak0QL0D6REvyJVjE+ga97SVQ@mail.gmail.com> <1550111606.3717440.1657643080.033E200B@webmail.messagingengine.com> <ae018a6d-4c9a-acc7-4213-21d1670f9dad@huitema.net> <1550117510.928793.1657684264.41D049FA@webmail.messagingengine.com> <CACpbDcfbEcg70RwpFrCQ2X6WA0Dd7ygd=Q0w7iwKc-ZgZQbZ0w@mail.gmail.com> <1550120733.954579.1657700168.72A8F92A@webmail.messagingengine.com> <CAOYVs2qQJgGNhXJNjhE8L=wxBgq+3qs144WYXs0JoWNBrK_a6A@mail.gmail.com> <DB6PR10MB1766128EAD7248F02C1EAFA5AC670@DB6PR10MB1766.EURPRD10.PROD.OUTLOOK.COM> <DB6PR10MB176684E61A66BF01C66008F6AC670@DB6PR10MB1766.EURPRD10.PROD.OUTLOOK.COM> <CAPDSy+5MSST-Nkoi+oaRzSLDJCYqhUmKw1nP_p4fOyq7cfK17w@mail.gmail.com> <CAJ_4DfRKrYOyozbp4GmPNODnZ_sKTECXbMa5Vsuxa4zmubERHQ@mail.gmail.com> <MWHPR22MB0991FCD3ADA97790B238E491DA670@MWHPR22MB0991.namprd22.prod.outlook.com> <CAPDSy+4=YYyTe5=85X09e1kAB7TrmmNXK-2wnLZubfS1ekWRJA@mail.gmail.com> <f2e59f1c-b7d5-49ce-affc-7d16684a048a@www.fastmail.com> <CAPDSy+4sKR99Fwqt+08JevAmC7E4LUSohUrQgVc+5BA56CLEkQ@mail.gmail.com>
Date: Thu, 14 Feb 2019 17:30:30 -0500
From: Martin Thomson <mt@lowentropy.net>
To: David Schinazi <dschinazi.ietf@gmail.com>
Cc: Mike Bishop <mbishop@evequefou.be>, Ryan Hamilton <rch=40google.com@dmarc.ietf.org>, Marten Seemann <martenseemann@gmail.com>, Jana Iyengar <jri.ietf@gmail.com>, Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, QUIC WG <quic@ietf.org>
Subject: Re: KEYS_READY
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/spARJsp6hKym7xFYGAdAsEzvtpM>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Feb 2019 22:30:33 -0000

On Fri, Feb 15, 2019, at 09:02, David Schinazi wrote:
> 
> On Thu, Feb 14, 2019 at 1:02 PM Martin Thomson <mt@lowentropy.net> wrote:
> > Please explain how the two differ, because I'm not seeing a difference.
> 
> Here's the difference between them as I understand it:
> 
> I'd initially assumed KEYS_READY meant that the keys were installed - 
> meaning that you send KEYS_READY when your keys are installed. But not 
> quite! The server does not send KEYS_READY when the 1-RTT keys are 
> installed, it sends it when it believes the handshake is done. So now 
> you have a notion of keys being ready that is impacted by parts of the 
> protocol further away.
> 
> RETIRE_KEYS just means that you're done sending with a set of keys - so 
> you send it when you have received ACKs for everything you cared about 
> sending with those keys. I find that a lot more easier to reason about.

Take another look at the PR and see if you can spot the difference.  You will find that maybe you are just arguing for a name change here.