Re: [TLS] Distinguishing between external/resumption PSKs

Jonathan Hoyland <jonathan.hoyland@gmail.com> Thu, 19 September 2019 13:31 UTC

Return-Path: <jonathan.hoyland@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 301EC120074 for <tls@ietfa.amsl.com>; Thu, 19 Sep 2019 06:31:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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=gmail.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 V5k_8dqSnZo1 for <tls@ietfa.amsl.com>; Thu, 19 Sep 2019 06:31:48 -0700 (PDT)
Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) (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 467221200F6 for <tls@ietf.org>; Thu, 19 Sep 2019 06:31:48 -0700 (PDT)
Received: by mail-vk1-xa2e.google.com with SMTP id d66so819106vka.2 for <tls@ietf.org>; Thu, 19 Sep 2019 06:31:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3m4/RXiSAx3QF0pJrLxG65QaQqohuMLmtc3y+KOh1dE=; b=GOetUgVAPaVZB66qlQhOR4CaMhgLqo1LaWGkIJ6av0SyZlZtMrzVBrL8Xv5i6WO5tT n8ui2UCveg6UIudraYgiQWUGB3fbOFhnMnHQ2wLeBCyfv5agxDuEyCd7s3w+YiSiRTPs vEaufBINcgbp5FhUWIsUOuBB5cx2rnO7vIRyBlxNJ9RhfPNZr4r3imjS046uiH5mPT2m d/K96Rp5gMzDX/ERRImkFPytSohmkgO4SEmfXNDjKJw+73oLvDKQUpB5wS6guTbiNXlc g+ua66jDcEKTs0rxs7yLtShO6nYPNXfVi0c7r+mAOptj2im27JlFr+KnzNzXyMyU8H0B QnAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3m4/RXiSAx3QF0pJrLxG65QaQqohuMLmtc3y+KOh1dE=; b=ckUGjoFT/C2HSSp7FGtNGPFxkMKw+uqgFaugrTNGjvNxGB2nF3pidOZpAyuOXpmu// 6AlydCZdw1VKV6wP61MdkFW+LaGSxqZCK/N+DZcrW+KIQ2ry25s+KmkjtxKdu5j+7Q4U MSZ7rt5l27ayo5Sim+KDn+HJTXEpi9egL0eXfl3pwlAs2gTJ37TuVzd979hx1oTDXJQG VoG9RJCcRC9AlBi0U3BRNeP/8EbRWSGPs4yOckfXle5Y+KkJS8Iop6k0BKKkvzutw/5n TVjSGKyfjg6fk33folnc74Ig79VrKBO5r/dcNrT6FZlLIwOVo9vo8Rwc5yqvIZ4rWDb4 6idg==
X-Gm-Message-State: APjAAAXCNnUPUPYcCuLtVXoH5Ozfg0CZYXD5lSfI67IzUgMHaLT69M2A jQCjyRoDtE5iqDFfLbya9V6H3phMOBkQFhdWXMs=
X-Google-Smtp-Source: APXvYqzJdZxR/RgfQ2YOL/rZPjAEnaHjJRRZduh5WtJNidVNEQB81cGdOT3h8QioNU8V5I8lXCFbQUKbtE5dVnfFtzo=
X-Received: by 2002:a1f:e242:: with SMTP id z63mr4648156vkg.37.1568899906974; Thu, 19 Sep 2019 06:31:46 -0700 (PDT)
MIME-Version: 1.0
References: <CY4PR1101MB227834A5DF828F000C6D1144DB890@CY4PR1101MB2278.namprd11.prod.outlook.com>
In-Reply-To: <CY4PR1101MB227834A5DF828F000C6D1144DB890@CY4PR1101MB2278.namprd11.prod.outlook.com>
From: Jonathan Hoyland <jonathan.hoyland@gmail.com>
Date: Thu, 19 Sep 2019 14:31:36 +0100
Message-ID: <CACykbs2qp0EDa3pGfFpQY6rgruJD1f-6mZ_B5KF8kBkrXD9caw@mail.gmail.com>
To: "Owen Friel (ofriel)" <ofriel@cisco.com>
Cc: Martin Thomson <mt@lowentropy.net>, "tls@ietf.org" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a4b9ea0592e7f915"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/QI7O5Rw_2FBnEB-eDfAkF1f0SpI>
Subject: Re: [TLS] Distinguishing between external/resumption PSKs
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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, 19 Sep 2019 13:31:50 -0000

Hi Owen,

If I understand your question correctly the distinguishing is done
implicitly (not explicitly) through the key schedule.
If the client and server do not agree on whether the PSK is a resumption or
an OOB PSK then the `binder_key` will not match, and the handshake will
fail.

See pp. 93-94 of the spec.

Does that answer your question?

Regards,

Jonathan

On Thu, 19 Sep 2019 at 11:52, Owen Friel (ofriel) <ofriel@cisco.com> wrote:

>
> > -----Original Message-----
> > From: TLS <tls-bounces@ietf.org> On Behalf Of Martin Thomson
> > Sent: 04 September 2019 02:46
> > To: tls@ietf.org
> > Subject: Re: [TLS] Binder key labels for imported PSKs
> >
> >
> > When we built the ext/res distinction, there was a clear problem
> expressed.
> > We had the potential for both to be used by the same servers at the same
> > time (though not for the same connection) and distinguishing between them
> > was important
>
> Martin, maybe I am missing something in the threads on this. Is there
> anything explicit planned in ClientHello PreSharedKeyExtension or
> PskKeyExchangeModes to explicitly distinguish between ext/res PSKs? Or is
> it up to server implementation and how the server handles the opaque
> PskIdentity.identity? e.g. ImportedIdentity.external_identity fields could
> be stored in one DB table, and (ignoring
> https://tools.ietf.org/html/draft-ietf-tls-external-psk-importer-00#section-9
> for now) the server on receipt of a ClientHello searches for
> PskIdentity.identity in its ImportedIdentity.external_identity  table and
> if that lookup fails, then try to parse PskIdentity.identity  as a
> NewSessionTicket.ticket? And the order of those two operations is of course
> implementation specific too.
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>