Re: [Cfrg] Comparing ECC curves

Phillip Hallam-Baker <phill@hallambaker.com> Wed, 23 July 2014 23:17 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 01C271A00B5 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 16:17:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=no
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 V37JtBVF0Y2D for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 16:17:03 -0700 (PDT)
Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EF751A0174 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 16:17:03 -0700 (PDT)
Received: by mail-wi0-f173.google.com with SMTP id f8so8620314wiw.12 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 16:17:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=BnR+3ps9KtR3ZSF8AUH3nJWetbQEWL4OnDyphSQ2i24=; b=AaxnusRFtKnZ2CipBXz+0WME98uLFk/8psWCVy068FlwDnvrUDfR8we8g2jILjGI5V RpJRXNAoVfdxtambTiPD1emZO0p2guSwyUQWTtk0DC+YUk5XjwZKBY5lcPqPyi9gJJlp keUs33ihVpLzM06B7G2bnmiAYnkE7EDpLLsm6QRCEmf6Qzufv7tg63o+c/OxPysIUuJh OJhCW0Oik5KlHEjWDVYT8FPAmbRcrEM1m7Roh9LgTsbSOoFYBCWIw/1XqIbmw/W8USZ9 2cJpJAf0vNVMIiDvQMh8KCVTTEfWWb6OZHGBWUqWF9CLZM0hjBDzpGJHUvjs8RgMTS9e 0HDA==
MIME-Version: 1.0
X-Received: by 10.180.210.239 with SMTP id mx15mr1872706wic.65.1406157422085; Wed, 23 Jul 2014 16:17:02 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Wed, 23 Jul 2014 16:17:02 -0700 (PDT)
In-Reply-To: <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com>
Date: Wed, 23 Jul 2014 19:17:02 -0400
X-Google-Sender-Auth: 5c2gnHVro9C65LSm6xx9XZeD83w
Message-ID: <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Benjamin Black <b@b3k.us>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kXIp15_FiEzV9N-3PngSUoHWqZU
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] Comparing ECC curves
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jul 2014 23:17:05 -0000

On Wed, Jul 23, 2014 at 6:33 PM, Benjamin Black <b@b3k.us> wrote:
> On Wed, Jul 23, 2014 at 3:28 PM, Phillip Hallam-Baker
> <phill@hallambaker.com> wrote:
>>
>>
>> 3) Do we need to consider 2^192 work factor?
>>
>> I can't see any case where I am interested in a work factor of 2^192.
>> Either I am willing to make some concession to performance or I want
>> it gold plated and 2^256. I would quite like to see the 2^192 work
>> factor nuked.
>>
>
> Phillip,
>
> This was our conclusion, as well. If you haven't seen it, here's the NUMS
> TLS draft which only specifies the twisted Edwards curves at 128 and 256 bit
> security levels: http://tools.ietf.org/id/draft-black-tls-numscurves-00.txt

Just trying to push back on the idea we need the options .. :-)

Similarly, I am not interested in a set of curves that is
hyperoptimized for TLS and can't be used for S/MIME. When we were
discussing random curves, changing the curve was pretty much the same
as changing the key. Now that we are doing the close to powers of 2
curves with highly optimized code, changing the curve is like changing
to a whole new algorithm.

As far as the code is concerned it is better to think about them as
choosing between ECDHE-25519 and ECDHE-256p rather than ECDHE with a
named curve. Changing the curve is going to select a different
implementation.


The end product I want from this is a set of backup public key
algorithms that can be made a RECOMMENDED algorithm with a view to
making them a MUST algorithm replacing RSA-2048 at some point in the
future. I want to encourage dedicated hardware support, etc. etc.


This means that I really don't want TLS to go and choose something
that is going to fail if we try to apply it to S/MIME or PGP. We can
use DH for email encryption but only one of the keys can be ephemeral.
The recipient key is going to have to be static.

I would suggest as a way forward here we look at the protocol
requirements for TLS, PKIX and S/MIME as they represent the two poles
of protocol design. I would be rather surprised to find IPSEC, SSH
etc. to have dramatically different requirements to TLS. S/MIME and
PGP on the other had are store and forward which makes them very
different beasts. I would also separate out TLS and PKIX because one
is a single protocol and the other is infrastructure.

[DNSSEC does actually have a different requirement from PKIX, data
size, but that is probably not going to be a deciding factor between
curves]

It would clearly be nuts for the IETF to choose a curve that does not
work well for TLS. But I don't see the differences between the curves
on TLS being so great that we should accept a curve that we can't use
in every reasonable protocol.