Re: [Curdle] AD Review of draft-ietf-curdle-gss-keyex-sha2-05

Eric Rescorla <ekr@rtfm.com> Fri, 18 May 2018 21:10 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: curdle@ietfa.amsl.com
Delivered-To: curdle@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 24D2512E049 for <curdle@ietfa.amsl.com>; Fri, 18 May 2018 14:10:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.609
X-Spam-Level:
X-Spam-Status: No, score=-2.609 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.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 lhLBavcfpF28 for <curdle@ietfa.amsl.com>; Fri, 18 May 2018 14:10:27 -0700 (PDT)
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 8941F12DA0D for <curdle@ietf.org>; Fri, 18 May 2018 14:10:27 -0700 (PDT)
Received: by mail-oi0-x235.google.com with SMTP id p62-v6so8297860oie.10 for <curdle@ietf.org>; Fri, 18 May 2018 14:10:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aU39SzETLzhTif6gE3BIa+O56EKmr9/mHKmJ4FRM9gw=; b=0ye3f1NhqchivHWviv2rsHulIc0YeCz68vbNII+BBio+Mlf07GeYfubGzvFLVQEDrZ 9kQMUeZKxOKl667VUrm0U7YB9E6F8DJUqIxlIrXcY6KxhBrDgUbRBGl5U7gt7tg3SlaK Zqa72vj0KEHQFDxohj6+rS8hbomcSUx39UOwC+wUSUhgfdKWdmRoHiLxfX+8tVy45FP2 c8DAzKnHTovd+f8n+BcSU3eh9kkV2ew5KQDJx7P6wGNiZ9rbG6cW5LdOsezdlxSPaYxm MMoGuR+H65cA6yI4StINGwTtutIP0ai3SpgmvodGXtsFXTIz0dGBHpPimazCPcpGjzeN NVDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aU39SzETLzhTif6gE3BIa+O56EKmr9/mHKmJ4FRM9gw=; b=gLoCjyxZ/KoEQlK2siUsmnP2KXW2Kg2g5HN3oM1FwPzGfCxCiAA55yXL8XYCSW666F CYOhTKajt/+C3rNjnOxRKLgmOEtKHzDjNqe7PG/MSAZX30j/2otnl8Hb976A+t87wAMK 6UnXXjGqQz1duj4acu3q3XqqVe1MrogWM9YGZu4LYEsQhvkYeJgbXtmKjhK3eX6bAQ5K kl+HzX+J7ufW7petB84CPt0Nr3CTsmMELfHwO90e1eUie2l1uqCh6J95+uydRXXbRtIV 6QcIFEBuCkokge1JZvDoZoPxYTBND5dwsAo/uyWOwPNL47uwdYToqVuliCZwV0m0qPDW jCmg==
X-Gm-Message-State: ALKqPwebpZbr5Gh3qMGLXtGr/99jV/JFXHIBOMECi5iGcUac6PuBtxEY cGyu9peMidLylWZubTOKN4/tXmwMNM5XVTCjXB8wUg==
X-Google-Smtp-Source: AB8JxZolSGxSAP6tFy0P/n635MdlIkhdpB0BTkcscpupso5oE7bNauD26MzRFiltArcWUjcQi0W04gfxS3sAfmBDceo=
X-Received: by 2002:aca:d10:: with SMTP id 16-v6mr6641411oin.108.1526677826880; Fri, 18 May 2018 14:10:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.201.118.130 with HTTP; Fri, 18 May 2018 14:09:46 -0700 (PDT)
In-Reply-To: <1822880.CWREsZFPS8@pintsize.usersys.redhat.com>
References: <CABcZeBNCUSpGihHz6bPBSALS4-34Tm7W36BCZ_Ev8OQz3KtVag@mail.gmail.com> <3446969.zDdGGYQIsg@pintsize.usersys.redhat.com> <CABcZeBPeNGVy51uz78dk2REYKG8yugFvB3XdZ5PBLLFnrALTRA@mail.gmail.com> <1822880.CWREsZFPS8@pintsize.usersys.redhat.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 18 May 2018 14:09:46 -0700
Message-ID: <CABcZeBPSZBa78hM-t+p2dcmiD5=Q=-pqFHvNuqJ-sj_Vh7=-=A@mail.gmail.com>
To: Hubert Kario <hkario@redhat.com>
Cc: Simo Sorce <ssorce@redhat.com>, curdle <curdle@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000008edfec056c81618c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/curdle/gwcRiq5f2vO3T1RDyR4S9F3BiCA>
Subject: Re: [Curdle] AD Review of draft-ietf-curdle-gss-keyex-sha2-05
X-BeenThere: curdle@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "List for discussion of potential new security area wg." <curdle.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/curdle>, <mailto:curdle-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/curdle/>
List-Post: <mailto:curdle@ietf.org>
List-Help: <mailto:curdle-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/curdle>, <mailto:curdle-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 18 May 2018 21:10:30 -0000

