Re: [TLS] WGLC: draft-ietf-tls-session-hash

Martin Thomson <martin.thomson@gmail.com> Thu, 15 January 2015 23:21 UTC

Return-Path: <martin.thomson@gmail.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 876F01A908D for <tls@ietfa.amsl.com>; Thu, 15 Jan 2015 15:21:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 ZzsRTuqkGAni for <tls@ietfa.amsl.com>; Thu, 15 Jan 2015 15:21:27 -0800 (PST)
Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DEF391A9089 for <tls@ietf.org>; Thu, 15 Jan 2015 15:21:26 -0800 (PST)
Received: by mail-oi0-f51.google.com with SMTP id h136so14877523oig.10 for <tls@ietf.org>; Thu, 15 Jan 2015 15:21:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Bj0wGiwmCLT938YJLuG6kBaNwpVBZj7waDQ7pzAmCzI=; b=u8BX9DcVTxeMmXJv5uRWgWuTCl+AKvJozApRffMRigIJkOXBZ4NnQbY5gNmOfYdxwD z1Sxgby79Y+/QlXuyc5vutlYxaFX8+jbBpCSxNRG0SUesnO5slPQ5fGj7cSTdIVs2KCo yPLSU0Xua+MiaPUWI2KzVR7TEcJ9UZXFuNFkcPzPMNquMDul0YK966JBupqlNaSwA8gE XToCkt0tr3wb1oaL67BzuYXE4vlhwP5i9/fNahN1De4AR+9xyhyKt0UKrW+DSckeF09p UmHQVdyISqYdf9bPN+AA3QnOkimlbo69WT8XoFy5daXtFEFJIJvXuROhDp7hFnQb0jEU IHKg==
MIME-Version: 1.0
X-Received: by 10.202.75.202 with SMTP id y193mr7167013oia.12.1421364086204; Thu, 15 Jan 2015 15:21:26 -0800 (PST)
Received: by 10.202.226.136 with HTTP; Thu, 15 Jan 2015 15:21:26 -0800 (PST)
In-Reply-To: <CABcZeBMGkhaB4QW914A8cZjgGvnzXN-7Q9pYWWdgitcZzpSYeg@mail.gmail.com>
References: <E3E12F78-101D-4BA8-9EFB-53C24362066E@ieca.com> <62165FC2-540D-48A5-A7AC-3D6D9087FDD2@gmail.com> <B773EC7F-9CE8-4A23-AE53-9F2D4264B4F2@pahtak.org> <75C82EF9-8800-453F-A489-10FD26E7F2CD@gmail.com> <CABcZeBMGkhaB4QW914A8cZjgGvnzXN-7Q9pYWWdgitcZzpSYeg@mail.gmail.com>
Date: Thu, 15 Jan 2015 15:21:26 -0800
Message-ID: <CABkgnnVQADSJ-daymDCRLLUf8Rv69CFc3fZB3eJzgYRaYisTPQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/VSY7JA-q4oCwwXxjRofQZIc9j5k>
Cc: Stephen Checkoway <s@pahtak.org>, "TLS@ietf.org (tls@ietf.org)" <tls@ietf.org>
Subject: Re: [TLS] WGLC: draft-ietf-tls-session-hash
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: Thu, 15 Jan 2015 23:21:29 -0000

On 15 January 2015 at 14:51, Eric Rescorla <ekr@rtfm.com> wrote:
> For sessions negotiated without EMS:
> - SHOULD not resume
> - MUST not resume sessions if the client offers EMS in the resumption
>   (and therefore SHOULD do a complete negotiation).
>
> For sessions negotiated with EMS:
> - The client ??? offer EMS
> - The server MUST NOT echo it?

Just to be clear, this latter part is...when renegotiating.

My preference is: if the session had EMS, when renegotiating:
 - the client MUST offer the extension, and
 - the server MUST fail the handshake (new alert needed?) if the
extension isn't present.

That means no resumption, OR fallback to the complete handshake.

I think that I'd prefer to have the server echo the extension in this
case too.  It's a few bytes effectively wasted, but it makes
everything nice and symmetrical.  Clients says "I want EMS" and server
says "you got EMS".