Re: [TLS] Unifying tickets and sessions

Viktor Dukhovni <ietf-dane@dukhovni.org> Thu, 23 October 2014 22:58 UTC

Return-Path: <ietf-dane@dukhovni.org>
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 F00C71A7031 for <tls@ietfa.amsl.com>; Thu, 23 Oct 2014 15:58:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 Jd37zj5B591K for <tls@ietfa.amsl.com>; Thu, 23 Oct 2014 15:58:21 -0700 (PDT)
Received: from mournblade.imrryr.org (mournblade.imrryr.org [38.117.134.19]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 05DC51A6FE0 for <tls@ietf.org>; Thu, 23 Oct 2014 15:58:21 -0700 (PDT)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id 10BDC2AB2EF; Thu, 23 Oct 2014 22:58:20 +0000 (UTC)
Date: Thu, 23 Oct 2014 22:58:20 +0000
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: tls@ietf.org
Message-ID: <20141023225819.GA19158@mournblade.imrryr.org>
References: <CAK3OfOj9bZcSDdWhHGeGT0STg6XBkYaExW+rQFN-FFE4oaPLrw@mail.gmail.com> <54483C33.4000702@polarssl.org> <11886639.VyNDkQ3oKj@pintsize.usersys.redhat.com> <54493904.7010807@fussenegger.info> <20141023174537.GW19158@mournblade.imrryr.org> <5449463D.7080904@fussenegger.info> <20141023183637.GX19158@mournblade.imrryr.org> <03546F3D-816C-481A-A577-9797855A9DED@pahtak.org> <20141023200134.GY19158@mournblade.imrryr.org> <5449837C.7080305@fussenegger.info>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <5449837C.7080305@fussenegger.info>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: http://mailarchive.ietf.org/arch/msg/tls/5JzBMka-INix87wAsV6eW0VpfAI
Subject: Re: [TLS] Unifying tickets and sessions
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tls@ietf.org
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, 23 Oct 2014 22:58:23 -0000

On Fri, Oct 24, 2014 at 12:38:52AM +0200, Richard Fussenegger wrote:

> With N = 2 your tickets are either T or 2 * T, depending on the time the
> client received the ticket. The client sends the ticket to the server
> expecting to continue were it left of but instead ends up with a full new
> handshake because the ticket is rejected, although the lifetime indicates
> that it's valid. (Of course no big deal.)

This is not true, I only promise the client a lifetime of T, so
the client asks for a new session after T anyway.  And the time
the ticket is good for is not discrete, it varies uniformly between
T and 2*T.

> With N = 3 your ticket is always 2 * T, no matter when the client received
> the ticket.

Not true, it varies uniformly between 2*T and 3*T.  The client
lifetime hint should be 2*T in this case.

-- 
	Viktor.