On Thu, Apr 26, 2018 at 4:46 AM, Hubert Kario <hkario@redhat.com> wrote:

> On Wednesday, 25 April 2018 21:55:21 CEST Eric Rescorla wrote:
> > On Wed, Apr 25, 2018 at 11:53 AM, Hubert Kario <hkario@redhat.com>
> wrote:
> > > On Friday, 13 April 2018 15:41:37 CEST Eric Rescorla wrote:
> > > > On Thu, Apr 12, 2018 at 11:29 AM, Hubert Kario <hkario@redhat.com>
> > >
>
> > > > > > >      This section defers to [RFC7546] as the source of
> information
> > >
> > > on
> > >
> > > > > GSS-
> > > > >
> > > > > > >      API context establishment operations, Section 3 being the
> > > > > > >      most
> > > > > > >      relevant.  All Security Considerations described in
> [RFC7546]
> > > > >
> > > > > apply
> > > > >
> > > > > > >      here too.
> > > > > >
> > > > > > >      The Client:
> > > > > > This section should be refactored to put all the EC mechanics
> (which
> > > > > > are symmetrical) in one place.
> > > > >
> > > > > I don't think I understand what changes you'd like to see
> > > > >
> > > > > both FFDH and ECDH are symmetrical... both client and server need
> to
> > > > > perform
> > > > > the same operations...
> > > >
> > > > Yes, That's why it's confusing to describe their operations in order
> > >
> > > rather
> > >
> > > > than
> > > > the behavior that a DH peer does and then just the points where they
> are
> > > > inserted in the protocol. Compare, for instance, the TLS 1.3
> > >
> > > specification,
> > >
> > > > where both KeyShare (https://tools.ietf.org/html/d
> > > > raft-ietf-tls-tls13-28#page-53) and
> > > > the DH computations (https://tools.ietf.org/html/d
> > > > raft-ietf-tls-tls13-28#section-7.4) are
> > > > described in an endpoint agnostic manner. DH is inherently
> symmetrical.
> > >
> > > the actions performed in context of GSSAPI-infused key exchange aren't
> >
> > Neither are they in TLS, but we managed to put the DH part in one place.
>
> That's not true:
> https://tools.ietf.org/html/draft-ietf-tls-tls13-28#section-7.4
> https://tools.ietf.org/html/draft-ietf-tls-tls13-28#section-4.2.8.1
> https://tools.ietf.org/html/draft-ietf-tls-tls13-28#section-4.2.8.2


My point was that they're not separated between Client and Server,


> > RFC 7748 says that the verification is optional, I don't see why making
it
> > mandatory is incorrect for SSH. For nist curves, the verification is
about
> > public key, not shared secret, it's just performed in the same step.
>
> I think we're talking past each other. The TLS spec requires that:
>
> - You do public key validation for FFDHE and NIST curves
> - You do output validation for CFRG curves.
>
> Unless I am misreading your text, you are requiring that you also do
output
> validation for the NIST curves. Is that correct? If so, can you provide a
> source for why?

http://www.secg.org/sec1-v2.pdf Section 3.3.1. step 2 of the "Calculate a
> shared secret value as follows" algorithm.
>

Sorry for the delay on this. I've been asking cryptographers. What I
understand
is that this is redundant for these NIST curves as long as you check
the input points, which we do. However, maybe for other curves it is a
problem.
I guess it's OK to leave here.

-Ekr