Re: [TLS] 0-RTT and Anti-Replay

Eric Rescorla <ekr@rtfm.com> Mon, 23 March 2015 13:12 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0C0601A8A01 for <tls@ietfa.amsl.com>; Mon, 23 Mar 2015 06:12:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 8csuqXoW_ngv for <tls@ietfa.amsl.com>; Mon, 23 Mar 2015 06:12:42 -0700 (PDT)
Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) (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 807AE1A89F6 for <tls@ietf.org>; Mon, 23 Mar 2015 06:12:42 -0700 (PDT)
Received: by wgbcc7 with SMTP id cc7so145498531wgb.0 for <tls@ietf.org>; Mon, 23 Mar 2015 06:12:41 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=1B+FPY5EJFhG5KBo2FVQOAZQJp6LjPoJkcD1g3ndDZo=; b=hdBzu0CPKZaSgD5FcDbFEJfBpH3gfK1R45j+whBg7M7vJ+2w0LI1zZlVz5I2nm8nCE WjbwhTVDxP7e5rHG6R/PYPxTltMrqJV5Oez+1NY2XUZvqAOFIq9houkb/ZAaKIvaMBRI AjYL/rEe1YOv09z/zOYpU0OUDoo0vF49MKmKFa0QV1PmE3VRGDNlnYJPoM9d3GI7PKNK 5ZD1FocsRovbyeeeaoZqgMNxnYHioJ3khbffihlRgG1KCukjWBdujsftVs5tqHxgAlje PRDMPoX46kBPqPjApRThKitlGSWprFkNmUQY8HS2uDEnty1OGzO/RHIWalDjhRR9YYQ/ LW3w==
X-Gm-Message-State: ALoCoQl3LGDRpn54lRMGZormlgPZdwQL549umraez6tSVvBDqtjhiyBHmzYmAyd+U5so5OiWVz+w
X-Received: by 10.180.91.70 with SMTP id cc6mr18844018wib.78.1427116361133; Mon, 23 Mar 2015 06:12:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.205.198 with HTTP; Mon, 23 Mar 2015 06:11:59 -0700 (PDT)
In-Reply-To: <20150323084716.GM21267@localhost>
References: <CABcZeBP9LaGhDVETsJeecnAtSPUj=Kv37rb_2esDi3YaGk9b4w@mail.gmail.com> <20150323084716.GM21267@localhost>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 23 Mar 2015 08:11:59 -0500
Message-ID: <CABcZeBO88cvxXJULgpNCxC_Q4HhtOOVnpCoUWmo6=7GkVhFkdQ@mail.gmail.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: multipart/alternative; boundary="f46d0438edd7c246f90511f46b6f"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/tcLDe3mu9x70XE0EtgCcKaX_fnw>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] 0-RTT and Anti-Replay
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 23 Mar 2015 13:12:45 -0000

On Mon, Mar 23, 2015 at 3:47 AM, Nico Williams <nico@cryptonector.com>
wrote:

> On Sun, Mar 22, 2015 at 02:49:28PM -0700, Eric Rescorla wrote:
> > Now consider what happens when the server reboots and loses its
> > state. You don't want to reject every client 0-RTT connection so
> > instead what you do is you ignore the client's initial data sent in
> > the first flight. Since the ServerHello provides a new Random value,
> > any data the client sends in subsequent flights has the usual
> > anti-replay protection.
>
> This is an optimization.
>
> If the server loses its replay state then it must cause every 0-RTT
> connection to become a 1-RTT connection.  There's no question of "want".
>

Maybe I wasn't clear. When I said "reject" I meant "hard-fail" rather than
make it 1-RTT.

-Ekr

Nico
> --
>