
From nobody Tue Jul  1 00:03:52 2014
Return-Path: <crypto@brainhub.org>
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 DEA121B27CF for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 00:03:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level: 
X-Spam-Status: No, score=-0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 p0CpfmVFmrls for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 00:03:49 -0700 (PDT)
Received: from qmta02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:24]) by ietfa.amsl.com (Postfix) with ESMTP id 617B91B27CA for <cfrg@irtf.org>; Tue,  1 Jul 2014 00:03:49 -0700 (PDT)
Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta02.emeryville.ca.mail.comcast.net with comcast id Luxi1o0010b6N64A2v3pza; Tue, 01 Jul 2014 07:03:49 +0000
Received: from [192.168.1.145] ([71.202.164.227]) by omta03.emeryville.ca.mail.comcast.net with comcast id Lv3o1o0064uhcbK8Pv3o5H; Tue, 01 Jul 2014 07:03:48 +0000
Message-ID: <53B25D54.5080003@brainhub.org>
Date: Tue, 01 Jul 2014 00:03:48 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com>
In-Reply-To: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1404198229; bh=XtH0HNIB5BR8wTUEO4nxLPv7yYIuBWfbx4Qt+L3axgA=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=SKzSQzqLIgqt8r7YfxGCA7QiNMbrsyW+Ft3mfhdYEKqmi7nPJwIEKPIXfCLQSSN+v ZUhflOpUsUZwtJZJnQlZ+bKwguNv2BYxyAfAhLSVDtNanZpJLIjgBIsY4JO85TEQaT TqYTDeVmtzXzWGGZllYJrBiDPt16vvrMCg8LymZ58us1giVHbjwhnIsjSUtmaI+GKx bvR8JkCW78PMdPvSQyVGpOJhvHR9oVU3XEhg++hQpQw80xMIf6HUtcYyNdeXlbo8Wj PyjMIUJcUHGL0UvxCLziKX2viHDQiJv/kft47oyysijbweSdER/UkfTSei/3CpaEoX SBpmEuMo0NI1Q==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Wlg36b16YXjFolx2Ecb2zYJe9Zs
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 07:03:51 -0000

I have the same concern:

On 04/29/2014 12:50 PM, Eric Rescorla wrote:
>
> - It would be nice if there was some chance that these curves could
>    have some chance of being FIPS-approved, so they could potentially
>    displace the NIST curves. It may be very difficult to get certainty here.

I see the following (the meeting minutes) 
http://www.ietf.org/mail-archive/web/cfrg/current/msg04505.html that 
don't answer this.

I also saw this post:
On 06/26/2014 11:46 PM, Alyssa Rowan wrote:
 > CFRG have selected Curve25519 as the preferred elliptic curve for use
 > in IETF protocols, as Rich has pointed out.


Let's assume that "the curve" at IETF is Curve25519. It doesn't appear 
to be an undisputed winner right now, but let's assume that it is 
universally accepted at every working group at IETF and is added to 
every IETF protocol soon.


There is a significant US federal market with Suite B, FIPS, or at least 
SP 800 XXX that in some cases supports multiple product lines for a 
company. Beyond that, one credit that Suite B gets is that Suite B 
provided a clear and safe path for anybody who wanted to add ECC to 
their products. It assured interoperability on the Internet and coverage 
for the US government sector in a single standard. It made it much safer 
to create persistent data structures that should exist for decades. Not 
everybody liked it, especially outside of US, but P-256 was and still a 
method to bootstrap into ECC.


I would like to hear your thoughts on the long-term view regarding 
standardization.

I will start with a few possibilities:

* Curve25519 becomes so pervasive that NIST adopts it. It replaces P-256 
as a standard [Should reaching out to NIST be on the roadmap at some 
point before that expected acceptance?]

* Curve25519 exists parallel to P-256 (and P-256 becomes just a US 
national standard) [In this case products accept that Curve25519 + all 
the national standards is a typical product requirement]

* Curve25519 is viewed as a couple-of-years forward solution and so the 
questions of integration with other standards is out of scope for the 
Curve25519 decision [perhaps because the focus is on currently common 
Intel x86 CPUs, ARMs?]

<other possibilities, I am sure>...

Thank you.


From nobody Tue Jul  1 00:28:31 2014
Return-Path: <ynir.ietf@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 5EF801B27CA for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 00:28:29 -0700 (PDT)
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 z-ZJEhEcnVSd for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 00:28:27 -0700 (PDT)
Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DEDF1A0190 for <cfrg@irtf.org>; Tue,  1 Jul 2014 00:28:27 -0700 (PDT)
Received: by mail-we0-f169.google.com with SMTP id t60so9265100wes.28 for <cfrg@irtf.org>; Tue, 01 Jul 2014 00:28:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yC3DQYxAxNvIEqNzSjpP2pxafi6voSqrS1M7X9C9Q24=; b=M8Fjqp49J3Cr4CrEfKFn/IYJQ7UBoL5AXzgDosspIw/Eqw2vRBfOMrNOP7vnv22niT QbVUPN5aT8ZpIMhY7NvzdThVgunO3shbsjjGDFh20Flm6ME9chLsDxN+xUvoajue1HmW a8xeLu8BaeJ8ogihtNoGkoexy10kpOaF2ZcPdcddFcVYAeSo7ikF7IH4z59Pu1+AXQ3x sRgbc0FbzCGnGzdjfGWA73/pr5RhqruBCu2Zc/p80asTGCDJpq6o4bDOTWyH3a0liaWP a/JYqnTt3AqhSyg8gMt+XmvA7BtkrH99xBworDHsw4UFOStphXl6MyRZbIOsEPjYdgB7 sIgg==
X-Received: by 10.180.79.201 with SMTP id l9mr34974592wix.60.1404199706028; Tue, 01 Jul 2014 00:28:26 -0700 (PDT)
Received: from [172.24.251.205] (dyn32-131.checkpoint.com. [194.29.32.131]) by mx.google.com with ESMTPSA id h13sm46360165wjs.2.2014.07.01.00.28.25 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 00:28:25 -0700 (PDT)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <53B25D54.5080003@brainhub.org>
Date: Tue, 1 Jul 2014 10:28:23 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <2A072243-90D9-4DD6-8815-F279254AF6D2@gmail.com>
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.1878.2)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Nh_oyvvHHAy9lEhjZrM6pxdbT60
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 07:28:29 -0000

On Jul 1, 2014, at 10:03 AM, Andrey Jivsov <crypto@brainhub.org> wrote:

> I have the same concern:
>=20
> On 04/29/2014 12:50 PM, Eric Rescorla wrote:
>>=20
>> - It would be nice if there was some chance that these curves could
>>   have some chance of being FIPS-approved, so they could potentially
>>   displace the NIST curves. It may be very difficult to get certainty =
here.
>=20
> I see the following (the meeting minutes) =
http://www.ietf.org/mail-archive/web/cfrg/current/msg04505.html that =
don't answer this.
>=20
> I also saw this post:
> On 06/26/2014 11:46 PM, Alyssa Rowan wrote:
> > CFRG have selected Curve25519 as the preferred elliptic curve for =
use
> > in IETF protocols, as Rich has pointed out.
>=20
>=20
> Let's assume that "the curve" at IETF is Curve25519. It doesn't appear =
to be an undisputed winner right now, but let's assume that it is =
universally accepted at every working group at IETF and is added to =
every IETF protocol soon.
>=20
>=20
> There is a significant US federal market with Suite B, FIPS, or at =
least SP 800 XXX that in some cases supports multiple product lines for =
a company. Beyond that, one credit that Suite B gets is that Suite B =
provided a clear and safe path for anybody who wanted to add ECC to =
their products. It assured interoperability on the Internet and coverage =
for the US government sector in a single standard. It made it much safer =
to create persistent data structures that should exist for decades. Not =
everybody liked it, especially outside of US, but P-256 was and still a =
method to bootstrap into ECC.
>=20
>=20
> I would like to hear your thoughts on the long-term view regarding =
standardization.
>=20
> I will start with a few possibilities:
>=20
> * Curve25519 becomes so pervasive that NIST adopts it. It replaces =
P-256 as a standard [Should reaching out to NIST be on the roadmap at =
some point before that expected acceptance?]
>=20
> * Curve25519 exists parallel to P-256 (and P-256 becomes just a US =
national standard) [In this case products accept that Curve25519 + all =
the national standards is a typical product requirement]
>=20
> * Curve25519 is viewed as a couple-of-years forward solution and so =
the questions of integration with other standards is out of scope for =
the Curve25519 decision [perhaps because the focus is on currently =
common Intel x86 CPUs, ARMs?]
>=20
> <other possibilities, I am sure>=85

Curve25519 becomes fairly widely implemented, and there are standards to =
define its use in TLS and IKE. Some browsers and a few VPN products =
implement it, as do a few server libraries such as OpenSSL. After a =
while, Curve25519 and P-256 exist in parallel, much like Camelia and =
AES, but because NIST is more prominent in users=92 minds than the IETF, =
P-256 remains what people think is the =93gold standard=94, but some =
prefer Curve25519 for its performance.

Just another possibility=85

Yoav



From nobody Tue Jul  1 06:16:57 2014
Return-Path: <paul.hoffman@vpnc.org>
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 9D5A81A02A0 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 06:16:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] 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 9-7_o0YcN7r3 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 06:16:56 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8ADC51A02D6 for <cfrg@irtf.org>; Tue,  1 Jul 2014 06:16:52 -0700 (PDT)
Received: from [10.20.30.90] (50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60]) (authenticated bits=0) by hoffman.proper.com (8.14.8/8.14.7) with ESMTP id s61DGnup078004 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 1 Jul 2014 06:16:50 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host 50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <53B25D54.5080003@brainhub.org>
Date: Tue, 1 Jul 2014 06:16:48 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org>
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/RMh9ZjtEyLSP6T6sPS7MbLlfbq8
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 13:16:56 -0000

Trying to predict what NIST will do with FIPS-140 certification is =
silly. Even they don't know from year to year. The NIST of today is not =
the NIST of 14 months ago; it is likely that there will be other major =
shifts in NIST's view of itself and what it has to do to stay relevant.

--Paul Hoffman=


From nobody Tue Jul  1 06:33:31 2014
Return-Path: <watsonbladd@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 8AC811A02E6 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 06:33:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 rA3yQ_a4wxk4 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 06:33:28 -0700 (PDT)
Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 13E681A02E3 for <cfrg@irtf.org>; Tue,  1 Jul 2014 06:33:28 -0700 (PDT)
Received: by mail-yk0-f180.google.com with SMTP id 131so5691372ykp.11 for <cfrg@irtf.org>; Tue, 01 Jul 2014 06:33:27 -0700 (PDT)
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 :content-type; bh=kwTgw5Bc6vx+p9HdYOp43EfvkTrTMoOOUoBFAYtDz/g=; b=k66kJAk2K5MOoMT2pivKwK9aS0JfIWF/Qjq4FYZ8bYETeQqad4cUaJdEo732AUe5t1 40VBRq3W67l0ARbiC2rpMMPFQoGzQVRceKxfjIjVzjBdR9KLOC7gqwjCtBLm54GvJy86 hI1+8EEI3fOJzivWHk6NCisG+7u0OOqOjV8mmUM55PafTR+DUv7tCUDY26gq7s5/RY6H x/n609504DoYOypM20aQof6iZRbT+Yq4sXVDmVBsxo8uOlAwXZp/D8eTmPV1jrw3eJ3K b3ZslImnBOMwkPW2LZSqwPgom1aPHBpGvOmU3kxrlOXroqmI3N5DjgSmeRQAEBNIGhc1 llEA==
MIME-Version: 1.0
X-Received: by 10.236.173.71 with SMTP id u47mr69317947yhl.66.1404221607258; Tue, 01 Jul 2014 06:33:27 -0700 (PDT)
Received: by 10.170.39.136 with HTTP; Tue, 1 Jul 2014 06:33:27 -0700 (PDT)
Received: by 10.170.39.136 with HTTP; Tue, 1 Jul 2014 06:33:27 -0700 (PDT)
In-Reply-To: <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org>
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org> <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org>
Date: Tue, 1 Jul 2014 06:33:27 -0700
Message-ID: <CACsn0cn752gCdSwPAcLeR97uNFD7xeio5YPuuBpOw=5rRXCU4A@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=20cf30549a21162e8f04fd21d214
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/XUefLUTFN-piL4xJbu6OrFj83Mc
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 13:33:29 -0000

--20cf30549a21162e8f04fd21d214
Content-Type: text/plain; charset=UTF-8

On Jul 1, 2014 6:17 AM, "Paul Hoffman" <paul.hoffman@vpnc.org> wrote:
>
> Trying to predict what NIST will do with FIPS-140 certification is silly.
Even they don't know from year to year. The NIST of today is not the NIST
of 14 months ago; it is likely that there will be other major shifts in
NIST's view of itself and what it has to do to stay relevant.

I had this concern at the CFRG meeting. Kevin Igoe said that the NSA had no
objections to Curve 25519 being in Suite B.

There is a legacy cert and software problem: it's likely software will need
to deploy several curves for compatibility with x509 certs.

Finally, OpenSSL supports non FIPS algorithms as well as FIPS algorithms.
It's not impossible to do the same.

Sincerely,
Watson Ladd
>
> --Paul Hoffman
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg

--20cf30549a21162e8f04fd21d214
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr"><br>
On Jul 1, 2014 6:17 AM, &quot;Paul Hoffman&quot; &lt;<a href=3D"mailto:paul=
.hoffman@vpnc.org">paul.hoffman@vpnc.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Trying to predict what NIST will do with FIPS-140 certification is sil=
ly. Even they don&#39;t know from year to year. The NIST of today is not th=
e NIST of 14 months ago; it is likely that there will be other major shifts=
 in NIST&#39;s view of itself and what it has to do to stay relevant.</p>

<p dir=3D"ltr">I had this concern at the CFRG meeting. Kevin Igoe said that=
 the NSA had no objections to Curve 25519 being in Suite B.</p>
<p dir=3D"ltr">There is a legacy cert and software problem: it&#39;s likely=
 software will need to deploy several curves for compatibility with x509 ce=
rts.</p>
<p dir=3D"ltr">Finally, OpenSSL supports non FIPS algorithms as well as FIP=
S algorithms. It&#39;s not impossible to do the same.</p>
<p dir=3D"ltr">Sincerely,<br>
Watson Ladd<br>
&gt;<br>
&gt; --Paul Hoffman<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.=
org/mailman/listinfo/cfrg</a><br>
</p>

--20cf30549a21162e8f04fd21d214--


From nobody Tue Jul  1 09:25:28 2014
Return-Path: <crypto@brainhub.org>
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 BCE311B2841 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 09:25:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 IhmR3JSkAkIb for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 09:25:16 -0700 (PDT)
Received: from qmta12.emeryville.ca.mail.comcast.net (qmta12.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:227]) by ietfa.amsl.com (Postfix) with ESMTP id 5608F1B2846 for <cfrg@irtf.org>; Tue,  1 Jul 2014 09:24:22 -0700 (PDT)
Received: from omta04.emeryville.ca.mail.comcast.net ([76.96.30.35]) by qmta12.emeryville.ca.mail.comcast.net with comcast id M3sy1o0060lTkoC014QNr1; Tue, 01 Jul 2014 16:24:22 +0000
Received: from [192.168.1.145] ([71.202.164.227]) by omta04.emeryville.ca.mail.comcast.net with comcast id M4QL1o00g4uhcbK8Q4QLCw; Tue, 01 Jul 2014 16:24:21 +0000
Message-ID: <53B2E0B4.9090908@brainhub.org>
Date: Tue, 01 Jul 2014 09:24:20 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Paul Hoffman <paul.hoffman@vpnc.org>
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org> <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org>
In-Reply-To: <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1404231862; bh=nBBABv2USVl0/rgJ90Pr65qQ2nBY+UHsKqrNKAcOi90=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=dL8a9f5lISgspqhFCkUZmkt3ojeLUs8yWujgAqCeIR4SAb4u8O5mulII7O6qx6DuS UV0ueKcFOVINFuMbPxccvuRbhhpmmvLUgoahnFcsQRKUHaWL4G7oGG3UA7LgDsRLdP wj9dKlB6YnrjULWpoYMnm2zyt9jsBxYSFwtGQiSrGWoL+p2+zfnZjMbw1OTvSGIqP+ VAoMLZwkNwo0+ndD0zcmGR+/5tpGG/xVTCNGsUhgkVoQdwreDszNuWOriuj4HIVf/D sh1o/rmI8aJL4CagIGNz6BBZpT/WNDeh5U9TraNgiXdYTx2Pgpc4Nm8JXKinm0IkIQ VTA9OxkH99mwg==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/LDSE4fFppwpVHdPqh_2M5p4Yo38
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 16:25:20 -0000

On 07/01/2014 06:16 AM, Paul Hoffman wrote:
> Trying to predict what NIST will do with FIPS-140 certification is silly. Even they don't know from year to year. The NIST of today is not the NIST of 14 months ago; it is likely that there will be other major shifts in NIST's view of itself and what it has to do to stay relevant.

You might be surprised that there many product managers building secure 
products today who never heard of Curve25519 and think that it is silly 
to even consider any crypto outside of NIST.


From nobody Tue Jul  1 09:26:35 2014
Return-Path: <crypto@brainhub.org>
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 90C331B2841 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 09:26:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 2Wqs5vxTgiDQ for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 09:26:22 -0700 (PDT)
Received: from qmta02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:24]) by ietfa.amsl.com (Postfix) with ESMTP id 97B131B2830 for <cfrg@irtf.org>; Tue,  1 Jul 2014 09:26:13 -0700 (PDT)
Received: from omta24.emeryville.ca.mail.comcast.net ([76.96.30.92]) by qmta02.emeryville.ca.mail.comcast.net with comcast id M4Hx1o0061zF43QA24SDDN; Tue, 01 Jul 2014 16:26:13 +0000
Received: from [192.168.1.145] ([71.202.164.227]) by omta24.emeryville.ca.mail.comcast.net with comcast id M4SC1o00W4uhcbK8k4SCTY; Tue, 01 Jul 2014 16:26:13 +0000
Message-ID: <53B2E124.4010008@brainhub.org>
Date: Tue, 01 Jul 2014 09:26:12 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org> <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org> <CACsn0cn752gCdSwPAcLeR97uNFD7xeio5YPuuBpOw=5rRXCU4A@mail.gmail.com>
In-Reply-To: <CACsn0cn752gCdSwPAcLeR97uNFD7xeio5YPuuBpOw=5rRXCU4A@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1404231973; bh=kJJkrxMQtVCobQoUqcYmDCY2ius0WqXHq4UQUM6yBqQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=CxMvVMHRW3R2F6iq6ja/S3VyTY6KF2sHA/owgBE46tCSZsOvHQRwt+lrTMqBSNsjq OwE9vlbHRDzt1jWHSO8vOdf+Q5WoxtMV+hM2FFbhRQ+vEzO2/U25X8SVSON08/FH+N qQemFD3nCbctMb/khq9kAw9KRQbpLExbbH1pD63IKu5koy5VjGVixDB/rzfbnRjUb8 N3VqGAVOb1IDorgiqYbGj/iMOfqTY/kNRxXb/HQnczFvFosCkKyQTN7QKW9v8fXHaA hlnoueyTtNoFOhWHf2L6vrd9pGalrEbpw47VtYgaTIAxQMMTFI9Z2ZCdoIs/38iA2y g5Aflx+42U9Ig==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gbYnl2EXQDDZ94gtTyTUzbmph84
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 16:26:24 -0000

On 07/01/2014 06:33 AM, Watson Ladd wrote:
>
> On Jul 1, 2014 6:17 AM, "Paul Hoffman" <paul.hoffman@vpnc.org
> <mailto:paul.hoffman@vpnc.org>> wrote:
>  >
>  > Trying to predict what NIST will do with FIPS-140 certification is
> silly. Even they don't know from year to year. The NIST of today is not
> the NIST of 14 months ago; it is likely that there will be other major
> shifts in NIST's view of itself and what it has to do to stay relevant.
>
> I had this concern at the CFRG meeting. Kevin Igoe said that the NSA had
> no objections to Curve 25519 being in Suite B.
>

This is a useful information. It would be even more useful if some 
statement of this sort was public and by NIST/NSA.

> There is a legacy cert and software problem: it's likely software will
> need to deploy several curves for compatibility with x509 certs.
>
> Finally, OpenSSL supports non FIPS algorithms as well as FIPS
> algorithms. It's not impossible to do the same.

I am not sure I see an argument here. OpenSSL had always many ECC curves 
but vendors were making sure to disable them at compile time. Only with 
great caution they would enable specifically P-256, and sometimes P-384, 
after careful consideration.

...


From nobody Tue Jul  1 10:13:25 2014
Return-Path: <bal@microsoft.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 266BC1B2885 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 10:13:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 DKfSX9XZmGJd for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 10:13:19 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0207.outbound.protection.outlook.com [207.46.163.207]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 82E861B287B for <cfrg@ietf.org>; Tue,  1 Jul 2014 10:13:19 -0700 (PDT)
Received: from BL2PR03MB242.namprd03.prod.outlook.com (10.255.231.18) by BL2PR03MB241.namprd03.prod.outlook.com (10.255.231.15) with Microsoft SMTP Server (TLS) id 15.0.974.11; Tue, 1 Jul 2014 17:13:12 +0000
Received: from BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.229]) by BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.229]) with mapi id 15.00.0980.000; Tue, 1 Jul 2014 17:13:12 +0000
From: Brian LaMacchia <bal@microsoft.com>
To: "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: New Version Notification for draft-black-numscurves-00.txt
Thread-Index: AQHPlPQS8iucwSAq3kaIp2YBJZ3TZ5uLaySggAAANrA=
Date: Tue, 1 Jul 2014 17:13:11 +0000
Message-ID: <f34ffe700bee42c59c36aa4a8bc32bf4@BL2PR03MB242.namprd03.prod.outlook.com>
References: <20140701061655.10456.83525.idtracker@ietfa.amsl.com> <85fa7c63d21043fdb438d959479f56a4@BL2PR03MB482.namprd03.prod.outlook.com>
In-Reply-To: <85fa7c63d21043fdb438d959479f56a4@BL2PR03MB482.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [2001:4898:80e8:ee31::2]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02596AB7DA
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(189002)(13464003)(377454003)(377424004)(33646001)(85306003)(74662001)(85852003)(76576001)(77982001)(86362001)(76176999)(50986999)(83072002)(99286002)(95666004)(74502001)(54356999)(64706001)(15202345003)(99396002)(77096002)(79102001)(46102001)(80022001)(101416001)(21056001)(105586002)(83322001)(106356001)(15975445006)(81542001)(19580395003)(2656002)(81342001)(87936001)(74316001)(2351001)(76482001)(4396001)(19580405001)(20776003)(106116001)(107886001)(107046002)(108616002)(42262001)(24736002)(3826002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB241; H:BL2PR03MB242.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YBF90_1lqxDtN2urIbK1T1qcTnc
Subject: [Cfrg] FW: New Version Notification for draft-black-numscurves-00.txt
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: Tue, 01 Jul 2014 17:13:22 -0000

RGVhciBDRlJHIG1lbWJlc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AgICANCg0KDQpQbGVhc2Ugbm90ZSB0aGF0IGl0IG1heSB0YWtl
IGEgY291cGxlIG9mIG1pbnV0ZXMgZnJvbSB0aGUgdGltZSBvZiBzdWJtaXNzaW9uIHVudGlsIHRo
ZSBodG1saXplZCB2ZXJzaW9uIGFuZCBkaWZmIGFyZSBhdmFpbGFibGUgYXQgdG9vbHMuaWV0Zi5v
cmcuDQoNClRoZSBJRVRGIFNlY3JldGFyaWF0DQoNCg==


From nobody Tue Jul  1 10:27:54 2014
Return-Path: <ynir.ietf@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 2FD611A03DE for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 10:27:52 -0700 (PDT)
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 kYTG_SqxylDd for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 10:27:50 -0700 (PDT)
Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0B7151A03A4 for <cfrg@irtf.org>; Tue,  1 Jul 2014 10:27:49 -0700 (PDT)
Received: by mail-wg0-f50.google.com with SMTP id m15so9779781wgh.21 for <cfrg@irtf.org>; Tue, 01 Jul 2014 10:27:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rWYvDQ7jcCBXgcbwnlJG75EG6IfFYHI43649rBirYHc=; b=o6OXEvu6O/q3dFfG+ZESZiSwsApyCSTI6AuFGAnMh45Km+kuw3Am18VITQ0/r0E87O fESk2Ye24C02eFDhwmSeVMuGOfLrZ8wIM4usN/ppSW/qA8lp6TakaJz4BOkdhBqPKpSU wFmGq3CxFPb2RfzwJnIjLSQO/e4N2y/n+cMz1PBlDP1Fj+919Mbl5zWNBYdhPIlIfE1s lAlG6PjjjSdBUgD8Ukf3czbYRxvLIGaJLFZ8fQOBm7WxyqOxPK+iKo+t/ge7M2FBoA4m IGBHyBcwlVu5FeFWRxDsYRNw02aD5vvTJ7V1lDF+TH7lZ9lUOKyntS7AFiIW2z7VeoDt Wdhw==
X-Received: by 10.194.133.1 with SMTP id oy1mr13254340wjb.87.1404235668059; Tue, 01 Jul 2014 10:27:48 -0700 (PDT)
Received: from [192.168.1.104] (bzq-84-109-50-18.red.bezeqint.net. [84.109.50.18]) by mx.google.com with ESMTPSA id r9sm45409477wia.17.2014.07.01.10.27.47 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 10:27:47 -0700 (PDT)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <53B2E0B4.9090908@brainhub.org>
Date: Tue, 1 Jul 2014 20:27:44 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <7D01DC81-C422-456C-ACD7-63D2DB66BCB8@gmail.com>
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org> <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org> <53B2E0B4.9090908@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/nK9TxnIRcD2xPjA2dyUC8t40MAM
Cc: cfrg@irtf.org, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 17:27:52 -0000

On Jul 1, 2014, at 7:24 PM, Andrey Jivsov <crypto@brainhub.org> wrote:

> On 07/01/2014 06:16 AM, Paul Hoffman wrote:
>> Trying to predict what NIST will do with FIPS-140 certification is =
silly. Even they don't know from year to year. The NIST of today is not =
the NIST of 14 months ago; it is likely that there will be other major =
shifts in NIST's view of itself and what it has to do to stay relevant.
>=20
> You might be surprised that there many product managers building =
secure products today who never heard of Curve25519 and think that it is =
silly to even consider any crypto outside of NIST.

It certainly makes sense for anyone who plans on selling anything to US =
government agencies or state and local government bodies in the US. They =
will have the NIST algorithms. So there=92s AES and SHA-whatever, and =
P-256.=20

But look at browsers. The four most popular are made by US-based =
companies. And yet they all support non-NIST-approved algorithms in TLS, =
in addition to NIST-approved algorithms. Currently not EC curves, but at =
least the people who work for these vendors and participate here and on =
the TLS list are among those interested.=20

IPsec is somewhat less diverse, but there=92s plenty of CAST and =
Camellia and IDEA and Blowfish and MD5 and Tiger there as well. There=92s =
Camellia at least in SSH as well.

If Curve-25519 allowed me to publish a higher figure for =93Main Modes =
per second=94, or =93full TLS handshakes per second=94, I would =
implement it without thinking twice, making sure to disable it in the =
special =93FIPS mode=94.

Yoav


From nobody Tue Jul  1 12:10:26 2014
Return-Path: <kmigoe@nsa.gov>
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 B34F41B28B3 for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 12:10:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.549
X-Spam-Level: 
X-Spam-Status: No, score=-7.549 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, LOTS_OF_MONEY=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651] 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 n6UVT5YgWatT for <cfrg@ietfa.amsl.com>; Tue,  1 Jul 2014 12:10:22 -0700 (PDT)
Received: from emvm-gh1-uea08.nsa.gov (emvm-gh1-uea08.nsa.gov [63.239.67.9]) by ietfa.amsl.com (Postfix) with ESMTP id 54AA11A046A for <cfrg@irtf.org>; Tue,  1 Jul 2014 12:10:22 -0700 (PDT)
X-TM-IMSS-Message-ID: <33b3726100066738@nsa.gov>
Received: from MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) by nsa.gov ([63.239.67.9]) with ESMTP (TREND IMSS SMTP Service 7.1; TLSv1/SSLv3 AES128-SHA (128/128)) id 33b3726100066738 ; Tue, 1 Jul 2014 15:10:05 -0400
Received: from MSMR-GH1-UEA03.corp.nsa.gov ([10.215.224.3]) by MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) with mapi id 14.02.0342.003; Tue, 1 Jul 2014 15:10:21 -0400
From: "Igoe, Kevin M." <kmigoe@nsa.gov>
To: 'Watson Ladd' <watsonbladd@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] My comments on TLS requirements from today's interim
Thread-Index: AQHPY+Ru37o2VTJun0yV6vcUQ0wsc5uLcHsAgABoNwCAAASngIAAFSMg
Date: Tue, 1 Jul 2014 19:10:20 +0000
Message-ID: <3C4AAD4B5304AB44A6BA85173B4675CABAA9CD67@MSMR-GH1-UEA03.corp.nsa.gov>
References: <CABcZeBOMUw5fv--ar=r+5KL76UKz7NDU2M=aEYomjfMjSy+Fog@mail.gmail.com> <53B25D54.5080003@brainhub.org> <FB5F9D06-C183-4284-9AAD-B189CDCEC2D8@vpnc.org> <CACsn0cn752gCdSwPAcLeR97uNFD7xeio5YPuuBpOw=5rRXCU4A@mail.gmail.com>
In-Reply-To: <CACsn0cn752gCdSwPAcLeR97uNFD7xeio5YPuuBpOw=5rRXCU4A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.215.228.153]
Content-Type: multipart/alternative; boundary="_000_3C4AAD4B5304AB44A6BA85173B4675CABAA9CD67MSMRGH1UEA03cor_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/2VzPP6gtrxf3dthgtBBmo52FSes
Subject: Re: [Cfrg] My comments on TLS requirements from today's interim
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: Tue, 01 Jul 2014 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9yZy9tYWlsbWFuL2xpc3RpbmZvL2NmcmciPmh0dHA6Ly93
d3cuaXJ0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9jZnJnPC9hPjxvOnA+PC9vOnA+PC9wPg0KPC9k
aXY+DQo8L2Rpdj4NCjwvYm9keT4NCjwvaHRtbD4NCg==

--_000_3C4AAD4B5304AB44A6BA85173B4675CABAA9CD67MSMRGH1UEA03cor_--


From nobody Tue Jul  1 13:37:44 2014
Return-Path: <bal@microsoft.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 418201A03EB; Tue,  1 Jul 2014 13:37:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 f5agYVb_6dx7; Tue,  1 Jul 2014 13:37:40 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0141.outbound.protection.outlook.com [207.46.163.141]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 47C5A1A03AE; Tue,  1 Jul 2014 13:37:40 -0700 (PDT)
Received: from BL2PR03MB242.namprd03.prod.outlook.com (10.255.231.18) by BL2PR03MB242.namprd03.prod.outlook.com (10.255.231.18) with Microsoft SMTP Server (TLS) id 15.0.980.8; Tue, 1 Jul 2014 20:37:38 +0000
Received: from BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.229]) by BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.229]) with mapi id 15.00.0980.000; Tue, 1 Jul 2014 20:37:38 +0000
From: Brian LaMacchia <bal@microsoft.com>
To: Watson Ladd <watsonbladd@gmail.com>, "tls@ietf.org" <tls@ietf.org>
Thread-Topic: [TLS] [Cfrg] FW: New Version Notification for draft-black-numscurves-00.txt
Thread-Index: AQHPlPQS8iucwSAq3kaIp2YBJZ3TZ5uLaySggAAANrCAABlkgIAAKERQ
Date: Tue, 1 Jul 2014 20:37:37 +0000
Message-ID: <ca794e5508c34485b09210797fa21de0@BL2PR03MB242.namprd03.prod.outlook.com>
References: <20140701061655.10456.83525.idtracker@ietfa.amsl.com> <85fa7c63d21043fdb438d959479f56a4@BL2PR03MB482.namprd03.prod.outlook.com> <f34ffe700bee42c59c36aa4a8bc32bf4@BL2PR03MB242.namprd03.prod.outlook.com> <CACsn0cm84uxzXYz6-Q1Z8ZjKFvP1jSuSibvc9Y4uGDyev+mBWg@mail.gmail.com>
In-Reply-To: <CACsn0cm84uxzXYz6-Q1Z8ZjKFvP1jSuSibvc9Y4uGDyev+mBWg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [2001:4898:80e8:ee31::2]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02596AB7DA
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(377454003)(51704005)(199002)(189002)(83322001)(81342001)(19580395003)(19580405001)(77096002)(2656002)(105586002)(87936001)(95666004)(99286002)(76576001)(81542001)(85306003)(4396001)(93886003)(74316001)(85852003)(83072002)(106356001)(54356999)(64706001)(77982001)(76176999)(50986999)(79102001)(80022001)(106116001)(86612001)(76482001)(86362001)(92566001)(33646001)(20776003)(101416001)(107046002)(99396002)(31966008)(74662001)(21056001)(74502001)(46102001)(108616002)(42262001)(3826002)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB242; H:BL2PR03MB242.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/CAT55oESF9cgFLaXEz1czBHQcEE
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] [TLS] FW: New Version Notification for draft-black-numscurves-00.txt
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: Tue, 01 Jul 2014 20:37:42 -0000

PkZyb206IFRMUyBbbWFpbHRvOnRscy1ib3VuY2VzQGlldGYub3JnXSBPbiBCZWhhbGYgT2YgV2F0
c29uIExhZGQNCj5TZW50OiBUdWVzZGF5LCBKdWx5IDAxLCAyMDE0IDExOjA4IEFNDQo+VG86IHRs
c0BpZXRmLm9yZw0KPlN1YmplY3Q6IFJlOiBbVExTXSBbQ2ZyZ10gRlc6IE5ldyBWZXJzaW9uIE5v
dGlmaWNhdGlvbiBmb3IgZHJhZnQtYmxhY2stbnVtc2N1cnZlcy0wMC50eHQNCj4NCj5JcyB0aGVy
ZSBhbnkgdGVjaG5pY2FsIGRpZmZlcmVuY2UgYmV0d2VlbiAxOSBhbmQgMTg5IG90aGVyIHRoZW4g
YSBzbGlnaHQgY2hhbmdlIGluIHNxdWFyZSByb290IGNhbGN1bGF0aW9ucz8gDQoNClllcywgdGhl
cmUgaXMuICBGb3IgdGhlIE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IHRoYXQg
b25lIG9mIHRoZSBxdWVzdGlvbnMgdGhlIENGUkcgbmVlZHMNCnRvIGNvbnNpZGVyIGlzIHRoZSBy
ZWxhdGl2ZSBtZXJpdHMgb2YgdGhlIHR3byBjdXJ2ZSB0eXBlcy4gIEl0J3MNCm5vdCBjbGVhciB0
byBtZSB3aGV0aGVyIHRoZSBwZXJmb3JtYW5jZSBpbXByb3ZlbWVudHMgcG9zc2libGUNCnVzaW5n
IHR3aXN0ZWQgRWR3YXJkcyBjdXJ2ZXMgb3V0d2VpZ2ggdGhlIGFkZGl0aW9uYWwgY29tcGxleGl0
eQ0Kb2YgbW92aW5nIGV4aXN0aW5nIGNvZGViYXNlcyBmcm9tIHNob3J0IFdlaWVyc3RyYXNzIGN1
cnZlcy4NCg0KCQkJCQktLWJhbA0KDQo=


From nobody Wed Jul  2 19:37:40 2014
Return-Path: <watsonbladd@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 6E8261A8BB7 for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 19:37:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level: 
X-Spam-Status: No, score=-0.101 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 zsC0LIkz0NV0 for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 19:37:35 -0700 (PDT)
Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A77C11A8BB4 for <cfrg@irtf.org>; Wed,  2 Jul 2014 19:37:35 -0700 (PDT)
Received: by mail-qg0-f43.google.com with SMTP id z60so5726175qgd.30 for <cfrg@irtf.org>; Wed, 02 Jul 2014 19:37:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:content-type; bh=Wis3IyHC6wXj/SFfa6OWLObtWW4IZN7lMXjDSLPG7o4=; b=m6nZdjOegs7yRD1neXd8dopJ386YwpOh80//Ugl3RisYdy3LvIzbJol3yDsorUcs5u Qp4DQx/rKFAKRZz48s/4mJhMrsNf+H1Z2ioYW9NFom9bMPFJWE1TfsrPsZk4zc2xv6M8 lHTHx0dxYQga5vF5Zsfz07BotNarCmIOkjumns6A0KkN9N2TvgAOJGe+dO5W6Bky4WwS tWXt2+++FtBGObHTC6RLZqFYff2FxhTdnXISaIi8MOToUe1ELjhDpMzyr0ru3+NET9vO H82sEystKIRh5h7sLFzdB7Uu3wbbBCNxj8Fn7DOAaIfBA5NjSuTjsC3Wrgl2scPrkd9y 4R8A==
MIME-Version: 1.0
X-Received: by 10.140.108.200 with SMTP id j66mr102912qgf.57.1404355054829; Wed, 02 Jul 2014 19:37:34 -0700 (PDT)
Received: by 10.140.27.173 with HTTP; Wed, 2 Jul 2014 19:37:34 -0700 (PDT)
Date: Wed, 2 Jul 2014 19:37:34 -0700
Message-ID: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lxDYPvzMPwkGqQDaPaMJsZzRIM0
Subject: [Cfrg] On 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: Thu, 03 Jul 2014 02:37:37 -0000

Dear all,
After thinking about it for a bit, I've come up with the following
summary of my current position.

For compressed Edwards points, having p=3 (mod 4) is slightly easier
to explain how to deal with then p =5 (mod 8). We want to have the
same prime

There is no point to adding additional Weierstrass curves: additional
performance alone isn't that compelling unless implementors want to
implement a bunch of curves. Doing a good implementation is a bunch of
work, and in particular while a saturated word arithmetic is easy,
it's not worth doing unsaturated arithmetic unnecessarily.

Likewise the difference between 2^256 and 2^255 is minor in security,
but has a performance hit. so I would try to avoid going over word
boundaries.

As a result I suggest a Montgomery curve and isogenous twisted Edwards
curve with primes of the form p=2^(64*b-1)-c, c minimal so p is 3 (mod
4). I believe these have been computed by Longa et all.

However, at the 128 bit level, I see no technical arguments against
Curve25519. It's really a WG decision as how to do it.

This leaves the question of point representation: I would use Edwards
form with point compression: the Montgomery form has advantages in
variable-base multiplication, but it appears that summing the time of
one variable-base multiplication with one fixed-base multiplication
comes out lower for Edwards form. Again, for everything but signatures
the difference is probably minor.

Sincerely,
Watson Ladd


From nobody Wed Jul  2 20:00:18 2014
Return-Path: <mike@shiftleft.org>
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 629BB1A8BAF for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 20:00:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, 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 1FTdzYYIWRDf for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 20:00:16 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2F7BC1A0545 for <cfrg@irtf.org>; Wed,  2 Jul 2014 20:00:16 -0700 (PDT)
Received: from [10.71.105.60] (unknown [70.42.157.29]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 4110B3AA12; Wed,  2 Jul 2014 19:59:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1404356381; bh=TqoNOXwHtSpLMY7oxlP8UKDGNOgFEE1pxupA9nXnLy0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=NVJRvjnuthrs3YjrtnqBrMqYhOx44S/q55Isqw4l6l8FAKzPsGSMXPDx7aeBjkp5P nW77JJY+o38ZL8xieiA/fO3GuysZ5POZkPOldw43hcTPOBBCuKmxiHrWnshdXfXbZ2 Pc09wAH05x5VjgLqK0ARR5+7iiycvVUIwKfzH2Vw=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com>
Date: Wed, 2 Jul 2014 23:00:06 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <9FC87305-B678-4FBF-8976-9E0CE4A79FF2@shiftleft.org>
References: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
X-Mailer: Apple Mail (2.1878.2)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OVXqZBWMKvocfiX6m_uDiwo7U4Q
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On 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: Thu, 03 Jul 2014 03:00:17 -0000

Thanks for your perspective, Watson!

But, how should we proceed?  We have, now, at least four pieces of code =
which aim for eventual production-grade Edwards curve crypto.  None of =
them entirely follows your suggestions:

* Ed25519, which uses Edwards coordinates, p=3D5 mod 8, and an extra bit =
sign encoding;

* Snowshoe, with endomorphisms over GF((2^127-1)^2), and I think no =
compression;

* The Microsoft curves, which have code released for p =3D =
2^(64b)-minimal, p=3D3 mod 4, and no point compression;

* Ed448-Goldilocks, which uses a Solinas prime and a 1/sqrt(x) point =
representation.

Are you requesting that the Microsoft folks release implementations of =
some of their other curves?

Cheers,
=97 Mike

On Jul 2, 2014, at 10:37 PM, Watson Ladd <watsonbladd@gmail.com> wrote:

> Dear all,
> After thinking about it for a bit, I've come up with the following
> summary of my current position.
>=20
> For compressed Edwards points, having p=3D3 (mod 4) is slightly easier
> to explain how to deal with then p =3D5 (mod 8). We want to have the
> same prime
>=20
> There is no point to adding additional Weierstrass curves: additional
> performance alone isn't that compelling unless implementors want to
> implement a bunch of curves. Doing a good implementation is a bunch of
> work, and in particular while a saturated word arithmetic is easy,
> it's not worth doing unsaturated arithmetic unnecessarily.
>=20
> Likewise the difference between 2^256 and 2^255 is minor in security,
> but has a performance hit. so I would try to avoid going over word
> boundaries.
>=20
> As a result I suggest a Montgomery curve and isogenous twisted Edwards
> curve with primes of the form p=3D2^(64*b-1)-c, c minimal so p is 3 =
(mod
> 4). I believe these have been computed by Longa et all.
>=20
> However, at the 128 bit level, I see no technical arguments against
> Curve25519. It's really a WG decision as how to do it.
>=20
> This leaves the question of point representation: I would use Edwards
> form with point compression: the Montgomery form has advantages in
> variable-base multiplication, but it appears that summing the time of
> one variable-base multiplication with one fixed-base multiplication
> comes out lower for Edwards form. Again, for everything but signatures
> the difference is probably minor.
>=20
> Sincerely,
> Watson Ladd
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jul  2 20:35:06 2014
Return-Path: <watsonbladd@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 AAC631B2810 for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 20:35:03 -0700 (PDT)
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 VPOSqr7Zw8-C for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 20:35:01 -0700 (PDT)
Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A3D371B280A for <cfrg@irtf.org>; Wed,  2 Jul 2014 20:35:01 -0700 (PDT)
Received: by mail-qc0-f176.google.com with SMTP id w7so10586259qcr.21 for <cfrg@irtf.org>; Wed, 02 Jul 2014 20:35:00 -0700 (PDT)
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:content-transfer-encoding; bh=mBepOHRJVydJ5iX/8uLL3uCRJLbKFWJg1PX6jbVjNRw=; b=NmR3PBuC2lrJTafU8jb5cjEwmDl0oF4GLd5Ia2Y3u4uEyLVzDEq9pdyAp6f+i9BSuB tBEdQS3dOINub9ZSk/ZQ8B2AqDV0GjJnnzu47sS8uC8PhR5hpU7IVWFWDz8/2L3VPTKG r02GTc7dV7L22OiIAk4jHPNNS8oZKC/hH4m1GaSadMKvBDtzyIoerWciSRRiLdbiDAD8 dUVuKdSCQWd257t5KRDIlvWgM0C/Nag7Mf9HtWQbg3t1codPy7/t7uTJ7lKwCYYQ5ce7 mQ4m2xov24O+4P93f1pgjTZ6E/rkxBlbwnPdFgO8YTMWceULzuI8ISr1avaBR7Euc0cF UXPQ==
MIME-Version: 1.0
X-Received: by 10.224.25.10 with SMTP id x10mr3113612qab.104.1404358500495; Wed, 02 Jul 2014 20:35:00 -0700 (PDT)
Received: by 10.140.27.173 with HTTP; Wed, 2 Jul 2014 20:35:00 -0700 (PDT)
In-Reply-To: <9FC87305-B678-4FBF-8976-9E0CE4A79FF2@shiftleft.org>
References: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com> <9FC87305-B678-4FBF-8976-9E0CE4A79FF2@shiftleft.org>
Date: Wed, 2 Jul 2014 20:35:00 -0700
Message-ID: <CACsn0cn_4cjaM4NQBMzoksxqsgHsny2SeMA6povZ1quMg+Du_A@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fjSYmHshr5CoSdykWJmkB1TKwu4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On 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: Thu, 03 Jul 2014 03:35:03 -0000

On Wed, Jul 2, 2014 at 8:00 PM, Michael Hamburg <mike@shiftleft.org> wrote:
> Thanks for your perspective, Watson!
>
> But, how should we proceed?  We have, now, at least four pieces of code w=
hich aim for eventual production-grade Edwards curve crypto.  None of them =
entirely follows your suggestions:
>
> * Ed25519, which uses Edwards coordinates, p=3D5 mod 8, and an extra bit =
sign encoding;
>
> * Snowshoe, with endomorphisms over GF((2^127-1)^2), and I think no compr=
ession;
>
> * The Microsoft curves, which have code released for p =3D 2^(64b)-minima=
l, p=3D3 mod 4, and no point compression;
>
> * Ed448-Goldilocks, which uses a Solinas prime and a 1/sqrt(x) point repr=
esentation.
>
> Are you requesting that the Microsoft folks release implementations of so=
me of their other curves?

Yes, and I think we should change some choices. Adding point
compression with a separate sign bit is not that tricky, but I can't
remember when the patent expires. (I'm also not volunteering: my
timeframe for completion doesn't line up). Alternatively we decide
which of these is the closest to some reasonable ideal/doesn't offend
too many people.


Sincerely,
Watson Ladd
>
> Cheers,
> =E2=80=94 Mike
>
> On Jul 2, 2014, at 10:37 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>
>> Dear all,
>> After thinking about it for a bit, I've come up with the following
>> summary of my current position.
>>
>> For compressed Edwards points, having p=3D3 (mod 4) is slightly easier
>> to explain how to deal with then p =3D5 (mod 8). We want to have the
>> same prime
>>
>> There is no point to adding additional Weierstrass curves: additional
>> performance alone isn't that compelling unless implementors want to
>> implement a bunch of curves. Doing a good implementation is a bunch of
>> work, and in particular while a saturated word arithmetic is easy,
>> it's not worth doing unsaturated arithmetic unnecessarily.
>>
>> Likewise the difference between 2^256 and 2^255 is minor in security,
>> but has a performance hit. so I would try to avoid going over word
>> boundaries.
>>
>> As a result I suggest a Montgomery curve and isogenous twisted Edwards
>> curve with primes of the form p=3D2^(64*b-1)-c, c minimal so p is 3 (mod
>> 4). I believe these have been computed by Longa et all.
>>
>> However, at the 128 bit level, I see no technical arguments against
>> Curve25519. It's really a WG decision as how to do it.
>>
>> This leaves the question of point representation: I would use Edwards
>> form with point compression: the Montgomery form has advantages in
>> variable-base multiplication, but it appears that summing the time of
>> one variable-base multiplication with one fixed-base multiplication
>> comes out lower for Edwards form. Again, for everything but signatures
>> the difference is probably minor.
>>
>> Sincerely,
>> Watson Ladd
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>



--=20
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Wed Jul  2 20:49:09 2014
Return-Path: <bascule@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 01E2A1A0396 for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 20:49:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 sG6r4yNd65z1 for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 20:49:06 -0700 (PDT)
Received: from mail-vc0-x230.google.com (mail-vc0-x230.google.com [IPv6:2607:f8b0:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5F0D61A0394 for <cfrg@irtf.org>; Wed,  2 Jul 2014 20:49:06 -0700 (PDT)
Received: by mail-vc0-f176.google.com with SMTP id ik5so10897527vcb.7 for <cfrg@irtf.org>; Wed, 02 Jul 2014 20:49:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=X5PCBChj2Izohn4c1cBbmWoX8M64OK6vX77XPowGt4k=; b=YgsP/fDlqDQX/dqcWhVnX0xdkCmufLpnqoV+I0b/9daqpAaaIxKVNlbzvvJWUa/0NZ IypKo+DzwPVKQF7+fsOcE/9EUjVf0hKxuwzA3RU2dM8fUejf21tLuZKaQZw1L3EdP4Jq QHDh+ZUL9B0N9Ybo/JWF/0dFwl2jkef7nNI3CUofi6TtC1Qd1I7uq3zNLpAufhjRUVb7 LGkAmaOS95hUmRZwZ3qbX2g7mItlJs/5yFknOD4LRI5zJbS+kQDR/STeyl/21u+GC0sB GUwFGM/sqC2uMVsawHeLvWLXGy6KHnD8/GlkJCQWO1+y73S9r9trObWc6booa9Ro+8jc 2Bkg==
X-Received: by 10.220.53.72 with SMTP id l8mr1383993vcg.16.1404359345419; Wed, 02 Jul 2014 20:49:05 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.58.168.133 with HTTP; Wed, 2 Jul 2014 20:48:44 -0700 (PDT)
In-Reply-To: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com>
References: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 2 Jul 2014 20:48:44 -0700
Message-ID: <CAHOTMVJuNDU-Lyrp7ftUsUrkKQYPWx2fmdTP6h0WwDjCNqwR8Q@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c2cb12ebbb3f04fd41e31b
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/GlJPIS7lIo1O3HSHYOmiOPcZ4cQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On 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: Thu, 03 Jul 2014 03:49:08 -0000

--001a11c2cb12ebbb3f04fd41e31b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 2, 2014 at 7:37 PM, Watson Ladd <watsonbladd@gmail.com> wrote:

> There is no point to adding additional Weierstrass curves: additional
> performance alone isn't that compelling unless implementors want to
> implement a bunch of curves


Yes! Additional curves for the sake of additional curves is not helpful,
and the new Weierstrass curves are not particularly compelling in terms of
security, popularity, robustness, or general health of the surrounding
ecosystem.

I'll leave you with this quote:

"If you don=E2=80=99t actively fight for simplicity in software, complexity=
 will
win, and it will suck."

--=20
Tony Arcieri

--001a11c2cb12ebbb3f04fd41e31b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jul 2, 2014 at 7:37 PM, Watson Ladd <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:watsonbladd@gmail.com" target=3D"_blank" onclick=3D"window.open(&#39;h=
ttps://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dwatsonbladd@gmai=
l.com&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);ret=
urn false;">watsonbladd@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">There is no point to adding additional Weierstrass curves:=
 additional<br>


performance alone isn&#39;t that compelling unless implementors want to<br>
implement a bunch of curves</blockquote><div><br></div><div>Yes! Additional=
 curves for the sake of additional curves is not helpful, and the new Weier=
strass curves are not particularly compelling in terms of security, popular=
ity, robustness, or general health of the surrounding ecosystem.</div>

<div><br></div><div>I&#39;ll leave you with this quote:</div><div><br></div=
>&quot;If you don=E2=80=99t actively fight for simplicity in software, comp=
lexity will win, and it will suck.&quot;</div><div class=3D"gmail_quote"><b=
r></div>

-- <br>Tony Arcieri<br>
</div></div>

--001a11c2cb12ebbb3f04fd41e31b--


From nobody Wed Jul  2 23:31:55 2014
Return-Path: <akr@akr.io>
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 CE3841B278D for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 23:31:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, LOTS_OF_MONEY=0.001, SPF_HELO_PASS=-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 gQlLpPfBI1dl for <cfrg@ietfa.amsl.com>; Wed,  2 Jul 2014 23:31:51 -0700 (PDT)
Received: from entima.net (entima.net [78.129.143.175]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9ED801AD6B1 for <cfrg@irtf.org>; Wed,  2 Jul 2014 23:31:51 -0700 (PDT)
Message-ID: <53B4F8D7.5060801@akr.io>
Date: Thu, 03 Jul 2014 07:31:51 +0100
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CACsn0cnKn2mx15SWN=2HmcXnsDeQhc49p5Z6kh5ucgj_jAPQzg@mail.gmail.com> <9FC87305-B678-4FBF-8976-9E0CE4A79FF2@shiftleft.org> <CACsn0cn_4cjaM4NQBMzoksxqsgHsny2SeMA6povZ1quMg+Du_A@mail.gmail.com>
In-Reply-To: <CACsn0cn_4cjaM4NQBMzoksxqsgHsny2SeMA6povZ1quMg+Du_A@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/0ADZ-2aB25kF3b3dtBNRLHy3v8c
Subject: Re: [Cfrg] On 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: Thu, 03 Jul 2014 06:31:53 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/07/2014 04:35, Watson Ladd wrote:

> Yes, and I think we should change some choices. Adding point 
> compression with a separate sign bit is not that tricky, but I 
> can't remember when the patent expires.

US6141420 (Certicom: Vanstone-Mullin-Agnew) has a priority date of
1994-07-29, so (to my understanding, and I believe djb's?) expires
2014-07-29 - a little under 4 weeks from now!

Fortuitous timing, and I'm definitely not a patent expert, so I don't
feel comfortable stating that for sure, and I don't know if there are
any others that would be relevant to Edwards curve point compression.

Employees of Certicom on this list: could you please check - is that
correct? Are you aware of any other patents covering point compression
with one sign bit? [I'm aware you've been slow on IPR issues recently
due to internal issues, but you -do- have a duty to disclose anything
that may pertain in a reasonable timeframe.]

- -- 
/akr
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJTtPjXAAoJEOyEjtkWi2t6i8wP/RhlELJUC0u12POp40W7jfbr
KcacekoivVs/FPVMsvXhnYGSz6IcGR4vLiWYnCRTuc49wXEhsUT8bWvHlabsKzlK
yShH1HIHM97qp14WhAQ4wXIR93MuJqO+V+3BIQg0AxmTxJKyvIbHg25NLRF4WiXM
vbLQFiyDYLcWLH6pPZUxv8WjjWWEL4nFsBXGKEcDeu6JZI44mzaHF1IL1oxRguCu
ua6NKZt720zxFEU6OtxpaykTnsfemusrmf5YKvuh4FEHgMWTld8X/MjsAjnPoUv3
ec7Y3OnMuoweVzRns58JDjoe1Mq4pu9JSF30kzMmhDMXXPe5o1FdY8RCmXgB43XY
svB54H0gb1KiQvmF2ZoLJZBIGYIoDlLwRQpgt3yorG9vK7HDuOSwA1OR6EnLtPOj
jwlMxyQrT6trISx73Sr7hTAmT42URDTuGV6l6jYHVHJmyMDOn7hdCSxpCiKgapKE
2JvQzWlSNVYUHQvm0Z8rumegqdzpU+BZrKaWOZk+Y/dEmPfWHO9ZJyL7pU37mSoL
JeUSn0Td84szEQer24Ecy7fDylhP5awPsJS46pT2BD+aDTKqA5PLhiadarj4wtqv
FrvwjYNM3EMl1Xm3EPaHcdkCRy5RwVV/7TbAsTOxFCvpeKF5/4him7VNkRVak5Qu
NL9PWC0/FD+GMHOqUuzW
=lS/c
-----END PGP SIGNATURE-----


From nobody Fri Jul  4 12:22:00 2014
Return-Path: <paul.hoffman@vpnc.org>
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 93C1E1B2EF3 for <cfrg@ietfa.amsl.com>; Fri,  4 Jul 2014 12:21:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] 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 N628wZC0VhYd for <cfrg@ietfa.amsl.com>; Fri,  4 Jul 2014 12:21:33 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7DFE31B2EF8 for <cfrg@irtf.org>; Fri,  4 Jul 2014 12:21:29 -0700 (PDT)
Received: from [10.20.30.90] (50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60]) (authenticated bits=0) by hoffman.proper.com (8.14.8/8.14.7) with ESMTP id s64JLRXk023026 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for <cfrg@irtf.org>; Fri, 4 Jul 2014 12:21:28 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host 50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60] claimed to be [10.20.30.90]
From: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <CECE0A7E-35CA-444E-85DF-5504E404A1B5@vpnc.org>
Date: Fri, 4 Jul 2014 12:21:26 -0700
To: "cfrg@irtf.org CFRG" <cfrg@irtf.org>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/P04v3AWOV8NliZIaxhqk83zia0M
Subject: [Cfrg] Revising RFC 6090
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: Fri, 04 Jul 2014 19:21:34 -0000

Greetings again. RFC 6090, "Fundamental Elliptic Curve Cryptography =
Algorithms", was published a few years ago, with the purpose of laying =
down which parts of elliptic curve cryptography had been described long =
enough ago to avoid any patent issues. A fair number of technical errata =
have been reported on RFC 6090. Also, the point compression patent is =
expiring later this month, and therefore point compression might be =
added to a new version of the RFC.

This seems like a good time to revisit RFC 6090 to incorporate the =
errata and to start to consider what else can be added to the document. =
I have started a new draft, listed below. The errata have been marked in =
the document; those marks will come out in future drafts.

To start off, it would be grand if people would read through the draft =
carefully for technical accuracy. I say this because the drafts leading =
to RFC 6090 had been reviewed here in CFRG, and yet some significant =
mistakes made it through the process.

At the same time, it would be useful to hear what people think additions =
to the document should be. RFC 6090 focused on the Suite B curves, but =
if additional curves and concepts can be added (while maintaining the =
design goal of things described fully early enough to avoid patent =
encumbrance), that could be interesting as well.

--Paul Hoffman


A new version of I-D, draft-hoffman-rfc6090bis-00.txt
has been successfully submitted by Paul Hoffman and posted to the
IETF repository.

Name:		draft-hoffman-rfc6090bis
Revision:	00
Title:		Fundamental Elliptic Curve Cryptography Algorithms
Document date:	2014-07-04
Group:		Individual Submission
Pages:		34
URL:            =
http://www.ietf.org/internet-drafts/draft-hoffman-rfc6090bis-00.txt
Status:         =
https://datatracker.ietf.org/doc/draft-hoffman-rfc6090bis/
Htmlized:       http://tools.ietf.org/html/draft-hoffman-rfc6090bis-00


Abstract:
  This note describes the fundamental algorithms of Elliptic Curve
  Cryptography (ECC) as they were defined in some seminal references
  from 1994 and earlier.  These descriptions may be useful for
  implementing the fundamental algorithms without using any of the
  specialized methods that were developed in following years.  Only
  elliptic curves defined over fields of characteristic greater than
  three are in scope; these curves are those used in Suite B.

  This version of the note incorporates errata that were reported on
  RFC 6090 [RFC6090].


From nobody Fri Jul  4 13:06:58 2014
Return-Path: <internet-drafts@ietf.org>
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 773FB1B2EA2; Fri,  4 Jul 2014 13:06:55 -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 YGp2bnH8yPjj; Fri,  4 Jul 2014 13:06:53 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id DFCCC1B2A0B; Fri,  4 Jul 2014 13:06:53 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.0.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20140704200653.14324.45234.idtracker@ietfa.amsl.com>
Date: Fri, 04 Jul 2014 13:06:53 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YIhF7RqAPACjRnT34CipeQ_OvYg
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-nir-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
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: Fri, 04 Jul 2014 20:06:55 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
 This draft is a work item of the Crypto Forum Research Group Working Group of the IETF.

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-nir-cfrg-chacha20-poly1305-06.txt
	Pages           : 38
	Date            : 2014-07-04

Abstract:
   This document defines the ChaCha20 stream cipher, as well as the use
   of the Poly1305 authenticator, both as stand-alone algorithms, and as
   a "combined mode", or Authenticated Encryption with Additional Data
   (AEAD) algorithm.

   This document does not introduce any new crypto, but is meant to
   serve as a stable reference and an implementation guide.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-nir-cfrg-chacha20-poly1305/

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305-06

A diff from the previous version is available at:
http://www.ietf.org/rfcdiff?url2=draft-nir-cfrg-chacha20-poly1305-06


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Fri Jul  4 13:12:09 2014
Return-Path: <ynir.ietf@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 2D08E1B2F53 for <cfrg@ietfa.amsl.com>; Fri,  4 Jul 2014 13:12:07 -0700 (PDT)
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 1xn-pFNpwM4f for <cfrg@ietfa.amsl.com>; Fri,  4 Jul 2014 13:12:05 -0700 (PDT)
Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 67D3A1B2B78 for <cfrg@ietf.org>; Fri,  4 Jul 2014 13:12:01 -0700 (PDT)
Received: by mail-wi0-f170.google.com with SMTP id cc10so12550602wib.5 for <cfrg@ietf.org>; Fri, 04 Jul 2014 13:12:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=Ri7oXXOC+LKQKqyVmbq7U6633n5qEvjLwLEQoRxao44=; b=NcOlwDOFQmnBn83DI9TRHqPAjRiZL8e1vjUwrJ9/NVy7JZ3iiApLL23w4GcW+CyDJo r3iVP16G03TiE3Y1WAzXu5YjcLx5tlDw3+y4JKwBSHFSSqtj04H8wBAPdmp4mAOQmUI2 knJlTjpJ+TcBVtigoXIyD3ws3eF73gxJImDf8iMc0/LDrAQD1heepf6UprAxNYvm5OTR JT0y5c+aP8Vs7Mm+QYG+bIQdlIabCE9JJr+xxWvMBFF4KxIAGoCD8LEQAj2SoFBq7gsY sreH3E1EjNlBuin9/EFCfgDriI7/aji1HuL8JPHYNLdr7FvtlIqfhU0P06AEDYGCoz/u MfwA==
X-Received: by 10.194.71.81 with SMTP id s17mr14215272wju.18.1404504719986; Fri, 04 Jul 2014 13:11:59 -0700 (PDT)
Received: from [192.168.1.103] (bzq-84-109-50-18.red.bezeqint.net. [84.109.50.18]) by mx.google.com with ESMTPSA id cz8sm71077874wjc.11.2014.07.04.13.11.59 for <cfrg@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 13:11:59 -0700 (PDT)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <20140704200653.14324.45234.idtracker@ietfa.amsl.com>
Date: Fri, 4 Jul 2014 23:11:59 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <18931535-0840-4209-9099-5479E4BB146E@gmail.com>
References: <20140704200653.14324.45234.idtracker@ietfa.amsl.com>
To: "<cfrg@ietf.org>" <cfrg@ietf.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/nRqcMRvIq5x5s-4uRuGv8Bf5NSo
Subject: Re: [Cfrg] I-D Action: draft-nir-cfrg-chacha20-poly1305-06.txt
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: Fri, 04 Jul 2014 20:12:07 -0000

Hi

I=92ve posted version -06 incorporating the following changes:
 - changed the terminology from =93addition without carry=94 and =
=93arithmetic addition=94 to =93addition modulo 2^32=94 (thanks, Watson)
 - Fixed some of the ASCII representation in the examples (thanks, =
Ilari)
 - Fixed some unclear text in section 3 (thanks, Stefan)
 - Added more test vectors for Poly1305 corner cases (thanks, Ilari)

Yoav

On Jul 4, 2014, at 11:06 PM, internet-drafts@ietf.org wrote:

>=20
> A New Internet-Draft is available from the on-line Internet-Drafts =
directories.
> This draft is a work item of the Crypto Forum Research Group Working =
Group of the IETF.
>=20
>        Title           : ChaCha20 and Poly1305 for IETF protocols
>        Authors         : Yoav Nir
>                          Adam Langley
> 	Filename        : draft-nir-cfrg-chacha20-poly1305-06.txt
> 	Pages           : 38
> 	Date            : 2014-07-04
>=20
> Abstract:
>   This document defines the ChaCha20 stream cipher, as well as the use
>   of the Poly1305 authenticator, both as stand-alone algorithms, and =
as
>   a "combined mode", or Authenticated Encryption with Additional Data
>   (AEAD) algorithm.
>=20
>   This document does not introduce any new crypto, but is meant to
>   serve as a stable reference and an implementation guide.
>=20
>=20
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-nir-cfrg-chacha20-poly1305/
>=20
> There's also a htmlized version available at:
> http://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305-06
>=20
> A diff from the previous version is available at:
> http://www.ietf.org/rfcdiff?url2=3Ddraft-nir-cfrg-chacha20-poly1305-06
>=20
>=20
> Please note that it may take a couple of minutes from the time of =
submission
> until the htmlized version and diff are available at tools.ietf.org.
>=20
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Fri Jul  4 18:52:43 2014
Return-Path: <watsonbladd@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 54B181A0140 for <cfrg@ietfa.amsl.com>; Fri,  4 Jul 2014 18:52:42 -0700 (PDT)
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 0imDnVGKBRRi for <cfrg@ietfa.amsl.com>; Fri,  4 Jul 2014 18:52:40 -0700 (PDT)
Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 36D901A00FF for <cfrg@irtf.org>; Fri,  4 Jul 2014 18:52:40 -0700 (PDT)
Received: by mail-we0-f171.google.com with SMTP id q58so2246509wes.2 for <cfrg@irtf.org>; Fri, 04 Jul 2014 18:52:38 -0700 (PDT)
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:content-transfer-encoding; bh=q1WFiJIOYm5IiIB0MJxmAFQkSr72vEhETKh9o2YsOJc=; b=pTLxzKFK7kEZhsk/8Nys6K4kE5Sk4+x8GkQBmjujbakK1eyZ5goW8TBJ33kimTJFf1 EF1B/2tNI0fHN1gw+l10RvjnvZYN9Zi/zD844hun2iqQuFWVd/AxsDoA3CycuT27K/W8 0I1QdEEztoMHWyA6o7mQFaQyr2jHvuvR3KKmjjaz6Eg8bDEJqGM8sSFgd7iBDpFqk3gh I7iFkTsdx3aFpqC2Qlxrp5La7HfwPgqwNNH2SUAEmcwAof/XqAIVPr7KmlXkEYX8O2mj SYc4JZu0sKNCcC4p3aE+CP/JF9nf3ZEmNmzcVfj/kHEluzjUNts//MHzG9l/tTdZEhZ9 Bf2A==
MIME-Version: 1.0
X-Received: by 10.180.86.225 with SMTP id s1mr6338611wiz.36.1404525158832; Fri, 04 Jul 2014 18:52:38 -0700 (PDT)
Received: by 10.194.21.69 with HTTP; Fri, 4 Jul 2014 18:52:38 -0700 (PDT)
In-Reply-To: <CECE0A7E-35CA-444E-85DF-5504E404A1B5@vpnc.org>
References: <CECE0A7E-35CA-444E-85DF-5504E404A1B5@vpnc.org>
Date: Fri, 4 Jul 2014 18:52:38 -0700
Message-ID: <CACsn0cmC0G6ES=tSwrbXknKXV=D2nogYyQzukp1eQg8ArC_67w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/yLvwFqEJMyI-ATDG9xYAXascz_8
Cc: "cfrg@irtf.org CFRG" <cfrg@irtf.org>
Subject: Re: [Cfrg] Revising RFC 6090
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: Sat, 05 Jul 2014 01:52:42 -0000

Dear Paul,
Thanks for taking on this necessary task.

I have several ideas for how to modernize, but not all of them are
going to work because of the time constraint: edwards curves are 2007,
for instance, and while I haven't heard any FUD yet, it doesn't fit
with our original goals.

The first idea is due to Tanja Lange and is to use Jacobian
coordinates. If you want to be fancy she invented faster formulas
which are in the EFD, but you might have to live with the 1986
formulas. However, the presentation in the RFC is not ideal: you
should run them through common-subexpression elimination, which the
EFD did for you.

For validation of the formulas that appear I would suggest an
automated Sage script, ala EFD.

The parameters choice section is laughable. Either make it complete or
remove it entirely.

The Montgomery ladder is old enough to be included. I don't know about
sliding windows. Signed-digit encoding was invented in 1950 under the
name Booth encoding: it gets a savings, but isn't constant time. DJB
has an extensive bibliography and paper in
http://cr.yp.to/papers/pippenger.pdf discussing various approaches.

The Shamir trick should be mentioned: it speeds verification of
signatures significantly.

Sincerely,
Watson Ladd

On Fri, Jul 4, 2014 at 12:21 PM, Paul Hoffman <paul.hoffman@vpnc.org> wrote=
:
> Greetings again. RFC 6090, "Fundamental Elliptic Curve Cryptography Algor=
ithms", was published a few years ago, with the purpose of laying down whic=
h parts of elliptic curve cryptography had been described long enough ago t=
o avoid any patent issues. A fair number of technical errata have been repo=
rted on RFC 6090. Also, the point compression patent is expiring later this=
 month, and therefore point compression might be added to a new version of =
the RFC.
>
> This seems like a good time to revisit RFC 6090 to incorporate the errata=
 and to start to consider what else can be added to the document. I have st=
arted a new draft, listed below. The errata have been marked in the documen=
t; those marks will come out in future drafts.
>
> To start off, it would be grand if people would read through the draft ca=
refully for technical accuracy. I say this because the drafts leading to RF=
C 6090 had been reviewed here in CFRG, and yet some significant mistakes ma=
de it through the process.
>
> At the same time, it would be useful to hear what people think additions =
to the document should be. RFC 6090 focused on the Suite B curves, but if a=
dditional curves and concepts can be added (while maintaining the design go=
al of things described fully early enough to avoid patent encumbrance), tha=
t could be interesting as well.
>
> --Paul Hoffman
>
>
> A new version of I-D, draft-hoffman-rfc6090bis-00.txt
> has been successfully submitted by Paul Hoffman and posted to the
> IETF repository.
>
> Name:           draft-hoffman-rfc6090bis
> Revision:       00
> Title:          Fundamental Elliptic Curve Cryptography Algorithms
> Document date:  2014-07-04
> Group:          Individual Submission
> Pages:          34
> URL:            http://www.ietf.org/internet-drafts/draft-hoffman-rfc6090=
bis-00.txt
> Status:         https://datatracker.ietf.org/doc/draft-hoffman-rfc6090bis=
/
> Htmlized:       http://tools.ietf.org/html/draft-hoffman-rfc6090bis-00
>
>
> Abstract:
>   This note describes the fundamental algorithms of Elliptic Curve
>   Cryptography (ECC) as they were defined in some seminal references
>   from 1994 and earlier.  These descriptions may be useful for
>   implementing the fundamental algorithms without using any of the
>   specialized methods that were developed in following years.  Only
>   elliptic curves defined over fields of characteristic greater than
>   three are in scope; these curves are those used in Suite B.
>
>   This version of the note incorporates errata that were reported on
>   RFC 6090 [RFC6090].
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



--=20
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Mon Jul  7 10:00:21 2014
Return-Path: <dbrown@certicom.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 87A7B1A03FC for <cfrg@ietfa.amsl.com>; Mon,  7 Jul 2014 10:00:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 ETlFQXkjK0ij for <cfrg@ietfa.amsl.com>; Mon,  7 Jul 2014 10:00:18 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 0E2641A0370 for <cfrg@irtf.org>; Mon,  7 Jul 2014 10:00:17 -0700 (PDT)
Received: from xct101cnc.rim.net ([10.65.161.201]) by mhs215cnc.rim.net with ESMTP/TLS/AES128-SHA; 07 Jul 2014 13:00:17 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT101CNC.rim.net ([fe80::9c22:d9c:c906:c488%16]) with mapi id 14.03.0174.001; Mon, 7 Jul 2014 13:00:16 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'watsonbladd@gmail.com'" <watsonbladd@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] FW: Schnorr Signatures
Thread-Index: Ac+aBBiYLqfqpxUASzGqBqdqcZD3Tw==
Date: Mon, 7 Jul 2014 17:00:15 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CB578F@XMB116CNC.rim.net>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.250]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_000E_01CF99E3.65365840"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/cvKEqIX1uTPGNNXyK0f9YHXEyrk
Subject: Re: [Cfrg] FW: Schnorr Signatures
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: Mon, 07 Jul 2014 17:00:20 -0000

------=_NextPart_000_000E_01CF99E3.65365840
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_000F_01CF99E3.65365840"


------=_NextPart_001_000F_01CF99E3.65365840
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

For half-length hashes, and thus 3b-bit Schnorr signatures (that consist =
of hash plus a group element), I=E2=80=99ve devised a hash that seems to =
show that the loose bound implicit in the Neven--Smart=E2=80=94Warinschi =
Theorem 2 cannot be improved without new hash assumptions.  In other =
words, the looseness of the results is not merely an artefact of the =
proof.

=20

So, for b=3D128, the 128-bit hash seems to be 128-bit RPP-secure (and =
speculatively RPSP secure), yet when use with 192-bit Schnorr signature =
gives only 64-bit security. =20

=20

I=E2=80=99m drafting a report about this =E2=80=A6 but have confirmed it =
with authors.

=20

Just to be clear, it is a contrived hash.  It does not rule out new =
provable security results with a tighter bound, but does prove that such =
a new result would require further assumptions about the hash function, =
not just RPP and RPSP security.

=20

Here=E2=80=99s the contrived hash function: H(R||m) =3D H1(R) + H2(m) =
where H1 and H2 are secure 128-bit hashes.  Specifically, H1 needs a =
smoothness property (thanks to Neven for this property, I had used =
random oracle), and H2 needs a pre-image resistance property, to achieve =
the RPP property in the NSW paper. =20

=20

Note that this contrived H is not OW (it only has 64-bit security), so =
perhaps a new provable security result for short Schnorr adding the =
condition of the short hash being one-way, in addition to RPP and RPSP =
secure might still be possible.

=20

From: TLS [mailto:tls-bounces@ietf.org] On Behalf Of Watson Ladd
Sent: Monday, July 07, 2014 11:01 AM
To: tls@ietf.org
Subject: Re: [TLS] [Cfrg] FW: Schnorr Signatures

=20


On Jul 7, 2014 7:53 AM, "Johannes Merkle" <johannes.merkle@secunet.com> =
wrote:
>
> Nigel Smart wrote on 26.06.2014 22:56:
> > With Schnorr you dont send the x-coord of R. What you send is
> > half the hash value e
> >     e=3DHash(R||Message)
> > So if using SHA-256 you send 128 bits of e over.
>
> Actually, the Schnorr signature is defined as using the full hash =
value, but it has been repeatedly proposed (originally
> by Schnorr himself) to use a half-length hash function (and that could =
be truncated SHA-256).
>
> However, as you pointed out in [1], the security proofs you mentioned =
do not work with reduced hash length h=3Db AND
> standard group order g =3D 2^(2b) for security level b. Your proof in =
the generic model [1] requires h=3D2*b and the proof
> of Pointcheval and Stern in the Random oracle model [2] needs =
g=3D2^(3b). Thus, when using half-length hash values you
> sacrifice provable security.

While the Pointcheval and Stern result is not tight, no one has made =
attacks that do better.

The most compact and performant variant sends R and S. R is the size of =
a group element, S the size of order of the group. This way the length =
of what is to be transmitted does not depend on the hash used.
>
>
> [1] Gregory Neven, Nigel P. Smart, and Bogdan Warinschi. Hash function =
requirements for schnorr
> signatures. J. Mathematical Cryptology, 3(1):69=E2=80=9387, 2009
>
> [2] David Pointcheval and Jacques Stern. Security arguments for =
digital signatures and blind signatures.
> Journal of Cryptology, 13(3):361=E2=80=93396, March 2000.
>
>
> --
> Johannes
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


------=_NextPart_001_000F_01CF99E3.65365840
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 14 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>For half-length hashes, and thus 3b-bit Schnorr signatures (that =
consist of hash plus a group element), I=E2=80=99ve devised a hash that =
seems to show that the loose bound implicit in the =
Neven--Smart=E2=80=94Warinschi Theorem 2 cannot be improved without new =
hash assumptions.=C2=A0 In other words, the looseness of the results is =
not merely an artefact of the proof.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>So, for b=3D128, the 128-bit hash seems to be 128-bit RPP-secure (and =
speculatively RPSP secure), yet when use with 192-bit Schnorr signature =
gives only 64-bit security.=C2=A0 <o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I=E2=80=99m drafting a report about this =E2=80=A6 but have confirmed =
it with authors.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Just to be clear, it is a contrived hash.=C2=A0 It does not rule out =
new provable security results with a tighter bound, but does prove that =
such a new result would require further assumptions about the hash =
function, not just RPP and RPSP security.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Here=E2=80=99s the contrived hash function: H(R||m) =3D H1(R) + H2(m) =
where H1 and H2 are secure 128-bit hashes.=C2=A0 Specifically, H1 needs =
a smoothness property (thanks to Neven for this property, I had used =
random oracle), and H2 needs a pre-image resistance property, to achieve =
the RPP property in the NSW paper.=C2=A0 <o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Note that this contrived H is not OW (it only has 64-bit security), =
so perhaps a new provable security result for short Schnorr adding the =
condition of the short hash being one-way, in addition to RPP and RPSP =
secure might still be possible.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
TLS [mailto:tls-bounces@ietf.org] <b>On Behalf Of </b>Watson =
Ladd<br><b>Sent:</b> Monday, July 07, 2014 11:01 AM<br><b>To:</b> =
tls@ietf.org<br><b>Subject:</b> Re: [TLS] [Cfrg] FW: Schnorr =
Signatures<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p><br>On Jul 7, 2014 7:53 AM, =
&quot;Johannes Merkle&quot; &lt;<a =
href=3D"mailto:johannes.merkle@secunet.com">johannes.merkle@secunet.com</=
a>&gt; wrote:<br>&gt;<br>&gt; Nigel Smart wrote on 26.06.2014 =
22:56:<br>&gt; &gt; With Schnorr you dont send the x-coord of R. What =
you send is<br>&gt; &gt; half the hash value e<br>&gt; &gt; &nbsp; =
&nbsp; e=3DHash(R||Message)<br>&gt; &gt; So if using SHA-256 you send =
128 bits of e over.<br>&gt;<br>&gt; Actually, the Schnorr signature is =
defined as using the full hash value, but it has been repeatedly =
proposed (originally<br>&gt; by Schnorr himself) to use a half-length =
hash function (and that could be truncated SHA-256).<br>&gt;<br>&gt; =
However, as you pointed out in [1], the security proofs you mentioned do =
not work with reduced hash length h=3Db AND<br>&gt; standard group order =
g =3D 2^(2b) for security level b. Your proof in the generic model [1] =
requires h=3D2*b and the proof<br>&gt; of Pointcheval and Stern in the =
Random oracle model [2] needs g=3D2^(3b). Thus, when using half-length =
hash values you<br>&gt; sacrifice provable =
security.<o:p></o:p></p><p>While the Pointcheval and Stern result is not =
tight, no one has made attacks that do better.<o:p></o:p></p><p>The most =
compact and performant variant sends R and S. R is the size of a group =
element, S the size of order of the group. This way the length of what =
is to be transmitted does not depend on the hash =
used.<br>&gt;<br>&gt;<br>&gt; [1] Gregory Neven, Nigel P. Smart, and =
Bogdan Warinschi. Hash function requirements for schnorr<br>&gt; =
signatures. J. Mathematical Cryptology, 3(1):69=E2=80=9387, =
2009<br>&gt;<br>&gt; [2] David Pointcheval and Jacques Stern. Security =
arguments for digital signatures and blind signatures.<br>&gt; Journal =
of Cryptology, 13(3):361=E2=80=93396, March =
2000.<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Johannes<br>&gt;<br>&gt; =
_______________________________________________<br>&gt; TLS mailing =
list<br>&gt; <a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a><br>&gt; <a =
href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf.org/m=
ailman/listinfo/tls</a><o:p></o:p></p></div></div></body></html>
------=_NextPart_001_000F_01CF99E3.65365840--

------=_NextPart_000_000E_01CF99E3.65365840
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3du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YJKoZIhvcNAQkEMRYEFMUy
8s3m7ZB7twb0MrdIEki+1YQkMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYA+bGuQ6VNbs0gzUiC6k6c7Z3CnnWF9
f2wzVEAx6tar2+X9jV+mV6rAO/mWMkXfNw6MadxRgt094GKCKogzi43MST7ATGHJ3YkO/KOwuFcf
YFgb7WJ+ItSXUP2yeoY6HGtII3hwB1OnsdL7L0VdO72z0zvnrdpOYMYh36N2YUtO8gAAAAAAAA==

------=_NextPart_000_000E_01CF99E3.65365840--


From nobody Tue Jul  8 12:19:45 2014
Return-Path: <dbrown@certicom.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 DEBD71A0305 for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 12:19:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.401
X-Spam-Level: 
X-Spam-Status: No, score=0.401 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MANGLED_OFF=2.3] 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 d_gv8NQt8vfF for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 12:19:42 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 8F3841A02D7 for <cfrg@irtf.org>; Tue,  8 Jul 2014 12:19:41 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs211cnc.rim.net with ESMTP/TLS/AES128-SHA; 08 Jul 2014 15:19:36 -0400
Received: from XCT116CNC.rim.net (10.65.161.216) by XCT107CNC.rim.net (10.65.161.207) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 8 Jul 2014 15:19:35 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT116CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Tue, 8 Jul 2014 15:19:35 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: TLS PRF security proof?
Thread-Index: Ac+a3pfHyneQDJEcQp6NTm7HFwn/Fg==
Date: Tue, 8 Jul 2014 19:19:34 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.252]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0020_01CF9AC0.063C30C0"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/wrjU9fSQ-puQt6cnIxb_jyvxWFU
Subject: [Cfrg] TLS PRF security proof?
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: Tue, 08 Jul 2014 19:19:44 -0000

------=_NextPart_000_0020_01CF9AC0.063C30C0
Content-Type: multipart/related;
	boundary="----=_NextPart_001_0021_01CF9AC0.063C30C0"


------=_NextPart_001_0021_01CF9AC0.063C30C0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_002_0022_01CF9AC0.063C30C0"


------=_NextPart_002_0022_01CF9AC0.063C30C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Dear CFRG list,

 

Is there a published security proof for the current TLS PRF in the draft TLS
1.3?  

 

Specifically, I refer to the current TLS PRF, which I try to paraphrase here
as:

 

PRF_k ( m ) = HMAC_k( HMAC_k(m) | m) | HMAC_k ( HMAC_k^2(m) | m) | HMAC_k (
HMAC_k^3(m) | m) | .

 

where the underscores are used to indicate a secret key input to a function,
and the caret indicates repeated application of a function, and | indicates
string concatenation, and the ellipsis (.) indicates to repeat (in the
obvious manner by more iterations) and to truncate as needed.  So, my
question is if the security of PRF_k has been proved assuming some security
property of HMAC_k.  So far, I've scanned:

http://eprint.iacr.org/2014/182

http://eprint.iacr.org/2013/339

http://eprint.iacr.org/2013/367

 

These three reports all seem to prove some security for TLS assuming the PRF
has some security property, rather than prove the security of the TLS PRF
(but apologies if I am mistaken).

 

The 3 reports indicate the kind of security that PRF_k ought to have for its
role in TLS.  Naively, I'd note that the input m is public, and in some
early stages of the handshake, m is subject to the modification by the
adversary, but the output is usually kept secret, and needs to be kept
secret, so it looks as though TLS PRF benefits from at least the standard
PRF security properties.  

 

Regardless of provable security, I wonder why the TLS PRF applies a MAC to
an iterated MAC tag, rather than say a counter.  Anyway, it reminds me of
some kind of chaining feedback mode, like CBC where blocks encrypted depend
on the key, so key-dependent input is not a real concern. Even so, oughtn't
there be there some simpler design, more like a counter mode, that avoids
any key-dependent inputs?  

 

I would imagine that the PRF security of TLS PRF could be proved secure in
the random oracle model, and perhaps if HMAC_k is some kind of secure PRF.
I do not see how one could prove the PRF security of PRF_k using only the
assumption that HMAC_k is a secure MAC, just because a secure MAC might be
biased.

 

If I had to whip up a PRF security proof, it would go something like this:
suppose adversary A can distinguish oracle access to function PRF_k from a
random function BIGRAND (with similar domain and range).  Then build an
adversary B that can distinguish between oracle access to function HMAC_k
and a random function SMALLRAND (with same domain and range) as follows.  B
simulates the PRF_k oracle for A by calling her oracle for HMAC_k, per the
definition of PRF_k.  To finish the proof, we just need to be sure that
using SMALLRAND instead of HMAC_k in the PRF_k construction yields something
indistinguishable from BIGRAND.  To make proving that easier, we could note
that m is almost a fixed length, and the output of F is fairly short.
(Under arbitrary length outputs, PRF_k built from SMALLRAND would likely
start enter a periodic cycle at around block 2^128, unlike BIGRAND, but we
can still have computational indistinguishability because it would take
2^128 steps just to scan the output of arbitrarily long PRF_k to detect the
cycling pattern.)

 

Best regards,

 


Daniel Brown


Research In Motion Limited 

 

	

 




	

 


------=_NextPart_002_0022_01CF9AC0.063C30C0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-CA>Dear CFRG list,<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA>Is there a published security proof =
for the current TLS PRF in the draft TLS 1.3?&nbsp; =
<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>Specifically, I refer to the current TLS PRF, which I try =
to paraphrase here as:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>PRF_k ( m ) =3D HMAC_k( HMAC_k(m) | m) | HMAC_k ( =
HMAC_k^2(m) | m) | HMAC_k ( HMAC_k^3(m) | m) | =
&#8230;<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>where the underscores are used to indicate a secret key =
input to a function, and the caret indicates repeated application of a =
function, and | indicates string concatenation, and the ellipsis =
(&#8230;) indicates to repeat (in the obvious manner by more iterations) =
and to truncate as needed.&nbsp; So, my question is if the security of =
PRF_k has been proved assuming some security property of HMAC_k.&nbsp; =
So far, I&#8217;ve scanned:<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA><a =
href=3D"http://eprint.iacr.org/2014/182">http://eprint.iacr.org/2014/182<=
/a><o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-CA><a =
href=3D"http://eprint.iacr.org/2013/339">http://eprint.iacr.org/2013/339<=
/a><o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-CA><a =
href=3D"http://eprint.iacr.org/2013/367">http://eprint.iacr.org/2013/367<=
/a><o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>These three reports all seem to prove some security for TLS =
assuming the PRF has some security property, rather than prove the =
security of the TLS PRF (but apologies if I am =
mistaken).<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>The 3 reports indicate the kind of security that PRF_k =
ought to have for its role in TLS.&nbsp; Naively, I&#8217;d note that =
the input m is public, and in some early stages of the handshake, m is =
subject to the modification by the adversary, but the output is usually =
kept secret, and needs to be kept secret, so it looks as though TLS PRF =
benefits from at least the standard PRF security properties.&nbsp; =
<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>Regardless of provable security, I wonder why the TLS PRF =
applies a MAC to an iterated MAC tag, rather than say a counter.&nbsp; =
Anyway, it reminds me of some kind of chaining feedback mode, like CBC =
where blocks encrypted depend on the key, so key-dependent input is not =
a real concern. Even so, oughtn&#8217;t there be there some simpler =
design, more like a counter mode, that avoids any key-dependent =
inputs?&nbsp; <o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>I would imagine that the PRF security of TLS PRF could be =
proved secure in the random oracle model, and perhaps if HMAC_k is some =
kind of secure PRF.&nbsp; I do not see how one could prove the PRF =
security of PRF_k using only the assumption that HMAC_k is a secure MAC, =
just because a secure MAC might be biased.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA>If I had to whip up a PRF security =
proof, it would go something like this: suppose adversary A can =
distinguish oracle access to function PRF_k from a random function =
BIGRAND (with similar domain and range).&nbsp; Then build an adversary B =
that can distinguish between oracle access to function HMAC_k and a =
random function SMALLRAND (with same domain and range) as follows.&nbsp; =
B simulates the PRF_k oracle for A by calling her oracle for HMAC_k, per =
the definition of PRF_k.&nbsp; To finish the proof, we just need to be =
sure that using SMALLRAND instead of HMAC_k in the PRF_k construction =
yields something indistinguishable from BIGRAND.&nbsp; To make proving =
that easier, we could note that m is almost a fixed length, and the =
output of F is fairly short.&nbsp; (Under arbitrary length outputs, =
PRF_k built from SMALLRAND would likely start enter a periodic cycle at =
around block 2^128, unlike BIGRAND, but we can still have computational =
indistinguishability because it would take 2^128 steps just to scan the =
output of arbitrarily long PRF_k to detect the cycling =
pattern.)<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>Best regards,<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
width=3D750 style=3D'width:6.25in'><tr><td style=3D'padding:0in 0in =
3.0pt 0in'><p class=3DMsoNormal style=3D'line-height:11.25pt'><span =
style=3D'font-size:9.0pt;font-family:"Arial","sans-serif";color:black'>Da=
niel Brown<o:p></o:p></span></p></td></tr><tr><td style=3D'padding:0in =
0in 0in 0in'><p class=3DMsoNormal style=3D'margin-top:3.75pt'><span =
style=3D'font-size:9.0pt;font-family:"Arial","sans-serif";color:#0073BC'>=
Research In Motion Limited</span><span =
style=3D'font-size:9.0pt;font-family:"Arial","sans-serif";color:black'> =
<o:p></o:p></span></p></td></tr></table><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif";display:none'><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
width=3D750 style=3D'width:6.25in'><tr><td style=3D'padding:0in 0in 0in =
0in'></td></tr></table><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif";display:none'><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D3 cellpadding=3D0 =
width=3D750 style=3D'width:6.25in'><tr><td style=3D'padding:9.75pt 0in =
0in 0in'><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman","serif"'><img =
border=3D0 width=3D176 height=3D43 id=3D"_x0000_i1025" =
src=3D"cid:image001.jpg@01CF9ABF.F71DA560"></span><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif"'><o:p></o:p></span></p></td></tr><tr><td width=3D750 =
style=3D'width:6.25in;padding:9.75pt 0in 0in 0in'></td></tr></table><p =
class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p></div></body></html>
------=_NextPart_002_0022_01CF9AC0.063C30C0--

------=_NextPart_001_0021_01CF9AC0.063C30C0
Content-Type: image/jpeg;
	name="image001.jpg"
Content-Transfer-Encoding: base64
Content-ID: <image001.jpg@01CF9ABF.F71DA560>

/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAArALADASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnL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VuigCGO1t4pWljgjSRvvMqAE/j
UVzplheuHurK3ncDAaSMMR+dW6KAIfstv9nFv5EfkjgR7Bt/KnpDHFEIo41WMDAVRgflT6KAIYbW
3t93kwRx7vvbEAz9ajGm2IYMLO3DA5B8sVaooAKpSaRps05nl0+1eUnJdolJz9cVdooAiltoJ0CT
QxyKvQOoIFElvBLEIpIY3jHRWUEflUtFAFDVJriw0e4k060E1xHGfJgXgM3YfSvPPhb4J1PTtQ1D
xH4khK6tdSEIrNuKKepz78D8K9SooAKKKKAP/9k=

------=_NextPart_001_0021_01CF9AC0.063C30C0--

------=_NextPart_000_0020_01CF9AC0.063C30C0
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5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G5NZH62YEwb6pZzc/iwEhFC5idJNAGNnwAAAAAAAA==

------=_NextPart_000_0020_01CF9AC0.063C30C0--


From nobody Tue Jul  8 12:24:36 2014
Return-Path: <luto@amacapital.net>
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 990301A03D9 for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 12:24:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 u5AHUrpisnnb for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 12:24:27 -0700 (PDT)
Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5CD941A0305 for <cfrg@irtf.org>; Tue,  8 Jul 2014 12:24:27 -0700 (PDT)
Received: by mail-la0-f44.google.com with SMTP id ty20so4371971lab.31 for <cfrg@irtf.org>; Tue, 08 Jul 2014 12:24:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=+iov4hsikL8qNSDA4jz9zfy/WCppx9yNGkiGESgCyNw=; b=GZSjJQ3UL6PdZeWrkeVHbRA/MRjyswK8Kpl/auxQ6mF3Zhi7IHDaWXjBYWoa35yye9 unltue7GQBN9VmacVawb7GA8ApNKIzFitRD4JL6/eft6YAY14lez36HhA/S6MDGssp1Q KOvUDqYHV5sNpmsE3O3AG5AJQGRKUTaJczvDa6HdzKEBfFh6gQnXIqrqgAfaKuG5c2Kp 01zdhp5yyqxeBWsjnPerSa9Q2dlFnfhfsuchXRyuCZkNzgiBstzRg4Ekydc1A0tFncyU OsDM3GqJof/vxF6utOvuS4nizsCHUdWUPoypCPOL73c78bHH61FAGXES1spKwVKZyDP+ sMrA==
X-Gm-Message-State: ALoCoQmaaSv0BgTX/x0XG5EbnvCJuvEOOmaQM76AgSeiawe/eo5IZ/ZV73qMeCPqfAGqpGyes4rr
X-Received: by 10.153.7.74 with SMTP id da10mr28903076lad.27.1404847465487; Tue, 08 Jul 2014 12:24:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Tue, 8 Jul 2014 12:24:05 -0700 (PDT)
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net>
From: Andy Lutomirski <luto@amacapital.net>
Date: Tue, 8 Jul 2014 12:24:05 -0700
Message-ID: <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/zjsArwIj02xClzdF1O3ZAyYyhDQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Tue, 08 Jul 2014 19:24:31 -0000

On Tue, Jul 8, 2014 at 12:19 PM, Dan Brown <dbrown@certicom.com> wrote:
>
> Dear CFRG list,
>
>
>
> Is there a published security proof for the current TLS PRF in the draft TLS 1.3?
>

Would it be useful if CFRG were to publish a recommended PRF?  Perhaps
something using a modern hash function combiner using (HMAC-)SHA-512
and either SHA-3 or something from the Salsa/ChaCha family as the
base?

--Andy


From nobody Tue Jul  8 12:56:44 2014
Return-Path: <kmigoe@nsa.gov>
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 AD8251A0009 for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 12:56:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.551
X-Spam-Level: 
X-Spam-Status: No, score=-7.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651] 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 IUAPl1NhRiJ8 for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 12:56:39 -0700 (PDT)
Received: from emvm-gh1-uea08.nsa.gov (emvm-gh1-uea08.nsa.gov [63.239.67.9]) by ietfa.amsl.com (Postfix) with ESMTP id ED2271A0010 for <cfrg@irtf.org>; Tue,  8 Jul 2014 12:56:38 -0700 (PDT)
X-TM-IMSS-Message-ID: <57ea1e57000a51ed@nsa.gov>
Received: from MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) by nsa.gov ([63.239.67.9]) with ESMTP (TREND IMSS SMTP Service 7.1; TLSv1/SSLv3 AES128-SHA (128/128)) id 57ea1e57000a51ed ; Tue, 8 Jul 2014 15:56:06 -0400
Received: from MSMR-GH1-UEA03.corp.nsa.gov ([10.215.224.3]) by MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) with mapi id 14.02.0342.003; Tue, 8 Jul 2014 15:56:37 -0400
From: "Igoe, Kevin M." <kmigoe@nsa.gov>
To: 'Andy Lutomirski' <luto@amacapital.net>, Dan Brown <dbrown@certicom.com>
Thread-Topic: [Cfrg] TLS PRF security proof?
Thread-Index: Ac+a3pfHyneQDJEcQp6NTm7HFwn/FgAJR3CAAAfZiDA=
Date: Tue, 8 Jul 2014 19:56:37 +0000
Message-ID: <3C4AAD4B5304AB44A6BA85173B4675CABAA9F8D1@MSMR-GH1-UEA03.corp.nsa.gov>
References: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net> <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
In-Reply-To: <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.215.225.46]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OzlsaBPnK-wNI8zwpdE0ZF-Q-v8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Tue, 08 Jul 2014 19:56:41 -0000

Definitely useful in the long run, but in the short run no one is
going to modify more than a small fraction of the existing TLS
deployments.  Perhaps in TLS 1.3.

Any chance of cooking up a security proof for the existing PRF? I'm
not optimistic since HMAC_k is a coalescent function =3D> the HMAC_k^t(m)=20
eventually starts to cycle. Typically the time to fall onto the cycle
and the length of the cycle are both about sqrt(N), but the usual random
map model gives a quantifiable probability of falling onto a far shorter
is a far shorter time.  A low enough probability to be of little practical
concern, but still a possible source of problems.

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Andy Lutomirski
> Sent: Tuesday, July 08, 2014 3:24 PM
> To: Dan Brown
> Cc: cfrg@irtf.org
> Subject: Re: [Cfrg] TLS PRF security proof?
>=20
> On Tue, Jul 8, 2014 at 12:19 PM, Dan Brown <dbrown@certicom.com> wrote:
> >
> > Dear CFRG list,
> >
> >
> >
> > Is there a published security proof for the current TLS PRF in the
> draft TLS 1.3?
> >
>=20
> Would it be useful if CFRG were to publish a recommended PRF?  Perhaps
> something using a modern hash function combiner using (HMAC-)SHA-512
> and either SHA-3 or something from the Salsa/ChaCha family as the base?
>=20
> --Andy
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Tue Jul  8 15:12:43 2014
Return-Path: <dharkins@lounge.org>
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 768511A015B for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 15:12:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.867
X-Spam-Level: 
X-Spam-Status: No, score=-3.867 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_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 aUDho4_wvT1n for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 15:12:23 -0700 (PDT)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 4C8C61A014F for <cfrg@irtf.org>; Tue,  8 Jul 2014 15:12:23 -0700 (PDT)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id BC4A910224008; Tue,  8 Jul 2014 15:12:22 -0700 (PDT)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Tue, 8 Jul 2014 15:12:22 -0700 (PDT)
Message-ID: <b2b7a90843f86ec8828beec30560f3b8.squirrel@www.trepanning.net>
In-Reply-To: <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
References: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net> <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
Date: Tue, 8 Jul 2014 15:12:22 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Andy Lutomirski" <luto@amacapital.net>
User-Agent: SquirrelMail/1.4.14 [SVN]
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YV6aJJkr9bG5-qZ8uZNCQA9MkVI
Cc: Dan Brown <dbrown@certicom.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Tue, 08 Jul 2014 22:12:28 -0000

On Tue, July 8, 2014 12:24 pm, Andy Lutomirski wrote:
> On Tue, Jul 8, 2014 at 12:19 PM, Dan Brown <dbrown@certicom.com> wrote:
>>
>> Dear CFRG list,
>>
>>
>>
>> Is there a published security proof for the current TLS PRF in the draft
>> TLS 1.3?
>>
>
> Would it be useful if CFRG were to publish a recommended PRF?  Perhaps
> something using a modern hash function combiner using (HMAC-)SHA-512
> and either SHA-3 or something from the Salsa/ChaCha family as the
> base?

  What about RFC 5869? http://eprint.iacr.org/2010/264 describes the
design rationale which is more than what TLS PRF has (which, to me,
seems a bit ad hoc).

  regards,

  Dan.



From nobody Tue Jul  8 22:58:24 2014
Return-Path: <pgut001@cs.auckland.ac.nz>
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 96CDD1A034B for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 22:58:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.551
X-Spam-Level: 
X-Spam-Status: No, score=-2.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RP_MATCHES_RCVD=-0.651] 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 GKlmDdny1JnF for <cfrg@ietfa.amsl.com>; Tue,  8 Jul 2014 22:58:18 -0700 (PDT)
Received: from mx2.auckland.ac.nz (mx2.auckland.ac.nz [130.216.125.245]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D1AF1A033D for <cfrg@irtf.org>; Tue,  8 Jul 2014 22:58:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1404885498; x=1436421498; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=T6vmngBwy8hQHlWeXWG/RkbFh4ppdLH0/I2TE/+ZRH0=; b=D8bojeWWKu269O/TOrY4XQmBXBYR4/e071QQOVrSr7bMM+Oao9s57a5Y v3Jm/jfiYGKVPuAXCvzD7KmP0sk4/2CGcE44PmeMSRq7gYtNlOOCmU3Ze Mg5H6j96q+V3I9itbfCKo3aOA+XbRVD7nJOKqReAQ9SihyobcBc35YTtN E=;
X-IronPort-AV: E=Sophos;i="5.01,630,1399982400"; d="scan'208";a="262705756"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.106 - Outgoing - Outgoing
Received: from uxchange10-fe2.uoa.auckland.ac.nz ([130.216.4.106]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES128-SHA; 09 Jul 2014 17:58:15 +1200
Received: from UXCN10-TDC06.UoA.auckland.ac.nz ([169.254.11.9]) by uxchange10-fe2.UoA.auckland.ac.nz ([169.254.27.86]) with mapi id 14.03.0174.001; Wed, 9 Jul 2014 17:58:15 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] TLS PRF security proof?
Thread-Index: Ac+bOsU0ejwpgQmhSCWZTwrxuwCGbQ==
Date: Wed, 9 Jul 2014 05:58:13 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C738E869BF3@uxcn10-tdc06.UoA.auckland.ac.nz>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/7P5PgX6gb21ivhLqK-s13oo_lVo
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 05:58:23 -0000

Dan Brown <dbrown@certicom.com> writes:=0A=
=0A=
>Would it be useful if CFRG were to publish a recommended PRF?=0A=
=0A=
Already done, just use HKDF, RFC 5869.  The problem isn't publishing it, it=
's=0A=
getting it adopted, so far each and every standards group has seen fit to=
=0A=
invent their own incompatible PRF/KDF, and I'm not sure what size gun you'd=
=0A=
need to hold to everyone's head to get them to agree to standardise on HKDF=
=0A=
(or anything els for that matter).=0A=
=0A=
Peter.=0A=


From nobody Wed Jul  9 02:03:46 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 EE1731A0337 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 02:03:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 3WC-33ylTuwj for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 02:03:43 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0082.outbound.protection.outlook.com [213.199.154.82]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 807F31A01DD for <cfrg@irtf.org>; Wed,  9 Jul 2014 02:03:42 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) with Microsoft SMTP Server (TLS) id 15.0.985.8; Wed, 9 Jul 2014 09:03:39 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0985.008; Wed, 9 Jul 2014 09:03:39 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Andy Lutomirski <luto@amacapital.net>, Dan Brown <dbrown@certicom.com>
Thread-Topic: [Cfrg] TLS PRF security proof?
Thread-Index: Ac+a3pfHyneQDJEcQp6NTm7HFwn/FgAA5ayAAB62v4A=
Date: Wed, 9 Jul 2014 09:03:39 +0000
Message-ID: <CFE2C12F.2625C%kenny.paterson@rhul.ac.uk>
References: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net> <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
In-Reply-To: <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.2.140509
x-originating-ip: [78.146.63.185]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 0267E514F9
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(51704005)(377454003)(479174003)(24454002)(199002)(189002)(106356001)(105586002)(83506001)(83322001)(19580395003)(19580405001)(50986999)(54356999)(76176999)(99396002)(64706001)(101416001)(87936001)(20776003)(2656002)(4396001)(85306003)(86362001)(92566001)(92726001)(85852003)(95666004)(83072002)(80022001)(66066001)(81342001)(81542001)(76482001)(79102001)(77982001)(46102001)(74662001)(31966008)(21056001)(74502001)(36756003)(74482001)(107046002)(217873001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB383; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <24207E325C1C044EB2D03EB69E14A372@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_obqMbWnExumYBj_UZ-qPdjGJXs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 09:03:45 -0000

Andy,

On 08/07/2014 20:24, "Andy Lutomirski" <luto@amacapital.net> wrote:

>On Tue, Jul 8, 2014 at 12:19 PM, Dan Brown <dbrown@certicom.com> wrote:
>>
>> Dear CFRG list,
>>
>>
>>
>> Is there a published security proof for the current TLS PRF in the
>>draft TLS 1.3?
>>
>
>Would it be useful if CFRG were to publish a recommended PRF?  Perhaps
>something using a modern hash function combiner using (HMAC-)SHA-512
>and either SHA-3 or something from the Salsa/ChaCha family as the
>base?

I think this could be a useful activity for CFRG to take on, given the
widespread use of PRFs in IETF protocols - having a reference algorithm
for future protocol designers to use would be a good thing.

So I think the CFRG chairs would want to consider sponsoring any serious
effort in this direction.

On the other hand, CFRG is not really in the business of developing new
crypto from scratch (at least, that's my reading of the CFRG charter).

My first question, then, would be: are there any volunteers on the list
who are willing to dedicate some cycles to assessing the current state of
the art, as represented by existing RFCs and standards?

What is already out there that we could conveniently borrow from? Does
HMAC with a strong hash function already do the job, for example?

Cheers

Kenny


From nobody Wed Jul  9 05:58:38 2014
Return-Path: <dbrown@certicom.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 E81381A0546 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 05:58:36 -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 9pgAU1bMN3sV for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 05:58:35 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 06AD01A053B for <cfrg@irtf.org>; Wed,  9 Jul 2014 05:58:34 -0700 (PDT)
Received: from xct102cnc.rim.net ([10.65.161.202]) by mhs210cnc.rim.net with ESMTP/TLS/AES128-SHA; 09 Jul 2014 08:58:31 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT102CNC.rim.net ([fe80::2066:5d4f:8c45:af55%17]) with mapi id 14.03.0174.001; Wed, 9 Jul 2014 08:58:30 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] TLS PRF security proof?
Thread-Index: Ac+bdXsmyneQDJEcQp6NTm7HFwn/Fg==
Date: Wed, 9 Jul 2014 12:58:30 +0000
Message-ID: <20140709125829.22319253.16811.16396@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============0929097832=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/caB0TejQr8B1cQbgU69RI8iEpjE
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 12:58:37 -0000

--===============0929097832==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

=E2=80=8ETLS has been asking for CFRG input on curves, so maybe TLS is now =
more open to a suggestion like HKDF for future updates.

Furthermore, the latest TLS 1.3 draft makes a point of lacking a security a=
nalysis: thus my question to this list. (Not to the TLS list, because of th=
e research nature of the question. )

I'll ask the converse question: besides provable security, what advantage w=
ould HKDF have over TLS PRF? Eg, does HKDF fare better than TLS PRF under s=
ome disastrous HMAC failure? In other words, if proofs cover the sufficient=
 conditions, what about the necessary conditions? Does the HKDF RFC answer =
all this already?

Best regards,=20

-- Dan
=E2=80=8E
=C2=A0 Original Message =C2=A0
From: Peter Gutmann
Sent: Wednesday, July 9, 2014 1:58 AM
To: cfrg@irtf.org
Subject: Re: [Cfrg] TLS PRF security proof?

Dan Brown <dbrown@certicom.com> writes:

>Would it be useful if CFRG were to publish a recommended PRF?

Already done, just use HKDF, RFC 5869. The problem isn't publishing it, it's
getting it adopted, so far each and every standards group has seen fit to
invent their own incompatible PRF/KDF, and I'm not sure what size gun you'd
need to hold to everyone's head to get them to agree to standardise on HKDF
(or anything els for that matter).

Peter.

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
http://www.irtf.org/mailman/listinfo/cfrg


--===============0929097832==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2Mzha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nDop2A/NmNPMwOW89/JeWxNvqZZn19xEPLwimAPeabIBoN4bH359ed
LJqWOx3hDxkWYfb4JRn4tsJzKmP0IDvqrO/HajvwtW3t6rkFN1h0OmHGa9yT9UXO8o++iu4xggFf
MIIBWwIBATBeMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAi
BgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRgIKbandRwAEAAAFajAHBgUrDgMCGqBd
MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDcwOTEyNTgyN1ow
IwYJKoZIhvcNAQkEMRYEFBTM0YzBDdwI6KxVinmz7t+G/9R7MAsGCSqGSIb3DQEBBQSBgAK66Zwz
uxNEEbLfS7qrmzL8vLZdQ4swTGdiw24SbvqA5HqeqqhNcwYKXtcwIV1WG815fJbMllMb4M1OtF2s
D2/zdYuJt9AfZkFnv4niN14hY0wejt+fzm6iHZFQ73VfF0p/dzG/kagOmQZRMPYHQOBaQBRkqfiG
PE0sgWl/oc3fAAAAAAAA

--===============0929097832==--


From nobody Wed Jul  9 08:18:40 2014
Return-Path: <luto@amacapital.net>
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 90ADE1A0AC7 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:18:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 41j1ValWSEyG for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:18:36 -0700 (PDT)
Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F061F1A03E3 for <cfrg@irtf.org>; Wed,  9 Jul 2014 08:18:35 -0700 (PDT)
Received: by mail-la0-f42.google.com with SMTP id pn19so5200627lab.1 for <cfrg@irtf.org>; Wed, 09 Jul 2014 08:18:34 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=1O50FkKPemG3qhqs72rrmrx7JcbaIU9m8ROuvPt8/3A=; b=JsvL8YAmlcVrIZLkcPriKsqe/JP4IsvO0xZdIiJmowDpYIkPUi+d2djuFnZ/629kCu faqMOULRRwczXpnL9G105Uc0uzXAhRHiwVvL9w6T/GU63H5gQKxNuCHzCtQ9e7CCrFJv tkRPMfSNDqdHUvrN/nv8Rj0ZwVnLHpVF+AVFJk1N9U8fId4gOii8h3Sk8R1+6HE4tSUJ Z3iKLIGRiF2PO7l62IkR1F3bNnyfZHs0Lsrv89GzdTEYco/QsPM019G/7x09mPSD8Jfe RtFMbL3nESV6CvTGVzgwOg5ciNlTl8qDvm6abv+2EvQRrz1byiStQuXeV4km3aZ3wvP4 pGcQ==
X-Gm-Message-State: ALoCoQkEb0YvQu8cNbsJm+zLffYhtg2oWupVZRQvRb9G8AC73k59VRtzw0tzrJz/N/kA9q189LK6
X-Received: by 10.152.180.168 with SMTP id dp8mr33719444lac.11.1404919114068;  Wed, 09 Jul 2014 08:18:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Wed, 9 Jul 2014 08:18:13 -0700 (PDT)
In-Reply-To: <20140709125829.22319253.16811.16396@certicom.com>
References: <20140709125829.22319253.16811.16396@certicom.com>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 9 Jul 2014 08:18:13 -0700
Message-ID: <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Hg5F0ZkY6lS8rbyOeRThbDEU6bI
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 15:18:38 -0000

On Wed, Jul 9, 2014 at 5:58 AM, Dan Brown <dbrown@certicom.com> wrote:
> =E2=80=8ETLS has been asking for CFRG input on curves, so maybe TLS is no=
w more open to a suggestion like HKDF for future updates.
>
> Furthermore, the latest TLS 1.3 draft makes a point of lacking a security=
 analysis: thus my question to this list. (Not to the TLS list, because of =
the research nature of the question. )
>
> I'll ask the converse question: besides provable security, what advantage=
 would HKDF have over TLS PRF? Eg, does HKDF fare better than TLS PRF under=
 some disastrous HMAC failure? In other words, if proofs cover the sufficie=
nt conditions, what about the necessary conditions? Does the HKDF RFC answe=
r all this already?

I can't speak for the TLS WG, but from my own perspective, I have
three problems with HDKF:

1. HKDF is parametrized by a hash.  What hash should people use?
(Hence my suggestion of using combiners -- changing the PRF in an
existing protocol is a real PITA and might not even be possible
without introducing security holes.)

2. The RFC didn't make the security properties clear to me.  For
example, protocols should stick nonces into the salt.  Oh, wait, they
shouldn't stick nonces into the salt without care.  Can I use multiple
"info" values to safely extract key material and publish it?

3. (Only relevant to hashes using MD construction) My understanding of
HMAC is that it's secure against generic attacks on MD hashes if the
key is secret and unpredictable.  HKDF doesn't necessarily use a
secret, unpredictable key for HMAC.  Is HKDF-SHA-1 insecure as a
result?  What about HKDF-SHA-512 against an adversary with unlimited
precomputation power?


--Andy


From nobody Wed Jul  9 08:27:34 2014
Return-Path: <dbrown@certicom.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 099751A0AF3 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:27:31 -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 gIaSuW13TzmK for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:27:29 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 28ED11A0AF2 for <cfrg@irtf.org>; Wed,  9 Jul 2014 08:27:28 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 09 Jul 2014 11:27:28 -0400
Received: from XCT114CNC.rim.net (10.65.161.214) by XCT107CNC.rim.net (10.65.161.207) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 9 Jul 2014 11:27:27 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT114CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Wed, 9 Jul 2014 11:27:26 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] TLS PRF security proof?
Thread-Index: Ac+a3pfHyneQDJEcQp6NTm7HFwn/FgAJR3CAAAXgkgAAG3DqQA==
Date: Wed, 9 Jul 2014 15:27:26 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CB6A3D@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5CB648D@XMB116CNC.rim.net> <CALCETrVekyPJeUdEReZ8L8zqrP5UOgHR4+MkYtNt2FFFdmMVew@mail.gmail.com> <b2b7a90843f86ec8828beec30560f3b8.squirrel@www.trepanning.net>
In-Reply-To: <b2b7a90843f86ec8828beec30560f3b8.squirrel@www.trepanning.net>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.252]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0029_01CF9B68.C2F27F50"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/QGMMgXMh-mTSqLZgvMHRohYpKcE
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 15:27:31 -0000

------=_NextPart_000_0029_01CF9B68.C2F27F50
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Oops, I see now that the the TLS PRF is based on the key expansion phase of
HKDF!  This is called PRF* in the Krawczyk's eprint.  Maybe the TLS draft
should cite the HKDF paper.

Anyway, Section 7 of the HKDF eprint says the "feedback mode" design of PRF*
is heuristic, and is more conservative than a simpler counter mode.

So, despite my mix-up, my questions still stand: Is PRF* proven secure? How
failsafe is it?

> -----Original Message-----
> From: Dan Harkins [mailto:dharkins@lounge.org]
> Sent: Tuesday, July 08, 2014 6:12 PM
> To: Andy Lutomirski
> Cc: Dan Brown; cfrg@irtf.org
> Subject: Re: [Cfrg] TLS PRF security proof?
> 
> 
> 
> On Tue, July 8, 2014 12:24 pm, Andy Lutomirski wrote:
> > On Tue, Jul 8, 2014 at 12:19 PM, Dan Brown <dbrown@certicom.com> wrote:
> >>
> >> Dear CFRG list,
> >>
> >>
> >>
> >> Is there a published security proof for the current TLS PRF in the
> >> draft TLS 1.3?
> >>
> >
> > Would it be useful if CFRG were to publish a recommended PRF?  Perhaps
> > something using a modern hash function combiner using (HMAC-)SHA-512
> > and either SHA-3 or something from the Salsa/ChaCha family as the
> > base?
> 
>   What about RFC 5869? http://eprint.iacr.org/2010/264 describes the
design
> rationale which is more than what TLS PRF has (which, to me, seems a bit
ad
> hoc).
> 
>   regards,
> 
>   Dan.
> 


------=_NextPart_000_0029_01CF9B68.C2F27F50
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxM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mltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYApGeDk9Ybk9F51pnS7eMOH03oTtW6G
o79RY/stPWgoiK0PYv/umiGPB5kgDyS9lRCBQhHGGFaj17tx0UsKePsx+QnUvTqgd/jkpaoTmHJU
RI0DG/4aUVSESpDGOElwXZdvot5Yr3C5XjsA8xGjVDE6k+IXvtxyQLgOwxZp9XiOFgAAAAAAAA==

------=_NextPart_000_0029_01CF9B68.C2F27F50--


From nobody Wed Jul  9 08:28:32 2014
Return-Path: <paul.hoffman@vpnc.org>
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 111B41A0AF3 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:28:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] 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 E6oAenSrdf2a for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:28:28 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4A5FE1A0AF2 for <cfrg@irtf.org>; Wed,  9 Jul 2014 08:28:28 -0700 (PDT)
Received: from [10.20.30.90] (50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60]) (authenticated bits=0) by hoffman.proper.com (8.14.8/8.14.7) with ESMTP id s69FSOwv095734 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 9 Jul 2014 08:28:25 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host 50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com>
Date: Wed, 9 Jul 2014 08:28:22 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com>
To: Andy Lutomirski <luto@amacapital.net>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/SnolnjMHPeFqrvHbPOAPJIv8eqY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 15:28:29 -0000

On Jul 9, 2014, at 8:18 AM, Andy Lutomirski <luto@amacapital.net> wrote:

> I can't speak for the TLS WG, but from my own perspective, I have
> three problems with HDKF:
>=20
> 1. HKDF is parametrized by a hash.  What hash should people use?

Any one that has no known weakening of preimage resistance. That is: =
nearly any of them.

> (Hence my suggestion of using combiners -- changing the PRF in an
> existing protocol is a real PITA and might not even be possible
> without introducing security holes.)

Adding more choices makes interoperability less likely. In real-world =
protocols, excellent interoperability with almost-perfect security is =
*much* better than good interoperability with perfect security.

> 2. The RFC didn't make the security properties clear to me.  For
> example, protocols should stick nonces into the salt.  Oh, wait, they
> shouldn't stick nonces into the salt without care. =20

Can you justify that second sentence with anything from RFC 5869? In =
fact, it says the opposite:

   Ideally, the salt value is a random (or pseudorandom) string of the
   length HashLen.  Yet, even a salt value of less quality (shorter in
   size or with limited entropy) may still make a significant
   contribution to the security of the output keying material; designers
   of applications are therefore encouraged to provide salt values to
   HKDF if such values can be obtained by the application.

> Can I use multiple
> "info" values to safely extract key material and publish it?

Yes. Can you point at something in the RFC that indicates any different?

> 3. (Only relevant to hashes using MD construction) My understanding of
> HMAC is that it's secure against generic attacks on MD hashes if the
> key is secret and unpredictable.  HKDF doesn't necessarily use a
> secret, unpredictable key for HMAC.  Is HKDF-SHA-1 insecure as a
> result?  What about HKDF-SHA-512 against an adversary with unlimited
> precomputation power?

For the discussion at hand, the key is secret and unpredictable.

--Paul Hoffman=


From nobody Wed Jul  9 08:33:54 2014
Return-Path: <luto@amacapital.net>
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 06FFE1A0AF9 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:33:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 Aa2u96lleJA9 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 08:33:51 -0700 (PDT)
Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E4E931A0AF7 for <cfrg@irtf.org>; Wed,  9 Jul 2014 08:33:50 -0700 (PDT)
Received: by mail-lb0-f170.google.com with SMTP id 10so5187398lbg.15 for <cfrg@irtf.org>; Wed, 09 Jul 2014 08:33:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=w97fU/kswu7jD9gniNGyJwx/ScHEz5w0k1UQCh9cArQ=; b=DjJUpbET6Nmy0l8jsJ6krxSl65wRSDj7eRoYe+rqBG7QdmWMyUwskfkjDLH+FaSHua u4uTffNiSoHaopWTf9393Uv7GMTTBxbyqff7CdqhudV++yT55OyIOcYMzsuHuFsVIfu1 6Udjrt3CbHBtQJPawB6L1nUqtp3umgFaApe8cFP0RVdcxBDzvIQr9M8F/YaVs2fza3QO 9yqdwPPmwNXZQ0UtdWs6d74Fe4WaoerC7U7o20/Qvi0dJgaIKag0OU7MvMUNZ1wab8Qx IBKC8hx0XOb/io6gwelvMangoHtGwFbXjN62634G5TaifktkOHvwlu5jXu9rOrgVLrku gTqQ==
X-Gm-Message-State: ALoCoQk0nnS1D0ncH3dZ9i8FaIgpHfl75ciaEngtiUDC+HduhvlKqNRrraDwjNHCzNxHcYViJueh
X-Received: by 10.152.206.11 with SMTP id lk11mr2277468lac.72.1404920028678; Wed, 09 Jul 2014 08:33:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Wed, 9 Jul 2014 08:33:27 -0700 (PDT)
In-Reply-To: <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 9 Jul 2014 08:33:27 -0700
Message-ID: <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/MzcLjbd_BTzjMNXS-a-azswfpaU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 15:33:53 -0000

On Wed, Jul 9, 2014 at 8:28 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
> On Jul 9, 2014, at 8:18 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>
>> I can't speak for the TLS WG, but from my own perspective, I have
>> three problems with HDKF:
>>
>> 1. HKDF is parametrized by a hash.  What hash should people use?
>
> Any one that has no known weakening of preimage resistance. That is: nearly any of them.
>
>> (Hence my suggestion of using combiners -- changing the PRF in an
>> existing protocol is a real PITA and might not even be possible
>> without introducing security holes.)
>
> Adding more choices makes interoperability less likely. In real-world protocols, excellent interoperability with almost-perfect security is *much* better than good interoperability with perfect security.
>
>> 2. The RFC didn't make the security properties clear to me.  For
>> example, protocols should stick nonces into the salt.  Oh, wait, they
>> shouldn't stick nonces into the salt without care.
>
> Can you justify that second sentence with anything from RFC 5869? In fact, it says the opposite:
>
>    Ideally, the salt value is a random (or pseudorandom) string of the
>    length HashLen.  Yet, even a salt value of less quality (shorter in
>    size or with limited entropy) may still make a significant
>    contribution to the security of the output keying material; designers
>    of applications are therefore encouraged to provide salt values to
>    HKDF if such values can be obtained by the application.

Quoting from RFC 5869, section 3.4:

   Independence is also an important aspect of the salt value provided
   to a KDF.  While there is no need to keep the salt secret, and the
   same salt value can be used with multiple IKM values, it is assumed
   that salt values are independent of the input keying material.  In
   particular, an application needs to make sure that salt values are
   not chosen or manipulated by an attacker.  As an example, consider
   the case (as in IKE) where the salt is derived from nonces supplied
   by the parties in a key exchange protocol.  Before the protocol can
   use such salt to derive keys, it needs to make sure that these nonces
   are authenticated as coming from the legitimate parties rather than
   selected by the attacker (in IKE, for example this authentication is
   an integral part of the authenticated Diffie-Hellman exchange).


>
>> Can I use multiple
>> "info" values to safely extract key material and publish it?
>
> Yes. Can you point at something in the RFC that indicates any different?

No, but it wasn't clear to me that this property was guaranteed.

>
>> 3. (Only relevant to hashes using MD construction) My understanding of
>> HMAC is that it's secure against generic attacks on MD hashes if the
>> key is secret and unpredictable.  HKDF doesn't necessarily use a
>> secret, unpredictable key for HMAC.  Is HKDF-SHA-1 insecure as a
>> result?  What about HKDF-SHA-512 against an adversary with unlimited
>> precomputation power?
>
> For the discussion at hand, the key is secret and unpredictable.

I believe this, but I'd like to imagine that we've reached the point
where we don't need weird hacks (i.e. HMAC) and overcomplicated
analysis to work around the generic weaknesses of old hashes.  Oh,
well -- this is more of an aesthetic issue than a security issue.

--Andy


From nobody Wed Jul  9 10:51:03 2014
Return-Path: <luto@amacapital.net>
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 3E1401B2791 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 10:51:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 9yDvpnnVOce1 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 10:51:01 -0700 (PDT)
Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B9C1E1A03E4 for <cfrg@irtf.org>; Wed,  9 Jul 2014 10:51:00 -0700 (PDT)
Received: by mail-la0-f45.google.com with SMTP id hr17so5314363lab.18 for <cfrg@irtf.org>; Wed, 09 Jul 2014 10:50:58 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=0WDY0jEQdDea51rmXRMpF0NWTG6Ur1IAITArG7cwG8I=; b=OGsRfdfXWsnF+xpPRieSm/ubkH7AQqXcbH93zAE2BYmerQ6iX12/RuJTHoZBNw/TNH H8Y6Qct+HXIP6jIEp8EZouXCxWCZ3wRJPWRZXK0mbkawTuG32UcOeJkqd1YzqlO/zeRo 52g/sQgvrsmLLcQtX48G4Sij9WfUESADQiDT8nwY1l2mjb1dVL/Mv0TjowVn/dgKFx7i 8Z8NsAhB9/rKktoKfFd/bNqYDbXgw/V5DrmThC35rhkZEEA3prlu59aX6QEFG5BASQ4x WS9bqTu0TNA3NGq4ead7EmtOaZhY1UuKSLFrkIeKjh5khGbRQh+F/Su6yrGXxTk8MJRL +ztA==
X-Gm-Message-State: ALoCoQkrA/q5ROXNOryWIGYLuacSBbgfvEPeKpLhUSGLFm08d3KmhZz1a2YRjP6R/HB++VEY41v0
X-Received: by 10.112.41.72 with SMTP id d8mr2943464lbl.63.1404928258428; Wed, 09 Jul 2014 10:50:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Wed, 9 Jul 2014 10:50:37 -0700 (PDT)
In-Reply-To: <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 9 Jul 2014 10:50:37 -0700
Message-ID: <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/qMV93SfsmWo1-mocuvtKNxvu-uw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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, 09 Jul 2014 17:51:02 -0000

On Wed, Jul 9, 2014 at 8:33 AM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Wed, Jul 9, 2014 at 8:28 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
>>
>>> 2. The RFC didn't make the security properties clear to me.  For
>>> example, protocols should stick nonces into the salt.  Oh, wait, they
>>> shouldn't stick nonces into the salt without care.
>>
>> Can you justify that second sentence with anything from RFC 5869? In fact, it says the opposite:
>>
>>    Ideally, the salt value is a random (or pseudorandom) string of the
>>    length HashLen.  Yet, even a salt value of less quality (shorter in
>>    size or with limited entropy) may still make a significant
>>    contribution to the security of the output keying material; designers
>>    of applications are therefore encouraged to provide salt values to
>>    HKDF if such values can be obtained by the application.
>
> Quoting from RFC 5869, section 3.4:
>
>    Independence is also an important aspect of the salt value provided
>    to a KDF.  While there is no need to keep the salt secret, and the
>    same salt value can be used with multiple IKM values, it is assumed
>    that salt values are independent of the input keying material.  In
>    particular, an application needs to make sure that salt values are
>    not chosen or manipulated by an attacker.  As an example, consider
>    the case (as in IKE) where the salt is derived from nonces supplied
>    by the parties in a key exchange protocol.  Before the protocol can
>    use such salt to derive keys, it needs to make sure that these nonces
>    are authenticated as coming from the legitimate parties rather than
>    selected by the attacker (in IKE, for example this authentication is
>    an integral part of the authenticated Diffie-Hellman exchange).
>

I should note that this text in 3.4 smells funny to me even taken
alone.  Making sure that the nonces come from legitimate parties does
*not* imply that they are independent of the IKM in any sense of the
word "independent" that I understand.

I, and presumably protocol designers everywhere, would much prefer
language that tells me "this primitive provides this security
guarantee if this condition is met" where the condition is clearly
specified.

This is not to say that HKDF is not a perfectly good KDF, but I find
the RFC 5869 language unconvincing.

--Andy


From nobody Wed Jul  9 18:52:56 2014
Return-Path: <watsonbladd@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 61AF41A0193 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 18:52:53 -0700 (PDT)
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 jh9LMo2eRBzX for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 18:52:51 -0700 (PDT)
Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 391501A0180 for <cfrg@irtf.org>; Wed,  9 Jul 2014 18:52:51 -0700 (PDT)
Received: by mail-wg0-f49.google.com with SMTP id a1so4954566wgh.32 for <cfrg@irtf.org>; Wed, 09 Jul 2014 18:52:49 -0700 (PDT)
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=1tXj0e0J5r0j42SMudNjgalhnqtXIYz2Ky6z77tHpbI=; b=Rm5RBHHA4acGC1I/EW0mGOHHaMYyMV5ApoeOa0B2noh3VYAJ0Avi0qlwVPkW/MWGgQ GpMco3NR7sZxZ1SHQsLRKbXF2sJv0nwGY7lLnp1bf+nTexpD29SRq3Q3WjC4fW/+07UK JDKbY+ofsjtZI7/s7D9Z8pAhV/0FjCQbMzj7q/oPquDNyyqiE0JKMy5HGyjYkyhvNyV1 Pe9T9SolN4FSaco5CljVW8H4zBjSIKRIXvbm+JTGqZ2/CXlREh2g0XVg9XeDFdvM6Hn0 5gAZmTKSlwkFPDffsAsydYBG1C3hOPp8xlwByV4wpPhdqHANoR39/K7px+bS0grF7zbC ToAQ==
MIME-Version: 1.0
X-Received: by 10.194.82.198 with SMTP id k6mr52641500wjy.10.1404957169888; Wed, 09 Jul 2014 18:52:49 -0700 (PDT)
Received: by 10.194.21.69 with HTTP; Wed, 9 Jul 2014 18:52:49 -0700 (PDT)
In-Reply-To: <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com>
Date: Wed, 9 Jul 2014 18:52:49 -0700
Message-ID: <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andy Lutomirski <luto@amacapital.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/CPesgoZduoOApFNbynQfV7vDJd4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Thu, 10 Jul 2014 01:52:53 -0000

On Wed, Jul 9, 2014 at 10:50 AM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Wed, Jul 9, 2014 at 8:33 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Wed, Jul 9, 2014 at 8:28 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
>>>
>>>> 2. The RFC didn't make the security properties clear to me.  For
>>>> example, protocols should stick nonces into the salt.  Oh, wait, they
>>>> shouldn't stick nonces into the salt without care.
>>>
>>> Can you justify that second sentence with anything from RFC 5869? In fact, it says the opposite:
>>>
>>>    Ideally, the salt value is a random (or pseudorandom) string of the
>>>    length HashLen.  Yet, even a salt value of less quality (shorter in
>>>    size or with limited entropy) may still make a significant
>>>    contribution to the security of the output keying material; designers
>>>    of applications are therefore encouraged to provide salt values to
>>>    HKDF if such values can be obtained by the application.
>>
>> Quoting from RFC 5869, section 3.4:
>>
>>    Independence is also an important aspect of the salt value provided
>>    to a KDF.  While there is no need to keep the salt secret, and the
>>    same salt value can be used with multiple IKM values, it is assumed
>>    that salt values are independent of the input keying material.  In
>>    particular, an application needs to make sure that salt values are
>>    not chosen or manipulated by an attacker.  As an example, consider
>>    the case (as in IKE) where the salt is derived from nonces supplied
>>    by the parties in a key exchange protocol.  Before the protocol can
>>    use such salt to derive keys, it needs to make sure that these nonces
>>    are authenticated as coming from the legitimate parties rather than
>>    selected by the attacker (in IKE, for example this authentication is
>>    an integral part of the authenticated Diffie-Hellman exchange).
>>
>
> I should note that this text in 3.4 smells funny to me even taken
> alone.  Making sure that the nonces come from legitimate parties does
> *not* imply that they are independent of the IKM in any sense of the
> word "independent" that I understand.
>
> I, and presumably protocol designers everywhere, would much prefer
> language that tells me "this primitive provides this security
> guarantee if this condition is met" where the condition is clearly
> specified.
>
> This is not to say that HKDF is not a perfectly good KDF, but I find
> the RFC 5869 language unconvincing.

The reason the salt argument exists is because of a technicality in
the existence of entropy extractors:
they don't exist. Therefore, you need to make a randomized definition,
which requires a random string
independent of the other arguments.

The "obvious" way to get a salt is to do a coinflip protocol, then use
that as the salt. (That is, commit, commit, reveal,
reveal, and xor the revealed strings). This produces a random string,
independent (well, no... the attacker could abandon
the protocol round rather than continue it if they don't like it) of
other values. (To fix this you condition on successful protocol
runs, and do some math)

In the ROM none of this matters, but interestingly the eprint paper
gives a natural protocol secure in the ROM, but insecure
because a natural choice of hash function admits a length extension attack.

Without the salt argument the result is simply H(stuff), which is
supposed to be fine for any reasonable choice of H.

Sincerely,
Watson Ladd


From nobody Wed Jul  9 19:51:04 2014
Return-Path: <luto@amacapital.net>
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 B67D51A0252 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 19:51:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 B6HGkEyhT00k for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 19:51:01 -0700 (PDT)
Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE2D01A0242 for <cfrg@irtf.org>; Wed,  9 Jul 2014 19:51:00 -0700 (PDT)
Received: by mail-la0-f42.google.com with SMTP id pn19so5684714lab.1 for <cfrg@irtf.org>; Wed, 09 Jul 2014 19:50:58 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=NWg9b+Qcqtc2UfUF7HgWgX30ejVGjUR24gcgHUfpLBA=; b=dd5UoB+Kzvms1MKXtEihQIIMm+DPIYVXMRwBUX8HDbsTr9YmWUi+dhryQRV0N5lFh/ +fS8oxIELxWHKFs5+0ohX6QXvGDYHzqm707H9fbuQU6+Z4XiWyABB6AWic6vaKQKIDy1 arGOP36EzkyoU/V4hI7FZr5wSJrFHIBK1U7qLMay4+sgTygRsWm2RIzeZiTB6wjHSw3j zsFGE8gal5qpWodmSaE0b/JS0ChBrLQPgSq7/P992xJHqFpBhAPlwJLduFw2IwIou7Qu 2V1RrknuaAWwKRe+Y3WP/qdug0wjb7GixpQmAczXDdrHeGZBI6kfvSD3Ls/mAemw0G0R d2aA==
X-Gm-Message-State: ALoCoQmQKfzGHuOsVZbhgQCuEb3hsQ9HrgABbbXH5RLR2on7rdLg44GCVP4+oqQVys2T1CK3QbDs
X-Received: by 10.112.147.233 with SMTP id tn9mr667165lbb.17.1404960658616; Wed, 09 Jul 2014 19:50:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Wed, 9 Jul 2014 19:50:38 -0700 (PDT)
In-Reply-To: <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 9 Jul 2014 19:50:38 -0700
Message-ID: <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/TutsGcj5t9wrw4rBMTuTjvLPS6A
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Thu, 10 Jul 2014 02:51:02 -0000

On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> On Wed, Jul 9, 2014 at 10:50 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Wed, Jul 9, 2014 at 8:33 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>>> On Wed, Jul 9, 2014 at 8:28 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
>>>>
>>>>> 2. The RFC didn't make the security properties clear to me.  For
>>>>> example, protocols should stick nonces into the salt.  Oh, wait, they
>>>>> shouldn't stick nonces into the salt without care.
>>>>
>>>> Can you justify that second sentence with anything from RFC 5869? In fact, it says the opposite:
>>>>
>>>>    Ideally, the salt value is a random (or pseudorandom) string of the
>>>>    length HashLen.  Yet, even a salt value of less quality (shorter in
>>>>    size or with limited entropy) may still make a significant
>>>>    contribution to the security of the output keying material; designers
>>>>    of applications are therefore encouraged to provide salt values to
>>>>    HKDF if such values can be obtained by the application.
>>>
>>> Quoting from RFC 5869, section 3.4:
>>>
>>>    Independence is also an important aspect of the salt value provided
>>>    to a KDF.  While there is no need to keep the salt secret, and the
>>>    same salt value can be used with multiple IKM values, it is assumed
>>>    that salt values are independent of the input keying material.  In
>>>    particular, an application needs to make sure that salt values are
>>>    not chosen or manipulated by an attacker.  As an example, consider
>>>    the case (as in IKE) where the salt is derived from nonces supplied
>>>    by the parties in a key exchange protocol.  Before the protocol can
>>>    use such salt to derive keys, it needs to make sure that these nonces
>>>    are authenticated as coming from the legitimate parties rather than
>>>    selected by the attacker (in IKE, for example this authentication is
>>>    an integral part of the authenticated Diffie-Hellman exchange).
>>>
>>
>> I should note that this text in 3.4 smells funny to me even taken
>> alone.  Making sure that the nonces come from legitimate parties does
>> *not* imply that they are independent of the IKM in any sense of the
>> word "independent" that I understand.
>>
>> I, and presumably protocol designers everywhere, would much prefer
>> language that tells me "this primitive provides this security
>> guarantee if this condition is met" where the condition is clearly
>> specified.
>>
>> This is not to say that HKDF is not a perfectly good KDF, but I find
>> the RFC 5869 language unconvincing.
>
> The reason the salt argument exists is because of a technicality in
> the existence of entropy extractors:
> they don't exist. Therefore, you need to make a randomized definition,
> which requires a random string
> independent of the other arguments.
>
> The "obvious" way to get a salt is to do a coinflip protocol, then use
> that as the salt. (That is, commit, commit, reveal,
> reveal, and xor the revealed strings). This produces a random string,
> independent (well, no... the attacker could abandon
> the protocol round rather than continue it if they don't like it) of
> other values. (To fix this you condition on successful protocol
> runs, and do some math)

Would it be good enough to do:

A -> B: commit
B -> A: nonce
A -> B: reveal

Not that any protocol designer is likely to do this, but it's less
unpalatable than adding the extra round.

And does using a salt as suggested in the RFC actually reduce provable security?

>
> In the ROM none of this matters, but interestingly the eprint paper
> gives a natural protocol secure in the ROM, but insecure
> because a natural choice of hash function admits a length extension attack.

Does that mean that HKDF-SHA-bits is not secure in the ROM?

>
> Without the salt argument the result is simply H(stuff), which is
> supposed to be fine for any reasonable choice of H.

If stuff is (party A data | party B data) and party A gets to choose
all of its data offline, then this isn't so appealing for common
choices of H.

--Andy


From nobody Wed Jul  9 20:05:41 2014
Return-Path: <watsonbladd@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 1E4C11A0276 for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 20:05:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 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, J_CHICKENPOX_15=0.6, 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 HRfaO_SrqkXS for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 20:05:38 -0700 (PDT)
Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5089E1A026A for <cfrg@irtf.org>; Wed,  9 Jul 2014 20:05:38 -0700 (PDT)
Received: by mail-wi0-f181.google.com with SMTP id n3so3729279wiv.2 for <cfrg@irtf.org>; Wed, 09 Jul 2014 20:05:37 -0700 (PDT)
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=rGJSaPHBRsmLJJzjlgYTZIlwiomZEb1AwAKGlFrf6qs=; b=pEuCWwm6uf0OGV/o3XuwrjZR7xJUq3eHHPgfzYKerq6gzOA+tZ9osytD71EFbPjSs1 cyo7ITHXaee0RmHJfIBQko0vT+iGfhggzguIUzd0X0d2X6o0XEiNwsmDflQvtiqKx2cD D9jVvsxeYIm1yOd6iIKARKIU1byc5PZZOaqDatvjnrHsA8i632w+hrP0q3uK1o5D5jAS c+Bp++ugl+VN2kNzn9t82KW2M7WanmGMzZz4v7076b4W9jbtSWeqf1TGeV0tS9JpEDCT O1CLJtZouQGI0ygzdHm5WmaMySmmh9JXrZTqNexmQeVD49Do7GHBkI0vXA1C+OtNdB3F EpSQ==
MIME-Version: 1.0
X-Received: by 10.180.187.113 with SMTP id fr17mr8185540wic.51.1404961536965;  Wed, 09 Jul 2014 20:05:36 -0700 (PDT)
Received: by 10.194.21.69 with HTTP; Wed, 9 Jul 2014 20:05:36 -0700 (PDT)
In-Reply-To: <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com> <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com>
Date: Wed, 9 Jul 2014 20:05:36 -0700
Message-ID: <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andy Lutomirski <luto@amacapital.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_Eqtq9yNqzvTbjC8rWQyy2MM1tg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Thu, 10 Jul 2014 03:05:40 -0000

On Wed, Jul 9, 2014 at 7:50 PM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>> On Wed, Jul 9, 2014 at 10:50 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>>> On Wed, Jul 9, 2014 at 8:33 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>>>> On Wed, Jul 9, 2014 at 8:28 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
>>>>>
>>>>>> 2. The RFC didn't make the security properties clear to me.  For
>>>>>> example, protocols should stick nonces into the salt.  Oh, wait, they
>>>>>> shouldn't stick nonces into the salt without care.
>>>>>
>>>>> Can you justify that second sentence with anything from RFC 5869? In fact, it says the opposite:
>>>>>
>>>>>    Ideally, the salt value is a random (or pseudorandom) string of the
>>>>>    length HashLen.  Yet, even a salt value of less quality (shorter in
>>>>>    size or with limited entropy) may still make a significant
>>>>>    contribution to the security of the output keying material; designers
>>>>>    of applications are therefore encouraged to provide salt values to
>>>>>    HKDF if such values can be obtained by the application.
>>>>
>>>> Quoting from RFC 5869, section 3.4:
>>>>
>>>>    Independence is also an important aspect of the salt value provided
>>>>    to a KDF.  While there is no need to keep the salt secret, and the
>>>>    same salt value can be used with multiple IKM values, it is assumed
>>>>    that salt values are independent of the input keying material.  In
>>>>    particular, an application needs to make sure that salt values are
>>>>    not chosen or manipulated by an attacker.  As an example, consider
>>>>    the case (as in IKE) where the salt is derived from nonces supplied
>>>>    by the parties in a key exchange protocol.  Before the protocol can
>>>>    use such salt to derive keys, it needs to make sure that these nonces
>>>>    are authenticated as coming from the legitimate parties rather than
>>>>    selected by the attacker (in IKE, for example this authentication is
>>>>    an integral part of the authenticated Diffie-Hellman exchange).
>>>>
>>>
>>> I should note that this text in 3.4 smells funny to me even taken
>>> alone.  Making sure that the nonces come from legitimate parties does
>>> *not* imply that they are independent of the IKM in any sense of the
>>> word "independent" that I understand.
>>>
>>> I, and presumably protocol designers everywhere, would much prefer
>>> language that tells me "this primitive provides this security
>>> guarantee if this condition is met" where the condition is clearly
>>> specified.
>>>
>>> This is not to say that HKDF is not a perfectly good KDF, but I find
>>> the RFC 5869 language unconvincing.
>>
>> The reason the salt argument exists is because of a technicality in
>> the existence of entropy extractors:
>> they don't exist. Therefore, you need to make a randomized definition,
>> which requires a random string
>> independent of the other arguments.
>>
>> The "obvious" way to get a salt is to do a coinflip protocol, then use
>> that as the salt. (That is, commit, commit, reveal,
>> reveal, and xor the revealed strings). This produces a random string,
>> independent (well, no... the attacker could abandon
>> the protocol round rather than continue it if they don't like it) of
>> other values. (To fix this you condition on successful protocol
>> runs, and do some math)
>
> Would it be good enough to do:
>
> A -> B: commit
> B -> A: nonce
> A -> B: reveal
>
> Not that any protocol designer is likely to do this, but it's less
> unpalatable than adding the extra round.
>
> And does using a salt as suggested in the RFC actually reduce provable security?

No, not using a salt forces stronger assumptions on the hash function.
In some cases these assumptions
are so strong they are not satisfied by any hash function: in that
case you prove the protocol secure in the ROM.

Doing anything in the standard model, with standard assumptions, is
hard. In practice the ROM is good enough for protocols.

Honestly, I would be shocked if HKDF turned out to not get the job
done in any reasonable protocol.

>
>>
>> In the ROM none of this matters, but interestingly the eprint paper
>> gives a natural protocol secure in the ROM, but insecure
>> because a natural choice of hash function admits a length extension attack.
>
> Does that mean that HKDF-SHA-bits is not secure in the ROM?

A protocol where H(stuff) is revealed, and H(stuff | junk) is used as
a key, falls apart for hashes admitting length extension,
(like every MD style hash) but is secure in the ROM. SHAxxx is not a
random oracle! No deterministic function ever can be
a random oracle, but SHAxxx is particularly easy to distinguish as it
has a length extension property.

>
>>
>> Without the salt argument the result is simply H(stuff), which is
>> supposed to be fine for any reasonable choice of H.
>
> If stuff is (party A data | party B data) and party A gets to choose
> all of its data offline, then this isn't so appealing for common
> choices of H.

Why not? Is there a weakness of SHA256 I'm unaware of? If you need
signatures, you need collision resistant hash functions.
All uses of SHA1 and MD5 need to be ended ASAP: Microsoft has already
begun this process.

Sincerely,
Watson Ladd
>
> --Andy



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Wed Jul  9 20:16:45 2014
Return-Path: <luto@amacapital.net>
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 F248A1A028E for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 20:16:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 7kTkLC_frNIo for <cfrg@ietfa.amsl.com>; Wed,  9 Jul 2014 20:16:41 -0700 (PDT)
Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45BAC1A028A for <cfrg@irtf.org>; Wed,  9 Jul 2014 20:16:41 -0700 (PDT)
Received: by mail-lb0-f170.google.com with SMTP id 10so5663217lbg.1 for <cfrg@irtf.org>; Wed, 09 Jul 2014 20:16:39 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=b72S7AzWhSOAuYsBJ04wonTTRA0CuYWie31Q/BS9F5k=; b=Az5HGxXl15AcXjQ/IkTGMMDsPq5inb13cHEweCX8DMFfcAI6Q74eQ2RFCMFGkw3GOE togMEa7tfS5SlHmsB0ks6SL0ivOCTIN1hTNsBDsyh+8LqbjUp6Yz8+ASUIsXA1+Q7Ikj evyo/EO9V2F7ow8hnw59V77l9Li4TpGYdEJbXxUilhXYufQ+XHq2miThEzxGzkTwHC/y lme6l/zKj3T8cfqY88gyRg4oz4gexWCrCcX4oNvtGZNc8fwRsCWGv0IMSDoTeQxMTJk6 6zE6cDxaextUBjqScuPl3DUv2Q/zxy+4f5IqKfY2kgDFAWJ89U7veGtWe+i9on29jCAH VPKQ==
X-Gm-Message-State: ALoCoQlbAakoWm497Pqfb6bODE+1VksSoEjbol1TiQmnugs8ipow8zv6nCmDtef0k9FGP9uiwXxb
X-Received: by 10.112.156.161 with SMTP id wf1mr12636169lbb.1.1404962199526; Wed, 09 Jul 2014 20:16:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Wed, 9 Jul 2014 20:16:19 -0700 (PDT)
In-Reply-To: <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com> <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com> <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 9 Jul 2014 20:16:19 -0700
Message-ID: <CALCETrX5gJdQZATrzOrXtw_M4hc320yUi_HJPuexJORUuUw07g@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Yzatka5HegpDM3mGZYA1zy3wzcY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Thu, 10 Jul 2014 03:16:43 -0000

On Wed, Jul 9, 2014 at 8:05 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> On Wed, Jul 9, 2014 at 7:50 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>>
>>>
>>> Without the salt argument the result is simply H(stuff), which is
>>> supposed to be fine for any reasonable choice of H.
>>
>> If stuff is (party A data | party B data) and party A gets to choose
>> all of its data offline, then this isn't so appealing for common
>> choices of H.
>
> Why not? Is there a weakness of SHA256 I'm unaware of? If you need
> signatures, you need collision resistant hash functions.
> All uses of SHA1 and MD5 need to be ended ASAP: Microsoft has already
> begun this process.

Suppose that party A is malicious and they can find "party A data 1"
and "party A data 2" that collide.  I can imagine protocols in which
this violates one of the assumptions of the protocol.

If you allow party A to spend an extremely long time precomputing
something *before starting the protocol*, I'd like the protocol to
remain reasonably secure.  Hashes with unnecessarily small internal
state violate this.

Admittedly, it's supposed to be impractical to find even a single
collision for SHA-256, etc, but it seems unfortunate to have this type
of weakness in new protocols, hence my request for a better PRF.

FWIW, H(padded_length(stuff) | stuff | stuff) would fix this, I think.
Maybe this is a pointless consideration.

--Andy


From nobody Thu Jul 10 04:17:11 2014
Return-Path: <Jakob.Breier@rwth-aachen.de>
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 4A5FB1B2884 for <cfrg@ietfa.amsl.com>; Thu, 10 Jul 2014 04:16:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.501
X-Spam-Level: 
X-Spam-Status: No, score=-4.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.651] 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 E1MVODCJSMg3 for <cfrg@ietfa.amsl.com>; Thu, 10 Jul 2014 04:16:46 -0700 (PDT)
Received: from mx-out-2.rwth-aachen.de (mx-out-2.rwth-aachen.de [134.130.5.187]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2BBCD1B287F for <cfrg@irtf.org>; Thu, 10 Jul 2014 04:16:45 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.01,637,1400018400"; d="scan'208";a="251474876"
Received: from hub1.rwth-ad.de (HELO mail.rwth-aachen.de) ([134.130.26.142]) by mx-2.rz.rwth-aachen.de with ESMTP; 10 Jul 2014 13:16:43 +0200
Received: from localhost.localdomain (78.49.84.152) by mail.rwth-aachen.de (134.130.26.142) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 10 Jul 2014 13:16:42 +0200
Message-ID: <53BE761A.9000709@rwth-aachen.de>
Date: Thu, 10 Jul 2014 13:16:42 +0200
From: Jakob Breier <Jakob.Breier@rwth-aachen.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Andy Lutomirski <luto@amacapital.net>, Watson Ladd <watsonbladd@gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com> <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com> <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com> <CALCETrX5gJdQZATrzOrXtw_M4hc320yUi_HJPuexJORUuUw07g@mail.gmail.com>
In-Reply-To: <CALCETrX5gJdQZATrzOrXtw_M4hc320yUi_HJPuexJORUuUw07g@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
X-PMWin-Version: 3.1.1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/QRjYjfGxIYLIMMJjjsl4X0p44RM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Thu, 10 Jul 2014 11:16:58 -0000

Hi,

On 10.07.2014 05:16, Andy Lutomirski wrote:
> On Wed, Jul 9, 2014 at 8:05 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>> On Wed, Jul 9, 2014 at 7:50 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>>> On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>>>
>>>> Without the salt argument the result is simply H(stuff), which is
>>>> supposed to be fine for any reasonable choice of H.
>>> If stuff is (party A data | party B data) and party A gets to choose
>>> all of its data offline, then this isn't so appealing for common
>>> choices of H.
>> Why not? Is there a weakness of SHA256 I'm unaware of? If you need
>> signatures, you need collision resistant hash functions.
>> All uses of SHA1 and MD5 need to be ended ASAP: Microsoft has already
>> begun this process.
> Suppose that party A is malicious and they can find "party A data 1"
> and "party A data 2" that collide.  I can imagine protocols in which
> this violates one of the assumptions of the protocol.
>
> If you allow party A to spend an extremely long time precomputing
> something *before starting the protocol*, I'd like the protocol to
> remain reasonably secure.  Hashes with unnecessarily small internal
> state violate this.

If internal state size is your problem you can always use Sha512 or 
Sha3-512 for an intended collision resistance of 256bit.

But I find your argument much more compelling in the context of 
deteriorating hash functions, like MD5. Of course you wouldn't use MD5 
for new protocols, nonetheless it provides a nice case study for how the 
Sha2 and Sha3 family might break down with future cryptanalysis. 
Specifically while MD5 is no longer collision resistant, it is still 
preimage resistant and target collision resistant / UOWHF (in the sense 
that the random value is prefixed to the message).


On 09.07.2014 17:28, Paul Hoffman wrote:
> On Jul 9, 2014, at 8:18 AM, Andy Lutomirski<luto@amacapital.net>  wrote:
>
>> >I can't speak for the TLS WG, but from my own perspective, I have
>> >three problems with HDKF:
>> >
>> >1. HKDF is parametrized by a hash.  What hash should people use?
> Any one that has no known weakening of preimage resistance. That is: nearly any of them.

Which brings me back to RFC 5869 in the use case of PRFs for protocols 
like TLS. If you want to assure your handshake was not tampered with, 
for example in a downgrade attack, and then put the whole handshake into 
the PRF/KDF (in addition to the Diffi-Hellman result or some other 
secret) you will at least need collision resistance of the KDF. HKDF was 
not analyzed under this setting (as far as I can tell from Definition 7 
of the accompanying paper) and the explanations in the RFC do not help 
you decide with which hash functions it is secure then.

It would be nice to only rely on target collision resistance and 
preimage resistance instead of full collision resistance of the hash 
function, and for right choices of the salt this would be possible for 
HKDF, too. For example if after the handshake an additional random from 
each of the parties is exchanged and the concatenation is used as the 
salt. I don't see how it would be feasible without at least one further 
message transfer, though, so it it's likely not worth the additional costs.

Regards,
Jakob Breier


From nobody Thu Jul 10 15:10:15 2014
Return-Path: <hugokraw@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 1E8391B27F7 for <cfrg@ietfa.amsl.com>; Thu, 10 Jul 2014 15:10:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 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, HTML_MESSAGE=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 Af_XmWajhMnr for <cfrg@ietfa.amsl.com>; Thu, 10 Jul 2014 15:10:11 -0700 (PDT)
Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D75A71B27F3 for <cfrg@irtf.org>; Thu, 10 Jul 2014 15:10:10 -0700 (PDT)
Received: by mail-ob0-f176.google.com with SMTP id wo20so266223obc.7 for <cfrg@irtf.org>; Thu, 10 Jul 2014 15:10:10 -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:from:date:message-id :subject:to:content-type; bh=bzLP9cYsl41VnPvoTVmQo4HjLQCqRGvAhBec+C+Jlxk=; b=SRCtQ4BwBbsxKWEXHnJ0Y9450TGtEqZoloiIaXU4ALBsxI1JckULSpCpFoudhgyu1B Pbo5NjHkzky3dRrMtLlR8N8gyxLPiuN1tSVMUtOV0WQBLXY2zWmaBQhNEtrmR/0N4Ldd HsiBwE4y5eesGSeAmlh+mJqEhMnC3ZxXTAIVFRiZC3RHmQN+HZOCyu7BrGihK1QNE0P7 K+padjhhRpkvMPpvqPQCStB1XeNxoSm/TGIG6TSVN0kGPXRWdI/mmGD6+UxA8pB10X6P IIwXrmM3JsEtr7wCgqcF+g6PEXXtUh5x6fE+lud0/Rnfwo7H0lxOV2iHOkB96dSczheE hZMA==
X-Received: by 10.60.83.177 with SMTP id r17mr58893265oey.53.1405030210124; Thu, 10 Jul 2014 15:10:10 -0700 (PDT)
MIME-Version: 1.0
Sender: hugokraw@gmail.com
Received: by 10.202.192.85 with HTTP; Thu, 10 Jul 2014 15:09:39 -0700 (PDT)
In-Reply-To: <53BE761A.9000709@rwth-aachen.de>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com> <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com> <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com> <CALCETrX5gJdQZATrzOrXtw_M4hc320yUi_HJPuexJORUuUw07g@mail.gmail.com> <53BE761A.9000709@rwth-aachen.de>
From: Hugo Krawczyk <hugo@ee.technion.ac.il>
Date: Thu, 10 Jul 2014 18:09:39 -0400
X-Google-Sender-Auth: pzYy4GczoIfGSdBqoxqdFeHX4pE
Message-ID: <CADi0yUNyU+bMTTPVm-1WXL=TQM4Fd1VFSrPOPnJ-zXXtWosvoQ@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=089e01182a0c92c26504fdde16cb
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/FWo3cD8bjVYODQS8xNwPWxyy6m0
Subject: Re: [Cfrg] TLS PRF security proof?
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: Thu, 10 Jul 2014 22:10:13 -0000

--089e01182a0c92c26504fdde16cb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=E2=80=8BLet me provide some clarifications regarding this discussion.

If I understand correctly, Dan Brown's original posting referred to the TLS
PRF and its use of a feedback mode. Later postings started discussing HKDF
which uses this feedback mode but only as a component of a more general
functionality, namely, key derivation.

The crucial difference between KDFs and PRFs is that the latter are used to
expand a strong cryptographic key into several keys while KDFs assume that
you start with keying material of "sufficient entropy" but not contained in
the form of a short uniform (or pseudo-random) key. Thus, HKDF works in two
stages: a first stage that "extracts" a strong cryptographic key from the
input entropy and a second stage where this key is expanded into more
(cryptographically strong) keys using a PRF.

HKDF is defined in RFC 5869 which contains limited design and use rationale
but which is backed by a detailed article explaining such rationale:
http://eprint.iacr.org/2010/264.

The intention of the paper was to be written so that it contains the formal
treatment a mathematical cryptographer expects but also have intuitive
English discussions for the less formalist reader (actually, most of the
math background for the paper belongs to prior work). So I would encourage
people interested in the discussion in this thread to take a look at the
paper; it should answer some of the questions raised here such as the role
of salt, source independence, etc.).

In particular, the paper contains a short section on the rationale of using
feedback mode for the PRF part and its advantage over counter mode
(answering one of the points raised by Dan Brown). Indeed, I argue that
while counter mode is more natural it is also more vulnerable to future
weaknesses (*). It is also worth noting that HKDF adds an increasing
counter to the feedback iterations that is not part of the TLS definition
and was added to defend against (theoretical) hash cycles. I would
recommend that any revision of TLS that changes its key derivation adopts
HKDF as defined in RFC 5869.

A general comment to address some of the more specific issues raised in
this discussion: The basic design goal of HKDF is to serve as a
multi-purpose design. One that works in all key derivation scenarios (from
whitening the output of a physical RNG to extracting randomness from pools
of entropy to deriving keys in key exchange protocol) and with different
assumptions on the underlying cryptographic hash functions. In particular,
confining the use of idealized assumptions (e.g., random oracle) or even
collision resistance to the minimum necessary. The important point is that
you get the benefits of the design without having to customize it on a
per-use basis.

Hugo

(*) This PRF mode of operation (introduced in the early design of IKEv1,
from which it found its way to TLS via SSLv3) was "inspired" by the early
weaknesses of MD5 (Dobbertin work). I thought at the time that we better
design safegueards to protect against future weaknesses of our beloved
functions. I believe we should stick to that principle.

--089e01182a0c92c26504fdde16cb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:verdana,=
sans-serif;font-size:small;display:inline">=E2=80=8BLet me provide some cla=
rifications regarding this discussion.<br><br>If I understand correctly, Da=
n Brown&#39;s original posting referred to the TLS PRF and its use of a fee=
dback mode. Later postings started discussing HKDF which uses this feedback=
 mode but only as a component of a more general functionality, namely, key =
derivation.<br>

<br>The crucial difference between KDFs and PRFs is that the latter are use=
d to expand a strong cryptographic key into several keys while KDFs assume =
that you start with keying material of &quot;sufficient entropy&quot; but n=
ot contained in the form of a short uniform (or pseudo-random) key. Thus, H=
KDF works in two stages: a first stage that &quot;extracts&quot; a strong c=
ryptographic key from the input entropy and a second stage where this key i=
s expanded into more (cryptographically strong) keys using a PRF.<br>

<br>HKDF is defined in RFC 5869 which contains limited design and use ratio=
nale but which is backed by a detailed article explaining such rationale: <=
a href=3D"http://eprint.iacr.org/2010/264">http://eprint.iacr.org/2010/264<=
/a>.<br>

<br>The intention of the paper was to be written so that it contains the fo=
rmal treatment a mathematical cryptographer expects but also have intuitive=
 English discussions for the less formalist reader (actually, most of the m=
ath background for the paper belongs to prior work). So I would encourage p=
eople interested in the discussion in this thread to take a look at the pap=
er; it should answer some of the questions raised here such as the role of =
salt, source independence, etc.).<br>

<br>In particular, the paper contains a short section on the rationale of u=
sing feedback mode for the PRF part and its advantage over counter mode (an=
swering one of the points raised by Dan Brown). Indeed, I argue that while =
counter mode is more natural it is also more vulnerable to future weaknesse=
s (*). It is also worth noting that HKDF adds an increasing counter to the =
feedback iterations that is not part of the TLS definition and was added to=
 defend against (theoretical) hash cycles. I would recommend that any revis=
ion of TLS that changes its key derivation adopts HKDF as defined in RFC 58=
69.<br>

<br>A general comment to address some of the more specific issues raised in=
 this discussion: The basic design goal of HKDF is to serve as a multi-purp=
ose design. One that works in all key derivation scenarios (from whitening =
the output of a physical RNG to extracting randomness from pools of entropy=
 to deriving keys in key exchange protocol) and with different assumptions =
on the underlying cryptographic hash functions. In particular, confining th=
e use of idealized assumptions (e.g., random oracle) or even collision resi=
stance to the minimum necessary. The important point is that you get the be=
nefits of the design without having to customize it on a per-use basis.<br>

<br>Hugo<br><br>(*) This PRF mode of operation (introduced in the early des=
ign of IKEv1, from which it found its way to TLS via SSLv3) was &quot;inspi=
red&quot; by the early weaknesses of MD5 (Dobbertin work). I thought at the=
 time that we better design safegueards to protect against future weaknesse=
s of our beloved functions. I believe we should stick to that principle. <b=
r>

<br></div></div>

--089e01182a0c92c26504fdde16cb--


From nobody Fri Jul 11 07:48:26 2014
Return-Path: <watsonbladd@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 0D2C61B2B58 for <cfrg@ietfa.amsl.com>; Fri, 11 Jul 2014 07:48:24 -0700 (PDT)
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 L3qONXUZFFcm for <cfrg@ietfa.amsl.com>; Fri, 11 Jul 2014 07:48:18 -0700 (PDT)
Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3755A1B2908 for <cfrg@irtf.org>; Fri, 11 Jul 2014 07:48:14 -0700 (PDT)
Received: by mail-we0-f180.google.com with SMTP id k48so279425wev.11 for <cfrg@irtf.org>; Fri, 11 Jul 2014 07:48:10 -0700 (PDT)
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=TrS3rYMr9FyziYrG9oF8G6HWJHMwrim6gw+uVvSgsEE=; b=H9h5FH284Arfe/Fh4+rA2a8LY2oZiD9dpUXs5nMuMTPzCcwljVJpi88hApKvj0a8w2 keViC66pdtR9FQJSFkc2QDfLBCsg49rVLJvEde+6c8pfBomIzLHTFFhmagrd1tN01CyM gH06XmM+qa5KGKRkijK7HfFe6F3BzFXsSi8nwRF+KJh/AsPMSNEcwKB24H/NsVsV/o4K q3s5BIkzRqzkgSYxKHc0jKVcAD8DJmDJKs5qxyCTP7MTmzPzkXE/rEbEEZGXWZ7lM3+q YEGksaMu1gfNyU2O46OtMf5UNcM6VqMTxgjjEcqJxk79p7fHSDZQc/D3XNhh9g89oxiT LcGQ==
MIME-Version: 1.0
X-Received: by 10.180.198.244 with SMTP id jf20mr5716291wic.40.1405090090047;  Fri, 11 Jul 2014 07:48:10 -0700 (PDT)
Received: by 10.194.21.69 with HTTP; Fri, 11 Jul 2014 07:48:09 -0700 (PDT)
In-Reply-To: <53BE761A.9000709@rwth-aachen.de>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com> <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com> <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com> <CALCETrX5gJdQZATrzOrXtw_M4hc320yUi_HJPuexJORUuUw07g@mail.gmail.com> <53BE761A.9000709@rwth-aachen.de>
Date: Fri, 11 Jul 2014 07:48:09 -0700
Message-ID: <CACsn0ckL1UXivgaMh3JLMzh9oX8RjouUVyTKyx_Oq3iUy-p2bA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Jakob Breier <Jakob.Breier@rwth-aachen.de>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ay4nvBDwKwAmcEszDhj9_czvPfU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Fri, 11 Jul 2014 14:48:24 -0000

On Thu, Jul 10, 2014 at 4:16 AM, Jakob Breier
<Jakob.Breier@rwth-aachen.de> wrote:
> Hi,
>
>
> On 10.07.2014 05:16, Andy Lutomirski wrote:
>>
>> On Wed, Jul 9, 2014 at 8:05 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>>>
>>> On Wed, Jul 9, 2014 at 7:50 PM, Andy Lutomirski <luto@amacapital.net>
>>> wrote:
>>>>
>>>> On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd <watsonbladd@gmail.com>
>>>> wrote:
>>>>
>>>>> Without the salt argument the result is simply H(stuff), which is
>>>>> supposed to be fine for any reasonable choice of H.
>>>>
>>>> If stuff is (party A data | party B data) and party A gets to choose
>>>> all of its data offline, then this isn't so appealing for common
>>>> choices of H.
>>>
>>> Why not? Is there a weakness of SHA256 I'm unaware of? If you need
>>> signatures, you need collision resistant hash functions.
>>> All uses of SHA1 and MD5 need to be ended ASAP: Microsoft has already
>>> begun this process.
>>
>> Suppose that party A is malicious and they can find "party A data 1"
>> and "party A data 2" that collide.  I can imagine protocols in which
>> this violates one of the assumptions of the protocol.
>>
>> If you allow party A to spend an extremely long time precomputing
>> something *before starting the protocol*, I'd like the protocol to
>> remain reasonably secure.  Hashes with unnecessarily small internal
>> state violate this.
>
>
> If internal state size is your problem you can always use Sha512 or Sha3-512
> for an intended collision resistance of 256bit.
>
> But I find your argument much more compelling in the context of
> deteriorating hash functions, like MD5. Of course you wouldn't use MD5 for
> new protocols, nonetheless it provides a nice case study for how the Sha2
> and Sha3 family might break down with future cryptanalysis. Specifically
> while MD5 is no longer collision resistant, it is still preimage resistant
> and target collision resistant / UOWHF (in the sense that the random value
> is prefixed to the message).
>
>
> On 09.07.2014 17:28, Paul Hoffman wrote:
>>
>> On Jul 9, 2014, at 8:18 AM, Andy Lutomirski<luto@amacapital.net>  wrote:
>>
>>
>>> >I can't speak for the TLS WG, but from my own perspective, I have
>>> >three problems with HDKF:
>>> >
>>> >1. HKDF is parametrized by a hash.  What hash should people use?
>>
>> Any one that has no known weakening of preimage resistance. That is:
>> nearly any of them.
>
>
> Which brings me back to RFC 5869 in the use case of PRFs for protocols like
> TLS. If you want to assure your handshake was not tampered with, for example
> in a downgrade attack, and then put the whole handshake into the PRF/KDF (in
> addition to the Diffi-Hellman result or some other secret) you will at least
> need collision resistance of the KDF. HKDF was not analyzed under this
> setting (as far as I can tell from Definition 7 of the accompanying paper)
> and the explanations in the RFC do not help you decide with which hash
> functions it is secure then.

See "Dr. Strangelove, or how I learned to stop worrying and love the ROM".

The extract-hash-expand composition works. but it requires a source of
randomness (possibly public)
independent from  the data exchanged if you want it to work with
assumptions that aren't extremely hard.
Getting such data is impossible: you need to do a subtle calculation
of the gap between independence and
non-independence induced by the source in the security proof. It's a
very tricky thing to get right.

However, the protocol failures we've seen in the past were easily
discoverable in the ROM: they don't rely
on subtleties of hash functions. Furthermore, signatures == collision
independent hash functions. (I know the
<-, but maybe -> is more complicated: it might be just conjectural. At
least with ECDSA this is ==).

Real-world hash functions are stronger than most of our assumptions
about them, and weaker than the assumptions
that we can get away with in practice.

>
> It would be nice to only rely on target collision resistance and preimage
> resistance instead of full collision resistance of the hash function, and
> for right choices of the salt this would be possible for HKDF, too. For
> example if after the handshake an additional random from each of the parties
> is exchanged and the concatenation is used as the salt. I don't see how it
> would be feasible without at least one further message transfer, though, so
> it it's likely not worth the additional costs.

That one isn't independent of the rest of the protocol... Independance
is really hard.

The problem is that in the standard model life is very complicated:
it's not clear to me that just using HKDF is enough.
(In fact it isn't: you need additional analysis). We can't even make
secure protocols in the ROM in the IETF: while it would
be amusing to watch the TLS WG try to make a secure key agreement
protocol, it's probably a waste of time compared to
getting things right in the ROM.

Sincerely,
Watson Ladd
>
> Regards,
> Jakob Breier


From nobody Fri Jul 11 10:57:35 2014
Return-Path: <hugokraw@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 863271B2C82 for <cfrg@ietfa.amsl.com>; Fri, 11 Jul 2014 10:57:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 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, HTML_MESSAGE=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 6nWyaLu5Gp32 for <cfrg@ietfa.amsl.com>; Fri, 11 Jul 2014 10:57:29 -0700 (PDT)
Received: from mail-oa0-x230.google.com (mail-oa0-x230.google.com [IPv6:2607:f8b0:4003:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 886C81B2C81 for <cfrg@irtf.org>; Fri, 11 Jul 2014 10:57:29 -0700 (PDT)
Received: by mail-oa0-f48.google.com with SMTP id m1so1568013oag.35 for <cfrg@irtf.org>; Fri, 11 Jul 2014 10:57:29 -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:from:date:message-id :subject:to:cc:content-type; bh=Da9Vj86WLxBQiR5mmTkil+fkzwEJ1HyuIcIQrwXfgwM=; b=UM18zsiSJWWId9VtHiqMK78pQjwWT9LdwhUiHp6/RKWf7U1G3cllVhcQdrvP8a6y9P fvy537uVKH6u0vvAIj2h9GRpTb6QDm1rjYoqvFxb1PeKZ3KQw/Rz0cnRmE7H9mFaKBEK +MP16QhWVOLstCHCc3m2g3eaJKyIrL2MwJvypCSYmXmC52pLe5Rrp4rqG1zOivNJhcqO fZpmfA2v08a9dX5yAnSA1ZnBRFQzaoRZSBZLuFlheEnIfdSiV8oH1A4I9lxgesnxpUrq 8RLq7BUlPf2NyXymeXVVoiQ7aT2sNTTtx5KnyZ4/pL1tvSek7//fjTt8zeU7O+PEPX2g VX3Q==
X-Received: by 10.60.46.162 with SMTP id w2mr708134oem.26.1405101448993; Fri, 11 Jul 2014 10:57:28 -0700 (PDT)
MIME-Version: 1.0
Sender: hugokraw@gmail.com
Received: by 10.202.192.85 with HTTP; Fri, 11 Jul 2014 10:56:58 -0700 (PDT)
In-Reply-To: <CACsn0ckL1UXivgaMh3JLMzh9oX8RjouUVyTKyx_Oq3iUy-p2bA@mail.gmail.com>
References: <20140709125829.22319253.16811.16396@certicom.com> <CALCETrVG9Ltf=9x64mOScorLCUPZNtr1XF6rkfpgzT2GDiwi+g@mail.gmail.com> <6A60ED12-70B4-4CBF-B31E-3D5DDA7DC7EA@vpnc.org> <CALCETrXMZZVbF3tzZm0PfuKQ0h8mUoj7XcWgcJMNMgTuEp1+dg@mail.gmail.com> <CALCETrW7JUbJTJAY3UWf6EpXWc5ij+xy3fzWXE8+-xtpsLG7CQ@mail.gmail.com> <CACsn0c=9PuGD8p0hM6LUJKFMN_eP=UtGQN38y6DW9rsQsy1PLQ@mail.gmail.com> <CALCETrWo+gvVkL8P4Lw-ZtuTfu=L_q5+h9zcdpPyZvB5-FE0vg@mail.gmail.com> <CACsn0cmL6DcbynZkDOZST7-Voq+n217awx737dv7oy5VYWFDyg@mail.gmail.com> <CALCETrX5gJdQZATrzOrXtw_M4hc320yUi_HJPuexJORUuUw07g@mail.gmail.com> <53BE761A.9000709@rwth-aachen.de> <CACsn0ckL1UXivgaMh3JLMzh9oX8RjouUVyTKyx_Oq3iUy-p2bA@mail.gmail.com>
From: Hugo Krawczyk <hugo@ee.technion.ac.il>
Date: Fri, 11 Jul 2014 13:56:58 -0400
X-Google-Sender-Auth: LKiNOLoAkdLyT4dgXRbnv8m_5NY
Message-ID: <CADi0yUNgwz9nw8-HDthsJm4Phz8Ukeui9T+3q0ydAnN2Nneu1A@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary=089e013d0960bd9f6e04fdeeac49
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ntEkZZYqMI2O2djWGDmrJoH73t8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] TLS PRF security proof?
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: Fri, 11 Jul 2014 17:57:32 -0000

--089e013d0960bd9f6e04fdeeac49
Content-Type: text/plain; charset=UTF-8

Having a source of independent public randomness (a.k.a. salt) it less rare
than you seem to believe and it has benefits even if you use a beloved
random oracle (see the Photuris real-world example in page 28 of
http://eprint.iacr.org/2010/264).

Some examples of applications where salt is readily available:

- Any KE with explicit authentication (via signatures or public key
encryption like IKE) can use as salt the nonces exchanged between the
parties  (and chosen independently of other randomness used in the
protocol). It requires explicit authentication since you need to
authenticate these nonces to ensure they are not chosen by an attacker.
Since nonces are part of most KE protocols you get the salt for free.

- A DH-based public-key encryption scheme (i.e ElGamal) can publish a salt
string (certified together with the public key) for extracting a strong
encryption key from DH values.

- A physical RNG can use fixed salt to whiten possible biases of the
generator.

On the subject of trusting analysis based on random oracle. A protocol with
a formal proof in the random oracle model is much better than one without a
proof at all. And one with a proof in the standard (non-RO) model is better
than one in the ROM. I would not suggest, in general, paying a significant
performance cost to avoid ROs but if you have two schemes with comparable
performance one with RO and one without, I would favor the latter.

The case of HKDF is even simpler: you don't need to choose between two
schemes. The *same* scheme supports non-ROM cases when possible, supports
salt when available, and supports ROM (with and without salt) when
necessary.





On Fri, Jul 11, 2014 at 10:48 AM, Watson Ladd <watsonbladd@gmail.com> wrote:

> On Thu, Jul 10, 2014 at 4:16 AM, Jakob Breier
> <Jakob.Breier@rwth-aachen.de> wrote:
> > Hi,
> >
> >
> > On 10.07.2014 05:16, Andy Lutomirski wrote:
> >>
> >> On Wed, Jul 9, 2014 at 8:05 PM, Watson Ladd <watsonbladd@gmail.com>
> wrote:
> >>>
> >>> On Wed, Jul 9, 2014 at 7:50 PM, Andy Lutomirski <luto@amacapital.net>
> >>> wrote:
> >>>>
> >>>> On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd <watsonbladd@gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Without the salt argument the result is simply H(stuff), which is
> >>>>> supposed to be fine for any reasonable choice of H.
> >>>>
> >>>> If stuff is (party A data | party B data) and party A gets to choose
> >>>> all of its data offline, then this isn't so appealing for common
> >>>> choices of H.
> >>>
> >>> Why not? Is there a weakness of SHA256 I'm unaware of? If you need
> >>> signatures, you need collision resistant hash functions.
> >>> All uses of SHA1 and MD5 need to be ended ASAP: Microsoft has already
> >>> begun this process.
> >>
> >> Suppose that party A is malicious and they can find "party A data 1"
> >> and "party A data 2" that collide.  I can imagine protocols in which
> >> this violates one of the assumptions of the protocol.
> >>
> >> If you allow party A to spend an extremely long time precomputing
> >> something *before starting the protocol*, I'd like the protocol to
> >> remain reasonably secure.  Hashes with unnecessarily small internal
> >> state violate this.
> >
> >
> > If internal state size is your problem you can always use Sha512 or
> Sha3-512
> > for an intended collision resistance of 256bit.
> >
> > But I find your argument much more compelling in the context of
> > deteriorating hash functions, like MD5. Of course you wouldn't use MD5
> for
> > new protocols, nonetheless it provides a nice case study for how the Sha2
> > and Sha3 family might break down with future cryptanalysis. Specifically
> > while MD5 is no longer collision resistant, it is still preimage
> resistant
> > and target collision resistant / UOWHF (in the sense that the random
> value
> > is prefixed to the message).
> >
> >
> > On 09.07.2014 17:28, Paul Hoffman wrote:
> >>
> >> On Jul 9, 2014, at 8:18 AM, Andy Lutomirski<luto@amacapital.net>
>  wrote:
> >>
> >>
> >>> >I can't speak for the TLS WG, but from my own perspective, I have
> >>> >three problems with HDKF:
> >>> >
> >>> >1. HKDF is parametrized by a hash.  What hash should people use?
> >>
> >> Any one that has no known weakening of preimage resistance. That is:
> >> nearly any of them.
> >
> >
> > Which brings me back to RFC 5869 in the use case of PRFs for protocols
> like
> > TLS. If you want to assure your handshake was not tampered with, for
> example
> > in a downgrade attack, and then put the whole handshake into the PRF/KDF
> (in
> > addition to the Diffi-Hellman result or some other secret) you will at
> least
> > need collision resistance of the KDF. HKDF was not analyzed under this
> > setting (as far as I can tell from Definition 7 of the accompanying
> paper)
> > and the explanations in the RFC do not help you decide with which hash
> > functions it is secure then.
>
> See "Dr. Strangelove, or how I learned to stop worrying and love the ROM".
>
> The extract-hash-expand composition works. but it requires a source of
> randomness (possibly public)
> independent from  the data exchanged if you want it to work with
> assumptions that aren't extremely hard.
> Getting such data is impossible: you need to do a subtle calculation
> of the gap between independence and
> non-independence induced by the source in the security proof. It's a
> very tricky thing to get right.
>
> However, the protocol failures we've seen in the past were easily
> discoverable in the ROM: they don't rely
> on subtleties of hash functions. Furthermore, signatures == collision
> independent hash functions. (I know the
> <-, but maybe -> is more complicated: it might be just conjectural. At
> least with ECDSA this is ==).
>
> Real-world hash functions are stronger than most of our assumptions
> about them, and weaker than the assumptions
> that we can get away with in practice.
>
> >
> > It would be nice to only rely on target collision resistance and preimage
> > resistance instead of full collision resistance of the hash function, and
> > for right choices of the salt this would be possible for HKDF, too. For
> > example if after the handshake an additional random from each of the
> parties
> > is exchanged and the concatenation is used as the salt. I don't see how
> it
> > would be feasible without at least one further message transfer, though,
> so
> > it it's likely not worth the additional costs.
>
> That one isn't independent of the rest of the protocol... Independance
> is really hard.
>
> The problem is that in the standard model life is very complicated:
> it's not clear to me that just using HKDF is enough.
> (In fact it isn't: you need additional analysis). We can't even make
> secure protocols in the ROM in the IETF: while it would
> be amusing to watch the TLS WG try to make a secure key agreement
> protocol, it's probably a waste of time compared to
> getting things right in the ROM.
>
> Sincerely,
> Watson Ladd
> >
> > Regards,
> > Jakob Breier
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--089e013d0960bd9f6e04fdeeac49
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:verdana,=
sans-serif;font-size:small">Having a source of independent public randomnes=
s (a.k.a. salt) it less rare than you seem to believe and it has benefits e=
ven if you use a beloved random oracle (see the Photuris real-world example=
 in page 28 of <a href=3D"http://eprint.iacr.org/2010/264" target=3D"_blank=
">http://eprint.iacr.org/2010/264</a>).<br>

<br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-se=
rif;font-size:small">Some examples of applications where salt is readily av=
ailable:<br><br>- Any KE with explicit authentication (via signatures or pu=
blic key encryption like IKE) can use as salt the nonces exchanged between =
the parties=C2=A0 (and chosen independently of other randomness used in the=
 protocol). It requires explicit authentication since you need to authentic=
ate these nonces to ensure they are not chosen by an attacker. Since nonces=
 are part of most KE protocols you get the salt for free.<br>

<br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-se=
rif;font-size:small">- A DH-based public-key encryption scheme (i.e ElGamal=
) can publish a salt string (certified together with the public key) for ex=
tracting a strong encryption key from DH values.<br>

<br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-se=
rif;font-size:small">- A physical RNG can use fixed salt to whiten possible=
 biases of the generator.<br><br></div><div class=3D"gmail_default" style=
=3D"font-family:verdana,sans-serif;font-size:small">

On the subject of trusting analysis based on random oracle. A protocol with=
 a formal proof in the random oracle model is much better than one without =
a proof at all. And one with a proof in the standard (non-RO) model is bett=
er than one in the ROM. I would not suggest, in general, paying a significa=
nt performance cost to avoid ROs but if you have two schemes with comparabl=
e performance one with RO and one without, I would favor the latter. <br>

<br>The case of HKDF is even simpler: you don&#39;t need to choose between =
two schemes. The *same* scheme supports non-ROM cases when possible, suppor=
ts salt when available, and supports ROM (with and without salt) when neces=
sary.<br>

<br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-se=
rif;font-size:small"><br><br></div></div><div class=3D"gmail_extra"><br><br=
><div class=3D"gmail_quote">On Fri, Jul 11, 2014 at 10:48 AM, Watson Ladd <=
span dir=3D"ltr">&lt;<a href=3D"mailto:watsonbladd@gmail.com" target=3D"_bl=
ank">watsonbladd@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5">On T=
hu, Jul 10, 2014 at 4:16 AM, Jakob Breier<br>
&lt;<a href=3D"mailto:Jakob.Breier@rwth-aachen.de">Jakob.Breier@rwth-aachen=
.de</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt; On 10.07.2014 05:16, Andy Lutomirski wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jul 9, 2014 at 8:05 PM, Watson Ladd &lt;<a href=3D"mailto:=
watsonbladd@gmail.com">watsonbladd@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Jul 9, 2014 at 7:50 PM, Andy Lutomirski &lt;<a href=3D=
"mailto:luto@amacapital.net">luto@amacapital.net</a>&gt;<br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Jul 9, 2014 at 6:52 PM, Watson Ladd &lt;<a href=3D=
"mailto:watsonbladd@gmail.com">watsonbladd@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Without the salt argument the result is simply H(stuff=
), which is<br>
&gt;&gt;&gt;&gt;&gt; supposed to be fine for any reasonable choice of H.<br=
>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; If stuff is (party A data | party B data) and party A gets=
 to choose<br>
&gt;&gt;&gt;&gt; all of its data offline, then this isn&#39;t so appealing =
for common<br>
&gt;&gt;&gt;&gt; choices of H.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Why not? Is there a weakness of SHA256 I&#39;m unaware of? If =
you need<br>
&gt;&gt;&gt; signatures, you need collision resistant hash functions.<br>
&gt;&gt;&gt; All uses of SHA1 and MD5 need to be ended ASAP: Microsoft has =
already<br>
&gt;&gt;&gt; begun this process.<br>
&gt;&gt;<br>
&gt;&gt; Suppose that party A is malicious and they can find &quot;party A =
data 1&quot;<br>
&gt;&gt; and &quot;party A data 2&quot; that collide. =C2=A0I can imagine p=
rotocols in which<br>
&gt;&gt; this violates one of the assumptions of the protocol.<br>
&gt;&gt;<br>
&gt;&gt; If you allow party A to spend an extremely long time precomputing<=
br>
&gt;&gt; something *before starting the protocol*, I&#39;d like the protoco=
l to<br>
&gt;&gt; remain reasonably secure. =C2=A0Hashes with unnecessarily small in=
ternal<br>
&gt;&gt; state violate this.<br>
&gt;<br>
&gt;<br>
&gt; If internal state size is your problem you can always use Sha512 or Sh=
a3-512<br>
&gt; for an intended collision resistance of 256bit.<br>
&gt;<br>
&gt; But I find your argument much more compelling in the context of<br>
&gt; deteriorating hash functions, like MD5. Of course you wouldn&#39;t use=
 MD5 for<br>
&gt; new protocols, nonetheless it provides a nice case study for how the S=
ha2<br>
&gt; and Sha3 family might break down with future cryptanalysis. Specifical=
ly<br>
&gt; while MD5 is no longer collision resistant, it is still preimage resis=
tant<br>
&gt; and target collision resistant / UOWHF (in the sense that the random v=
alue<br>
&gt; is prefixed to the message).<br>
&gt;<br>
&gt;<br>
&gt; On 09.07.2014 17:28, Paul Hoffman wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Jul 9, 2014, at 8:18 AM, Andy Lutomirski&lt;<a href=3D"mailto:l=
uto@amacapital.net">luto@amacapital.net</a>&gt; =C2=A0wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; &gt;I can&#39;t speak for the TLS WG, but from my own perspect=
ive, I have<br>
&gt;&gt;&gt; &gt;three problems with HDKF:<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;1. HKDF is parametrized by a hash. =C2=A0What hash should =
people use?<br>
&gt;&gt;<br>
&gt;&gt; Any one that has no known weakening of preimage resistance. That i=
s:<br>
&gt;&gt; nearly any of them.<br>
&gt;<br>
&gt;<br>
&gt; Which brings me back to RFC 5869 in the use case of PRFs for protocols=
 like<br>
&gt; TLS. If you want to assure your handshake was not tampered with, for e=
xample<br>
&gt; in a downgrade attack, and then put the whole handshake into the PRF/K=
DF (in<br>
&gt; addition to the Diffi-Hellman result or some other secret) you will at=
 least<br>
&gt; need collision resistance of the KDF. HKDF was not analyzed under this=
<br>
&gt; setting (as far as I can tell from Definition 7 of the accompanying pa=
per)<br>
&gt; and the explanations in the RFC do not help you decide with which hash=
<br>
&gt; functions it is secure then.<br>
<br>
</div></div>See &quot;Dr. Strangelove, or how I learned to stop worrying an=
d love the ROM&quot;.<br>
<br>
The extract-hash-expand composition works. but it requires a source of<br>
randomness (possibly public)<br>
independent from =C2=A0the data exchanged if you want it to work with<br>
assumptions that aren&#39;t extremely hard.<br>
Getting such data is impossible: you need to do a subtle calculation<br>
of the gap between independence and<br>
non-independence induced by the source in the security proof. It&#39;s a<br=
>
very tricky thing to get right.<br>
<br>
However, the protocol failures we&#39;ve seen in the past were easily<br>
discoverable in the ROM: they don&#39;t rely<br>
on subtleties of hash functions. Furthermore, signatures =3D=3D collision<b=
r>
independent hash functions. (I know the<br>
&lt;-, but maybe -&gt; is more complicated: it might be just conjectural. A=
t<br>
least with ECDSA this is =3D=3D).<br>
<br>
Real-world hash functions are stronger than most of our assumptions<br>
about them, and weaker than the assumptions<br>
that we can get away with in practice.<br>
<div class=3D""><br>
&gt;<br>
&gt; It would be nice to only rely on target collision resistance and preim=
age<br>
&gt; resistance instead of full collision resistance of the hash function, =
and<br>
&gt; for right choices of the salt this would be possible for HKDF, too. Fo=
r<br>
&gt; example if after the handshake an additional random from each of the p=
arties<br>
&gt; is exchanged and the concatenation is used as the salt. I don&#39;t se=
e how it<br>
&gt; would be feasible without at least one further message transfer, thoug=
h, so<br>
&gt; it it&#39;s likely not worth the additional costs.<br>
<br>
</div>That one isn&#39;t independent of the rest of the protocol... Indepen=
dance<br>
is really hard.<br>
<br>
The problem is that in the standard model life is very complicated:<br>
it&#39;s not clear to me that just using HKDF is enough.<br>
(In fact it isn&#39;t: you need additional analysis). We can&#39;t even mak=
e<br>
secure protocols in the ROM in the IETF: while it would<br>
be amusing to watch the TLS WG try to make a secure key agreement<br>
protocol, it&#39;s probably a waste of time compared to<br>
getting things right in the ROM.<br>
<br>
Sincerely,<br>
Watson Ladd<br>
<div class=3D"HOEnZb"><div class=3D"h5">&gt;<br>
&gt; Regards,<br>
&gt; Jakob Breier<br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div></div></blockquote></div><br></div>

--089e013d0960bd9f6e04fdeeac49--


From nobody Fri Jul 11 18:49:36 2014
Return-Path: <cloos@jhcloos.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 2D13E1B2A02 for <cfrg@ietfa.amsl.com>; Fri, 11 Jul 2014 18:49:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.652
X-Spam-Level: 
X-Spam-Status: No, score=-2.652 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001] autolearn=unavailable
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 Ilp02h6ZI--A for <cfrg@ietfa.amsl.com>; Fri, 11 Jul 2014 18:49:30 -0700 (PDT)
Received: from ore.jhcloos.com (ore.jhcloos.com [198.147.23.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2B3351A00CD for <cfrg@irtf.org>; Fri, 11 Jul 2014 18:49:30 -0700 (PDT)
Received: by ore.jhcloos.com (Postfix, from userid 10) id 357F91DFE6; Sat, 12 Jul 2014 01:49:29 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore14; t=1405129769; bh=0JpBaLK3D94w96PEijaH9cfY66bLwl31237woxDC5Jo=; h=From:To:Subject:Date:From; b=ph/21qgsKXqolNT4MZHJKE0y5xnmBN1yd2zYbS0JgVt/TPFGH7G0K1TlP1iJMawiZ 4uwMF8JdKANj732Z67i1CJCZt2eibaxr9Oaz0LNkSrUg/nRIMnpMN2TcJ+6mvUOxNX TFouKdJ1Q1SYNnZe8CCbS0ua1atKuW9BdyT3VT4c=
Received: by carbon.jhcloos.org (Postfix, from userid 500) id 554BB6002D; Sat, 12 Jul 2014 01:36:53 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: cfrg@irtf.org, tls@ietf.org
User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC
Copyright: Copyright 2014 James Cloos
OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Fri, 11 Jul 2014 21:36:53 -0400
Message-ID: <m3pphbwe6i.fsf@carbon.jhcloos.org>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain
X-Hashcash: 1:30:140712:cfrg@irtf.org::ZqQLepdbwgqFozmb:000yJE9v
X-Hashcash: 1:30:140712:tls@ietf.org::ICdn1RQwSVqZOZTV:0000aY1Zg
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/CxAgiJqnW2kVMtV-q3_7bAt2XKc
Subject: [Cfrg] TLV vs Compression
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: Sat, 12 Jul 2014 01:49:32 -0000

My understanding is that tls with compression is vulnerable due to
allowing unauthenticated initiators, which permits an oracle attack.

If so, does it follow that a tls-like protocol, which enables
compression only when symetric key negotiation uses temporal secrets
(ie, the pfs concept), when mutual authentication is done, and only for
application-level data, would be safe from compression-specific attacks?

Or posed differently, if an application knows that the tls socket uses
pfs and is mutually authenticated, is it ever safe for *it* to compress
the data it sends over said socket?

And for sockets which are only half-authenticated, can it be secure for
the side which authenticated its peer to compress its own outgoing data?

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


From nobody Mon Jul 14 05:18:11 2014
Return-Path: <alexey.melnikov@isode.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 5048C1A0395 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 05:18:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.752
X-Spam-Level: 
X-Spam-Status: No, score=-0.752 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.651] 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 2Ge2tMnvdD_a for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 05:18:07 -0700 (PDT)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 471A01A03C5 for <cfrg@irtf.org>; Mon, 14 Jul 2014 05:18:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1405340285; d=isode.com; s=selector; i=@isode.com; bh=pXgLdwA9n4FilxEuZBF5HYNe9a/akfQKMb7PFUlg/K8=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=om1KQabsjaVw3t9mqtYjNeVqAwGZKt22+f2cV1VclVPGm0T7ZTInJgWjFR9u7/BoGNmB4g okNi2EULnBlFEzgti5Xwh9whriUt+JJ3Qkn6r0540sjuhxZANHD7RvVfQrVjBBnss6skig TA0dVyzF0EUZQOvJeNI3xYy0sfXHb30=;
Received: from [172.20.1.47] ((unknown) [217.34.220.158])  by waldorf.isode.com (submission channel) via TCP with ESMTPA  id <U8PKfAAvQ1Xt@waldorf.isode.com>; Mon, 14 Jul 2014 13:18:05 +0100
X-SMTP-Protocol-Errors: NORDNS
Message-ID: <53C3CA7D.9040203@isode.com>
Date: Mon, 14 Jul 2014 13:18:05 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Fql3DpdMhgT0WmO3D1ztqicP4eE
Subject: [Cfrg] Draft Agenda for Toronto
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: Mon, 14 Jul 2014 12:18:09 -0000

Hi,
The first draft of the agenda got posted to the IETF website. For your 
convenience it is listed below:

------------
IETF 90, Toronto
Wednesday, July 23, 2014


13:00 - Chairs' update


13:05 - Yoav Nir/Adam Langley, "ChaCha20 and Poly1305 for IETF 
protocols" (15 mins)
         draft-nir-cfrg-chacha20-poly1305-06.txt

13:20 - David McGrew/Michael Curcio, "Hash-Based Signatures" (10 mins)
         draft-mcgrew-hash-sigs-02.txt


ECC
===

13:30 - D. J. Bernstein/Tanja Lange, "ECC protocols and standards" (15 mins)

13:45 - Brian LaMacchia/Microsoft Research, "NUMS curves" (20 mins)
         draft-black-numscurves-01.txt

14:05 - D. J. Bernstein/Tanja Lange, "Curve25519 and Curve41417" (15 mins)

14:20 - Discussion about ECC and recommendations to IETF (20 mins)



Other proposed work
===================

14:40 - Rifaat Shekh-Yusef, "Challenge-Response mechanism" (10 mins)

14:50 - AOB (10 mins)

15:00 - Meeting ends
-------

If you have any comments or corrections, please let the chairs know.

Best Regards,
Alexey


From nobody Mon Jul 14 05:30:40 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 975C61A03C8 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 05:30:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 BQzE_wmPQz74 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 05:30:37 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0076.outbound.protection.outlook.com [213.199.154.76]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D2291A03C7 for <cfrg@irtf.org>; Mon, 14 Jul 2014 05:30:36 -0700 (PDT)
Received: from DBXPR03MB384.eurprd03.prod.outlook.com (10.141.10.20) by DBXPR03MB064.eurprd03.prod.outlook.com (10.242.145.153) with Microsoft SMTP Server (TLS) id 15.0.985.8; Mon, 14 Jul 2014 12:30:34 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB384.eurprd03.prod.outlook.com (10.141.10.20) with Microsoft SMTP Server (TLS) id 15.0.985.8; Mon, 14 Jul 2014 12:30:34 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0985.008; Mon, 14 Jul 2014 12:30:34 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Draft Agenda for Toronto
Thread-Index: AQHPn121pjU4ao4IVkSKlP5G8Z1VopufkMuA
Date: Mon, 14 Jul 2014 12:30:33 +0000
Message-ID: <CFE98BE8.26AC0%kenny.paterson@rhul.ac.uk>
References: <53C3CA7D.9040203@isode.com>
In-Reply-To: <53C3CA7D.9040203@isode.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.2.140509
x-originating-ip: [78.146.58.177]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02723F29C4
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(51704005)(479174003)(24454002)(199002)(189002)(105586002)(107046002)(76482001)(19580395003)(74482001)(50986999)(85306003)(107886001)(81542001)(21056001)(95666004)(20776003)(64706001)(36756003)(76176999)(99396002)(81342001)(80022001)(86362001)(83506001)(83322001)(85852003)(92726001)(79102001)(19580405001)(31966008)(4396001)(77982001)(19273905006)(74502001)(46102001)(83072002)(87936001)(74662001)(101416001)(106116001)(66066001)(15202345003)(92566001)(2656002)(106356001)(15975445006)(54356999)(563064011); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB384; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <C75B918364F6C941B00783D90E2B756F@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pZIrBtNBOnv5TqZ1ZcxrW2gd5F0
Subject: Re: [Cfrg] Draft Agenda for Toronto
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: Mon, 14 Jul 2014 12:30:39 -0000

Hi

Looks great, thanks.

Kenny=20

On 14/07/2014 13:18, "Alexey Melnikov" <alexey.melnikov@isode.com> wrote:

>Hi,
>The first draft of the agenda got posted to the IETF website. For your
>convenience it is listed below:
>
>------------
>IETF 90, Toronto
>Wednesday, July 23, 2014
>
>
>13:00 - Chairs' update
>
>
>13:05 - Yoav Nir/Adam Langley, "ChaCha20 and Poly1305 for IETF
>protocols" (15 mins)
>         draft-nir-cfrg-chacha20-poly1305-06.txt
>
>13:20 - David McGrew/Michael Curcio, "Hash-Based Signatures" (10 mins)
>         draft-mcgrew-hash-sigs-02.txt
>
>
>ECC
>=3D=3D=3D
>
>13:30 - D. J. Bernstein/Tanja Lange, "ECC protocols and standards" (15
>mins)
>
>13:45 - Brian LaMacchia/Microsoft Research, "NUMS curves" (20 mins)
>         draft-black-numscurves-01.txt
>
>14:05 - D. J. Bernstein/Tanja Lange, "Curve25519 and Curve41417" (15 mins)
>
>14:20 - Discussion about ECC and recommendations to IETF (20 mins)
>
>
>
>Other proposed work
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>14:40 - Rifaat Shekh-Yusef, "Challenge-Response mechanism" (10 mins)
>
>14:50 - AOB (10 mins)
>
>15:00 - Meeting ends
>-------
>
>If you have any comments or corrections, please let the chairs know.
>
>Best Regards,
>Alexey
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Mon Jul 14 07:08:58 2014
Return-Path: <kmigoe@nsa.gov>
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 89CAF1A0492 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 07:08:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.551
X-Spam-Level: 
X-Spam-Status: No, score=-7.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651] 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 yJL8M2287gIQ for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 07:08:50 -0700 (PDT)
Received: from emvm-gh1-uea08.nsa.gov (emvm-gh1-uea08.nsa.gov [63.239.67.9]) by ietfa.amsl.com (Postfix) with ESMTP id CB4C81A0496 for <cfrg@irtf.org>; Mon, 14 Jul 2014 07:08:49 -0700 (PDT)
X-TM-IMSS-Message-ID: <7591a665000da46b@nsa.gov>
Received: from MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) by nsa.gov ([63.239.67.9]) with ESMTP (TREND IMSS SMTP Service 7.1; TLSv1/SSLv3 AES128-SHA (128/128)) id 7591a665000da46b ; Mon, 14 Jul 2014 10:08:04 -0400
Received: from MSMR-GH1-UEA03.corp.nsa.gov ([10.215.224.3]) by MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) with mapi id 14.02.0342.003; Mon, 14 Jul 2014 10:08:47 -0400
From: "Igoe, Kevin M." <kmigoe@nsa.gov>
To: "'Paterson, Kenny'" <Kenny.Paterson@rhul.ac.uk>, Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Draft Agenda for Toronto
Thread-Index: AQHPn12y8Ohcr+USaUiOzMfHNSmnSJufwyKA///XuzA=
Date: Mon, 14 Jul 2014 14:08:46 +0000
Message-ID: <3C4AAD4B5304AB44A6BA85173B4675CABAA9FE2F@MSMR-GH1-UEA03.corp.nsa.gov>
References: <53C3CA7D.9040203@isode.com> <CFE98BE8.26AC0%kenny.paterson@rhul.ac.uk>
In-Reply-To: <CFE98BE8.26AC0%kenny.paterson@rhul.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.215.225.46]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/LE7u9q0SMYbm5spOreSs_yrGHpQ
Subject: Re: [Cfrg] Draft Agenda for Toronto
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: Mon, 14 Jul 2014 14:08:54 -0000

Have we decided what to do with DragonFly?  There have already been
presentations on this subject, so a talk is unnecessary, but do we
want to explicitly put it on the agenda as a discussion item?

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Paterson, Kenny
> Sent: Monday, July 14, 2014 8:31 AM
> To: Alexey Melnikov; cfrg@irtf.org
> Subject: Re: [Cfrg] Draft Agenda for Toronto
>=20
> Hi
>=20
> Looks great, thanks.
>=20
> Kenny
>=20
> On 14/07/2014 13:18, "Alexey Melnikov" <alexey.melnikov@isode.com>
> wrote:
>=20
> >Hi,
> >The first draft of the agenda got posted to the IETF website. For your
> >convenience it is listed below:
> >
> >------------
> >IETF 90, Toronto
> >Wednesday, July 23, 2014
> >
> >
> >13:00 - Chairs' update
> >
> >
> >13:05 - Yoav Nir/Adam Langley, "ChaCha20 and Poly1305 for IETF
> >protocols" (15 mins)
> >         draft-nir-cfrg-chacha20-poly1305-06.txt
> >
> >13:20 - David McGrew/Michael Curcio, "Hash-Based Signatures" (10 mins)
> >         draft-mcgrew-hash-sigs-02.txt
> >
> >
> >ECC
> >=3D=3D=3D
> >
> >13:30 - D. J. Bernstein/Tanja Lange, "ECC protocols and standards" (15
> >mins)
> >
> >13:45 - Brian LaMacchia/Microsoft Research, "NUMS curves" (20 mins)
> >         draft-black-numscurves-01.txt
> >
> >14:05 - D. J. Bernstein/Tanja Lange, "Curve25519 and Curve41417" (15
> >mins)
> >
> >14:20 - Discussion about ECC and recommendations to IETF (20 mins)
> >
> >
> >
> >Other proposed work
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >
> >14:40 - Rifaat Shekh-Yusef, "Challenge-Response mechanism" (10 mins)
> >
> >14:50 - AOB (10 mins)
> >
> >15:00 - Meeting ends
> >-------
> >
> >If you have any comments or corrections, please let the chairs know.
> >
> >Best Regards,
> >Alexey
> >
> >_______________________________________________
> >Cfrg mailing list
> >Cfrg@irtf.org
> >http://www.irtf.org/mailman/listinfo/cfrg
> >
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jul 14 07:11:45 2014
Return-Path: <paul.hoffman@vpnc.org>
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 87B411A0495 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 07:11:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] 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 mch5Up4HNhwp for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 07:11:41 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9FE21A0492 for <cfrg@irtf.org>; Mon, 14 Jul 2014 07:11:41 -0700 (PDT)
Received: from [10.20.30.90] (50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60]) (authenticated bits=0) by hoffman.proper.com (8.14.8/8.14.7) with ESMTP id s6EEBdPT069636 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for <cfrg@irtf.org>; Mon, 14 Jul 2014 07:11:40 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host 50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <53C3CA7D.9040203@isode.com>
Date: Mon, 14 Jul 2014 07:11:38 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <F3AD1B21-52F6-4FE2-9A33-71F3C925606B@vpnc.org>
References: <53C3CA7D.9040203@isode.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_PcA2H14QUBalk96ds4IrmyHXKU
Subject: Re: [Cfrg] Draft Agenda for Toronto
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: Mon, 14 Jul 2014 14:11:42 -0000

On Jul 14, 2014, at 5:18 AM, Alexey Melnikov <alexey.melnikov@isode.com> =
wrote:

> ECC
> =3D=3D=3D
>=20
> 13:30 - D. J. Bernstein/Tanja Lange, "ECC protocols and standards" (15 =
mins)
>=20
> 13:45 - Brian LaMacchia/Microsoft Research, "NUMS curves" (20 mins)
>        draft-black-numscurves-01.txt
>=20
> 14:05 - D. J. Bernstein/Tanja Lange, "Curve25519 and Curve41417" (15 =
mins)
>=20
> 14:20 - Discussion about ECC and recommendations to IETF (20 mins)

I hope that some of this discussion is also about Ed25519 and other EC =
signing algorithms. They have been discussed far less than the ECDH =
algorithms.

--Paul Hoffman=


From nobody Mon Jul 14 07:21:26 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 0DFE91A05CB for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 07:21:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 312RKDAJnGvH for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 07:21:20 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0080.outbound.protection.outlook.com [213.199.154.80]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E6B621A04A1 for <cfrg@irtf.org>; Mon, 14 Jul 2014 07:21:19 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) with Microsoft SMTP Server (TLS) id 15.0.985.8; Mon, 14 Jul 2014 14:21:17 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0985.008; Mon, 14 Jul 2014 14:21:17 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Thread-Topic: [Cfrg] Draft Agenda for Toronto
Thread-Index: AQHPn121pjU4ao4IVkSKlP5G8Z1VopufnFIAgAACsp8=
Date: Mon, 14 Jul 2014 14:21:17 +0000
Message-ID: <23516D2E-7E54-4C79-85FC-CBDB0B45B5B9@rhul.ac.uk>
References: <53C3CA7D.9040203@isode.com>, <F3AD1B21-52F6-4FE2-9A33-71F3C925606B@vpnc.org>
In-Reply-To: <F3AD1B21-52F6-4FE2-9A33-71F3C925606B@vpnc.org>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [82.132.234.132]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02723F29C4
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(24454002)(377454003)(189002)(199002)(51704005)(107046002)(15975445006)(106356001)(19273905006)(79102001)(77982001)(36756003)(19580395003)(74502001)(46102001)(76482001)(21056001)(74662001)(19580405001)(85852003)(110136001)(33656002)(74482001)(86362001)(66066001)(83322001)(106116001)(82746002)(87936001)(101416001)(81542001)(83716003)(20776003)(92566001)(2656002)(105586002)(4396001)(64706001)(81342001)(92726001)(50986999)(95666004)(99396002)(54356999)(76176999)(15202345003)(80022001)(85306003)(83072002)(31966008)(104396001)(563064011); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB383; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fdYG5vYzvTuiagGGZ6Wd-Qj1WKo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Draft Agenda for Toronto
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: Mon, 14 Jul 2014 14:21:22 -0000

Paul

Yes, that will certainly be in scope.=20

Cheers,

Kenny


On 14 Jul 2014, at 15:11, "Paul Hoffman" <paul.hoffman@vpnc.org> wrote:

> On Jul 14, 2014, at 5:18 AM, Alexey Melnikov <alexey.melnikov@isode.com> =
wrote:
>=20
>> ECC
>> =3D=3D=3D
>>=20
>> 13:30 - D. J. Bernstein/Tanja Lange, "ECC protocols and standards" (15 m=
ins)
>>=20
>> 13:45 - Brian LaMacchia/Microsoft Research, "NUMS curves" (20 mins)
>>       draft-black-numscurves-01.txt
>>=20
>> 14:05 - D. J. Bernstein/Tanja Lange, "Curve25519 and Curve41417" (15 min=
s)
>>=20
>> 14:20 - Discussion about ECC and recommendations to IETF (20 mins)
>=20
> I hope that some of this discussion is also about Ed25519 and other EC si=
gning algorithms. They have been discussed far less than the ECDH algorithm=
s.
>=20
> --Paul Hoffman
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>=20


From nobody Mon Jul 14 10:50:06 2014
Return-Path: <alexey.melnikov@isode.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 4532F1B278A for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 10:50:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.651
X-Spam-Level: 
X-Spam-Status: No, score=-2.651 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.651] 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 gH0fjj2QAw5e for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 10:49:59 -0700 (PDT)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 9EDD21AD6B1 for <cfrg@irtf.org>; Mon, 14 Jul 2014 10:49:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1405360197; d=isode.com; s=selector; i=@isode.com; bh=RsCWjtCRTqGdhfGmGQJyCkzCU995Pcmi0FiowGp9/Pw=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=nbRr3Uj95iNy3KVSvRowox7sz5bdanJ9K2G4Sp6hISu1naW/Mv8AZATdHPrrsTif0HReu6 HtzXQfv9eEJyK7BfJ42C34wqk9AGFhUGVPmZpach21GqZNtShmn11f0wNHxLnAHCv2ZcGM waH/QKUPx5lIGJtFWmBg+bLwNXXGc08=;
Received: from [172.20.1.47] ((unknown) [217.34.220.158])  by waldorf.isode.com (submission channel) via TCP with ESMTPA  id <U8QYRAAvQ7Cw@waldorf.isode.com>; Mon, 14 Jul 2014 18:49:57 +0100
X-SMTP-Protocol-Errors: NORDNS
Message-ID: <53C41846.8020603@isode.com>
Date: Mon, 14 Jul 2014 18:49:58 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
To: "Igoe, Kevin M." <kmigoe@nsa.gov>, "'Paterson, Kenny'" <Kenny.Paterson@rhul.ac.uk>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <53C3CA7D.9040203@isode.com> <CFE98BE8.26AC0%kenny.paterson@rhul.ac.uk> <3C4AAD4B5304AB44A6BA85173B4675CABAA9FE2F@MSMR-GH1-UEA03.corp.nsa.gov>
In-Reply-To: <3C4AAD4B5304AB44A6BA85173B4675CABAA9FE2F@MSMR-GH1-UEA03.corp.nsa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Uvxed9_Zxs5kk6YgExqih3396nM
Subject: Re: [Cfrg] Draft Agenda for Toronto
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: Mon, 14 Jul 2014 17:50:03 -0000

On 14/07/2014 15:08, Igoe, Kevin M. wrote:
> Have we decided what to do with DragonFly?  There have already been
> presentations on this subject, so a talk is unnecessary, but do we
> want to explicitly put it on the agenda as a discussion item?
The document editor is not going to be present in Toronto. I have an 
action item to review mailing list discussion on DragonFly and 
summarizing the result on the mailing list. I am hoping to complete this 
before Toronto.

But yes, if people want to discuss it, we can allocate 5 minutes.


From nobody Mon Jul 14 12:49:50 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 E56F01A00B2 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 12:49:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 TL-Yc3g4nNxu for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 12:49:45 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0083.outbound.protection.outlook.com [213.199.154.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B08571A00A8 for <cfrg@irtf.org>; Mon, 14 Jul 2014 12:49:44 -0700 (PDT)
Received: from DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) by DBXPR03MB527.eurprd03.prod.outlook.com (10.141.12.154) with Microsoft SMTP Server (TLS) id 15.0.980.8; Mon, 14 Jul 2014 19:49:42 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) with Microsoft SMTP Server (TLS) id 15.0.985.8; Mon, 14 Jul 2014 19:49:42 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0985.008; Mon, 14 Jul 2014 19:49:41 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPn5zA174av2OH7UK/rj2CeH46ng==
Date: Mon, 14 Jul 2014 19:49:41 +0000
Message-ID: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.2.140509
x-originating-ip: [78.146.58.177]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02723F29C4
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(189002)(51704005)(24454002)(504964003)(479174003)(164054003)(15975445006)(83506001)(74662001)(16601075003)(15202345003)(86362001)(66066001)(83072002)(64706001)(74502001)(81342001)(92566001)(74482001)(85852003)(46102001)(87936001)(81542001)(50986999)(83322001)(19580405001)(19580395003)(20776003)(106116001)(105586002)(31966008)(2351001)(79102001)(107046002)(110136001)(80022001)(54356999)(229853001)(99396002)(21056001)(76482001)(101416001)(2656002)(92726001)(85306003)(4396001)(95666004)(77982001)(36756003)(561944003)(106356001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <883358FCAFAEA04E965A2454AFAA9115@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Hvihr_yQhVB_Qdl-mtwTdVbHGiU
Subject: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 14 Jul 2014 19:49:48 -0000

Dear CFRG,

CFRG has received a formal request from the TLS Working Group for
recommendations for new elliptic curves. Specifically, the TLS WG would
like CFRG to recommend:

- Curves suitable for both key establishment and digital signature
  (though the same curves need not be used for both purposes).

- One proposed curve or set of curves at the following security
  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
  192-bit security is optional.

Note that these curves are not intended to supplant current curves in
widespread use, but rather to supplement them. Full details of the request
can be found in the e-mail from the TLS WG chairs below.

The CFRG chairs will coordinate a response to this request from the CFRG
readership. Ideally we will reach a rough consensus through discussion on
the
list and at the upcoming IETF 90 meeting in Toronto. While no deadline is
set for our response to the TLS WG, we should aim to have one ready within
2 months.

We regard this as a major work item for CFRG and one where CFRG can
provide real value to the TLS WG and the IETF more widely. So we encourage
(and indeed request) active participation from the widest set of
participants on this project.

As a first step, we propose to discuss the requirements for new curves for
a period of 2 weeks. Using an agreed set of requirements, in a second
step, we will then evaluate different curve proposals (including extant
proposals and any emerging ones) for a period of 4 weeks. In a final
period of 2 weeks, we will produce a proposal for the TLS WG and seek
consensus on it.


The first step, running for 2 weeks, begins here.

A starting point for requirements can be found in David McGrew's recent
CFRG post
(http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
reproduced here:

----

Simplicity

   R1.  Desired: easy to understand and implement [1]

Efficiency

   R2.  Required: amenable to compact implementations and fast
   implementations, across both small and large processors [1]

   R3.  Desired: re-use components between signatures and key exchange
   algorithms [3]

Intellectual Property

   R4.  Required: available worldwide under reasonable and well
   understood licensing terms [1]

   R5.  Desired: available worldwide under royalty-free licensing
   terms [1]

Interoperability

   R6.  Desired: can be used with current software implementations
   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]

   R7.  Desired: can be used within current ECC standards of TLS,
   PKIX, SSH, and IKE [4]

Security

   R8.  Required: amenable to constant-time implementations, to avoid
   side channel attacks [2]

   R9.  Required: resist twist attacks [2]

   R10.  Required: curve parameters should have good provenance;
   random curves should be provably pseudorandom [5]

   R11.  Desired for key exchange: resist invalid curve attacks [2];
   note that complete addition laws help and are thus desirable [2].
   (Note that the use of ephemeral keys also resist such attacks.)

   R12.  Required for PAKE: indistinguishability of curve points from
   random strings [2]

Footnotes:

   [1] Original criteria set out for the Advanced Encryption Standard,
       which is equally applicable to ECC.  National Institute of
       Standards and Technology (NIST) of the United States, 1998.

   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
       curves for elliptic-curve cryptography.
       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
<http://safecurves.cr.yp.to/>, accessed
April 2014.

   [3] Criteria identified by David McGrew, 2014.

   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.

   [5] Criteria widely acknowledged on CFRG email list during 2014.

----


Our first request, then, is that you consider these requirements, and
provide your views on their appropriateness, completeness, and individual
classifications (required/desired). We will continue that discussion for 2
weeks, until the end of the IETF meeting in Toronto. The chairs will then
compile a consensus-based list of requirements of the above form, after
which we will move to the second step.

We thank you in advance for your participation in this important task.

Regards

Alexei, Kenny and Kevin (CFRG co-chairs)




On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
wrote:

>CFRG Chairs and Security ADs,
>
>TLS WG would like to formally request that the
>CFRG make a recommendation for new ECC group support for TLS
>and other similar applications. Specifically, we request that CFRG
>recommend the following:
>
>- Curves suitable for both key establishment and digital signature
>  (though the same curves need not be used for both purposes).
>
>- One proposed curve or set of curves at the following security
>  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>  192-bit security is optional.
>
>If the same curves are used for key establishment and signature, this
>would be a recommendation for two curves.  If different curves are
>used, this would be a recommendation for four curves.
>
>In addition to a recommendation, we also request that the CFRG provide
>a technical rationale for their selection.
>
>If the CFRG does not feel comfortable making a single set of
>selections, we propose that they select a small number of potential
>choices with a detailed technical analysis of the advantages and
>disadvantages of each selection and that the Security ADs sponsor a
>process (perhaps via SAAG) to narrow it down to the specification
>above.
>
>For clarity, we are not currently requesting that CFRG replace or
>profile the existing curves in RFC4492 and RFC 7027, although we are
>also not ruling out such an effort in the future. The current request
>is for a new set of curves to complement the existing ones.
>
>Please reach out to us if this is unclear or further information is
>required.
>
>Thanks,
>
>TLS Chairs
>
>




From nobody Mon Jul 14 18:11:57 2014
Return-Path: <watsonbladd@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 DA83F1B27F2 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 18:11:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 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, J_CHICKENPOX_55=0.6, 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 G1vrhupnxNS4 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 18:11:53 -0700 (PDT)
Received: from mail-yk0-x22a.google.com (mail-yk0-x22a.google.com [IPv6:2607:f8b0:4002:c07::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 29D811B27F4 for <cfrg@irtf.org>; Mon, 14 Jul 2014 18:11:53 -0700 (PDT)
Received: by mail-yk0-f170.google.com with SMTP id 20so1343216yks.1 for <cfrg@irtf.org>; Mon, 14 Jul 2014 18:11:52 -0700 (PDT)
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=SWqncdDLxL0mwBH2CFGgKpx3D9Mmk9Tt5RjEkQ7uURs=; b=NjyxmqORygTLm6MRsoM3D3WLiKbZ29edmR1Kr3E8gbjH28Ov7+GaodTejRlnIGl6N/ QMEvHyvAN/YqcjAqN8km8bY/pTRDwvx39JlqywNCFkLOFClaGPp5yFBFVfzYikJB70EH W5c7B2SC8h+B/0RRFZoYWNoKReABj/d4B/uIsW/Z1PjXXVuE743yg7hcm8CgCVp5C3VY f/6MflvaIz8xfElM/Gxroz6s2ai/l5sTLWpVwGYxvwG67HYFktXvlWRJTy4gQ5IdTJvQ F3iSbxD9Zh3PPATBohNJl7kwOnPtRt0aL8TN5mBqr6PHR10AoaiZ8VKM3oWzgSiPt3T+ 5rLg==
MIME-Version: 1.0
X-Received: by 10.236.25.234 with SMTP id z70mr34555668yhz.107.1405386712156;  Mon, 14 Jul 2014 18:11:52 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Mon, 14 Jul 2014 18:11:52 -0700 (PDT)
In-Reply-To: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk>
Date: Mon, 14 Jul 2014 18:11:52 -0700
Message-ID: <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/oIJz7Vs4b18ltqPmOapNq0TepVY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 15 Jul 2014 01:11:55 -0000

On Jul 14, 2014 12:49 PM, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> wrote:
>
> Dear CFRG,
>
> CFRG has received a formal request from the TLS Working Group for
> recommendations for new elliptic curves. Specifically, the TLS WG would
> like CFRG to recommend:
>
> - Curves suitable for both key establishment and digital signature
>   (though the same curves need not be used for both purposes).
>
> - One proposed curve or set of curves at the following security
>   levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>   192-bit security is optional.

I would like these to be taken as minimums. There is no reason
Curve4417 should not be used for 192 bit security
or Goldilocks448 if performance is acceptable.

I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
Secret data. Perhaps this is an area where the
TLS WG can do some more thinking about what they want to see.

>
> Note that these curves are not intended to supplant current curves in
> widespread use, but rather to supplement them. Full details of the request
> can be found in the e-mail from the TLS WG chairs below.
>
> The CFRG chairs will coordinate a response to this request from the CFRG
> readership. Ideally we will reach a rough consensus through discussion on
> the
> list and at the upcoming IETF 90 meeting in Toronto. While no deadline is
> set for our response to the TLS WG, we should aim to have one ready within
> 2 months.
>
> We regard this as a major work item for CFRG and one where CFRG can
> provide real value to the TLS WG and the IETF more widely. So we encourage
> (and indeed request) active participation from the widest set of
> participants on this project.
>
> As a first step, we propose to discuss the requirements for new curves for
> a period of 2 weeks. Using an agreed set of requirements, in a second
> step, we will then evaluate different curve proposals (including extant
> proposals and any emerging ones) for a period of 4 weeks. In a final
> period of 2 weeks, we will produce a proposal for the TLS WG and seek
> consensus on it.

What should a proposal look like? A family of similar curves, one for
each length?
How much implementation should be done? Making very fast
implementations can require a lot of coding,
but I think we know about how fast prime shapes will be, and curve
shape+prime shape gives you
everything but the TLC factor.

>
>
> The first step, running for 2 weeks, begins here.
>
> A starting point for requirements can be found in David McGrew's recent
> CFRG post
> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
> reproduced here:
>
> ----
>
> Simplicity
>
>    R1.  Desired: easy to understand and implement [1]
>
> Efficiency
>
>    R2.  Required: amenable to compact implementations and fast
>    implementations, across both small and large processors [1]
>
>    R3.  Desired: re-use components between signatures and key exchange
>    algorithms [3]

How about code size for R3 to make it more amenable to argument?

>
> Intellectual Property
>
>    R4.  Required: available worldwide under reasonable and well
>    understood licensing terms [1]
>
>    R5.  Desired: available worldwide under royalty-free licensing
>    terms [1]

I would make R5 a requirement. Royalties are a nonstarter for many users.

>
> Interoperability
>
>    R6.  Desired: can be used with current software implementations
>    (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>
>    R7.  Desired: can be used within current ECC standards of TLS,
>    PKIX, SSH, and IKE [4]

These desiderata are worthwhile, but implementors have signalled they
are willing to make
large changes for performance.

>
> Security
>
>    R8.  Required: amenable to constant-time implementations, to avoid
>    side channel attacks [2]
>
>    R9.  Required: resist twist attacks [2]

I don't like R9: twist attacks are only an issue with algorithms that
work on the compressed form. It just feels different.
Perhaps the requirement should be that implementations that miss
checks avoid being completely insecure.
>
>    R10.  Required: curve parameters should have good provenance;
>    random curves should be provably pseudorandom [5]
>
>    R11.  Desired for key exchange: resist invalid curve attacks [2];
>    note that complete addition laws help and are thus desirable [2].
>    (Note that the use of ephemeral keys also resist such attacks.)

I feel this should be folded into an edited R9.
>
>    R12.  Required for PAKE: indistinguishability of curve points from
>    random strings [2]

Mike Hamburg will know better than I, but my vague recollection is
that Elligator 2 worked for everything.
>
> Footnotes:
>
>    [1] Original criteria set out for the Advanced Encryption Standard,
>        which is equally applicable to ECC.  National Institute of
>        Standards and Technology (NIST) of the United States, 1998.
>
>    [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>        curves for elliptic-curve cryptography.
>        http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
> <http://safecurves.cr.yp.to/>, accessed
> April 2014.
>
>    [3] Criteria identified by David McGrew, 2014.
>
>    [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>
>    [5] Criteria widely acknowledged on CFRG email list during 2014.
>
> ----
>
>
> Our first request, then, is that you consider these requirements, and
> provide your views on their appropriateness, completeness, and individual
> classifications (required/desired). We will continue that discussion for 2
> weeks, until the end of the IETF meeting in Toronto. The chairs will then
> compile a consensus-based list of requirements of the above form, after
> which we will move to the second step.
>
> We thank you in advance for your participation in this important task.
>
> Regards
>
> Alexei, Kenny and Kevin (CFRG co-chairs)
>
>
>
>
> On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> wrote:
>
> >CFRG Chairs and Security ADs,
> >
> >TLS WG would like to formally request that the
> >CFRG make a recommendation for new ECC group support for TLS
> >and other similar applications. Specifically, we request that CFRG
> >recommend the following:
> >
> >- Curves suitable for both key establishment and digital signature
> >  (though the same curves need not be used for both purposes).
> >
> >- One proposed curve or set of curves at the following security
> >  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
> >  192-bit security is optional.
> >
> >If the same curves are used for key establishment and signature, this
> >would be a recommendation for two curves.  If different curves are
> >used, this would be a recommendation for four curves.
> >
> >In addition to a recommendation, we also request that the CFRG provide
> >a technical rationale for their selection.
> >
> >If the CFRG does not feel comfortable making a single set of
> >selections, we propose that they select a small number of potential
> >choices with a detailed technical analysis of the advantages and
> >disadvantages of each selection and that the Security ADs sponsor a
> >process (perhaps via SAAG) to narrow it down to the specification
> >above.
> >
> >For clarity, we are not currently requesting that CFRG replace or
> >profile the existing curves in RFC4492 and RFC 7027, although we are
> >also not ruling out such an effort in the future. The current request
> >is for a new set of curves to complement the existing ones.
> >
> >Please reach out to us if this is unclear or further information is
> >required.
> >
> >Thanks,
> >
> >TLS Chairs
> >
> >
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jul 14 18:47:18 2014
Return-Path: <mike@shiftleft.org>
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 6D00E1B27C8 for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 18:47:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.557
X-Spam-Level: *
X-Spam-Status: No, score=1.557 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, 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 VbAJAv_pVG_e for <cfrg@ietfa.amsl.com>; Mon, 14 Jul 2014 18:47:14 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 475881B27C4 for <cfrg@irtf.org>; Mon, 14 Jul 2014 18:47:14 -0700 (PDT)
Received: from [10.184.148.249] (w035.z205158021.lax-ca.dsl.cnc.net [205.158.21.35]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 3DCC33AA13; Mon, 14 Jul 2014 18:45:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1405388753; bh=nJ3N9dZg9ZQCivpld0UP4LIqmeqX9tvqGOCzKjK9VJU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=CaKuhPgxCCQfEPfHMPTiwOv0bRwZIyXw1jq7Y3S9QFUNLo60cQsEqD2G6iB9wM7ja sMVfM7ns1ChUf07v+PuirDM3aSGwCIu3MiQ0Oe57CD7T7yVBCVwaRct7/V6AINp+iD D0Oj8EXQHZvPAAhxtAGbduBEUC9seD4EPnoog2Rk=
Content-Type: multipart/alternative; boundary="Apple-Mail=_19620A0D-B2EF-43BA-8B01-7484BCB723D4"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
Date: Mon, 14 Jul 2014 18:47:10 -0700
Message-Id: <BA4311FD-368E-413C-BA59-BBE358495C37@shiftleft.org>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/GowZlFdVO7EI5pE_QHU_St6RxwQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 15 Jul 2014 01:47:15 -0000

--Apple-Mail=_19620A0D-B2EF-43BA-8B01-7484BCB723D4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Jul 14, 2014, at 6:11 PM, Watson Ladd <watsonbladd@gmail.com> wrote:

> On Jul 14, 2014 12:49 PM, "Paterson, Kenny" =
<Kenny.Paterson@rhul.ac.uk> wrote:
>>=20
>> Dear CFRG,
>>=20
>> CFRG has received a formal request from the TLS Working Group for
>> recommendations for new elliptic curves. Specifically, the TLS WG =
would
>> like CFRG to recommend:
>>=20
>> - Curves suitable for both key establishment and digital signature
>>  (though the same curves need not be used for both purposes).
>>=20
>> - One proposed curve or set of curves at the following security
>>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>>  192-bit security is optional.
>=20
> I would like these to be taken as minimums. There is no reason
> Curve4417 should not be used for 192 bit security
> or Goldilocks448 if performance is acceptable.
>=20
> I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
> Secret data. Perhaps this is an area where the
> TLS WG can do some more thinking about what they want to see.

I agree, but I=92m biased since Ed448-Goldilocks is my proposal.

>>   R9.  Required: resist twist attacks [2]
>=20
> I don't like R9: twist attacks are only an issue with algorithms that
> work on the compressed form. It just feels different.
> Perhaps the requirement should be that implementations that miss
> checks avoid being completely insecure.

I agree.  That said, I expect every proposal except Brainpool to have =
the obvious
interpretation of this property: that the twist=92s order is not smooth.

>>   R11.  Desired for key exchange: resist invalid curve attacks [2];
>>   note that complete addition laws help and are thus desirable [2].
>>   (Note that the use of ephemeral keys also resist such attacks.)
>=20
> I feel this should be folded into an edited R9.

In general invalid curve attacks are a property of an implementation, =
not a curve.
But complete addition laws should probably be on the list as =
nice-to-have.

>>   R12.  Required for PAKE: indistinguishability of curve points from
>>   random strings [2]
>=20
> Mike Hamburg will know better than I, but my vague recollection is
> that Elligator 2 worked for everything.

=93Elligator squared=94 works for everything.  Elligator 2 works (in =
DJB=92s proposed PAKE)
for every prime-field curve of even order.

Also, this isn=92t required for every PAKE, just for EKE.  The =
alternatives SPAKE2 and
JPAKE don=92t need this.  SPEKE, SPAKE2EE and Dragonfly want an =
encoding, but
it just has to map to the curve and doesn=92t have to be uniform.  This =
means that
SWU will suffice if Elligator 2 isn=92t available (i.e. they work on =
most or all curves).

I propose that R12 should be nixed.  And I=92m not biased in this =
direction, since I=92m an
author on the Elligator paper, and my proposal has this =
indistinguishability property.

Cheers,
=97 Mike Hamburg=

--Apple-Mail=_19620A0D-B2EF-43BA-8B01-7484BCB723D4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><br><div><div>On Jul 14, 2014, at 6:11 PM, Watson =
Ladd &lt;<a =
href=3D"mailto:watsonbladd@gmail.com">watsonbladd@gmail.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;">On Jul 14, 2014 12:49 PM, =
"Paterson, Kenny" &lt;<a =
href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt=
; wrote:<br><blockquote type=3D"cite"><br>Dear CFRG,<br><br>CFRG has =
received a formal request from the TLS Working Group =
for<br>recommendations for new elliptic curves. Specifically, the TLS WG =
would<br>like CFRG to recommend:<br><br>- Curves suitable for both key =
establishment and digital signature<br>&nbsp;(though the same curves =
need not be used for both purposes).<br><br>- One proposed curve or set =
of curves at the following security<br>&nbsp;levels: 128-bit (~256-bit =
curve) and 256-bit (~512 bit curve).<br>&nbsp;192-bit security is =
optional.<br></blockquote><br>I would like these to be taken as =
minimums. There is no reason<br>Curve4417 should not be used for 192 bit =
security<br>or Goldilocks448 if performance is acceptable.<br><br>I am =
not sure that 512 bits is needed: the NSA only uses P-384 for =
Top<br>Secret data. Perhaps this is an area where the<br>TLS WG can do =
some more thinking about what they want to =
see.</div></blockquote><div><br></div><div>I agree, but I=92m biased =
since Ed448-Goldilocks is my proposal.</div><br><blockquote =
type=3D"cite"><div style=3D"font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;"><blockquote =
type=3D"cite">&nbsp;&nbsp;R9. &nbsp;Required: resist twist attacks =
[2]<br></blockquote><br>I don't like R9: twist attacks are only an issue =
with algorithms that<br>work on the compressed form. It just feels =
different.<br>Perhaps the requirement should be that implementations =
that miss<br>checks avoid being completely =
insecure.</div></blockquote><div><br></div><div>I agree. &nbsp;That =
said, I expect every proposal except Brainpool to have the =
obvious</div><div>interpretation of this property: that the twist=92s =
order is not smooth.</div><div><br></div><blockquote type=3D"cite"><div =
style=3D"font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"><blockquote =
type=3D"cite">&nbsp;&nbsp;R11. &nbsp;Desired for key exchange: resist =
invalid curve attacks [2];<br>&nbsp;&nbsp;note that complete addition =
laws help and are thus desirable [2].<br>&nbsp;&nbsp;(Note that the use =
of ephemeral keys also resist such attacks.)<br></blockquote><br>I feel =
this should be folded into an edited =
R9.<br></div></blockquote><div><br></div><div>In general invalid curve =
attacks are a property of an implementation, not a curve.</div><div>But =
complete addition laws should probably be on the list as =
nice-to-have.</div><br><blockquote type=3D"cite"><div style=3D"font-size: =
12px; font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;"><blockquote type=3D"cite">&nbsp;&nbsp;R12. &nbsp;Required for =
PAKE: indistinguishability of curve points from<br>&nbsp;&nbsp;random =
strings [2]<br></blockquote><br>Mike Hamburg will know better than I, =
but my vague recollection is<br>that Elligator 2 worked for =
everything.</div></blockquote><div><br></div><div>=93Elligator squared=94 =
works for everything. &nbsp;Elligator 2 works (in DJB=92s proposed =
PAKE)</div><div>for every prime-field curve of even =
order.</div><div><br></div><div>Also, this isn=92t required for every =
PAKE, just for EKE. &nbsp;The alternatives SPAKE2 and</div><div>JPAKE =
don=92t need this. &nbsp;SPEKE, SPAKE2EE and Dragonfly want an encoding, =
but</div><div>it just has to map to the curve and doesn=92t have to be =
uniform. &nbsp;This means that</div><div>SWU will suffice if Elligator 2 =
isn=92t available (i.e. they work on most or all =
curves).</div><div><br></div><div>I propose that R12 should be nixed. =
&nbsp;And I=92m not biased in this direction, since I=92m =
an</div><div>author on the Elligator paper, and my proposal has this =
indistinguishability =
property.</div><div><br></div></div><div>Cheers,</div><div>=97 Mike =
Hamburg</div></body></html>=

--Apple-Mail=_19620A0D-B2EF-43BA-8B01-7484BCB723D4--


From nobody Tue Jul 15 02:16:32 2014
Return-Path: <benlaurie@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 4EFFC1A0135 for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 02:16:30 -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 ZCNM0vX5e2Kt for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 02:16:28 -0700 (PDT)
Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD52A1A0AA6 for <cfrg@irtf.org>; Tue, 15 Jul 2014 02:16:28 -0700 (PDT)
Received: by mail-qg0-f41.google.com with SMTP id q107so2390071qgd.0 for <cfrg@irtf.org>; Tue, 15 Jul 2014 02:16:27 -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:content-transfer-encoding; bh=VHwwet4gz8eI6PMiPrymWK/xUYG8Y9f4WTnMx54CD2w=; b=b3OqIxGSBHVfzwpWQ4snsmzwB8EMr981B6wGstoE98djBjBRONjET5RvHn9tZX/As+ iHRupGjklBQgCon9GJnq1KS+SncgM2DKBGhLTgo8JfFJ42LdaG5ZUYTFNN/AnODlD+a+ s38YWhOCPWkkH2Ro9xAI3z/kEQvcFHynSfdPHR4seYzQVS8ZijAjpkqsw9cWVJtjZbud 1bha/INkshMH03BvGD4pP/IAxKZNqLCWwsa0bn2mdWdLkr8wxaGSieLVh+KjhoW84j0G TNlM/WUHtG+HU175hkIUCUrabmZaX3yitiZzPjgiGESNMyMhsPPFFmABAw+PP82mb6SQ 6FFQ==
MIME-Version: 1.0
X-Received: by 10.140.109.164 with SMTP id l33mr32418505qgf.72.1405415787902;  Tue, 15 Jul 2014 02:16:27 -0700 (PDT)
Sender: benlaurie@gmail.com
Received: by 10.96.222.168 with HTTP; Tue, 15 Jul 2014 02:16:27 -0700 (PDT)
In-Reply-To: <BA4311FD-368E-413C-BA59-BBE358495C37@shiftleft.org>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <BA4311FD-368E-413C-BA59-BBE358495C37@shiftleft.org>
Date: Tue, 15 Jul 2014 10:16:27 +0100
X-Google-Sender-Auth: jEiD6n8DVnFAV5zxqQkZO2lK_DY
Message-ID: <CAG5KPzwLSVX6-sx7ZNRXB_s+nc7-Hk_jy4uB8Ai8g3OWutvbDg@mail.gmail.com>
From: Ben Laurie <ben@links.org>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PUozrDWCBPZTsObjnyQi_Us0SOw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 15 Jul 2014 09:16:30 -0000

On 15 July 2014 02:47, Michael Hamburg <mike@shiftleft.org> wrote:
> =E2=80=9CElligator squared=E2=80=9D works for everything.  Elligator 2 wo=
rks (in DJB=E2=80=99s
> proposed PAKE)
> for every prime-field curve of even order.

What is DJB's proposed PAKE?


From nobody Tue Jul 15 02:51:53 2014
Return-Path: <Johannes.Merkle@secunet.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 0FF171B283D for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 02:51:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.251
X-Spam-Level: 
X-Spam-Status: No, score=-3.251 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.651] 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 ek9W8-f_ZkZu for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 02:51:49 -0700 (PDT)
Received: from a.mx.secunet.com (a.mx.secunet.com [195.81.216.161]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6844D1A0379 for <cfrg@irtf.org>; Tue, 15 Jul 2014 02:51:49 -0700 (PDT)
Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 4E53D1A009E; Tue, 15 Jul 2014 11:51:45 +0200 (CEST)
X-Virus-Scanned: by secunet
Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VXMMmmm1fDdQ; Tue, 15 Jul 2014 11:51:40 +0200 (CEST)
Received: from mail-essen-01.secunet.de (unknown [10.53.40.204]) by a.mx.secunet.com (Postfix) with ESMTP id DA52F1A009B; Tue, 15 Jul 2014 11:51:40 +0200 (CEST)
Received: from [10.208.1.76] (10.208.1.76) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 15 Jul 2014 11:51:42 +0200
Message-ID: <53C4F9AD.6020605@secunet.com>
Date: Tue, 15 Jul 2014 11:51:41 +0200
From: Johannes Merkle <johannes.merkle@secunet.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
In-Reply-To: <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.208.1.76]
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/oa3IZvOvTTqJLDTZ3rLGdnafCmk
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 15 Jul 2014 09:51:52 -0000

Watson Ladd wrote on 15.07.2014 03:11:
>>
>> Interoperability
>>
>>    R6.  Desired: can be used with current software implementations
>>    (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>>
>>    R7.  Desired: can be used within current ECC standards of TLS,
>>    PKIX, SSH, and IKE [4]
> 
> These desiderata are worthwhile, but implementors have signalled they
> are willing to make
> large changes for performance.
> 

Well, I'm not so sure. On the TLS mailing list, there have been some messages expressing the opposite opinion.
https://www.ietf.org/mail-archive/web/tls/current/msg12960.html
http://www.ietf.org/mail-archive/web/tls/current/msg12975.html
https://www.ietf.org/mail-archive/web/tls/current/msg12320.html
http://www.ietf.org/mail-archive/web/tls/current/msg12983.html

Actually, you have responded to most of these, but this does not necessarily eliminate the objections.

>>
>> Security
>>
>>    R8.  Required: amenable to constant-time implementations, to avoid
>>    side channel attacks [2]
>>
>>    R9.  Required: resist twist attacks [2]
> 
> I don't like R9: twist attacks are only an issue with algorithms that
> work on the compressed form. It just feels different.

I absolutely agree. My impression is that this requirement is based on a misconception.

> Perhaps the requirement should be that implementations that miss
> checks avoid being completely insecure.
>>
This would be a requirement on the implementation not on the curve. I think this is out-of-scope.


>>    R10.  Required: curve parameters should have good provenance;
>>    random curves should be provably pseudorandom [5]
>>
>>    R11.  Desired for key exchange: resist invalid curve attacks [2];
>>    note that complete addition laws help and are thus desirable [2].
>>    (Note that the use of ephemeral keys also resist such attacks.)
> 
> I feel this should be folded into an edited R9.

Agreed, this is a requirement on the implementation not on the curve. Even curves with twist security are susceptible to
invalid curve attacks if the implementation does not use an x-coordinate ladder.


-- 
Johannes


From nobody Tue Jul 15 07:01:43 2014
Return-Path: <stephen.farrell@cs.tcd.ie>
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 0C6C61A03F9 for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 07:01:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.551
X-Spam-Level: 
X-Spam-Status: No, score=-2.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.651] 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 5-0y1yM9LrfN for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 07:01:29 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id 6F5721A03F8 for <Cfrg@irtf.org>; Tue, 15 Jul 2014 07:01:24 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id D66D4BE3E for <Cfrg@irtf.org>; Tue, 15 Jul 2014 15:01:22 +0100 (IST)
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qeQd2_Djridt for <Cfrg@irtf.org>; Tue, 15 Jul 2014 15:01:22 +0100 (IST)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id AEBD6BE32 for <Cfrg@irtf.org>; Tue, 15 Jul 2014 15:01:22 +0100 (IST)
Message-ID: <53C53432.6060708@cs.tcd.ie>
Date: Tue, 15 Jul 2014 15:01:22 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Cfrg@irtf.org
References: <53C5339E.2040406@cs.tcd.ie>
In-Reply-To: <53C5339E.2040406@cs.tcd.ie>
X-Enigmail-Version: 1.6
X-Forwarded-Message-Id: <53C5339E.2040406@cs.tcd.ie>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/RqTzxyf57cnXuSnr9CAsW2dp6yI
Subject: [Cfrg] Fwd: [saag] CrypTech lunch meeting @ IETF90
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: Tue, 15 Jul 2014 14:01:35 -0000

FYI


-------- Original Message --------
Subject: [saag] CrypTech lunch meeting @ IETF90
Date: Tue, 15 Jul 2014 14:58:54 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
To: saag@ietf.org <saag@ietf.org>
CC: Lucy Lynch <lynch@isoc.org>, Leif Johansson <leifj@sunet.se>


Hi all,

The good folks who're working on the CrypTech [1] project
are going to have another Wednesday lunchtime session at
IETF90 to update on what's been happening since March when
they had a session. As a reminder, they're trying to develop
an open-source h/w crypto module which could have lots of
interesting IETF-relevant uses.

If you're interested in coming along, please let Leif, Randy
or Lucy (all cc'd here) know so the room's not swamped. (I'm
told there's space for about 30 in relative comfort.)

Its a bring-your-own affair both in terms of lunch and
questions. Room is Quebec, start time is 11:45(ish:-)

Cheers,
S.

[1] https://cryptech.is

_______________________________________________
saag mailing list
saag@ietf.org
https://www.ietf.org/mailman/listinfo/saag





From nobody Tue Jul 15 07:41:37 2014
Return-Path: <watsonbladd@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 3629A1B28BC for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 07:41:34 -0700 (PDT)
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 SsbqeeIMpIbS for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 07:41:26 -0700 (PDT)
Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F1B691B28D7 for <cfrg@irtf.org>; Tue, 15 Jul 2014 07:39:54 -0700 (PDT)
Received: by mail-yk0-f169.google.com with SMTP id 131so373648ykp.28 for <cfrg@irtf.org>; Tue, 15 Jul 2014 07:39:54 -0700 (PDT)
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=vEMnfeTlCi2+qCZx4VfDEGomTqZu6yGq91C6v+KvTJ4=; b=UC0wi0jwTx6rtK67t99gY9SzsTVytF+56SsbqvERK3e3svXi0zBSO0nc9Ken8N5Qzi HivFp7t8HnTL4aXt/Nj7/8UviM8lAX6npF7dtdsjc/pDXPfg1qyUZ1OSVapsD/9wXk35 m0eQLDSIjFcDOkW6VFfVv/kx9sW3m3VMUSkntlQU5KsaWs8Cmqp5nPezstc9ht8kMFdH 1uzKZERh6uks6WfMzMpPpe+9TbdkuG7ph+dr5MJAtBbrjIDO8yG6eI3euM+QdMl2r/2u u3j3kC+eWY3+xZ47b3CST9GZ/DFxgLI5Jc537yUf7oLxuWNNmq0WhTpyZ67ZxJOoxMH9 dY6Q==
MIME-Version: 1.0
X-Received: by 10.236.39.172 with SMTP id d32mr41132494yhb.66.1405435194238; Tue, 15 Jul 2014 07:39:54 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Tue, 15 Jul 2014 07:39:54 -0700 (PDT)
In-Reply-To: <53C4F9AD.6020605@secunet.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <53C4F9AD.6020605@secunet.com>
Date: Tue, 15 Jul 2014 07:39:54 -0700
Message-ID: <CACsn0cm4zY7fnpT4j01ZZ56jkpu5oPU-d0jBnPnEGWnzfjBB0w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Johannes Merkle <johannes.merkle@secunet.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/TAwsMU2O2hrYJ-vloyk6hOSB5Z4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 15 Jul 2014 14:41:34 -0000

On Tue, Jul 15, 2014 at 2:51 AM, Johannes Merkle
<johannes.merkle@secunet.com> wrote:
> Watson Ladd wrote on 15.07.2014 03:11:
>>>
>>> Interoperability
>>>
>>>    R6.  Desired: can be used with current software implementations
>>>    (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>>>
>>>    R7.  Desired: can be used within current ECC standards of TLS,
>>>    PKIX, SSH, and IKE [4]
>>
>> These desiderata are worthwhile, but implementors have signalled they
>> are willing to make
>> large changes for performance.
>>
>
> Well, I'm not so sure. On the TLS mailing list, there have been some messages expressing the opposite opinion.
> https://www.ietf.org/mail-archive/web/tls/current/msg12960.html
> http://www.ietf.org/mail-archive/web/tls/current/msg12975.html
> https://www.ietf.org/mail-archive/web/tls/current/msg12320.html
> http://www.ietf.org/mail-archive/web/tls/current/msg12983.html
>
> Actually, you have responded to most of these, but this does not necessarily eliminate the objections.

Since we aren't replacing the NIST curves its fine if some, even a lot
of, people don't want to use them. Not everyone uses
Camelia or AES after all.

By contrast, the interest in Curve25519 comes from the speed: no one
wants or uses Brainpool because it is slow.
(The fact that we already have a set of alternative curves with
nothing to recommend them beyond alternative generation is frequently
forgotten in these arguments). If we sacrifice speed in favor of
Weierstrass form, I'm not going to be very happy:

1: We asked about using something very fast
2: There were no security objections
3: The IETF happened
4: We got something slow, out of deference to people who won't use it anyway.

Now, for GLV curves there may be patent issues, and for
hyper-and-elliptic (use hyperelliptic curves for variable base,
elliptic curves for fixed base with deep cleverness to interconvert)
the complexity might not be worth the added speed. It's not that
simplicity isn't important, but that the range of performance vs.
complexity tradeoffs tends to strongly favor speed in this domain.

(One interesting counterexample is Bitcoin: the CM is not used despite
the curve being designed for it)

Sincerely,
Watson Ladd


From nobody Tue Jul 15 11:13:39 2014
Return-Path: <mike@shiftleft.org>
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 237701A0AD9 for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 11:13:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.557
X-Spam-Level: *
X-Spam-Status: No, score=1.557 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, 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 Hh-hRVcmxC2L for <cfrg@ietfa.amsl.com>; Tue, 15 Jul 2014 11:13:35 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C59B51A04E7 for <cfrg@irtf.org>; Tue, 15 Jul 2014 11:13:35 -0700 (PDT)
Received: from [10.184.148.249] (w035.z205158021.lax-ca.dsl.cnc.net [205.158.21.35]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 870763AA12; Tue, 15 Jul 2014 11:12:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1405447929; bh=iSkQUmBQqb/kDhqgjhukqByrwrEZUjcdV3Sn+tkbP8w=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=EK7aOUlwJdfj/5YCWCxtPWa40w5u1QJ0tz+TCFcolU8UWZ2sFyGyZsfYIMK9ZYYjC lBb0yA3yg83kxE2jzZP8PdbrG1y6ko/xutE0G4SFbwvkq9YZ/e7IMsuCEY9XXx1Abm JEpfaDi9n0p5RNAA0OwgTNPGVQwKMwG/EGWx3rXs=
Content-Type: multipart/alternative; boundary="Apple-Mail=_538A2CA8-3DA4-4841-9CBB-06C87C820BCA"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CAG5KPzwLSVX6-sx7ZNRXB_s+nc7-Hk_jy4uB8Ai8g3OWutvbDg@mail.gmail.com>
Date: Tue, 15 Jul 2014 11:13:24 -0700
Message-Id: <90B9938A-ADD1-4F83-97A7-4F9AD67E9570@shiftleft.org>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <BA4311FD-368E-413C-BA59-BBE358495C37@shiftleft.org> <CAG5KPzwLSVX6-sx7ZNRXB_s+nc7-Hk_jy4uB8Ai8g3OWutvbDg@mail.gmail.com>
To: Ben Laurie <ben@links.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/p5uEmi8Du9hcrq69M9V7YeUTKUo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 15 Jul 2014 18:13:37 -0000

--Apple-Mail=_538A2CA8-3DA4-4841-9CBB-06C87C820BCA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

On Jul 15, 2014, at 2:16 AM, Ben Laurie <ben@links.org> wrote:

> On 15 July 2014 02:47, Michael Hamburg <mike@shiftleft.org> wrote:
>> =93Elligator squared=94 works for everything.  Elligator 2 works (in =
DJB=92s
>> proposed PAKE)
>> for every prime-field curve of even order.
>=20
> What is DJB's proposed PAKE?

It=92s an EKE variant.  You keep generating ephemeral keys until you =
find one which encodes with Elligator (pr ~ 1/2), then encrypt the =
encoding with the password using a wide-block ideal cipher.  The other =
party does the same.  Since the encoding looks like a random string, the =
attacker can=92t check a guess for the password.

With Elligator this doesn=92t work for every protocol, because Elligator =
only encodes half the points on the curve, so you have to rejection =
sample.  For contrast, Tibouchi=92s =93Elligator squared=94 [1] =97 =
though it=92s really a rework of earlier papers, eg [2] on which =
Tibouchi is also an author =97 works on every elliptic curve.  It takes =
twice the space (can be compressed slightly though) and more time to =
encode, but since you don=92t have to rejection sample it can be faster =
overall.  As a result, even if you like EKE, you can do it on any curve =
=97 you just need an ideal block cipher with a sufficiently wide block =
size.

Cheers,
=97 Mike

[1] http://eprint.iacr.org/2014/043
[2] https://eprint.iacr.org/2009/340=

--Apple-Mail=_538A2CA8-3DA4-4841-9CBB-06C87C820BCA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>On Jul 15, 2014, at 2:16 AM, Ben Laurie &lt;<a =
href=3D"mailto:ben@links.org">ben@links.org</a>&gt; wrote:</div><div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite">On 15 July =
2014 02:47, Michael Hamburg &lt;<a =
href=3D"mailto:mike@shiftleft.org">mike@shiftleft.org</a>&gt; =
wrote:<br><blockquote type=3D"cite">=93Elligator squared=94 works for =
everything. &nbsp;Elligator 2 works (in DJB=92s<br>proposed PAKE)<br>for =
every prime-field curve of even order.<br></blockquote><br>What is DJB's =
proposed PAKE?<br></blockquote></div><br><div>It=92s an EKE variant. =
&nbsp;You keep generating ephemeral keys until you find one which =
encodes with Elligator (pr ~ 1/2), then encrypt the encoding with the =
password using a wide-block ideal cipher. &nbsp;The other party does the =
same. &nbsp;Since the encoding looks like a random string, the attacker =
can=92t check a guess for the password.</div><div><br></div><div>With =
Elligator this doesn=92t work for every protocol, because Elligator only =
encodes half the points on the curve, so you have to rejection sample. =
&nbsp;For contrast, Tibouchi=92s =93Elligator squared=94 [1] =97 though =
it=92s really a rework of earlier papers, eg [2] on which Tibouchi is =
also an author =97 works on every elliptic curve. &nbsp;It takes twice =
the space (can be compressed slightly though) and more time to encode, =
but since you don=92t have to rejection sample it can be faster overall. =
&nbsp;As a result, even if you like EKE, you can do it on any curve =97 =
you just need an ideal block cipher with a sufficiently wide block =
size.</div><div><br></div><div>Cheers,</div><div>=97 =
Mike</div><div><br></div><div>[1]&nbsp;<a =
href=3D"http://eprint.iacr.org/2014/043">http://eprint.iacr.org/2014/043</=
a></div><div>[2]&nbsp;<a =
href=3D"https://eprint.iacr.org/2009/340">https://eprint.iacr.org/2009/340=
</a></div></body></html>=

--Apple-Mail=_538A2CA8-3DA4-4841-9CBB-06C87C820BCA--


From nobody Wed Jul 16 08:36:06 2014
Return-Path: <jsalowey@cisco.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 8804A1B2B96 for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 08:36:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.552
X-Spam-Level: 
X-Spam-Status: No, score=-14.552 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_55=0.6, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 TtrUPdaNmHrp for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 08:36:03 -0700 (PDT)
Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6374A1B2B85 for <cfrg@irtf.org>; Wed, 16 Jul 2014 08:36:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=9249; q=dns/txt; s=iport; t=1405524963; x=1406734563; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=7uhd8LL/0o0NLLdrMtfc+V6gP9WRmK4Yr1DsRQlDpsY=; b=CdcLA7MQ4HUR6ANpPuHAgkwyi0rx8WaXtEiW6X9unGzUrWdc9mmTE59S U1KcFzSpyqOc2LVnOg3coOsyMHefW622rNIxXqJzV8Yu4b0zoMW8bt7WO WyqFA6KmPMCI4x5rVOHTEqVCOTRRU4HJpdOZxmL8ElXjrVyXLJyg7PR+v I=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ag4FAAKbxlOtJA2D/2dsb2JhbABZgw5SVwTCHwqHQgGBCRZ1hAMBAQEDAQEBATc0CwULAgEIGB4QIQYLJQIEDgUJiCUDCQgNw0MNhyIXjQ4QgUsQAgEcMwIFAoMrgRYFmRyCAIFMjECGG4NEbAGBRA
X-IronPort-AV: E=Sophos;i="5.01,673,1400025600"; d="scan'208";a="61334263"
Received: from alln-core-1.cisco.com ([173.36.13.131]) by alln-iport-7.cisco.com with ESMTP; 16 Jul 2014 15:36:00 +0000
Received: from xhc-aln-x13.cisco.com (xhc-aln-x13.cisco.com [173.36.12.87]) by alln-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id s6GFa0dh005124 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 16 Jul 2014 15:36:00 GMT
Received: from xmb-rcd-x09.cisco.com ([169.254.9.143]) by xhc-aln-x13.cisco.com ([173.36.12.87]) with mapi id 14.03.0123.003; Wed, 16 Jul 2014 10:36:00 -0500
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPn8nMZ8nes4p0hU2mM7N7BqU4BpujK4UA
Date: Wed, 16 Jul 2014 15:35:59 +0000
Message-ID: <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
In-Reply-To: <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.33.248.233]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <6E530E6C75C5FF488552511E3F1F5212@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/o72IjMuecBviLYHF62Y9W6N7B3Y
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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, 16 Jul 2014 15:36:05 -0000

On Jul 14, 2014, at 6:11 PM, Watson Ladd <watsonbladd@gmail.com> wrote:

> On Jul 14, 2014 12:49 PM, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> w=
rote:
>>=20
>> Dear CFRG,
>>=20
>> CFRG has received a formal request from the TLS Working Group for
>> recommendations for new elliptic curves. Specifically, the TLS WG would
>> like CFRG to recommend:
>>=20
>> - Curves suitable for both key establishment and digital signature
>>  (though the same curves need not be used for both purposes).
>>=20
>> - One proposed curve or set of curves at the following security
>>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>>  192-bit security is optional.
>=20
> I would like these to be taken as minimums. There is no reason
> Curve4417 should not be used for 192 bit security
> or Goldilocks448 if performance is acceptable.
>=20
> I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
> Secret data. Perhaps this is an area where the
> TLS WG can do some more thinking about what they want to see.
>=20

[Joe] We've received a few comments about this offline so I want to clarify=
 on desired strengths. TLS supports 256-bit symmetric key ciphers and we wa=
nt to have recommended curves to match this key strength.  We leave it up t=
o the CFRG to determine what ECC key strengths are appropriate above 128-bi=
t symmetric key strength.  It is also not necessary that the recommendation=
 for higher strength curves be delivered at the same time, it would be OK t=
o deliver a recommendation for the 128-bit curves before the higher strengt=
h curves.=20

>>=20
>> Note that these curves are not intended to supplant current curves in
>> widespread use, but rather to supplement them. Full details of the reque=
st
>> can be found in the e-mail from the TLS WG chairs below.
>>=20
>> The CFRG chairs will coordinate a response to this request from the CFRG
>> readership. Ideally we will reach a rough consensus through discussion o=
n
>> the
>> list and at the upcoming IETF 90 meeting in Toronto. While no deadline i=
s
>> set for our response to the TLS WG, we should aim to have one ready with=
in
>> 2 months.
>>=20
>> We regard this as a major work item for CFRG and one where CFRG can
>> provide real value to the TLS WG and the IETF more widely. So we encoura=
ge
>> (and indeed request) active participation from the widest set of
>> participants on this project.
>>=20
>> As a first step, we propose to discuss the requirements for new curves f=
or
>> a period of 2 weeks. Using an agreed set of requirements, in a second
>> step, we will then evaluate different curve proposals (including extant
>> proposals and any emerging ones) for a period of 4 weeks. In a final
>> period of 2 weeks, we will produce a proposal for the TLS WG and seek
>> consensus on it.
>=20
> What should a proposal look like? A family of similar curves, one for
> each length?
> How much implementation should be done? Making very fast
> implementations can require a lot of coding,
> but I think we know about how fast prime shapes will be, and curve
> shape+prime shape gives you
> everything but the TLC factor.
>=20
>>=20
>>=20
>> The first step, running for 2 weeks, begins here.
>>=20
>> A starting point for requirements can be found in David McGrew's recent
>> CFRG post
>> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
>> reproduced here:
>>=20
>> ----
>>=20
>> Simplicity
>>=20
>>   R1.  Desired: easy to understand and implement [1]
>>=20
>> Efficiency
>>=20
>>   R2.  Required: amenable to compact implementations and fast
>>   implementations, across both small and large processors [1]
>>=20
>>   R3.  Desired: re-use components between signatures and key exchange
>>   algorithms [3]
>=20
> How about code size for R3 to make it more amenable to argument?
>=20
>>=20
>> Intellectual Property
>>=20
>>   R4.  Required: available worldwide under reasonable and well
>>   understood licensing terms [1]
>>=20
>>   R5.  Desired: available worldwide under royalty-free licensing
>>   terms [1]
>=20
> I would make R5 a requirement. Royalties are a nonstarter for many users.
>=20
>>=20
>> Interoperability
>>=20
>>   R6.  Desired: can be used with current software implementations
>>   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>>=20
>>   R7.  Desired: can be used within current ECC standards of TLS,
>>   PKIX, SSH, and IKE [4]
>=20
> These desiderata are worthwhile, but implementors have signalled they
> are willing to make
> large changes for performance.
>=20
>>=20
>> Security
>>=20
>>   R8.  Required: amenable to constant-time implementations, to avoid
>>   side channel attacks [2]
>>=20
>>   R9.  Required: resist twist attacks [2]
>=20
> I don't like R9: twist attacks are only an issue with algorithms that
> work on the compressed form. It just feels different.
> Perhaps the requirement should be that implementations that miss
> checks avoid being completely insecure.
>>=20
>>   R10.  Required: curve parameters should have good provenance;
>>   random curves should be provably pseudorandom [5]
>>=20
>>   R11.  Desired for key exchange: resist invalid curve attacks [2];
>>   note that complete addition laws help and are thus desirable [2].
>>   (Note that the use of ephemeral keys also resist such attacks.)
>=20
> I feel this should be folded into an edited R9.
>>=20
>>   R12.  Required for PAKE: indistinguishability of curve points from
>>   random strings [2]
>=20
> Mike Hamburg will know better than I, but my vague recollection is
> that Elligator 2 worked for everything.
>>=20
>> Footnotes:
>>=20
>>   [1] Original criteria set out for the Advanced Encryption Standard,
>>       which is equally applicable to ECC.  National Institute of
>>       Standards and Technology (NIST) of the United States, 1998.
>>=20
>>   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>>       curves for elliptic-curve cryptography.
>>       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
>> <http://safecurves.cr.yp.to/>, accessed
>> April 2014.
>>=20
>>   [3] Criteria identified by David McGrew, 2014.
>>=20
>>   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>>=20
>>   [5] Criteria widely acknowledged on CFRG email list during 2014.
>>=20
>> ----
>>=20
>>=20
>> Our first request, then, is that you consider these requirements, and
>> provide your views on their appropriateness, completeness, and individua=
l
>> classifications (required/desired). We will continue that discussion for=
 2
>> weeks, until the end of the IETF meeting in Toronto. The chairs will the=
n
>> compile a consensus-based list of requirements of the above form, after
>> which we will move to the second step.
>>=20
>> We thank you in advance for your participation in this important task.
>>=20
>> Regards
>>=20
>> Alexei, Kenny and Kevin (CFRG co-chairs)
>>=20
>>=20
>>=20
>>=20
>> On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
>> wrote:
>>=20
>>> CFRG Chairs and Security ADs,
>>>=20
>>> TLS WG would like to formally request that the
>>> CFRG make a recommendation for new ECC group support for TLS
>>> and other similar applications. Specifically, we request that CFRG
>>> recommend the following:
>>>=20
>>> - Curves suitable for both key establishment and digital signature
>>> (though the same curves need not be used for both purposes).
>>>=20
>>> - One proposed curve or set of curves at the following security
>>> levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>>> 192-bit security is optional.
>>>=20
>>> If the same curves are used for key establishment and signature, this
>>> would be a recommendation for two curves.  If different curves are
>>> used, this would be a recommendation for four curves.
>>>=20
>>> In addition to a recommendation, we also request that the CFRG provide
>>> a technical rationale for their selection.
>>>=20
>>> If the CFRG does not feel comfortable making a single set of
>>> selections, we propose that they select a small number of potential
>>> choices with a detailed technical analysis of the advantages and
>>> disadvantages of each selection and that the Security ADs sponsor a
>>> process (perhaps via SAAG) to narrow it down to the specification
>>> above.
>>>=20
>>> For clarity, we are not currently requesting that CFRG replace or
>>> profile the existing curves in RFC4492 and RFC 7027, although we are
>>> also not ruling out such an effort in the future. The current request
>>> is for a new set of curves to complement the existing ones.
>>>=20
>>> Please reach out to us if this is unclear or further information is
>>> required.
>>>=20
>>> Thanks,
>>>=20
>>> TLS Chairs
>>>=20
>>>=20
>>=20
>>=20
>>=20
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jul 16 08:48:51 2014
Return-Path: <luto@amacapital.net>
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 ABB451B2BA6 for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 08:48:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 SB_bDRa5Qv4B for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 08:48:47 -0700 (PDT)
Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EA9211B2A93 for <cfrg@irtf.org>; Wed, 16 Jul 2014 08:48:46 -0700 (PDT)
Received: by mail-lb0-f180.google.com with SMTP id v6so530189lbi.39 for <cfrg@irtf.org>; Wed, 16 Jul 2014 08:48:45 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=SoAEcomANKGM9Y43SLI669zEkUGm2Z+kmvRN7NzGn80=; b=BdW3F5u2+KurL8JBaKg0/gYzdl7fPpuPKd5SaqyVLZoCtTXDAwsUNwlM648HebclSE /DHGx9T3vG9e+Ox8O7DxaWPRUnpBsX/x9QuUAhRRDXk8KKc78jC+46ccAjXiphFrIifJ B4mBJXMBWDQigWwz3m81A+Z4FgU6/GPk/QDF0oAd+321Rc8wSEjT2Sw0S6q7LJJFhoy3 ue2lmBEvX5lcNVTWidI+uNiFHZ0j4lm9tArOOF0+H0h2g0hAtQpWjJ99z87tbY2oAacA wgE4UEwED+8TXtJTMdfkmH16Si5NQX0hWtOpsEAEeSzMaGYXuJXydEHH5t4yKulxXxcM vXaw==
X-Gm-Message-State: ALoCoQkIiqUjHt8qtUtvgOZJguj4RPoTOeG4EbQnXDJqbZeuyN8l2kPC43YQwR/twNWjuLhTAwda
X-Received: by 10.112.34.170 with SMTP id a10mr24783406lbj.11.1405525725135; Wed, 16 Jul 2014 08:48:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.108.130 with HTTP; Wed, 16 Jul 2014 08:48:25 -0700 (PDT)
In-Reply-To: <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 16 Jul 2014 08:48:25 -0700
Message-ID: <CALCETrWBuJWny7u3un=3cb0b7Yfp5DiyUYVpbD49Ex2wP-KdJw@mail.gmail.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gHg-11bVGzRAI64M1XbhZ1bO2Es
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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, 16 Jul 2014 15:48:48 -0000

On Wed, Jul 16, 2014 at 8:35 AM, Joseph Salowey (jsalowey)
<jsalowey@cisco.com> wrote:
>
> On Jul 14, 2014, at 6:11 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>
>> On Jul 14, 2014 12:49 PM, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> =
wrote:
>>>
>>> Dear CFRG,
>>>
>>> CFRG has received a formal request from the TLS Working Group for
>>> recommendations for new elliptic curves. Specifically, the TLS WG would
>>> like CFRG to recommend:
>>>
>>> - Curves suitable for both key establishment and digital signature
>>>  (though the same curves need not be used for both purposes).
>>>
>>> - One proposed curve or set of curves at the following security
>>>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>>>  192-bit security is optional.
>>
>> I would like these to be taken as minimums. There is no reason
>> Curve4417 should not be used for 192 bit security
>> or Goldilocks448 if performance is acceptable.
>>
>> I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
>> Secret data. Perhaps this is an area where the
>> TLS WG can do some more thinking about what they want to see.
>>
>
> [Joe] We've received a few comments about this offline so I want to clari=
fy on desired strengths. TLS supports 256-bit symmetric key ciphers and we =
want to have recommended curves to match this key strength.  We leave it up=
 to the CFRG to determine what ECC key strengths are appropriate above 128-=
bit symmetric key strength.  It is also not necessary that the recommendati=
on for higher strength curves be delivered at the same time, it would be OK=
 to deliver a recommendation for the 128-bit curves before the higher stren=
gth curves.

IIRC there's a reasonable argument for using 256-bit symmetric ciphers
with lower-strength curves.  There are brute-force attacks that can
break a small, random fraction of many 128-bit symmetric keys much
more quickly than any specific key could be broken, but I haven't
heard of similar attacks against ECDH.

--Andy


From nobody Wed Jul 16 14:39:53 2014
Return-Path: <simon@josefsson.org>
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 807A81A0085 for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 14:39:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, 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 nLBa2plf3mZV for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 14:39:51 -0700 (PDT)
Received: from duva.sjd.se (duva.sjd.se [IPv6:2001:9b0:1:1702::100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD1051A008C for <cfrg@irtf.org>; Wed, 16 Jul 2014 14:39:50 -0700 (PDT)
Received: from latte.josefsson.org (static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130]) (authenticated bits=0) by duva.sjd.se (8.14.4/8.14.4/Debian-4) with ESMTP id s6GLdgUv023889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 16 Jul 2014 23:39:45 +0200
From: Simon Josefsson <simon@josefsson.org>
To: "Paterson\, Kenny" <Kenny.Paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk>
OpenPGP: id=54265E8C; url=http://josefsson.org/54265e8c.txt
X-Hashcash: 1:22:140716:cfrg@irtf.org::uKv2Fgzc93bWXmlq:17S+
X-Hashcash: 1:22:140716:kenny.paterson@rhul.ac.uk::L34tTUJ3cPbju5j9:CSYB
Date: Wed, 16 Jul 2014 23:39:41 +0200
In-Reply-To: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> (Kenny Paterson's message of "Mon, 14 Jul 2014 19:49:41 +0000")
Message-ID: <87d2d5aspu.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.98.1 at duva.sjd.se
X-Virus-Status: Clean
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/2MWvASqMUfxBbOU1wQpnkRIco6k
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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, 16 Jul 2014 21:39:52 -0000

I'm reviewing the selection criteria.  Some of the requirements are
rather fine-grained and poorly justified, and appear to limit the search
space.  If taken literally, I believe they exclude some good candidates
and steer the selection into a rather small field of available options.

I'm fine with R1-R3.

"Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> writes:

> Intellectual Property
>
>    R4.  Required: available worldwide under reasonable and well
>    understood licensing terms [1]
>
>    R5.  Desired: available worldwide under royalty-free licensing
>    terms [1]

I believe non-royalty-free licensing terms is a nonstarter.  I suggest
collapsing this into:

R4'. Required: available for worldwide implementation (by both
     proprietary and free open source software) and use under well
     understood and royalty-free licensing terms

> Interoperability
>
>    R6.  Desired: can be used with current software implementations
>    (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>
>    R7.  Desired: can be used within current ECC standards of TLS,
>    PKIX, SSH, and IKE [4]

I do not see why these are desirable properties, so I disagree they
should be a selection criteria.  These properties restricts the search
space.  I would prefer if the CFRG are at liberty to recommend the best
alternative even if it is clearly not re-usable in existing software or
standards.  I would go even further saying that one of the reasons for
doing this excercise is that the existing software and standards are not
sufficient.

On the topic of interoperability, I would propose to add the following,
to me, more important property:

Rx. Desired: either a clear algorithm description exists (with clarity
on byte-ordering etc) or multiple interoperable implementations are
available.

If some alternative does not appear to be sufficiently specified or
widely implemented, the CFRG could take on driving a document to clarify
the solution.

> Security
>
>    R8.  Required: amenable to constant-time implementations, to avoid
>    side channel attacks [2]
>
>    R9.  Required: resist twist attacks [2]
>
>    R10.  Required: curve parameters should have good provenance;
>    random curves should be provably pseudorandom [5]
>
>    R11.  Desired for key exchange: resist invalid curve attacks [2];
>    note that complete addition laws help and are thus desirable [2].
>    (Note that the use of ephemeral keys also resist such attacks.)

Instead of R8-R11, I suggest to summarize this more generally as:

R8'. Required: the solution should be secure against reasonable and
well-understood threats, including (but not limited to and necessarily
not all of) brute-force, side-channel, invalid-curve, twist attacks, or
maliciously chosen curve parameters.

Designing against security threats is a balance, and I would say that
there are no perfect solutions.  Every solution will have some area
where they perform less well compared to some other solution.  I believe
the overall choice(s) should reflect well-balanced alternatives with
strong advantages and some understood disadvantages.

>    R12.  Required for PAKE: indistinguishability of curve points from
>    random strings [2]

I do not see why this is a desirable property for TLS, or other IETF
areas, so I disagree it should be a requirement.

/Simon


From nobody Wed Jul 16 15:30:21 2014
Return-Path: <dharkins@lounge.org>
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 35DEB1A0384 for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 15:30:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.867
X-Spam-Level: 
X-Spam-Status: No, score=-3.867 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_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 L7uhU5L4skAT for <cfrg@ietfa.amsl.com>; Wed, 16 Jul 2014 15:30:19 -0700 (PDT)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 3E9231A0378 for <cfrg@irtf.org>; Wed, 16 Jul 2014 15:30:16 -0700 (PDT)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id 7389A10224008; Wed, 16 Jul 2014 15:30:15 -0700 (PDT)
Received: from 63.133.199.244 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Wed, 16 Jul 2014 15:30:15 -0700 (PDT)
Message-ID: <afb38de47ebd4457e6192f4d07566ad0.squirrel@www.trepanning.net>
In-Reply-To: <87d2d5aspu.fsf@latte.josefsson.org>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <87d2d5aspu.fsf@latte.josefsson.org>
Date: Wed, 16 Jul 2014 15:30:15 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Simon Josefsson" <simon@josefsson.org>
User-Agent: SquirrelMail/1.4.14 [SVN]
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kEYY9V-toHB97GQuKF-5W7MP068
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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, 16 Jul 2014 22:30:20 -0000

On Wed, July 16, 2014 2:39 pm, Simon Josefsson wrote:
> "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> writes:
>>    R12.  Required for PAKE: indistinguishability of curve points from
>>    random strings [2]
>
> I do not see why this is a desirable property for TLS, or other IETF
> areas, so I disagree it should be a requirement.

  WIthout rehashing a TLS thread, not all sockets in the world connect
to port 443 and TLS is not synonymous with HTTPS. There are valid
uses of a PAKE with TLS, they just aren't browser-based.

  In addition, the numerous IETF documents that misuse PSKs
(MSCHAPv*, IKEv*, numerous TLS-PSK ciphersuites, EAP-PSK, etc)
would seem to suggest that we should have a nice way to use them
correctly.

  I support requirement R12.

  regards,

  Dan.



From nobody Thu Jul 17 22:52:10 2014
Return-Path: <b@b3k.us>
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 E8D171A064E for <cfrg@ietfa.amsl.com>; Thu, 17 Jul 2014 22:51:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 cOOeCzRdvh6B for <cfrg@ietfa.amsl.com>; Thu, 17 Jul 2014 22:51:51 -0700 (PDT)
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 744DB1B28E5 for <cfrg@irtf.org>; Thu, 17 Jul 2014 22:51:51 -0700 (PDT)
Received: by mail-wi0-f172.google.com with SMTP id n3so239327wiv.11 for <cfrg@irtf.org>; Thu, 17 Jul 2014 22:51:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=oorqYaO2S9l/doo2WF2kxVU2newyggTDVecnfcCiHtk=; b=QV13NwVDXwtFtIOxjfKCOdzNZmNpdLVfEiwOUwKfJqpRzkttjEn8Ogifb0NUl6J9qr daebOww0vPclwIUm84CvWjT1p6vBH2ilfyulmnadYtL7zpmu1YvQ3cE6Sgn/U/tqklcR 3IBStFu5xcqslxaS9HPxWgB2jq93BO24z9AJbXwOr9xW6fpP1Zk4uf/FXvKgUB5kjJt5 GsValTWQGhyEJvjlx7Q0WyQKkfM5oyahrA//6x7QG0r9TWfItcH6FnCwzb5CifatoCMG 4uS2zIcK53myYbsklOOWVmScn3IZQvia0Z8ikSJFj8085wnXAzQhsR3lrAlNjksSWHdN HyYA==
X-Gm-Message-State: ALoCoQlUEpo4iIL3QJUzgSz4KP5k9aVEazryKMtQe99PAMouU85pWmmwB+iR+BjZM2MlSc65zw+a
X-Received: by 10.180.188.103 with SMTP id fz7mr4039412wic.73.1405662709913; Thu, 17 Jul 2014 22:51:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Thu, 17 Jul 2014 22:51:29 -0700 (PDT)
In-Reply-To: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk>
From: Benjamin Black <b@b3k.us>
Date: Thu, 17 Jul 2014 22:51:29 -0700
Message-ID: <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: multipart/alternative; boundary=001a11c37e5e7fb21504fe715a55
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/aZz3gpo3hxafhJ69hukby4cxK9k
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Fri, 18 Jul 2014 05:51:56 -0000

--001a11c37e5e7fb21504fe715a55
Content-Type: text/plain; charset=UTF-8

Kenny,

There is rather a lot of ambiguity in these various versions of the
requirements. It would be helpful to get clarity on at least two points:

1) Is this request for _only_ new curves, as the subject line of your email
indicates, or for new "ECC mechanisms" as in the included list from David
McGrew? If it is the former, then curves which are incompatible with
existing standardized and widely deployed algorithms, at least including
ECDHE and ECDSA, must be excluded. If it is the latter, then this request
goes far beyond some curves and I suggest deserves a lot more debate on how
far down the new cryptography rabbit hole CFRG and the IETF wish to go.

2) Is the process here to agree on clear, complete, unambiguous
requirements against which candidate curves will be evaluated? I believe
the answer is, or should be, yes. However, based on ambiguities in the
stated requirements and the subsequent further blurring of those
requirements on the mailing list, it seems that might not be the consensus
view.


Ben


On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk
> wrote:

> Dear CFRG,
>
> CFRG has received a formal request from the TLS Working Group for
> recommendations for new elliptic curves. Specifically, the TLS WG would
> like CFRG to recommend:
>
> - Curves suitable for both key establishment and digital signature
>   (though the same curves need not be used for both purposes).
>
> - One proposed curve or set of curves at the following security
>   levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>   192-bit security is optional.
>
> Note that these curves are not intended to supplant current curves in
> widespread use, but rather to supplement them. Full details of the request
> can be found in the e-mail from the TLS WG chairs below.
>
> The CFRG chairs will coordinate a response to this request from the CFRG
> readership. Ideally we will reach a rough consensus through discussion on
> the
> list and at the upcoming IETF 90 meeting in Toronto. While no deadline is
> set for our response to the TLS WG, we should aim to have one ready within
> 2 months.
>
> We regard this as a major work item for CFRG and one where CFRG can
> provide real value to the TLS WG and the IETF more widely. So we encourage
> (and indeed request) active participation from the widest set of
> participants on this project.
>
> As a first step, we propose to discuss the requirements for new curves for
> a period of 2 weeks. Using an agreed set of requirements, in a second
> step, we will then evaluate different curve proposals (including extant
> proposals and any emerging ones) for a period of 4 weeks. In a final
> period of 2 weeks, we will produce a proposal for the TLS WG and seek
> consensus on it.
>
>
> The first step, running for 2 weeks, begins here.
>
> A starting point for requirements can be found in David McGrew's recent
> CFRG post
> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
> reproduced here:
>
> ----
>
> Simplicity
>
>    R1.  Desired: easy to understand and implement [1]
>
> Efficiency
>
>    R2.  Required: amenable to compact implementations and fast
>    implementations, across both small and large processors [1]
>
>    R3.  Desired: re-use components between signatures and key exchange
>    algorithms [3]
>
> Intellectual Property
>
>    R4.  Required: available worldwide under reasonable and well
>    understood licensing terms [1]
>
>    R5.  Desired: available worldwide under royalty-free licensing
>    terms [1]
>
> Interoperability
>
>    R6.  Desired: can be used with current software implementations
>    (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>
>    R7.  Desired: can be used within current ECC standards of TLS,
>    PKIX, SSH, and IKE [4]
>
> Security
>
>    R8.  Required: amenable to constant-time implementations, to avoid
>    side channel attacks [2]
>
>    R9.  Required: resist twist attacks [2]
>
>    R10.  Required: curve parameters should have good provenance;
>    random curves should be provably pseudorandom [5]
>
>    R11.  Desired for key exchange: resist invalid curve attacks [2];
>    note that complete addition laws help and are thus desirable [2].
>    (Note that the use of ephemeral keys also resist such attacks.)
>
>    R12.  Required for PAKE: indistinguishability of curve points from
>    random strings [2]
>
> Footnotes:
>
>    [1] Original criteria set out for the Advanced Encryption Standard,
>        which is equally applicable to ECC.  National Institute of
>        Standards and Technology (NIST) of the United States, 1998.
>
>    [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>        curves for elliptic-curve cryptography.
>        http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
> <http://safecurves.cr.yp.to/>, accessed
> April 2014.
>
>    [3] Criteria identified by David McGrew, 2014.
>
>    [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>
>    [5] Criteria widely acknowledged on CFRG email list during 2014.
>
> ----
>
>
> Our first request, then, is that you consider these requirements, and
> provide your views on their appropriateness, completeness, and individual
> classifications (required/desired). We will continue that discussion for 2
> weeks, until the end of the IETF meeting in Toronto. The chairs will then
> compile a consensus-based list of requirements of the above form, after
> which we will move to the second step.
>
> We thank you in advance for your participation in this important task.
>
> Regards
>
> Alexei, Kenny and Kevin (CFRG co-chairs)
>
>
>
>
> On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> wrote:
>
> >CFRG Chairs and Security ADs,
> >
> >TLS WG would like to formally request that the
> >CFRG make a recommendation for new ECC group support for TLS
> >and other similar applications. Specifically, we request that CFRG
> >recommend the following:
> >
> >- Curves suitable for both key establishment and digital signature
> >  (though the same curves need not be used for both purposes).
> >
> >- One proposed curve or set of curves at the following security
> >  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
> >  192-bit security is optional.
> >
> >If the same curves are used for key establishment and signature, this
> >would be a recommendation for two curves.  If different curves are
> >used, this would be a recommendation for four curves.
> >
> >In addition to a recommendation, we also request that the CFRG provide
> >a technical rationale for their selection.
> >
> >If the CFRG does not feel comfortable making a single set of
> >selections, we propose that they select a small number of potential
> >choices with a detailed technical analysis of the advantages and
> >disadvantages of each selection and that the Security ADs sponsor a
> >process (perhaps via SAAG) to narrow it down to the specification
> >above.
> >
> >For clarity, we are not currently requesting that CFRG replace or
> >profile the existing curves in RFC4492 and RFC 7027, although we are
> >also not ruling out such an effort in the future. The current request
> >is for a new set of curves to complement the existing ones.
> >
> >Please reach out to us if this is unclear or further information is
> >required.
> >
> >Thanks,
> >
> >TLS Chairs
> >
> >
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--001a11c37e5e7fb21504fe715a55
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr" style=3D"font-family:arial,sans-serif;fon=
t-size:13px">Kenny,<div><br></div><div>There is rather a lot of ambiguity i=
n these various versions of the requirements. It would be helpful to get cl=
arity on at least two points:</div>

<div><br></div><div>1) Is this request for _only_ new curves, as the subjec=
t line of your email indicates, or for new &quot;ECC mechanisms&quot; as in=
 the included list from=C2=A0David McGrew? If it is the former, then curves=
 which are incompatible with existing standardized and widely deployed algo=
rithms, at least including ECDHE and ECDSA, must be excluded. If it is the =
latter, then this request goes far beyond some curves and I suggest deserve=
s a lot more debate on how far down the new cryptography rabbit hole CFRG a=
nd the IETF wish to go.</div>

<div><br></div><div>2) Is the process here to agree on clear, complete, una=
mbiguous requirements against which candidate curves will be evaluated? I b=
elieve the answer is, or should be, yes. However, based on ambiguities in t=
he stated requirements and the subsequent further blurring of those require=
ments on the mailing list, it seems that might not be the consensus view.</=
div>

<div><br></div><div><br></div><div><font face=3D"arial, sans-serif">Ben</fo=
nt></div></div><div class=3D"" style=3D"font-family:arial,sans-serif;font-s=
ize:13px"></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmai=
l_quote">

On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny <span dir=3D"ltr">&lt;<a =
href=3D"mailto:Kenny.Paterson@rhul.ac.uk" target=3D"_blank">Kenny.Paterson@=
rhul.ac.uk</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear CFRG,<br>
<br>
CFRG has received a formal request from the TLS Working Group for<br>
recommendations for new elliptic curves. Specifically, the TLS WG would<br>
like CFRG to recommend:<br>
<br>
- Curves suitable for both key establishment and digital signature<br>
=C2=A0 (though the same curves need not be used for both purposes).<br>
<br>
- One proposed curve or set of curves at the following security<br>
=C2=A0 levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).<br>
=C2=A0 192-bit security is optional.<br>
<br>
Note that these curves are not intended to supplant current curves in<br>
widespread use, but rather to supplement them. Full details of the request<=
br>
can be found in the e-mail from the TLS WG chairs below.<br>
<br>
The CFRG chairs will coordinate a response to this request from the CFRG<br=
>
readership. Ideally we will reach a rough consensus through discussion on<b=
r>
the<br>
list and at the upcoming IETF 90 meeting in Toronto. While no deadline is<b=
r>
set for our response to the TLS WG, we should aim to have one ready within<=
br>
2 months.<br>
<br>
We regard this as a major work item for CFRG and one where CFRG can<br>
provide real value to the TLS WG and the IETF more widely. So we encourage<=
br>
(and indeed request) active participation from the widest set of<br>
participants on this project.<br>
<br>
As a first step, we propose to discuss the requirements for new curves for<=
br>
a period of 2 weeks. Using an agreed set of requirements, in a second<br>
step, we will then evaluate different curve proposals (including extant<br>
proposals and any emerging ones) for a period of 4 weeks. In a final<br>
period of 2 weeks, we will produce a proposal for the TLS WG and seek<br>
consensus on it.<br>
<br>
<br>
The first step, running for 2 weeks, begins here.<br>
<br>
A starting point for requirements can be found in David McGrew&#39;s recent=
<br>
CFRG post<br>
(<a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html=
" target=3D"_blank">http://www.ietf.org/mail-archive/web/cfrg/current/msg04=
461.html</a>) and<br>
reproduced here:<br>
<br>
----<br>
<br>
Simplicity<br>
<br>
=C2=A0 =C2=A0R1. =C2=A0Desired: easy to understand and implement [1]<br>
<br>
Efficiency<br>
<br>
=C2=A0 =C2=A0R2. =C2=A0Required: amenable to compact implementations and fa=
st<br>
=C2=A0 =C2=A0implementations, across both small and large processors [1]<br=
>
<br>
=C2=A0 =C2=A0R3. =C2=A0Desired: re-use components between signatures and ke=
y exchange<br>
=C2=A0 =C2=A0algorithms [3]<br>
<br>
Intellectual Property<br>
<br>
=C2=A0 =C2=A0R4. =C2=A0Required: available worldwide under reasonable and w=
ell<br>
=C2=A0 =C2=A0understood licensing terms [1]<br>
<br>
=C2=A0 =C2=A0R5. =C2=A0Desired: available worldwide under royalty-free lice=
nsing<br>
=C2=A0 =C2=A0terms [1]<br>
<br>
Interoperability<br>
<br>
=C2=A0 =C2=A0R6. =C2=A0Desired: can be used with current software implement=
ations<br>
=C2=A0 =C2=A0(using different curve parameters) of TLS, PKIX, SSH, and IKE =
[4]<br>
<br>
=C2=A0 =C2=A0R7. =C2=A0Desired: can be used within current ECC standards of=
 TLS,<br>
=C2=A0 =C2=A0PKIX, SSH, and IKE [4]<br>
<br>
Security<br>
<br>
=C2=A0 =C2=A0R8. =C2=A0Required: amenable to constant-time implementations,=
 to avoid<br>
=C2=A0 =C2=A0side channel attacks [2]<br>
<br>
=C2=A0 =C2=A0R9. =C2=A0Required: resist twist attacks [2]<br>
<br>
=C2=A0 =C2=A0R10. =C2=A0Required: curve parameters should have good provena=
nce;<br>
=C2=A0 =C2=A0random curves should be provably pseudorandom [5]<br>
<br>
=C2=A0 =C2=A0R11. =C2=A0Desired for key exchange: resist invalid curve atta=
cks [2];<br>
=C2=A0 =C2=A0note that complete addition laws help and are thus desirable [=
2].<br>
=C2=A0 =C2=A0(Note that the use of ephemeral keys also resist such attacks.=
)<br>
<br>
=C2=A0 =C2=A0R12. =C2=A0Required for PAKE: indistinguishability of curve po=
ints from<br>
=C2=A0 =C2=A0random strings [2]<br>
<br>
Footnotes:<br>
<br>
=C2=A0 =C2=A0[1] Original criteria set out for the Advanced Encryption Stan=
dard,<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0which is equally applicable to ECC. =C2=A0Nation=
al Institute of<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0Standards and Technology (NIST) of the United St=
ates, 1998.<br>
<br>
=C2=A0 =C2=A0[2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing =
safe<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0curves for elliptic-curve cryptography.<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"http://safecurves.cr.yp.to" target=3D=
"_blank">http://safecurves.cr.yp.to</a> &lt;<a href=3D"http://safecurves.cr=
.yp.to/" target=3D"_blank">http://safecurves.cr.yp.to/</a>&gt;<br>
&lt;<a href=3D"http://safecurves.cr.yp.to/" target=3D"_blank">http://safecu=
rves.cr.yp.to/</a>&gt;, accessed<br>
April 2014.<br>
<br>
=C2=A0 =C2=A0[3] Criteria identified by David McGrew, 2014.<br>
<br>
=C2=A0 =C2=A0[4] Criteria identified by Russ Housley, TLS WG meeting at IET=
F89.<br>
<br>
=C2=A0 =C2=A0[5] Criteria widely acknowledged on CFRG email list during 201=
4.<br>
<br>
----<br>
<br>
<br>
Our first request, then, is that you consider these requirements, and<br>
provide your views on their appropriateness, completeness, and individual<b=
r>
classifications (required/desired). We will continue that discussion for 2<=
br>
weeks, until the end of the IETF meeting in Toronto. The chairs will then<b=
r>
compile a consensus-based list of requirements of the above form, after<br>
which we will move to the second step.<br>
<br>
We thank you in advance for your participation in this important task.<br>
<br>
Regards<br>
<br>
Alexei, Kenny and Kevin (CFRG co-chairs)<br>
<br>
<br>
<br>
<br>
On 11/07/2014 05:44, &quot;Joseph Salowey (jsalowey)&quot; &lt;<a href=3D"m=
ailto:jsalowey@cisco.com">jsalowey@cisco.com</a>&gt;<br>
wrote:<br>
<br>
&gt;CFRG Chairs and Security ADs,<br>
&gt;<br>
&gt;TLS WG would like to formally request that the<br>
&gt;CFRG make a recommendation for new ECC group support for TLS<br>
&gt;and other similar applications. Specifically, we request that CFRG<br>
&gt;recommend the following:<br>
&gt;<br>
&gt;- Curves suitable for both key establishment and digital signature<br>
&gt; =C2=A0(though the same curves need not be used for both purposes).<br>
&gt;<br>
&gt;- One proposed curve or set of curves at the following security<br>
&gt; =C2=A0levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).<=
br>
&gt; =C2=A0192-bit security is optional.<br>
&gt;<br>
&gt;If the same curves are used for key establishment and signature, this<b=
r>
&gt;would be a recommendation for two curves. =C2=A0If different curves are=
<br>
&gt;used, this would be a recommendation for four curves.<br>
&gt;<br>
&gt;In addition to a recommendation, we also request that the CFRG provide<=
br>
&gt;a technical rationale for their selection.<br>
&gt;<br>
&gt;If the CFRG does not feel comfortable making a single set of<br>
&gt;selections, we propose that they select a small number of potential<br>
&gt;choices with a detailed technical analysis of the advantages and<br>
&gt;disadvantages of each selection and that the Security ADs sponsor a<br>
&gt;process (perhaps via SAAG) to narrow it down to the specification<br>
&gt;above.<br>
&gt;<br>
&gt;For clarity, we are not currently requesting that CFRG replace or<br>
&gt;profile the existing curves in RFC4492 and RFC 7027, although we are<br=
>
&gt;also not ruling out such an effort in the future. The current request<b=
r>
&gt;is for a new set of curves to complement the existing ones.<br>
&gt;<br>
&gt;Please reach out to us if this is unclear or further information is<br>
&gt;required.<br>
&gt;<br>
&gt;Thanks,<br>
&gt;<br>
&gt;TLS Chairs<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</blockquote></div><br></div>

--001a11c37e5e7fb21504fe715a55--


From nobody Thu Jul 17 22:52:46 2014
Return-Path: <b@b3k.us>
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 6C9B01A064E for <cfrg@ietfa.amsl.com>; Thu, 17 Jul 2014 22:52:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.977
X-Spam-Level: 
X-Spam-Status: No, score=-3.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 LjZ8trTXR_fe for <cfrg@ietfa.amsl.com>; Thu, 17 Jul 2014 22:52:16 -0700 (PDT)
Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F03B01B28EB for <cfrg@irtf.org>; Thu, 17 Jul 2014 22:52:15 -0700 (PDT)
Received: by mail-wi0-f181.google.com with SMTP id bs8so233597wib.14 for <cfrg@irtf.org>; Thu, 17 Jul 2014 22:52:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=TDTIELTwV4V/NweDCLS1Mbns/kFitFX3n+gmihCR/JM=; b=PTq/Vjin5OLAvkwglRxABFJzk3jVYTApz/L73QbupzcqA5snCEajrUbjAYJdM38Zor kEVR91nUKZ6lsYcJHVqmJoY/mLlA7KxXpoJTHt/g8QPsyoYZQL7md2LZuJRMqq+mTUXX gHlei3eutFS5FY8TYRlR+EersSjZfJhGkrnUxccCFPxLK/rcon6pJw26huSCHh0T2LKd xh472WfPMrDppXPe0MDGf6O+3qZSprYkaTyzGJSuiRNJAjcJkQqDv8FzJ6PXjuA/VuUP WgXbBgeRMv/X1gstbOAvNssBF7Q4guYR6nnXBkhE+Den6woSsvL52bu0KF8COpa0Pjxw 13pw==
X-Gm-Message-State: ALoCoQmJndijfhCLZ2XqqvU1y8noU9/SAWwe6VsRcDR8xL5YaX/zuAUTuMohNRxj1S4DaQzfOIul
X-Received: by 10.180.36.38 with SMTP id n6mr28367764wij.73.1405662734605; Thu, 17 Jul 2014 22:52:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Thu, 17 Jul 2014 22:51:54 -0700 (PDT)
In-Reply-To: <87d2d5aspu.fsf@latte.josefsson.org>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <87d2d5aspu.fsf@latte.josefsson.org>
From: Benjamin Black <b@b3k.us>
Date: Thu, 17 Jul 2014 22:51:54 -0700
Message-ID: <CA+Vbu7wG5XzP+nQX2382MvayiCw+dfXjhC-7wKjfjvG_yzUkAw@mail.gmail.com>
To: Simon Josefsson <simon@josefsson.org>
Content-Type: multipart/alternative; boundary=e89a8f502f7ef8763304fe715bf6
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/-546re5RKlvK-W6CDPVx7dN56XA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Fri, 18 Jul 2014 05:52:24 -0000

--e89a8f502f7ef8763304fe715bf6
Content-Type: text/plain; charset=UTF-8

"If taken literally, I believe they exclude some good candidates and steer
the selection into a rather small field of available options."

I suggest this is the nature of this process and is indicative of objective
and thorough engineering. It is often the case that the requirements
exclude all available candidate solutions, necessitating new development.
That is actually how this process started in the first place: new
requirements emerged and excluded the existing curves. Exclusion is a
feature, not a bug.

The alternative, which it seems you are suggesting, is to adjust the
requirements based not on the problem we are trying to solve but on
immediately available options that would be excluded if the requirements
were complete and adhered to in the process. In my experience that
inevitably leads to poor outcomes. In particular, in this instance we are
talking about setting a precedent for IETF adopting cryptography which has
not been standardized by any other body. We must not cut any corners on
what will be Internet cryptography for at least the next 15 years.

"I would prefer if the CFRG are at liberty to recommend the
best alternative even if it is clearly not re-usable in existing software or
standards."

See my response to Kenny a few minutes ago: the request was explicitly for
new curves, nothing more. Expanding the scope to include new algorithms
implies enormously more work on requirements, specification, and
deployment. For example, a curve which was incompatible with ECDSA would
require a new signature algorithm, which in turn would require new cipher
suites, new certificates issued by CAs from new hardware and software
platforms yet to be developed, and so on. That list doesn't even touch on
all the challenges it presents for customers of these technologies.

I share the desire to push towards more modern cryptography in IETF
specifications, but that desire is tempered by an acute awareness of the
cascade of expensive and high risk change that comes along with changing
too much too quickly. I recommend we adhere to both the letter and the
spirit of the subject line in Kenny's initial email and focus only on new
curves which are compatible with existing algorithms and protocols.


Ben



On Wed, Jul 16, 2014 at 2:39 PM, Simon Josefsson <simon@josefsson.org>
wrote:

> I'm reviewing the selection criteria.  Some of the requirements are
> rather fine-grained and poorly justified, and appear to limit the search
> space.  If taken literally, I believe they exclude some good candidates
> and steer the selection into a rather small field of available options.
>
> I'm fine with R1-R3.
>
> "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> writes:
>
> > Intellectual Property
> >
> >    R4.  Required: available worldwide under reasonable and well
> >    understood licensing terms [1]
> >
> >    R5.  Desired: available worldwide under royalty-free licensing
> >    terms [1]
>
> I believe non-royalty-free licensing terms is a nonstarter.  I suggest
> collapsing this into:
>
> R4'. Required: available for worldwide implementation (by both
>      proprietary and free open source software) and use under well
>      understood and royalty-free licensing terms
>
> > Interoperability
> >
> >    R6.  Desired: can be used with current software implementations
> >    (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
> >
> >    R7.  Desired: can be used within current ECC standards of TLS,
> >    PKIX, SSH, and IKE [4]
>
> I do not see why these are desirable properties, so I disagree they
> should be a selection criteria.  These properties restricts the search
> space.  I would prefer if the CFRG are at liberty to recommend the best
> alternative even if it is clearly not re-usable in existing software or
> standards.  I would go even further saying that one of the reasons for
> doing this excercise is that the existing software and standards are not
> sufficient.
>
> On the topic of interoperability, I would propose to add the following,
> to me, more important property:
>
> Rx. Desired: either a clear algorithm description exists (with clarity
> on byte-ordering etc) or multiple interoperable implementations are
> available.
>
> If some alternative does not appear to be sufficiently specified or
> widely implemented, the CFRG could take on driving a document to clarify
> the solution.
>
> > Security
> >
> >    R8.  Required: amenable to constant-time implementations, to avoid
> >    side channel attacks [2]
> >
> >    R9.  Required: resist twist attacks [2]
> >
> >    R10.  Required: curve parameters should have good provenance;
> >    random curves should be provably pseudorandom [5]
> >
> >    R11.  Desired for key exchange: resist invalid curve attacks [2];
> >    note that complete addition laws help and are thus desirable [2].
> >    (Note that the use of ephemeral keys also resist such attacks.)
>
> Instead of R8-R11, I suggest to summarize this more generally as:
>
> R8'. Required: the solution should be secure against reasonable and
> well-understood threats, including (but not limited to and necessarily
> not all of) brute-force, side-channel, invalid-curve, twist attacks, or
> maliciously chosen curve parameters.
>
> Designing against security threats is a balance, and I would say that
> there are no perfect solutions.  Every solution will have some area
> where they perform less well compared to some other solution.  I believe
> the overall choice(s) should reflect well-balanced alternatives with
> strong advantages and some understood disadvantages.
>
> >    R12.  Required for PAKE: indistinguishability of curve points from
> >    random strings [2]
>
> I do not see why this is a desirable property for TLS, or other IETF
> areas, so I disagree it should be a requirement.
>
> /Simon
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--e89a8f502f7ef8763304fe715bf6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"im" style=3D"font-family:arial,sans-serif;fo=
nt-size:13px">&quot;If taken literally, I believe they exclude some good ca=
ndidates=C2=A0and steer the selection into a rather small field of availabl=
e options.&quot;<div>

<br></div></div><div style=3D"font-family:arial,sans-serif;font-size:13px">=
I suggest this is the nature of this process and is indicative of objective=
 and thorough engineering. It is often the case that the requirements exclu=
de all available candidate solutions, necessitating new development. That i=
s actually how this process started in the first place: new requirements em=
erged and excluded the existing curves. Exclusion is a feature, not a bug.<=
/div>

<div style=3D"font-family:arial,sans-serif;font-size:13px"><br></div><div s=
tyle=3D"font-family:arial,sans-serif;font-size:13px">The alternative, which=
 it seems you are suggesting, is to adjust the requirements based not on th=
e problem we are trying to solve but on immediately available options that =
would be excluded if the requirements were complete and adhered to in the p=
rocess. In my experience that inevitably leads to poor outcomes. In particu=
lar, in this instance we are talking about setting a precedent for IETF ado=
pting cryptography which has not been standardized by any other body. We mu=
st not cut any corners on what will be Internet cryptography for at least t=
he next 15 years.</div>

<div class=3D"im" style=3D"font-family:arial,sans-serif;font-size:13px"><di=
v><br></div><div>&quot;I would prefer if the CFRG are at liberty to recomme=
nd the best=C2=A0alternative even if it is clearly not re-usable in existin=
g software or</div>

standards.&quot;<div><br></div></div><div style=3D"font-family:arial,sans-s=
erif;font-size:13px"><font face=3D"arial, sans-serif">See my response to Ke=
nny a few minutes ago: the request was explicitly for new curves, nothing m=
ore. Expanding the scope to include new algorithms implies enormously more =
work on requirements, specification, and deployment. For example, a curve w=
hich was incompatible with ECDSA would require a new signature algorithm, w=
hich in turn would require new cipher suites, new certificates issued by CA=
s from new hardware and software platforms yet to be developed, and so on. =
That list doesn&#39;t even touch on all the challenges it presents for cust=
omers of these technologies.</font></div>

<div style=3D"font-family:arial,sans-serif;font-size:13px"><font face=3D"ar=
ial, sans-serif"><br></font></div><div style=3D"font-family:arial,sans-seri=
f;font-size:13px"><font face=3D"arial, sans-serif">I share the desire to pu=
sh towards more modern cryptography in IETF specifications, but that desire=
 is tempered by an acute awareness of the cascade of expensive and high ris=
k change that comes along with changing too much too quickly.=C2=A0</font>I=
 recommend we adhere to both the letter and the spirit of the subject line =
in Kenny&#39;s initial email and focus only on new curves which are compati=
ble with existing algorithms and protocols.</div>

<div style=3D"font-family:arial,sans-serif;font-size:13px"><br></div><div s=
tyle=3D"font-family:arial,sans-serif;font-size:13px"><br></div><div style=
=3D"font-family:arial,sans-serif;font-size:13px">Ben</div><div style=3D"fon=
t-family:arial,sans-serif;font-size:13px">

<br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quot=
e">On Wed, Jul 16, 2014 at 2:39 PM, Simon Josefsson <span dir=3D"ltr">&lt;<=
a href=3D"mailto:simon@josefsson.org" target=3D"_blank">simon@josefsson.org=
</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">I&#39;m reviewing the selection criteria. =
=C2=A0Some of the requirements are<br>
rather fine-grained and poorly justified, and appear to limit the search<br=
>
space. =C2=A0If taken literally, I believe they exclude some good candidate=
s<br>
and steer the selection into a rather small field of available options.<br>
<br>
I&#39;m fine with R1-R3.<br>
<div class=3D""><br>
&quot;Paterson, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk=
">Kenny.Paterson@rhul.ac.uk</a>&gt; writes:<br>
<br>
&gt; Intellectual Property<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R4. =C2=A0Required: available worldwide under reasonable =
and well<br>
&gt; =C2=A0 =C2=A0understood licensing terms [1]<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R5. =C2=A0Desired: available worldwide under royalty-free=
 licensing<br>
&gt; =C2=A0 =C2=A0terms [1]<br>
<br>
</div>I believe non-royalty-free licensing terms is a nonstarter. =C2=A0I s=
uggest<br>
collapsing this into:<br>
<br>
R4&#39;. Required: available for worldwide implementation (by both<br>
=C2=A0 =C2=A0 =C2=A0proprietary and free open source software) and use unde=
r well<br>
=C2=A0 =C2=A0 =C2=A0understood and royalty-free licensing terms<br>
<div class=3D""><br>
&gt; Interoperability<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R6. =C2=A0Desired: can be used with current software impl=
ementations<br>
&gt; =C2=A0 =C2=A0(using different curve parameters) of TLS, PKIX, SSH, and=
 IKE [4]<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R7. =C2=A0Desired: can be used within current ECC standar=
ds of TLS,<br>
&gt; =C2=A0 =C2=A0PKIX, SSH, and IKE [4]<br>
<br>
</div>I do not see why these are desirable properties, so I disagree they<b=
r>
should be a selection criteria. =C2=A0These properties restricts the search=
<br>
space. =C2=A0I would prefer if the CFRG are at liberty to recommend the bes=
t<br>
alternative even if it is clearly not re-usable in existing software or<br>
standards. =C2=A0I would go even further saying that one of the reasons for=
<br>
doing this excercise is that the existing software and standards are not<br=
>
sufficient.<br>
<br>
On the topic of interoperability, I would propose to add the following,<br>
to me, more important property:<br>
<br>
Rx. Desired: either a clear algorithm description exists (with clarity<br>
on byte-ordering etc) or multiple interoperable implementations are<br>
available.<br>
<br>
If some alternative does not appear to be sufficiently specified or<br>
widely implemented, the CFRG could take on driving a document to clarify<br=
>
the solution.<br>
<div class=3D""><br>
&gt; Security<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R8. =C2=A0Required: amenable to constant-time implementat=
ions, to avoid<br>
&gt; =C2=A0 =C2=A0side channel attacks [2]<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R9. =C2=A0Required: resist twist attacks [2]<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R10. =C2=A0Required: curve parameters should have good pr=
ovenance;<br>
&gt; =C2=A0 =C2=A0random curves should be provably pseudorandom [5]<br>
&gt;<br>
&gt; =C2=A0 =C2=A0R11. =C2=A0Desired for key exchange: resist invalid curve=
 attacks [2];<br>
&gt; =C2=A0 =C2=A0note that complete addition laws help and are thus desira=
ble [2].<br>
&gt; =C2=A0 =C2=A0(Note that the use of ephemeral keys also resist such att=
acks.)<br>
<br>
</div>Instead of R8-R11, I suggest to summarize this more generally as:<br>
<br>
R8&#39;. Required: the solution should be secure against reasonable and<br>
well-understood threats, including (but not limited to and necessarily<br>
not all of) brute-force, side-channel, invalid-curve, twist attacks, or<br>
maliciously chosen curve parameters.<br>
<br>
Designing against security threats is a balance, and I would say that<br>
there are no perfect solutions. =C2=A0Every solution will have some area<br=
>
where they perform less well compared to some other solution. =C2=A0I belie=
ve<br>
the overall choice(s) should reflect well-balanced alternatives with<br>
strong advantages and some understood disadvantages.<br>
<div class=3D""><br>
&gt; =C2=A0 =C2=A0R12. =C2=A0Required for PAKE: indistinguishability of cur=
ve points from<br>
&gt; =C2=A0 =C2=A0random strings [2]<br>
<br>
</div>I do not see why this is a desirable property for TLS, or other IETF<=
br>
areas, so I disagree it should be a requirement.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
/Simon<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div></div></blockquote></div><br></div>

--e89a8f502f7ef8763304fe715bf6--


From nobody Thu Jul 17 23:03:34 2014
Return-Path: <b@b3k.us>
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 E3DEF1B28F3 for <cfrg@ietfa.amsl.com>; Thu, 17 Jul 2014 23:03:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.377
X-Spam-Level: 
X-Spam-Status: No, score=-1.377 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_55=0.6, RCVD_IN_DNSWL_LOW=-0.7] 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 BKPR76_QJDaW for <cfrg@ietfa.amsl.com>; Thu, 17 Jul 2014 23:03:28 -0700 (PDT)
Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5D0BA1B28E7 for <cfrg@irtf.org>; Thu, 17 Jul 2014 23:03:28 -0700 (PDT)
Received: by mail-wi0-f173.google.com with SMTP id f8so250304wiw.12 for <cfrg@irtf.org>; Thu, 17 Jul 2014 23:03:27 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=RlFzNc9tHlRkw4+TkBbZc6l7d50OOzNTA5mp/suwtHA=; b=dXgsEtwvynMV4LgwhM1sffdf9B/aaNrS6aYZLama+6Ff3rzjao80uUs8Pev3hyTHXf /6VP48JANyBTrQrT1IlX1exXqdb9LwHmHuq+29YqgbCHdPI9ZzP2bPcO/OIPRXSuldM2 zUg7lvAX6DURAYklVA/oWO09LmmokCFo/Jv0Kcgnm2NxhDzO9r7R8sMqOQgUZ6WG+Uv4 KDT/x8GSkXU5N2V8K6jvp2/xnf4rlDuHL2yCcKzL9S13UdOtIdfhU7mdX8Z3W3X5mXRs sVyp6pBl44V/gjXH43XFuh8qOtHA0sF/jN7+2A1nMigQZA+Xr1MzRujqqFsjat+0LCc7 hxRA==
X-Gm-Message-State: ALoCoQlh66MeNDCYY+6/3VQ4+UmV5/Wue3yA6Q8GkTXUKlW8HT2UGInRLwQOs5Em57bkhaUMXSiM
X-Received: by 10.194.23.135 with SMTP id m7mr3283241wjf.2.1405663406822; Thu, 17 Jul 2014 23:03:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Thu, 17 Jul 2014 23:03:06 -0700 (PDT)
In-Reply-To: <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com>
From: Benjamin Black <b@b3k.us>
Date: Thu, 17 Jul 2014 23:03:06 -0700
Message-ID: <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Content-Type: multipart/alternative; boundary=047d7b5d5ffe09ae3804fe71847f
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/-YcLGU3thoD9YTpKBr-fzy5_5_M
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Fri, 18 Jul 2014 06:03:32 -0000

--047d7b5d5ffe09ae3804fe71847f
Content-Type: text/plain; charset=UTF-8

"TLS supports 256-bit symmetric key ciphers and we want to have recommended
curves to match this key strength.  We leave it up to the CFRG to determine
what ECC key strengths are appropriate above 128-bit symmetric key
strength."

Can you clarify why this is the case? TLS already has suites with 256-bit
symmetric ciphers and they are paired with 192-bit security level
components, including curves [1]. I can see arguments in favor of either
192 or 256, but I don't see how this is now a CFRG decision.

"It is also not necessary that the recommendation for higher strength
curves be delivered at the same time, it would be OK to deliver a
recommendation for the 128-bit curves before the higher strength curves."

Can you clarify why this is the case? I'm not aware of any other
standardization effort that has done this and see no reason for it.


Ben

[1] RFC5289


On Wed, Jul 16, 2014 at 8:35 AM, Joseph Salowey (jsalowey) <
jsalowey@cisco.com> wrote:

>
> On Jul 14, 2014, at 6:11 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>
> > On Jul 14, 2014 12:49 PM, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
> wrote:
> >>
> >> Dear CFRG,
> >>
> >> CFRG has received a formal request from the TLS Working Group for
> >> recommendations for new elliptic curves. Specifically, the TLS WG would
> >> like CFRG to recommend:
> >>
> >> - Curves suitable for both key establishment and digital signature
> >>  (though the same curves need not be used for both purposes).
> >>
> >> - One proposed curve or set of curves at the following security
> >>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
> >>  192-bit security is optional.
> >
> > I would like these to be taken as minimums. There is no reason
> > Curve4417 should not be used for 192 bit security
> > or Goldilocks448 if performance is acceptable.
> >
> > I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
> > Secret data. Perhaps this is an area where the
> > TLS WG can do some more thinking about what they want to see.
> >
>
> [Joe] We've received a few comments about this offline so I want to
> clarify on desired strengths. TLS supports 256-bit symmetric key ciphers
> and we want to have recommended curves to match this key strength.  We
> leave it up to the CFRG to determine what ECC key strengths are appropriate
> above 128-bit symmetric key strength.  It is also not necessary that the
> recommendation for higher strength curves be delivered at the same time, it
> would be OK to deliver a recommendation for the 128-bit curves before the
> higher strength curves.
>
> >>
> >> Note that these curves are not intended to supplant current curves in
> >> widespread use, but rather to supplement them. Full details of the
> request
> >> can be found in the e-mail from the TLS WG chairs below.
> >>
> >> The CFRG chairs will coordinate a response to this request from the CFRG
> >> readership. Ideally we will reach a rough consensus through discussion
> on
> >> the
> >> list and at the upcoming IETF 90 meeting in Toronto. While no deadline
> is
> >> set for our response to the TLS WG, we should aim to have one ready
> within
> >> 2 months.
> >>
> >> We regard this as a major work item for CFRG and one where CFRG can
> >> provide real value to the TLS WG and the IETF more widely. So we
> encourage
> >> (and indeed request) active participation from the widest set of
> >> participants on this project.
> >>
> >> As a first step, we propose to discuss the requirements for new curves
> for
> >> a period of 2 weeks. Using an agreed set of requirements, in a second
> >> step, we will then evaluate different curve proposals (including extant
> >> proposals and any emerging ones) for a period of 4 weeks. In a final
> >> period of 2 weeks, we will produce a proposal for the TLS WG and seek
> >> consensus on it.
> >
> > What should a proposal look like? A family of similar curves, one for
> > each length?
> > How much implementation should be done? Making very fast
> > implementations can require a lot of coding,
> > but I think we know about how fast prime shapes will be, and curve
> > shape+prime shape gives you
> > everything but the TLC factor.
> >
> >>
> >>
> >> The first step, running for 2 weeks, begins here.
> >>
> >> A starting point for requirements can be found in David McGrew's recent
> >> CFRG post
> >> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
> >> reproduced here:
> >>
> >> ----
> >>
> >> Simplicity
> >>
> >>   R1.  Desired: easy to understand and implement [1]
> >>
> >> Efficiency
> >>
> >>   R2.  Required: amenable to compact implementations and fast
> >>   implementations, across both small and large processors [1]
> >>
> >>   R3.  Desired: re-use components between signatures and key exchange
> >>   algorithms [3]
> >
> > How about code size for R3 to make it more amenable to argument?
> >
> >>
> >> Intellectual Property
> >>
> >>   R4.  Required: available worldwide under reasonable and well
> >>   understood licensing terms [1]
> >>
> >>   R5.  Desired: available worldwide under royalty-free licensing
> >>   terms [1]
> >
> > I would make R5 a requirement. Royalties are a nonstarter for many users.
> >
> >>
> >> Interoperability
> >>
> >>   R6.  Desired: can be used with current software implementations
> >>   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
> >>
> >>   R7.  Desired: can be used within current ECC standards of TLS,
> >>   PKIX, SSH, and IKE [4]
> >
> > These desiderata are worthwhile, but implementors have signalled they
> > are willing to make
> > large changes for performance.
> >
> >>
> >> Security
> >>
> >>   R8.  Required: amenable to constant-time implementations, to avoid
> >>   side channel attacks [2]
> >>
> >>   R9.  Required: resist twist attacks [2]
> >
> > I don't like R9: twist attacks are only an issue with algorithms that
> > work on the compressed form. It just feels different.
> > Perhaps the requirement should be that implementations that miss
> > checks avoid being completely insecure.
> >>
> >>   R10.  Required: curve parameters should have good provenance;
> >>   random curves should be provably pseudorandom [5]
> >>
> >>   R11.  Desired for key exchange: resist invalid curve attacks [2];
> >>   note that complete addition laws help and are thus desirable [2].
> >>   (Note that the use of ephemeral keys also resist such attacks.)
> >
> > I feel this should be folded into an edited R9.
> >>
> >>   R12.  Required for PAKE: indistinguishability of curve points from
> >>   random strings [2]
> >
> > Mike Hamburg will know better than I, but my vague recollection is
> > that Elligator 2 worked for everything.
> >>
> >> Footnotes:
> >>
> >>   [1] Original criteria set out for the Advanced Encryption Standard,
> >>       which is equally applicable to ECC.  National Institute of
> >>       Standards and Technology (NIST) of the United States, 1998.
> >>
> >>   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
> >>       curves for elliptic-curve cryptography.
> >>       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
> >> <http://safecurves.cr.yp.to/>, accessed
> >> April 2014.
> >>
> >>   [3] Criteria identified by David McGrew, 2014.
> >>
> >>   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
> >>
> >>   [5] Criteria widely acknowledged on CFRG email list during 2014.
> >>
> >> ----
> >>
> >>
> >> Our first request, then, is that you consider these requirements, and
> >> provide your views on their appropriateness, completeness, and
> individual
> >> classifications (required/desired). We will continue that discussion
> for 2
> >> weeks, until the end of the IETF meeting in Toronto. The chairs will
> then
> >> compile a consensus-based list of requirements of the above form, after
> >> which we will move to the second step.
> >>
> >> We thank you in advance for your participation in this important task.
> >>
> >> Regards
> >>
> >> Alexei, Kenny and Kevin (CFRG co-chairs)
> >>
> >>
> >>
> >>
> >> On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> >> wrote:
> >>
> >>> CFRG Chairs and Security ADs,
> >>>
> >>> TLS WG would like to formally request that the
> >>> CFRG make a recommendation for new ECC group support for TLS
> >>> and other similar applications. Specifically, we request that CFRG
> >>> recommend the following:
> >>>
> >>> - Curves suitable for both key establishment and digital signature
> >>> (though the same curves need not be used for both purposes).
> >>>
> >>> - One proposed curve or set of curves at the following security
> >>> levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
> >>> 192-bit security is optional.
> >>>
> >>> If the same curves are used for key establishment and signature, this
> >>> would be a recommendation for two curves.  If different curves are
> >>> used, this would be a recommendation for four curves.
> >>>
> >>> In addition to a recommendation, we also request that the CFRG provide
> >>> a technical rationale for their selection.
> >>>
> >>> If the CFRG does not feel comfortable making a single set of
> >>> selections, we propose that they select a small number of potential
> >>> choices with a detailed technical analysis of the advantages and
> >>> disadvantages of each selection and that the Security ADs sponsor a
> >>> process (perhaps via SAAG) to narrow it down to the specification
> >>> above.
> >>>
> >>> For clarity, we are not currently requesting that CFRG replace or
> >>> profile the existing curves in RFC4492 and RFC 7027, although we are
> >>> also not ruling out such an effort in the future. The current request
> >>> is for a new set of curves to complement the existing ones.
> >>>
> >>> Please reach out to us if this is unclear or further information is
> >>> required.
> >>>
> >>> Thanks,
> >>>
> >>> TLS Chairs
> >>>
> >>>
> >>
> >>
> >>
> >> _______________________________________________
> >> Cfrg mailing list
> >> Cfrg@irtf.org
> >> http://www.irtf.org/mailman/listinfo/cfrg
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > http://www.irtf.org/mailman/listinfo/cfrg
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--047d7b5d5ffe09ae3804fe71847f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&quot;<span style=3D"font-size:13px;font-family:arial=
,sans-serif">TLS supports 256-bit symmetric key ciphers and we want to have=
 recommended curves to match this key strength. =C2=A0We leave it up to the=
 CFRG to determine what ECC key strengths are appropriate above 128-bit sym=
metric key strength.&quot;</span></div>

<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br></span=
></div><div><font face=3D"arial, sans-serif">Can you clarify why this is th=
e case? TLS already has suites with 256-bit symmetric ciphers and they are =
paired with 192-bit security level components, including curves [1]</font><=
span style=3D"font-family:arial,sans-serif">. I can see arguments in favor =
of either 192 or 256, but I don&#39;t see how this is now a CFRG decision.<=
/span></div>

<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br></span=
>&quot;<span style=3D"font-size:13px;font-family:arial,sans-serif">It is al=
so not necessary that the recommendation for higher strength curves be deli=
vered at the same time, it would be OK to deliver a recommendation for the =
128-bit curves before the higher strength curves.</span><span style=3D"font=
-size:13px;font-family:arial,sans-serif">&quot;</span></div>

<div><font face=3D"arial, sans-serif"><br></font></div><div><font face=3D"a=
rial, sans-serif">Can you clarify why this is the case? I&#39;m not aware o=
f any other standardization effort that has done this and see no reason for=
 it.</font></div>

<div><font face=3D"arial, sans-serif"><br></font></div><div><font face=3D"a=
rial, sans-serif"><br></font></div><div><font face=3D"arial, sans-serif">Be=
n<br></font><div><br></div></div><div>[1]=C2=A0<span style=3D"font-family:a=
rial,sans-serif">RFC5289</span></div>

</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed,=
 Jul 16, 2014 at 8:35 AM, Joseph Salowey (jsalowey) <span dir=3D"ltr">&lt;<=
a href=3D"mailto:jsalowey@cisco.com" target=3D"_blank">jsalowey@cisco.com</=
a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D""><br>
On Jul 14, 2014, at 6:11 PM, Watson Ladd &lt;<a href=3D"mailto:watsonbladd@=
gmail.com">watsonbladd@gmail.com</a>&gt; wrote:<br>
<br>
</div><div class=3D"">&gt; On Jul 14, 2014 12:49 PM, &quot;Paterson, Kenny&=
quot; &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.=
ac.uk</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear CFRG,<br>
&gt;&gt;<br>
&gt;&gt; CFRG has received a formal request from the TLS Working Group for<=
br>
&gt;&gt; recommendations for new elliptic curves. Specifically, the TLS WG =
would<br>
&gt;&gt; like CFRG to recommend:<br>
&gt;&gt;<br>
&gt;&gt; - Curves suitable for both key establishment and digital signature=
<br>
&gt;&gt; =C2=A0(though the same curves need not be used for both purposes).=
<br>
&gt;&gt;<br>
&gt;&gt; - One proposed curve or set of curves at the following security<br=
>
&gt;&gt; =C2=A0levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve=
).<br>
&gt;&gt; =C2=A0192-bit security is optional.<br>
&gt;<br>
&gt; I would like these to be taken as minimums. There is no reason<br>
&gt; Curve4417 should not be used for 192 bit security<br>
&gt; or Goldilocks448 if performance is acceptable.<br>
&gt;<br>
&gt; I am not sure that 512 bits is needed: the NSA only uses P-384 for Top=
<br>
&gt; Secret data. Perhaps this is an area where the<br>
&gt; TLS WG can do some more thinking about what they want to see.<br>
&gt;<br>
<br>
</div>[Joe] We&#39;ve received a few comments about this offline so I want =
to clarify on desired strengths. TLS supports 256-bit symmetric key ciphers=
 and we want to have recommended curves to match this key strength. =C2=A0W=
e leave it up to the CFRG to determine what ECC key strengths are appropria=
te above 128-bit symmetric key strength. =C2=A0It is also not necessary tha=
t the recommendation for higher strength curves be delivered at the same ti=
me, it would be OK to deliver a recommendation for the 128-bit curves befor=
e the higher strength curves.<br>


<div class=3D"HOEnZb"><div class=3D"h5"><br>
&gt;&gt;<br>
&gt;&gt; Note that these curves are not intended to supplant current curves=
 in<br>
&gt;&gt; widespread use, but rather to supplement them. Full details of the=
 request<br>
&gt;&gt; can be found in the e-mail from the TLS WG chairs below.<br>
&gt;&gt;<br>
&gt;&gt; The CFRG chairs will coordinate a response to this request from th=
e CFRG<br>
&gt;&gt; readership. Ideally we will reach a rough consensus through discus=
sion on<br>
&gt;&gt; the<br>
&gt;&gt; list and at the upcoming IETF 90 meeting in Toronto. While no dead=
line is<br>
&gt;&gt; set for our response to the TLS WG, we should aim to have one read=
y within<br>
&gt;&gt; 2 months.<br>
&gt;&gt;<br>
&gt;&gt; We regard this as a major work item for CFRG and one where CFRG ca=
n<br>
&gt;&gt; provide real value to the TLS WG and the IETF more widely. So we e=
ncourage<br>
&gt;&gt; (and indeed request) active participation from the widest set of<b=
r>
&gt;&gt; participants on this project.<br>
&gt;&gt;<br>
&gt;&gt; As a first step, we propose to discuss the requirements for new cu=
rves for<br>
&gt;&gt; a period of 2 weeks. Using an agreed set of requirements, in a sec=
ond<br>
&gt;&gt; step, we will then evaluate different curve proposals (including e=
xtant<br>
&gt;&gt; proposals and any emerging ones) for a period of 4 weeks. In a fin=
al<br>
&gt;&gt; period of 2 weeks, we will produce a proposal for the TLS WG and s=
eek<br>
&gt;&gt; consensus on it.<br>
&gt;<br>
&gt; What should a proposal look like? A family of similar curves, one for<=
br>
&gt; each length?<br>
&gt; How much implementation should be done? Making very fast<br>
&gt; implementations can require a lot of coding,<br>
&gt; but I think we know about how fast prime shapes will be, and curve<br>
&gt; shape+prime shape gives you<br>
&gt; everything but the TLC factor.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The first step, running for 2 weeks, begins here.<br>
&gt;&gt;<br>
&gt;&gt; A starting point for requirements can be found in David McGrew&#39=
;s recent<br>
&gt;&gt; CFRG post<br>
&gt;&gt; (<a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg0=
4461.html" target=3D"_blank">http://www.ietf.org/mail-archive/web/cfrg/curr=
ent/msg04461.html</a>) and<br>
&gt;&gt; reproduced here:<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt; Simplicity<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R1. =C2=A0Desired: easy to understand and implement [1]<br>
&gt;&gt;<br>
&gt;&gt; Efficiency<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R2. =C2=A0Required: amenable to compact implementations and=
 fast<br>
&gt;&gt; =C2=A0 implementations, across both small and large processors [1]=
<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R3. =C2=A0Desired: re-use components between signatures and=
 key exchange<br>
&gt;&gt; =C2=A0 algorithms [3]<br>
&gt;<br>
&gt; How about code size for R3 to make it more amenable to argument?<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Intellectual Property<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R4. =C2=A0Required: available worldwide under reasonable an=
d well<br>
&gt;&gt; =C2=A0 understood licensing terms [1]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R5. =C2=A0Desired: available worldwide under royalty-free l=
icensing<br>
&gt;&gt; =C2=A0 terms [1]<br>
&gt;<br>
&gt; I would make R5 a requirement. Royalties are a nonstarter for many use=
rs.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Interoperability<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R6. =C2=A0Desired: can be used with current software implem=
entations<br>
&gt;&gt; =C2=A0 (using different curve parameters) of TLS, PKIX, SSH, and I=
KE [4]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R7. =C2=A0Desired: can be used within current ECC standards=
 of TLS,<br>
&gt;&gt; =C2=A0 PKIX, SSH, and IKE [4]<br>
&gt;<br>
&gt; These desiderata are worthwhile, but implementors have signalled they<=
br>
&gt; are willing to make<br>
&gt; large changes for performance.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Security<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R8. =C2=A0Required: amenable to constant-time implementatio=
ns, to avoid<br>
&gt;&gt; =C2=A0 side channel attacks [2]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R9. =C2=A0Required: resist twist attacks [2]<br>
&gt;<br>
&gt; I don&#39;t like R9: twist attacks are only an issue with algorithms t=
hat<br>
&gt; work on the compressed form. It just feels different.<br>
&gt; Perhaps the requirement should be that implementations that miss<br>
&gt; checks avoid being completely insecure.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R10. =C2=A0Required: curve parameters should have good prov=
enance;<br>
&gt;&gt; =C2=A0 random curves should be provably pseudorandom [5]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R11. =C2=A0Desired for key exchange: resist invalid curve a=
ttacks [2];<br>
&gt;&gt; =C2=A0 note that complete addition laws help and are thus desirabl=
e [2].<br>
&gt;&gt; =C2=A0 (Note that the use of ephemeral keys also resist such attac=
ks.)<br>
&gt;<br>
&gt; I feel this should be folded into an edited R9.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R12. =C2=A0Required for PAKE: indistinguishability of curve=
 points from<br>
&gt;&gt; =C2=A0 random strings [2]<br>
&gt;<br>
&gt; Mike Hamburg will know better than I, but my vague recollection is<br>
&gt; that Elligator 2 worked for everything.<br>
&gt;&gt;<br>
&gt;&gt; Footnotes:<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [1] Original criteria set out for the Advanced Encryption S=
tandard,<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 which is equally applicable to ECC. =C2=A0Nat=
ional Institute of<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 Standards and Technology (NIST) of the United=
 States, 1998.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosi=
ng safe<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 curves for elliptic-curve cryptography.<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://safecurves.cr.yp.to" target=
=3D"_blank">http://safecurves.cr.yp.to</a> &lt;<a href=3D"http://safecurves=
.cr.yp.to/" target=3D"_blank">http://safecurves.cr.yp.to/</a>&gt;<br>
&gt;&gt; &lt;<a href=3D"http://safecurves.cr.yp.to/" target=3D"_blank">http=
://safecurves.cr.yp.to/</a>&gt;, accessed<br>
&gt;&gt; April 2014.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [3] Criteria identified by David McGrew, 2014.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [4] Criteria identified by Russ Housley, TLS WG meeting at =
IETF89.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [5] Criteria widely acknowledged on CFRG email list during =
2014.<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Our first request, then, is that you consider these requirements, =
and<br>
&gt;&gt; provide your views on their appropriateness, completeness, and ind=
ividual<br>
&gt;&gt; classifications (required/desired). We will continue that discussi=
on for 2<br>
&gt;&gt; weeks, until the end of the IETF meeting in Toronto. The chairs wi=
ll then<br>
&gt;&gt; compile a consensus-based list of requirements of the above form, =
after<br>
&gt;&gt; which we will move to the second step.<br>
&gt;&gt;<br>
&gt;&gt; We thank you in advance for your participation in this important t=
ask.<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; Alexei, Kenny and Kevin (CFRG co-chairs)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 11/07/2014 05:44, &quot;Joseph Salowey (jsalowey)&quot; &lt;<a =
href=3D"mailto:jsalowey@cisco.com">jsalowey@cisco.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; CFRG Chairs and Security ADs,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; TLS WG would like to formally request that the<br>
&gt;&gt;&gt; CFRG make a recommendation for new ECC group support for TLS<b=
r>
&gt;&gt;&gt; and other similar applications. Specifically, we request that =
CFRG<br>
&gt;&gt;&gt; recommend the following:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - Curves suitable for both key establishment and digital signa=
ture<br>
&gt;&gt;&gt; (though the same curves need not be used for both purposes).<b=
r>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - One proposed curve or set of curves at the following securit=
y<br>
&gt;&gt;&gt; levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve)=
.<br>
&gt;&gt;&gt; 192-bit security is optional.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If the same curves are used for key establishment and signatur=
e, this<br>
&gt;&gt;&gt; would be a recommendation for two curves. =C2=A0If different c=
urves are<br>
&gt;&gt;&gt; used, this would be a recommendation for four curves.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; In addition to a recommendation, we also request that the CFRG=
 provide<br>
&gt;&gt;&gt; a technical rationale for their selection.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If the CFRG does not feel comfortable making a single set of<b=
r>
&gt;&gt;&gt; selections, we propose that they select a small number of pote=
ntial<br>
&gt;&gt;&gt; choices with a detailed technical analysis of the advantages a=
nd<br>
&gt;&gt;&gt; disadvantages of each selection and that the Security ADs spon=
sor a<br>
&gt;&gt;&gt; process (perhaps via SAAG) to narrow it down to the specificat=
ion<br>
&gt;&gt;&gt; above.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; For clarity, we are not currently requesting that CFRG replace=
 or<br>
&gt;&gt;&gt; profile the existing curves in RFC4492 and RFC 7027, although =
we are<br>
&gt;&gt;&gt; also not ruling out such an effort in the future. The current =
request<br>
&gt;&gt;&gt; is for a new set of curves to complement the existing ones.<br=
>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please reach out to us if this is unclear or further informati=
on is<br>
&gt;&gt;&gt; required.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; TLS Chairs<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_b=
lank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank=
">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div></div></blockquote></div><br></div>

--047d7b5d5ffe09ae3804fe71847f--


From nobody Fri Jul 18 07:21:31 2014
Return-Path: <kmigoe@nsa.gov>
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 338AF1B2973 for <cfrg@ietfa.amsl.com>; Fri, 18 Jul 2014 07:21:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.3
X-Spam-Level: 
X-Spam-Status: No, score=-6.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, J_CHICKENPOX_55=0.6, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-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 xN1cfLizRi1e for <cfrg@ietfa.amsl.com>; Fri, 18 Jul 2014 07:21:20 -0700 (PDT)
Received: from emvm-gh1-uea09.nsa.gov (emvm-gh1-uea09.nsa.gov [63.239.67.10]) by ietfa.amsl.com (Postfix) with ESMTP id D62B81A0B0B for <cfrg@irtf.org>; Fri, 18 Jul 2014 07:21:19 -0700 (PDT)
X-TM-IMSS-Message-ID: <8a308c4d000ff839@nsa.gov>
Received: from MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) by nsa.gov ([63.239.67.10]) with ESMTP (TREND IMSS SMTP Service 7.1; TLSv1/SSLv3 AES128-SHA (128/128)) id 8a308c4d000ff839 ; Fri, 18 Jul 2014 10:22:15 -0400
Received: from MSMR-GH1-UEA03.corp.nsa.gov ([10.215.224.3]) by MSHT-GH1-UEA02.corp.nsa.gov ([10.215.227.181]) with mapi id 14.02.0347.000; Fri, 18 Jul 2014 10:21:17 -0400
From: "Igoe, Kevin M." <kmigoe@nsa.gov>
To: 'Benjamin Black' <b@b3k.us>, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPn8nLah35npdzY0iSOxbQoXbUMpujGsOAgAKEmQCAAEZ2wA==
Date: Fri, 18 Jul 2014 14:21:16 +0000
Message-ID: <3C4AAD4B5304AB44A6BA85173B4675CABAAA4815@MSMR-GH1-UEA03.corp.nsa.gov>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com> <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com>
In-Reply-To: <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.215.225.46]
Content-Type: multipart/alternative; boundary="_000_3C4AAD4B5304AB44A6BA85173B4675CABAAA4815MSMRGH1UEA03cor_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r_-YfXWMG1dz4C9HJeXBZYDhOko
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Fri, 18 Jul 2014 14:21:25 -0000

--_000_3C4AAD4B5304AB44A6BA85173B4675CABAAA4815MSMRGH1UEA03cor_
Content-Type: text/plain; charset="ut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WFpbG1hbi9saXN0aW5mby9jZnJnIiB0
YXJnZXQ9Il9ibGFuayI+aHR0cDovL3d3dy5pcnRmLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2Nmcmc8
L2E+PGJyPg0KPGJyPg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX188YnI+DQpDZnJnIG1haWxpbmcgbGlzdDxicj4NCjxhIGhyZWY9Im1haWx0bzpDZnJnQGly
dGYub3JnIj5DZnJnQGlydGYub3JnPC9hPjxicj4NCjxhIGhyZWY9Imh0dHA6Ly93d3cuaXJ0Zi5v
cmcvbWFpbG1hbi9saXN0aW5mby9jZnJnIiB0YXJnZXQ9Il9ibGFuayI+aHR0cDovL3d3dy5pcnRm
Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL2Nmcmc8L2E+PG86cD48L286cD48L3A+DQo8L2Rpdj4NCjwv
ZGl2Pg0KPC9kaXY+DQo8cCBjbGFzcz0iTXNvTm9ybWFsIj48bzpwPiZuYnNwOzwvbzpwPjwvcD4N
CjwvZGl2Pg0KPC9kaXY+DQo8L2Rpdj4NCjwvYm9keT4NCjwvaHRtbD4NCg==

--_000_3C4AAD4B5304AB44A6BA85173B4675CABAAA4815MSMRGH1UEA03cor_--


From nobody Fri Jul 18 13:59:19 2014
Return-Path: <jsalowey@cisco.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 043561B279B for <cfrg@ietfa.amsl.com>; Fri, 18 Jul 2014 13:59:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -13.901
X-Spam-Level: 
X-Spam-Status: No, score=-13.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, J_CHICKENPOX_55=0.6, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 Xq26uNJSfJWI for <cfrg@ietfa.amsl.com>; Fri, 18 Jul 2014 13:59:14 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4744C1B2794 for <cfrg@irtf.org>; Fri, 18 Jul 2014 13:59:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=27848; q=dns/txt; s=iport; t=1405717154; x=1406926754; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=GPx69Y5mr+LzGsHBgXQHzrjOuTMQj1dxZZPWdxFMR1g=; b=PsrO7w2D3QphhdjOiPoHQd1ox9ff8MUznotakoDm1+VXuafTYdoIQhR4 U86ywgcrxkhUEvUZvbx3P1UGfr1PpWrLQtvqu6XJz5C04T5+9hUhSHifz UJYRJRucgnGb4Lzo8QBZn6NBaeiNNglIxyyR9kThRrAqEFuxgUBE5Bhvb 8=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApsIAO+JyVOtJV2d/2dsb2JhbABZgkdHUlcEsSWRcoFXAQmHQwGBCRZ2hAMBAQEDAQEBARdRAwsFCwIBCA4KIAcHIQYLFBECBA4FCYglAwkIDbwgDYcTF40OEIFLEAIBTwcCB4MlgRgFmSKCA4FNjEaGHINEbAGBRA
X-IronPort-AV: E=Sophos;i="5.01,687,1400025600";  d="scan'208,217";a="341235807"
Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by rcdn-iport-4.cisco.com with ESMTP; 18 Jul 2014 20:59:12 +0000
Received: from xhc-rcd-x14.cisco.com (xhc-rcd-x14.cisco.com [173.37.183.88]) by rcdn-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id s6IKxCIH030645 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 18 Jul 2014 20:59:12 GMT
Received: from xmb-rcd-x09.cisco.com ([169.254.9.143]) by xhc-rcd-x14.cisco.com ([173.37.183.88]) with mapi id 14.03.0123.003; Fri, 18 Jul 2014 15:59:12 -0500
From: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
To: Benjamin Black <b@b3k.us>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPok3/AlCoH5DRskyVggD4Ne0D5pumpXKA
Date: Fri, 18 Jul 2014 20:59:11 +0000
Message-ID: <E600EB81-2EED-4B84-A9F2-38B27397A497@cisco.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com> <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com>
In-Reply-To: <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.33.248.233]
Content-Type: multipart/alternative; boundary="_000_E600EB812EED4B84A9F238B27397A497ciscocom_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/mJp8hYmnDJORVwwPzRvC6g51IJE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Fri, 18 Jul 2014 20:59:18 -0000

--_000_E600EB812EED4B84A9F238B27397A497ciscocom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


On Jul 17, 2014, at 11:03 PM, Benjamin Black <b@b3k.us<mailto:b@b3k.us>> wr=
ote:

"TLS supports 256-bit symmetric key ciphers and we want to have recommended=
 curves to match this key strength.  We leave it up to the CFRG to determin=
e what ECC key strengths are appropriate above 128-bit symmetric key streng=
th."

Can you clarify why this is the case? TLS already has suites with 256-bit s=
ymmetric ciphers and they are paired with 192-bit security level components=
, including curves [1]. I can see arguments in favor of either 192 or 256, =
but I don't see how this is now a CFRG decision.


[Joe]  The CFRG has the cryptographic expertise to determine what pairings =
are appropriate.

"It is also not necessary that the recommendation for higher strength curve=
s be delivered at the same time, it would be OK to deliver a recommendation=
 for the 128-bit curves before the higher strength curves."

Can you clarify why this is the case? I'm not aware of any other standardiz=
ation effort that has done this and see no reason for it.


[Joe]  As a practical matter 128-bith strength ciphers are sufficient for m=
ost current deployments.  From what I understand there are currently curves=
 families under consideration which do not currently the higher strength ke=
y size defined.  If the CFRG determines these curves have significant enoug=
h advantages it could make this recommendation while the details of the hig=
her strength curves are being worked out.  However, the CFRG is not obliged=
 to wait.


Ben

[1] RFC5289


On Wed, Jul 16, 2014 at 8:35 AM, Joseph Salowey (jsalowey) <jsalowey@cisco.=
com<mailto:jsalowey@cisco.com>> wrote:

On Jul 14, 2014, at 6:11 PM, Watson Ladd <watsonbladd@gmail.com<mailto:wats=
onbladd@gmail.com>> wrote:

> On Jul 14, 2014 12:49 PM, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<ma=
ilto:Kenny.Paterson@rhul.ac.uk>> wrote:
>>
>> Dear CFRG,
>>
>> CFRG has received a formal request from the TLS Working Group for
>> recommendations for new elliptic curves. Specifically, the TLS WG would
>> like CFRG to recommend:
>>
>> - Curves suitable for both key establishment and digital signature
>>  (though the same curves need not be used for both purposes).
>>
>> - One proposed curve or set of curves at the following security
>>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>>  192-bit security is optional.
>
> I would like these to be taken as minimums. There is no reason
> Curve4417 should not be used for 192 bit security
> or Goldilocks448 if performance is acceptable.
>
> I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
> Secret data. Perhaps this is an area where the
> TLS WG can do some more thinking about what they want to see.
>

[Joe] We've received a few comments about this offline so I want to clarify=
 on desired strengths. TLS supports 256-bit symmetric key ciphers and we wa=
nt to have recommended curves to match this key strength.  We leave it up t=
o the CFRG to determine what ECC key strengths are appropriate above 128-bi=
t symmetric key strength.  It is also not necessary that the recommendation=
 for higher strength curves be delivered at the same time, it would be OK t=
o deliver a recommendation for the 128-bit curves before the higher strengt=
h curves.

>>
>> Note that these curves are not intended to supplant current curves in
>> widespread use, but rather to supplement them. Full details of the reque=
st
>> can be found in the e-mail from the TLS WG chairs below.
>>
>> The CFRG chairs will coordinate a response to this request from the CFRG
>> readership. Ideally we will reach a rough consensus through discussion o=
n
>> the
>> list and at the upcoming IETF 90 meeting in Toronto. While no deadline i=
s
>> set for our response to the TLS WG, we should aim to have one ready with=
in
>> 2 months.
>>
>> We regard this as a major work item for CFRG and one where CFRG can
>> provide real value to the TLS WG and the IETF more widely. So we encoura=
ge
>> (and indeed request) active participation from the widest set of
>> participants on this project.
>>
>> As a first step, we propose to discuss the requirements for new curves f=
or
>> a period of 2 weeks. Using an agreed set of requirements, in a second
>> step, we will then evaluate different curve proposals (including extant
>> proposals and any emerging ones) for a period of 4 weeks. In a final
>> period of 2 weeks, we will produce a proposal for the TLS WG and seek
>> consensus on it.
>
> What should a proposal look like? A family of similar curves, one for
> each length?
> How much implementation should be done? Making very fast
> implementations can require a lot of coding,
> but I think we know about how fast prime shapes will be, and curve
> shape+prime shape gives you
> everything but the TLC factor.
>
>>
>>
>> The first step, running for 2 weeks, begins here.
>>
>> A starting point for requirements can be found in David McGrew's recent
>> CFRG post
>> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
>> reproduced here:
>>
>> ----
>>
>> Simplicity
>>
>>   R1.  Desired: easy to understand and implement [1]
>>
>> Efficiency
>>
>>   R2.  Required: amenable to compact implementations and fast
>>   implementations, across both small and large processors [1]
>>
>>   R3.  Desired: re-use components between signatures and key exchange
>>   algorithms [3]
>
> How about code size for R3 to make it more amenable to argument?
>
>>
>> Intellectual Property
>>
>>   R4.  Required: available worldwide under reasonable and well
>>   understood licensing terms [1]
>>
>>   R5.  Desired: available worldwide under royalty-free licensing
>>   terms [1]
>
> I would make R5 a requirement. Royalties are a nonstarter for many users.
>
>>
>> Interoperability
>>
>>   R6.  Desired: can be used with current software implementations
>>   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>>
>>   R7.  Desired: can be used within current ECC standards of TLS,
>>   PKIX, SSH, and IKE [4]
>
> These desiderata are worthwhile, but implementors have signalled they
> are willing to make
> large changes for performance.
>
>>
>> Security
>>
>>   R8.  Required: amenable to constant-time implementations, to avoid
>>   side channel attacks [2]
>>
>>   R9.  Required: resist twist attacks [2]
>
> I don't like R9: twist attacks are only an issue with algorithms that
> work on the compressed form. It just feels different.
> Perhaps the requirement should be that implementations that miss
> checks avoid being completely insecure.
>>
>>   R10.  Required: curve parameters should have good provenance;
>>   random curves should be provably pseudorandom [5]
>>
>>   R11.  Desired for key exchange: resist invalid curve attacks [2];
>>   note that complete addition laws help and are thus desirable [2].
>>   (Note that the use of ephemeral keys also resist such attacks.)
>
> I feel this should be folded into an edited R9.
>>
>>   R12.  Required for PAKE: indistinguishability of curve points from
>>   random strings [2]
>
> Mike Hamburg will know better than I, but my vague recollection is
> that Elligator 2 worked for everything.
>>
>> Footnotes:
>>
>>   [1] Original criteria set out for the Advanced Encryption Standard,
>>       which is equally applicable to ECC.  National Institute of
>>       Standards and Technology (NIST) of the United States, 1998.
>>
>>   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>>       curves for elliptic-curve cryptography.
>>       http://safecurves.cr.yp.to<http://safecurves.cr.yp.to/> <http://sa=
fecurves.cr.yp.to/>
>> <http://safecurves.cr.yp.to/>, accessed
>> April 2014.
>>
>>   [3] Criteria identified by David McGrew, 2014.
>>
>>   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>>
>>   [5] Criteria widely acknowledged on CFRG email list during 2014.
>>
>> ----
>>
>>
>> Our first request, then, is that you consider these requirements, and
>> provide your views on their appropriateness, completeness, and individua=
l
>> classifications (required/desired). We will continue that discussion for=
 2
>> weeks, until the end of the IETF meeting in Toronto. The chairs will the=
n
>> compile a consensus-based list of requirements of the above form, after
>> which we will move to the second step.
>>
>> We thank you in advance for your participation in this important task.
>>
>> Regards
>>
>> Alexei, Kenny and Kevin (CFRG co-chairs)
>>
>>
>>
>>
>> On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com<mai=
lto:jsalowey@cisco.com>>
>> wrote:
>>
>>> CFRG Chairs and Security ADs,
>>>
>>> TLS WG would like to formally request that the
>>> CFRG make a recommendation for new ECC group support for TLS
>>> and other similar applications. Specifically, we request that CFRG
>>> recommend the following:
>>>
>>> - Curves suitable for both key establishment and digital signature
>>> (though the same curves need not be used for both purposes).
>>>
>>> - One proposed curve or set of curves at the following security
>>> levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>>> 192-bit security is optional.
>>>
>>> If the same curves are used for key establishment and signature, this
>>> would be a recommendation for two curves.  If different curves are
>>> used, this would be a recommendation for four curves.
>>>
>>> In addition to a recommendation, we also request that the CFRG provide
>>> a technical rationale for their selection.
>>>
>>> If the CFRG does not feel comfortable making a single set of
>>> selections, we propose that they select a small number of potential
>>> choices with a detailed technical analysis of the advantages and
>>> disadvantages of each selection and that the Security ADs sponsor a
>>> process (perhaps via SAAG) to narrow it down to the specification
>>> above.
>>>
>>> For clarity, we are not currently requesting that CFRG replace or
>>> profile the existing curves in RFC4492 and RFC 7027, although we are
>>> also not ruling out such an effort in the future. The current request
>>> is for a new set of curves to complement the existing ones.
>>>
>>> Please reach out to us if this is unclear or further information is
>>> required.
>>>
>>> Thanks,
>>>
>>> TLS Chairs
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org<mailto:Cfrg@irtf.org>
>> http://www.irtf.org/mailman/listinfo/cfrg
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org<mailto:Cfrg@irtf.org>
> http://www.irtf.org/mailman/listinfo/cfrg

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org<mailto:Cfrg@irtf.org>
http://www.irtf.org/mailman/listinfo/cfrg



--_000_E600EB812EED4B84A9F238B27397A497ciscocom_
Content-Type: text/html; charset="us-ascii"
Content-ID: <6B696CAB1E31FE47BBB908963CEA87EA@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space;">
<br>
<div>
<div>On Jul 17, 2014, at 11:03 PM, Benjamin Black &lt;<a href=3D"mailto:b@b=
3k.us">b@b3k.us</a>&gt; wrote:</div>
<br class=3D"Apple-interchange-newline">
<blockquote type=3D"cite">
<div dir=3D"ltr">
<div>&quot;<span style=3D"font-size:13px;font-family:arial,sans-serif">TLS =
supports 256-bit symmetric key ciphers and we want to have recommended curv=
es to match this key strength. &nbsp;We leave it up to the CFRG to determin=
e what ECC key strengths are appropriate above
 128-bit symmetric key strength.&quot;</span></div>
<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br>
</span></div>
<div><font face=3D"arial, sans-serif">Can you clarify why this is the case?=
 TLS already has suites with 256-bit symmetric ciphers and they are paired =
with 192-bit security level components, including curves [1]</font><span st=
yle=3D"font-family:arial,sans-serif">.
 I can see arguments in favor of either 192 or 256, but I don't see how thi=
s is now a CFRG decision.</span></div>
<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br>
</span></div>
</div>
</blockquote>
<div><br>
</div>
<div>[Joe] &nbsp;The CFRG has the cryptographic expertise to determine what=
 pairings are appropriate. &nbsp;&nbsp;</div>
<br>
<blockquote type=3D"cite">
<div dir=3D"ltr">
<div>&quot;<span style=3D"font-size:13px;font-family:arial,sans-serif">It i=
s also not necessary that the recommendation for higher strength curves be =
delivered at the same time, it would be OK to deliver a recommendation for =
the 128-bit curves before the higher strength
 curves.</span><span style=3D"font-size:13px;font-family:arial,sans-serif">=
&quot;</span></div>
<div><font face=3D"arial, sans-serif"><br>
</font></div>
<div><font face=3D"arial, sans-serif">Can you clarify why this is the case?=
 I'm not aware of any other standardization effort that has done this and s=
ee no reason for it.</font></div>
<div><font face=3D"arial, sans-serif"><br>
</font></div>
</div>
</blockquote>
<div><br>
</div>
<div>[Joe] &nbsp;As a practical matter 128-bith strength ciphers are suffic=
ient for most current deployments. &nbsp;From what I understand there are c=
urrently curves families under consideration which do not currently the hig=
her strength key size defined. &nbsp;If the CFRG
 determines these curves have significant enough advantages it could make t=
his recommendation while the details of the higher strength curves are bein=
g worked out. &nbsp;However, the CFRG is not obliged to wait.&nbsp;</div>
<br>
<blockquote type=3D"cite">
<div dir=3D"ltr">
<div><font face=3D"arial, sans-serif"><br>
</font></div>
<div><font face=3D"arial, sans-serif">Ben<br>
</font>
<div><br>
</div>
</div>
<div>[1]&nbsp;<span style=3D"font-family:arial,sans-serif">RFC5289</span></=
div>
</div>
<div class=3D"gmail_extra"><br>
<br>
<div class=3D"gmail_quote">On Wed, Jul 16, 2014 at 8:35 AM, Joseph Salowey =
(jsalowey)
<span dir=3D"ltr">&lt;<a href=3D"mailto:jsalowey@cisco.com" target=3D"_blan=
k">jsalowey@cisco.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div class=3D""><br>
On Jul 14, 2014, at 6:11 PM, Watson Ladd &lt;<a href=3D"mailto:watsonbladd@=
gmail.com">watsonbladd@gmail.com</a>&gt; wrote:<br>
<br>
</div>
<div class=3D"">&gt; On Jul 14, 2014 12:49 PM, &quot;Paterson, Kenny&quot; =
&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk<=
/a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear CFRG,<br>
&gt;&gt;<br>
&gt;&gt; CFRG has received a formal request from the TLS Working Group for<=
br>
&gt;&gt; recommendations for new elliptic curves. Specifically, the TLS WG =
would<br>
&gt;&gt; like CFRG to recommend:<br>
&gt;&gt;<br>
&gt;&gt; - Curves suitable for both key establishment and digital signature=
<br>
&gt;&gt; &nbsp;(though the same curves need not be used for both purposes).=
<br>
&gt;&gt;<br>
&gt;&gt; - One proposed curve or set of curves at the following security<br=
>
&gt;&gt; &nbsp;levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve=
).<br>
&gt;&gt; &nbsp;192-bit security is optional.<br>
&gt;<br>
&gt; I would like these to be taken as minimums. There is no reason<br>
&gt; Curve4417 should not be used for 192 bit security<br>
&gt; or Goldilocks448 if performance is acceptable.<br>
&gt;<br>
&gt; I am not sure that 512 bits is needed: the NSA only uses P-384 for Top=
<br>
&gt; Secret data. Perhaps this is an area where the<br>
&gt; TLS WG can do some more thinking about what they want to see.<br>
&gt;<br>
<br>
</div>
[Joe] We've received a few comments about this offline so I want to clarify=
 on desired strengths. TLS supports 256-bit symmetric key ciphers and we wa=
nt to have recommended curves to match this key strength. &nbsp;We leave it=
 up to the CFRG to determine what ECC
 key strengths are appropriate above 128-bit symmetric key strength. &nbsp;=
It is also not necessary that the recommendation for higher strength curves=
 be delivered at the same time, it would be OK to deliver a recommendation =
for the 128-bit curves before the higher
 strength curves.<br>
<div class=3D"HOEnZb">
<div class=3D"h5"><br>
&gt;&gt;<br>
&gt;&gt; Note that these curves are not intended to supplant current curves=
 in<br>
&gt;&gt; widespread use, but rather to supplement them. Full details of the=
 request<br>
&gt;&gt; can be found in the e-mail from the TLS WG chairs below.<br>
&gt;&gt;<br>
&gt;&gt; The CFRG chairs will coordinate a response to this request from th=
e CFRG<br>
&gt;&gt; readership. Ideally we will reach a rough consensus through discus=
sion on<br>
&gt;&gt; the<br>
&gt;&gt; list and at the upcoming IETF 90 meeting in Toronto. While no dead=
line is<br>
&gt;&gt; set for our response to the TLS WG, we should aim to have one read=
y within<br>
&gt;&gt; 2 months.<br>
&gt;&gt;<br>
&gt;&gt; We regard this as a major work item for CFRG and one where CFRG ca=
n<br>
&gt;&gt; provide real value to the TLS WG and the IETF more widely. So we e=
ncourage<br>
&gt;&gt; (and indeed request) active participation from the widest set of<b=
r>
&gt;&gt; participants on this project.<br>
&gt;&gt;<br>
&gt;&gt; As a first step, we propose to discuss the requirements for new cu=
rves for<br>
&gt;&gt; a period of 2 weeks. Using an agreed set of requirements, in a sec=
ond<br>
&gt;&gt; step, we will then evaluate different curve proposals (including e=
xtant<br>
&gt;&gt; proposals and any emerging ones) for a period of 4 weeks. In a fin=
al<br>
&gt;&gt; period of 2 weeks, we will produce a proposal for the TLS WG and s=
eek<br>
&gt;&gt; consensus on it.<br>
&gt;<br>
&gt; What should a proposal look like? A family of similar curves, one for<=
br>
&gt; each length?<br>
&gt; How much implementation should be done? Making very fast<br>
&gt; implementations can require a lot of coding,<br>
&gt; but I think we know about how fast prime shapes will be, and curve<br>
&gt; shape&#43;prime shape gives you<br>
&gt; everything but the TLC factor.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The first step, running for 2 weeks, begins here.<br>
&gt;&gt;<br>
&gt;&gt; A starting point for requirements can be found in David McGrew's r=
ecent<br>
&gt;&gt; CFRG post<br>
&gt;&gt; (<a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg0=
4461.html" target=3D"_blank">http://www.ietf.org/mail-archive/web/cfrg/curr=
ent/msg04461.html</a>) and<br>
&gt;&gt; reproduced here:<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt; Simplicity<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R1. &nbsp;Desired: easy to understand and implement [1]<br>
&gt;&gt;<br>
&gt;&gt; Efficiency<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R2. &nbsp;Required: amenable to compact implementations and=
 fast<br>
&gt;&gt; &nbsp; implementations, across both small and large processors [1]=
<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R3. &nbsp;Desired: re-use components between signatures and=
 key exchange<br>
&gt;&gt; &nbsp; algorithms [3]<br>
&gt;<br>
&gt; How about code size for R3 to make it more amenable to argument?<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Intellectual Property<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R4. &nbsp;Required: available worldwide under reasonable an=
d well<br>
&gt;&gt; &nbsp; understood licensing terms [1]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R5. &nbsp;Desired: available worldwide under royalty-free l=
icensing<br>
&gt;&gt; &nbsp; terms [1]<br>
&gt;<br>
&gt; I would make R5 a requirement. Royalties are a nonstarter for many use=
rs.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Interoperability<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R6. &nbsp;Desired: can be used with current software implem=
entations<br>
&gt;&gt; &nbsp; (using different curve parameters) of TLS, PKIX, SSH, and I=
KE [4]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R7. &nbsp;Desired: can be used within current ECC standards=
 of TLS,<br>
&gt;&gt; &nbsp; PKIX, SSH, and IKE [4]<br>
&gt;<br>
&gt; These desiderata are worthwhile, but implementors have signalled they<=
br>
&gt; are willing to make<br>
&gt; large changes for performance.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Security<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R8. &nbsp;Required: amenable to constant-time implementatio=
ns, to avoid<br>
&gt;&gt; &nbsp; side channel attacks [2]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R9. &nbsp;Required: resist twist attacks [2]<br>
&gt;<br>
&gt; I don't like R9: twist attacks are only an issue with algorithms that<=
br>
&gt; work on the compressed form. It just feels different.<br>
&gt; Perhaps the requirement should be that implementations that miss<br>
&gt; checks avoid being completely insecure.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R10. &nbsp;Required: curve parameters should have good prov=
enance;<br>
&gt;&gt; &nbsp; random curves should be provably pseudorandom [5]<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R11. &nbsp;Desired for key exchange: resist invalid curve a=
ttacks [2];<br>
&gt;&gt; &nbsp; note that complete addition laws help and are thus desirabl=
e [2].<br>
&gt;&gt; &nbsp; (Note that the use of ephemeral keys also resist such attac=
ks.)<br>
&gt;<br>
&gt; I feel this should be folded into an edited R9.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; R12. &nbsp;Required for PAKE: indistinguishability of curve=
 points from<br>
&gt;&gt; &nbsp; random strings [2]<br>
&gt;<br>
&gt; Mike Hamburg will know better than I, but my vague recollection is<br>
&gt; that Elligator 2 worked for everything.<br>
&gt;&gt;<br>
&gt;&gt; Footnotes:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; [1] Original criteria set out for the Advanced Encryption S=
tandard,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; which is equally applicable to ECC. &nbsp;Nat=
ional Institute of<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; Standards and Technology (NIST) of the United=
 States, 1998.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosi=
ng safe<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; curves for elliptic-curve cryptography.<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; <a href=3D"http://safecurves.cr.yp.to/" targe=
t=3D"_blank">http://safecurves.cr.yp.to</a> &lt;<a href=3D"http://safecurve=
s.cr.yp.to/" target=3D"_blank">http://safecurves.cr.yp.to/</a>&gt;<br>
&gt;&gt; &lt;<a href=3D"http://safecurves.cr.yp.to/" target=3D"_blank">http=
://safecurves.cr.yp.to/</a>&gt;, accessed<br>
&gt;&gt; April 2014.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; [3] Criteria identified by David McGrew, 2014.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; [4] Criteria identified by Russ Housley, TLS WG meeting at =
IETF89.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; [5] Criteria widely acknowledged on CFRG email list during =
2014.<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Our first request, then, is that you consider these requirements, =
and<br>
&gt;&gt; provide your views on their appropriateness, completeness, and ind=
ividual<br>
&gt;&gt; classifications (required/desired). We will continue that discussi=
on for 2<br>
&gt;&gt; weeks, until the end of the IETF meeting in Toronto. The chairs wi=
ll then<br>
&gt;&gt; compile a consensus-based list of requirements of the above form, =
after<br>
&gt;&gt; which we will move to the second step.<br>
&gt;&gt;<br>
&gt;&gt; We thank you in advance for your participation in this important t=
ask.<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; Alexei, Kenny and Kevin (CFRG co-chairs)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 11/07/2014 05:44, &quot;Joseph Salowey (jsalowey)&quot; &lt;<a =
href=3D"mailto:jsalowey@cisco.com">jsalowey@cisco.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; CFRG Chairs and Security ADs,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; TLS WG would like to formally request that the<br>
&gt;&gt;&gt; CFRG make a recommendation for new ECC group support for TLS<b=
r>
&gt;&gt;&gt; and other similar applications. Specifically, we request that =
CFRG<br>
&gt;&gt;&gt; recommend the following:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - Curves suitable for both key establishment and digital signa=
ture<br>
&gt;&gt;&gt; (though the same curves need not be used for both purposes).<b=
r>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - One proposed curve or set of curves at the following securit=
y<br>
&gt;&gt;&gt; levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve)=
.<br>
&gt;&gt;&gt; 192-bit security is optional.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If the same curves are used for key establishment and signatur=
e, this<br>
&gt;&gt;&gt; would be a recommendation for two curves. &nbsp;If different c=
urves are<br>
&gt;&gt;&gt; used, this would be a recommendation for four curves.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; In addition to a recommendation, we also request that the CFRG=
 provide<br>
&gt;&gt;&gt; a technical rationale for their selection.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If the CFRG does not feel comfortable making a single set of<b=
r>
&gt;&gt;&gt; selections, we propose that they select a small number of pote=
ntial<br>
&gt;&gt;&gt; choices with a detailed technical analysis of the advantages a=
nd<br>
&gt;&gt;&gt; disadvantages of each selection and that the Security ADs spon=
sor a<br>
&gt;&gt;&gt; process (perhaps via SAAG) to narrow it down to the specificat=
ion<br>
&gt;&gt;&gt; above.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; For clarity, we are not currently requesting that CFRG replace=
 or<br>
&gt;&gt;&gt; profile the existing curves in RFC4492 and RFC 7027, although =
we are<br>
&gt;&gt;&gt; also not ruling out such an effort in the future. The current =
request<br>
&gt;&gt;&gt; is for a new set of curves to complement the existing ones.<br=
>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please reach out to us if this is unclear or further informati=
on is<br>
&gt;&gt;&gt; required.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; TLS Chairs<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_b=
lank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank=
">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</body>
</html>

--_000_E600EB812EED4B84A9F238B27397A497ciscocom_--


From nobody Fri Jul 18 15:29:38 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 640B71A0242 for <cfrg@ietfa.amsl.com>; Fri, 18 Jul 2014 15:29:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 2bUUxqeT55QV for <cfrg@ietfa.amsl.com>; Fri, 18 Jul 2014 15:29:34 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0079.outbound.protection.outlook.com [213.199.154.79]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 18BC91A0146 for <cfrg@irtf.org>; Fri, 18 Jul 2014 15:29:32 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) with Microsoft SMTP Server (TLS) id 15.0.985.8; Fri, 18 Jul 2014 22:29:30 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0985.008; Fri, 18 Jul 2014 22:29:30 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Benjamin Black <b@b3k.us>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPn5zA174av2OH7UK/rj2CeH46npulWWqAgAEnkQA=
Date: Fri, 18 Jul 2014 22:29:29 +0000
Message-ID: <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com>
In-Reply-To: <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [78.146.58.177]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02760F0D1C
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(164054003)(51704005)(24454002)(377454003)(504964003)(479174003)(189002)(199002)(21056001)(99396002)(85306003)(20776003)(95666004)(16601075003)(76482001)(74662001)(54356999)(83072002)(80022001)(81542001)(31966008)(74502001)(46102001)(76176999)(79102001)(15202345003)(19580405001)(36756003)(15975445006)(107046002)(77982001)(83506001)(106356001)(19273905006)(101416001)(106116001)(92726001)(74482001)(83322001)(561944003)(81342001)(64706001)(4396001)(50986999)(92566001)(19580395003)(86362001)(105586002)(87936001)(85852003)(2656002)(110136001)(66066001)(563064011); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB383; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <CC7117906FAB574989DCEDA865C541AD@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6eS5OFFrr_rOqj7SEQLwLE6_iME
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Fri, 18 Jul 2014 22:29:37 -0000

Hi Ben,

Thanks for your questions. I agree there is ambiguity. This stems from the
fact that in some specific cases an algorithm and a curve are closely
linked, with the two in some sense being carefully co-designed to gain
security and performance.

I understand very well your point that if it is "curves only", then
certain curves which are incompatible with existing standardized and
widely deployed algorithms would need to be excluded.

My own view is that we should broaden our interpretation of the scope of
the request to accommodate this fact, providing both new curves, and where
appropriate, pointers to algorithms for those curves. (Note that CFRG is
not being asked to produce I-Ds for either curves or algorithms, though
that kind of work might inevitably follow depending on the exact choices
we recommend.) Of course, we can and should have discussion on this
question of broadening of scope, as you rightly suggest below.

Concerning your second question, yes, in an ideal world we would reach
rough consensus on the requirements, and they would be clear, complete and
unambiguous.=20

If you are in Toronto next week, I'd be glad to continue the conversation,
otherwise, let's do it on the list.

Regards

Kenny


On 18/07/2014 06:51, "Benjamin Black" <b@b3k.us> wrote:

>Kenny,
>
>
>There is rather a lot of ambiguity in these various versions of the
>requirements. It would be helpful to get clarity on at least two points:
>
>
>1) Is this request for _only_ new curves, as the subject line of your
>email indicates, or for new "ECC mechanisms" as in the included list from
>David McGrew? If it is the former, then curves which are incompatible
>with existing standardized and widely
> deployed algorithms, at least including ECDHE and ECDSA, must be
>excluded. If it is the latter, then this request goes far beyond some
>curves and I suggest deserves a lot more debate on how far down the new
>cryptography rabbit hole CFRG and the IETF wish to
> go.
>
>
>2) Is the process here to agree on clear, complete, unambiguous
>requirements against which candidate curves will be evaluated? I believe
>the answer is, or should be, yes. However, based on ambiguities in the
>stated requirements and the subsequent further
> blurring of those requirements on the mailing list, it seems that might
>not be the consensus view.
>
>
>
>
>Ben
>
>
>
>
>On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny
><Kenny.Paterson@rhul.ac.uk> wrote:
>
>Dear CFRG,
>
>CFRG has received a formal request from the TLS Working Group for
>recommendations for new elliptic curves. Specifically, the TLS WG would
>like CFRG to recommend:
>
>- Curves suitable for both key establishment and digital signature
>  (though the same curves need not be used for both purposes).
>
>- One proposed curve or set of curves at the following security
>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>  192-bit security is optional.
>
>Note that these curves are not intended to supplant current curves in
>widespread use, but rather to supplement them. Full details of the request
>can be found in the e-mail from the TLS WG chairs below.
>
>The CFRG chairs will coordinate a response to this request from the CFRG
>readership. Ideally we will reach a rough consensus through discussion on
>the
>list and at the upcoming IETF 90 meeting in Toronto. While no deadline is
>set for our response to the TLS WG, we should aim to have one ready within
>2 months.
>
>We regard this as a major work item for CFRG and one where CFRG can
>provide real value to the TLS WG and the IETF more widely. So we encourage
>(and indeed request) active participation from the widest set of
>participants on this project.
>
>As a first step, we propose to discuss the requirements for new curves for
>a period of 2 weeks. Using an agreed set of requirements, in a second
>step, we will then evaluate different curve proposals (including extant
>proposals and any emerging ones) for a period of 4 weeks. In a final
>period of 2 weeks, we will produce a proposal for the TLS WG and seek
>consensus on it.
>
>
>The first step, running for 2 weeks, begins here.
>
>A starting point for requirements can be found in David McGrew's recent
>CFRG post
>(http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
>reproduced here:
>
>----
>
>Simplicity
>
>   R1.  Desired: easy to understand and implement [1]
>
>Efficiency
>
>   R2.  Required: amenable to compact implementations and fast
>   implementations, across both small and large processors [1]
>
>   R3.  Desired: re-use components between signatures and key exchange
>   algorithms [3]
>
>Intellectual Property
>
>   R4.  Required: available worldwide under reasonable and well
>   understood licensing terms [1]
>
>   R5.  Desired: available worldwide under royalty-free licensing
>   terms [1]
>
>Interoperability
>
>   R6.  Desired: can be used with current software implementations
>   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>
>   R7.  Desired: can be used within current ECC standards of TLS,
>   PKIX, SSH, and IKE [4]
>
>Security
>
>   R8.  Required: amenable to constant-time implementations, to avoid
>   side channel attacks [2]
>
>   R9.  Required: resist twist attacks [2]
>
>   R10.  Required: curve parameters should have good provenance;
>   random curves should be provably pseudorandom [5]
>
>   R11.  Desired for key exchange: resist invalid curve attacks [2];
>   note that complete addition laws help and are thus desirable [2].
>   (Note that the use of ephemeral keys also resist such attacks.)
>
>   R12.  Required for PAKE: indistinguishability of curve points from
>   random strings [2]
>
>Footnotes:
>
>   [1] Original criteria set out for the Advanced Encryption Standard,
>       which is equally applicable to ECC.  National Institute of
>       Standards and Technology (NIST) of the United States, 1998.
>
>   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>       curves for elliptic-curve cryptography.
>       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
><http://safecurves.cr.yp.to/>, accessed
>April 2014.
>
>   [3] Criteria identified by David McGrew, 2014.
>
>   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>
>   [5] Criteria widely acknowledged on CFRG email list during 2014.
>
>----
>
>
>Our first request, then, is that you consider these requirements, and
>provide your views on their appropriateness, completeness, and individual
>classifications (required/desired). We will continue that discussion for 2
>weeks, until the end of the IETF meeting in Toronto. The chairs will then
>compile a consensus-based list of requirements of the above form, after
>which we will move to the second step.
>
>We thank you in advance for your participation in this important task.
>
>Regards
>
>Alexei, Kenny and Kevin (CFRG co-chairs)
>
>
>
>
>On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
>wrote:
>
>>CFRG Chairs and Security ADs,
>>
>>TLS WG would like to formally request that the
>>CFRG make a recommendation for new ECC group support for TLS
>>and other similar applications. Specifically, we request that CFRG
>>recommend the following:
>>
>>- Curves suitable for both key establishment and digital signature
>>  (though the same curves need not be used for both purposes).
>>
>>- One proposed curve or set of curves at the following security
>>  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>>  192-bit security is optional.
>>
>>If the same curves are used for key establishment and signature, this
>>would be a recommendation for two curves.  If different curves are
>>used, this would be a recommendation for four curves.
>>
>>In addition to a recommendation, we also request that the CFRG provide
>>a technical rationale for their selection.
>>
>>If the CFRG does not feel comfortable making a single set of
>>selections, we propose that they select a small number of potential
>>choices with a detailed technical analysis of the advantages and
>>disadvantages of each selection and that the Security ADs sponsor a
>>process (perhaps via SAAG) to narrow it down to the specification
>>above.
>>
>>For clarity, we are not currently requesting that CFRG replace or
>>profile the existing curves in RFC4492 and RFC 7027, although we are
>>also not ruling out such an effort in the future. The current request
>>is for a new set of curves to complement the existing ones.
>>
>>Please reach out to us if this is unclear or further information is
>>required.
>>
>>Thanks,
>>
>>TLS Chairs
>>
>>
>
>
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg
>
>
>
>
>


From nobody Sat Jul 19 15:43:04 2014
Return-Path: <b@b3k.us>
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 18F531B2A87 for <cfrg@ietfa.amsl.com>; Sat, 19 Jul 2014 15:43:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.377
X-Spam-Level: 
X-Spam-Status: No, score=-1.377 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_55=0.6, RCVD_IN_DNSWL_LOW=-0.7] 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 GM_Stu6EaCaA for <cfrg@ietfa.amsl.com>; Sat, 19 Jul 2014 15:42:58 -0700 (PDT)
Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45EF91B2A7D for <cfrg@irtf.org>; Sat, 19 Jul 2014 15:42:58 -0700 (PDT)
Received: by mail-wi0-f182.google.com with SMTP id d1so2397920wiv.3 for <cfrg@irtf.org>; Sat, 19 Jul 2014 15:42:56 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=bYK+Gy0Aot1tqJ6wQzE7fzwZSuTLNN3Co2sU2KdoOHg=; b=ZMawhWv7iyHOgy504kFY5001E3AMNXx2pVG7sco0VgE9x2J1Rc5GZMnSSPC25d/njV KzUwvlk/Zp6fbsqZfEqSM5sFeMOUWmAO/mjQf1PzvBdAir/KKRWykzQXu6piQ+8bcYSL zXiMbfiK2vN1CVCOuyEN56/82iFiE3wRiWIqF0saOpkIz2vEBe5yHvTiCMJm5n0IbhVG //cMsMWJNeHm91QdAzQYAO1bCLFpXcAz/+a3Ec8vVT3A2hr3/ShPcCbBTgFGQrhct9Fd ihyR87bMx+WHPm17dwjOXzE9OgGOgNq5zVyg5DIxY+B5oiDenN77Qx9y0FkEtxbueSwr 2vtQ==
X-Gm-Message-State: ALoCoQmXUWdNQ8zH8kW6sOJ4RUacPIcDMmrFn71h1uuWaQYA5FgDvp34M10KCNQydN9pTv/xdAph
X-Received: by 10.194.60.35 with SMTP id e3mr8515602wjr.12.1405809776822; Sat, 19 Jul 2014 15:42:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Sat, 19 Jul 2014 15:42:36 -0700 (PDT)
In-Reply-To: <E600EB81-2EED-4B84-A9F2-38B27397A497@cisco.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com> <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com> <E600EB81-2EED-4B84-A9F2-38B27397A497@cisco.com>
From: Benjamin Black <b@b3k.us>
Date: Sat, 19 Jul 2014 15:42:36 -0700
Message-ID: <CA+Vbu7xOnpHO8-U+f6r_30TfPkOQ5Sz1kp9vf4eAQnXTkG-qwA@mail.gmail.com>
To: "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Content-Type: multipart/alternative; boundary=047d7b86e8ba5ea57704fe939885
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/XARKZ5EhtqKQJHzdwQmqwgBNGwY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sat, 19 Jul 2014 22:43:02 -0000

--047d7b86e8ba5ea57704fe939885
Content-Type: text/plain; charset=UTF-8

"The CFRG has the cryptographic expertise to determine what pairings are
appropriate."

As do a number of others, including other leaders of the TLS working group.
I refer you again to RFC5289 and again request an explanation for this
contradicting of all prior practice in the TLS working group.

"As a practical matter 128-bith strength ciphers are sufficient for most
current deployments."

For higher security requirements, as a practical matter for most
deployments, 256-bit symmetric ciphers are combined with 192-bit strength
curves. I would also suggest you are making an incorrect assumption in
saying 128-bit is sufficient. I think you'll find some very large online
services defaulting to 256-bit ciphers. So, based on your own metric of
current deployment, with which I agree, the required curve strengths are
128 and 192. If you wish to apply a different metric, and especially if you
wish to apply different metrics for the different strengths, then I'd ask
that you bring something rather stronger to the table as justification.

"From what I understand there are currently curves families under
consideration which do not currently the higher strength key size defined."

This is irrelevant! We are talking about requirements for TLS, not
immediately available curves we could adopt if we squint a bit and ignore
the enormous overhead inherent in migrating to them. If they don't have the
higher strength defined, they are not viable candidates. That's how this
process works. If you instead insist on wrapping the requirements around
the curves then I am unclear on the point of this exercise, at least on an
engineering level.

"If the CFRG determines these curves have significant enough advantages it
could make this recommendation while the details of the higher strength
curves are being worked out.  However, the CFRG is not obliged to wait."

Once again, this is absolutely contrary to all prior work in TLS and almost
all work across IETF. It implies that every single curve at every strength
will need at least one new draft and possibly more since there is
discussion of allowing new signature schemes for no apparent reason. What
is the rush that requires this highly unusual direction?


Ben


On Fri, Jul 18, 2014 at 1:59 PM, Joseph Salowey (jsalowey) <
jsalowey@cisco.com> wrote:

>
>  On Jul 17, 2014, at 11:03 PM, Benjamin Black <b@b3k.us> wrote:
>
>  "TLS supports 256-bit symmetric key ciphers and we want to have
> recommended curves to match this key strength.  We leave it up to the CFRG
> to determine what ECC key strengths are appropriate above 128-bit symmetric
> key strength."
>
>  Can you clarify why this is the case? TLS already has suites with
> 256-bit symmetric ciphers and they are paired with 192-bit security level
> components, including curves [1]. I can see arguments in favor of either
> 192 or 256, but I don't see how this is now a CFRG decision.
>
>
>  [Joe]  The CFRG has the cryptographic expertise to determine what
> pairings are appropriate.
>
>  "It is also not necessary that the recommendation for higher strength
> curves be delivered at the same time, it would be OK to deliver a
> recommendation for the 128-bit curves before the higher strength curves."
>
>  Can you clarify why this is the case? I'm not aware of any other
> standardization effort that has done this and see no reason for it.
>
>
>  [Joe]  As a practical matter 128-bith strength ciphers are sufficient
> for most current deployments.  From what I understand there are currently
> curves families under consideration which do not currently the higher
> strength key size defined.  If the CFRG determines these curves have
> significant enough advantages it could make this recommendation while the
> details of the higher strength curves are being worked out.  However, the
> CFRG is not obliged to wait.
>
>
>  Ben
>
>  [1] RFC5289
>
>
> On Wed, Jul 16, 2014 at 8:35 AM, Joseph Salowey (jsalowey) <
> jsalowey@cisco.com> wrote:
>
>>
>> On Jul 14, 2014, at 6:11 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>>
>>  > On Jul 14, 2014 12:49 PM, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
>> wrote:
>> >>
>> >> Dear CFRG,
>> >>
>> >> CFRG has received a formal request from the TLS Working Group for
>> >> recommendations for new elliptic curves. Specifically, the TLS WG would
>> >> like CFRG to recommend:
>> >>
>> >> - Curves suitable for both key establishment and digital signature
>> >>  (though the same curves need not be used for both purposes).
>> >>
>> >> - One proposed curve or set of curves at the following security
>> >>  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>> >>  192-bit security is optional.
>> >
>> > I would like these to be taken as minimums. There is no reason
>> > Curve4417 should not be used for 192 bit security
>> > or Goldilocks448 if performance is acceptable.
>> >
>> > I am not sure that 512 bits is needed: the NSA only uses P-384 for Top
>> > Secret data. Perhaps this is an area where the
>> > TLS WG can do some more thinking about what they want to see.
>> >
>>
>>  [Joe] We've received a few comments about this offline so I want to
>> clarify on desired strengths. TLS supports 256-bit symmetric key ciphers
>> and we want to have recommended curves to match this key strength.  We
>> leave it up to the CFRG to determine what ECC key strengths are appropriate
>> above 128-bit symmetric key strength.  It is also not necessary that the
>> recommendation for higher strength curves be delivered at the same time, it
>> would be OK to deliver a recommendation for the 128-bit curves before the
>> higher strength curves.
>>
>> >>
>> >> Note that these curves are not intended to supplant current curves in
>> >> widespread use, but rather to supplement them. Full details of the
>> request
>> >> can be found in the e-mail from the TLS WG chairs below.
>> >>
>> >> The CFRG chairs will coordinate a response to this request from the
>> CFRG
>> >> readership. Ideally we will reach a rough consensus through discussion
>> on
>> >> the
>> >> list and at the upcoming IETF 90 meeting in Toronto. While no deadline
>> is
>> >> set for our response to the TLS WG, we should aim to have one ready
>> within
>> >> 2 months.
>> >>
>> >> We regard this as a major work item for CFRG and one where CFRG can
>> >> provide real value to the TLS WG and the IETF more widely. So we
>> encourage
>> >> (and indeed request) active participation from the widest set of
>> >> participants on this project.
>> >>
>> >> As a first step, we propose to discuss the requirements for new curves
>> for
>> >> a period of 2 weeks. Using an agreed set of requirements, in a second
>> >> step, we will then evaluate different curve proposals (including extant
>> >> proposals and any emerging ones) for a period of 4 weeks. In a final
>> >> period of 2 weeks, we will produce a proposal for the TLS WG and seek
>> >> consensus on it.
>> >
>> > What should a proposal look like? A family of similar curves, one for
>> > each length?
>> > How much implementation should be done? Making very fast
>> > implementations can require a lot of coding,
>> > but I think we know about how fast prime shapes will be, and curve
>> > shape+prime shape gives you
>> > everything but the TLC factor.
>> >
>> >>
>> >>
>> >> The first step, running for 2 weeks, begins here.
>> >>
>> >> A starting point for requirements can be found in David McGrew's recent
>> >> CFRG post
>> >> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
>> >> reproduced here:
>> >>
>> >> ----
>> >>
>> >> Simplicity
>> >>
>> >>   R1.  Desired: easy to understand and implement [1]
>> >>
>> >> Efficiency
>> >>
>> >>   R2.  Required: amenable to compact implementations and fast
>> >>   implementations, across both small and large processors [1]
>> >>
>> >>   R3.  Desired: re-use components between signatures and key exchange
>> >>   algorithms [3]
>> >
>> > How about code size for R3 to make it more amenable to argument?
>> >
>> >>
>> >> Intellectual Property
>> >>
>> >>   R4.  Required: available worldwide under reasonable and well
>> >>   understood licensing terms [1]
>> >>
>> >>   R5.  Desired: available worldwide under royalty-free licensing
>> >>   terms [1]
>> >
>> > I would make R5 a requirement. Royalties are a nonstarter for many
>> users.
>> >
>> >>
>> >> Interoperability
>> >>
>> >>   R6.  Desired: can be used with current software implementations
>> >>   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>> >>
>> >>   R7.  Desired: can be used within current ECC standards of TLS,
>> >>   PKIX, SSH, and IKE [4]
>> >
>> > These desiderata are worthwhile, but implementors have signalled they
>> > are willing to make
>> > large changes for performance.
>> >
>> >>
>> >> Security
>> >>
>> >>   R8.  Required: amenable to constant-time implementations, to avoid
>> >>   side channel attacks [2]
>> >>
>> >>   R9.  Required: resist twist attacks [2]
>> >
>> > I don't like R9: twist attacks are only an issue with algorithms that
>> > work on the compressed form. It just feels different.
>> > Perhaps the requirement should be that implementations that miss
>> > checks avoid being completely insecure.
>> >>
>> >>   R10.  Required: curve parameters should have good provenance;
>> >>   random curves should be provably pseudorandom [5]
>> >>
>> >>   R11.  Desired for key exchange: resist invalid curve attacks [2];
>> >>   note that complete addition laws help and are thus desirable [2].
>> >>   (Note that the use of ephemeral keys also resist such attacks.)
>> >
>> > I feel this should be folded into an edited R9.
>> >>
>> >>   R12.  Required for PAKE: indistinguishability of curve points from
>> >>   random strings [2]
>> >
>> > Mike Hamburg will know better than I, but my vague recollection is
>> > that Elligator 2 worked for everything.
>> >>
>> >> Footnotes:
>> >>
>> >>   [1] Original criteria set out for the Advanced Encryption Standard,
>> >>       which is equally applicable to ECC.  National Institute of
>> >>       Standards and Technology (NIST) of the United States, 1998.
>> >>
>> >>   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>> >>       curves for elliptic-curve cryptography.
>> >>       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
>> >> <http://safecurves.cr.yp.to/>, accessed
>> >> April 2014.
>> >>
>> >>   [3] Criteria identified by David McGrew, 2014.
>> >>
>> >>   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>> >>
>> >>   [5] Criteria widely acknowledged on CFRG email list during 2014.
>> >>
>> >> ----
>> >>
>> >>
>> >> Our first request, then, is that you consider these requirements, and
>> >> provide your views on their appropriateness, completeness, and
>> individual
>> >> classifications (required/desired). We will continue that discussion
>> for 2
>> >> weeks, until the end of the IETF meeting in Toronto. The chairs will
>> then
>> >> compile a consensus-based list of requirements of the above form, after
>> >> which we will move to the second step.
>> >>
>> >> We thank you in advance for your participation in this important task.
>> >>
>> >> Regards
>> >>
>> >> Alexei, Kenny and Kevin (CFRG co-chairs)
>> >>
>> >>
>> >>
>> >>
>> >> On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
>> >> wrote:
>> >>
>> >>> CFRG Chairs and Security ADs,
>> >>>
>> >>> TLS WG would like to formally request that the
>> >>> CFRG make a recommendation for new ECC group support for TLS
>> >>> and other similar applications. Specifically, we request that CFRG
>> >>> recommend the following:
>> >>>
>> >>> - Curves suitable for both key establishment and digital signature
>> >>> (though the same curves need not be used for both purposes).
>> >>>
>> >>> - One proposed curve or set of curves at the following security
>> >>> levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>> >>> 192-bit security is optional.
>> >>>
>> >>> If the same curves are used for key establishment and signature, this
>> >>> would be a recommendation for two curves.  If different curves are
>> >>> used, this would be a recommendation for four curves.
>> >>>
>> >>> In addition to a recommendation, we also request that the CFRG provide
>> >>> a technical rationale for their selection.
>> >>>
>> >>> If the CFRG does not feel comfortable making a single set of
>> >>> selections, we propose that they select a small number of potential
>> >>> choices with a detailed technical analysis of the advantages and
>> >>> disadvantages of each selection and that the Security ADs sponsor a
>> >>> process (perhaps via SAAG) to narrow it down to the specification
>> >>> above.
>> >>>
>> >>> For clarity, we are not currently requesting that CFRG replace or
>> >>> profile the existing curves in RFC4492 and RFC 7027, although we are
>> >>> also not ruling out such an effort in the future. The current request
>> >>> is for a new set of curves to complement the existing ones.
>> >>>
>> >>> Please reach out to us if this is unclear or further information is
>> >>> required.
>> >>>
>> >>> Thanks,
>> >>>
>> >>> TLS Chairs
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> Cfrg mailing list
>> >> Cfrg@irtf.org
>> >> http://www.irtf.org/mailman/listinfo/cfrg
>> >
>> > _______________________________________________
>> > Cfrg mailing list
>> > Cfrg@irtf.org
>> > http://www.irtf.org/mailman/listinfo/cfrg
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>>
>
>
>

--047d7b86e8ba5ea57704fe939885
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&quot;<span style=3D"font-size:13px;font-family:arial=
,sans-serif">The CFRG has the cryptographic expertise to determine what pai=
rings are appropriate.&quot;</span></div><div><span style=3D"font-size:13px=
;font-family:arial,sans-serif"><br>


</span></div><div><span style=3D"font-size:13px;font-family:arial,sans-seri=
f">As do a number of others, including other leaders of the TLS working gro=
up. I refer you again to=C2=A0</span>RFC5289 and again request an explanati=
on for this contradicting of all prior practice in the TLS working group.</=
div>


<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br></span=
>&quot;<span style=3D"font-size:13px;font-family:arial,sans-serif">As a pra=
ctical matter 128-bith strength ciphers are sufficient for most current dep=
loyments.&quot;</span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">For=
 higher security requirements, as a practical matter for most deployments, =
256-bit symmetric ciphers are combined with 192-bit strength curves. I woul=
d also suggest you are making an incorrect assumption in saying 128-bit is =
sufficient. I think you&#39;ll find some very large online services default=
ing to 256-bit ciphers. So, based on your own metric of current deployment,=
 with which I agree, the required curve strengths are 128 and 192. If you w=
ish to apply a different metric, and especially if you wish to apply differ=
ent metrics for the different strengths, then I&#39;d ask that you bring so=
mething rather stronger to the table as justification.</span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">&qu=
ot;</span><span style=3D"font-family:arial,sans-serif;font-size:13px">From =
what I understand there are currently curves families under consideration w=
hich do not currently the higher strength key size defined.&quot;</span></d=
iv>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">Thi=
s is irrelevant! We are talking about requirements for TLS, not immediately=
 available curves we could adopt if we squint a bit and ignore the enormous=
 overhead inherent in migrating to them. If they don&#39;t have the higher =
strength defined, they are not viable candidates. That&#39;s how this proce=
ss works. If you instead insist on wrapping the requirements around the cur=
ves then I am unclear on the point of this exercise, at least on an enginee=
ring level.</span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">&qu=
ot;</span><span style=3D"font-family:arial,sans-serif;font-size:13px">If th=
e CFRG determines these curves have significant enough advantages it could =
make this recommendation while the details of the higher strength curves ar=
e being worked out. =C2=A0However, the CFRG is not obliged to wait.&quot;</=
span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">Onc=
e again, this is absolutely contrary to all prior work in TLS and almost al=
l work across IETF. It implies that every single curve at every strength wi=
ll need at least one new draft and possibly more since there is discussion =
of allowing new signature schemes for no apparent reason. What is the rush =
that requires this highly unusual direction?</span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br=
></span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13=
px">Ben</span></div>


<div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Fri, Jul 1=
8, 2014 at 1:59 PM, Joseph Salowey (jsalowey) <span dir=3D"ltr">&lt;<a href=
=3D"mailto:jsalowey@cisco.com" target=3D"_blank">jsalowey@cisco.com</a>&gt;=
</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">



<div style=3D"word-wrap:break-word">
<br>
<div><div>
<div>On Jul 17, 2014, at 11:03 PM, Benjamin Black &lt;<a href=3D"mailto:b@b=
3k.us" target=3D"_blank">b@b3k.us</a>&gt; wrote:</div>
<br>
<blockquote type=3D"cite">
<div dir=3D"ltr">
<div>&quot;<span style=3D"font-size:13px;font-family:arial,sans-serif">TLS =
supports 256-bit symmetric key ciphers and we want to have recommended curv=
es to match this key strength. =C2=A0We leave it up to the CFRG to determin=
e what ECC key strengths are appropriate above
 128-bit symmetric key strength.&quot;</span></div>
<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br>
</span></div>
<div><font face=3D"arial, sans-serif">Can you clarify why this is the case?=
 TLS already has suites with 256-bit symmetric ciphers and they are paired =
with 192-bit security level components, including curves [1]</font><span st=
yle=3D"font-family:arial,sans-serif">.
 I can see arguments in favor of either 192 or 256, but I don&#39;t see how=
 this is now a CFRG decision.</span></div>
<div><span style=3D"font-size:13px;font-family:arial,sans-serif"><br>
</span></div>
</div>
</blockquote>
<div><br>
</div>
</div><div>[Joe] =C2=A0The CFRG has the cryptographic expertise to determin=
e what pairings are appropriate. =C2=A0=C2=A0</div><div>
<br>
<blockquote type=3D"cite">
<div dir=3D"ltr">
<div>&quot;<span style=3D"font-size:13px;font-family:arial,sans-serif">It i=
s also not necessary that the recommendation for higher strength curves be =
delivered at the same time, it would be OK to deliver a recommendation for =
the 128-bit curves before the higher strength
 curves.</span><span style=3D"font-size:13px;font-family:arial,sans-serif">=
&quot;</span></div>
<div><font face=3D"arial, sans-serif"><br>
</font></div>
<div><font face=3D"arial, sans-serif">Can you clarify why this is the case?=
 I&#39;m not aware of any other standardization effort that has done this a=
nd see no reason for it.</font></div>
<div><font face=3D"arial, sans-serif"><br>
</font></div>
</div>
</blockquote>
<div><br>
</div>
</div><div>[Joe] =C2=A0As a practical matter 128-bith strength ciphers are =
sufficient for most current deployments. =C2=A0From what I understand there=
 are currently curves families under consideration which do not currently t=
he higher strength key size defined. =C2=A0If the CFRG
 determines these curves have significant enough advantages it could make t=
his recommendation while the details of the higher strength curves are bein=
g worked out. =C2=A0However, the CFRG is not obliged to wait.=C2=A0</div><d=
iv><div>



<br>
<blockquote type=3D"cite">
<div dir=3D"ltr">
<div><font face=3D"arial, sans-serif"><br>
</font></div>
<div><font face=3D"arial, sans-serif">Ben<br>
</font>
<div><br>
</div>
</div>
<div>[1]=C2=A0<span style=3D"font-family:arial,sans-serif">RFC5289</span></=
div>
</div>
<div class=3D"gmail_extra"><br>
<br>
<div class=3D"gmail_quote">On Wed, Jul 16, 2014 at 8:35 AM, Joseph Salowey =
(jsalowey)
<span dir=3D"ltr">&lt;<a href=3D"mailto:jsalowey@cisco.com" target=3D"_blan=
k">jsalowey@cisco.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div><br>
On Jul 14, 2014, at 6:11 PM, Watson Ladd &lt;<a href=3D"mailto:watsonbladd@=
gmail.com" target=3D"_blank">watsonbladd@gmail.com</a>&gt; wrote:<br>
<br>
</div>
<div>&gt; On Jul 14, 2014 12:49 PM, &quot;Paterson, Kenny&quot; &lt;<a href=
=3D"mailto:Kenny.Paterson@rhul.ac.uk" target=3D"_blank">Kenny.Paterson@rhul=
.ac.uk</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear CFRG,<br>
&gt;&gt;<br>
&gt;&gt; CFRG has received a formal request from the TLS Working Group for<=
br>
&gt;&gt; recommendations for new elliptic curves. Specifically, the TLS WG =
would<br>
&gt;&gt; like CFRG to recommend:<br>
&gt;&gt;<br>
&gt;&gt; - Curves suitable for both key establishment and digital signature=
<br>
&gt;&gt; =C2=A0(though the same curves need not be used for both purposes).=
<br>
&gt;&gt;<br>
&gt;&gt; - One proposed curve or set of curves at the following security<br=
>
&gt;&gt; =C2=A0levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve=
).<br>
&gt;&gt; =C2=A0192-bit security is optional.<br>
&gt;<br>
&gt; I would like these to be taken as minimums. There is no reason<br>
&gt; Curve4417 should not be used for 192 bit security<br>
&gt; or Goldilocks448 if performance is acceptable.<br>
&gt;<br>
&gt; I am not sure that 512 bits is needed: the NSA only uses P-384 for Top=
<br>
&gt; Secret data. Perhaps this is an area where the<br>
&gt; TLS WG can do some more thinking about what they want to see.<br>
&gt;<br>
<br>
</div>
[Joe] We&#39;ve received a few comments about this offline so I want to cla=
rify on desired strengths. TLS supports 256-bit symmetric key ciphers and w=
e want to have recommended curves to match this key strength. =C2=A0We leav=
e it up to the CFRG to determine what ECC
 key strengths are appropriate above 128-bit symmetric key strength. =C2=A0=
It is also not necessary that the recommendation for higher strength curves=
 be delivered at the same time, it would be OK to deliver a recommendation =
for the 128-bit curves before the higher
 strength curves.<br>
<div>
<div><br>
&gt;&gt;<br>
&gt;&gt; Note that these curves are not intended to supplant current curves=
 in<br>
&gt;&gt; widespread use, but rather to supplement them. Full details of the=
 request<br>
&gt;&gt; can be found in the e-mail from the TLS WG chairs below.<br>
&gt;&gt;<br>
&gt;&gt; The CFRG chairs will coordinate a response to this request from th=
e CFRG<br>
&gt;&gt; readership. Ideally we will reach a rough consensus through discus=
sion on<br>
&gt;&gt; the<br>
&gt;&gt; list and at the upcoming IETF 90 meeting in Toronto. While no dead=
line is<br>
&gt;&gt; set for our response to the TLS WG, we should aim to have one read=
y within<br>
&gt;&gt; 2 months.<br>
&gt;&gt;<br>
&gt;&gt; We regard this as a major work item for CFRG and one where CFRG ca=
n<br>
&gt;&gt; provide real value to the TLS WG and the IETF more widely. So we e=
ncourage<br>
&gt;&gt; (and indeed request) active participation from the widest set of<b=
r>
&gt;&gt; participants on this project.<br>
&gt;&gt;<br>
&gt;&gt; As a first step, we propose to discuss the requirements for new cu=
rves for<br>
&gt;&gt; a period of 2 weeks. Using an agreed set of requirements, in a sec=
ond<br>
&gt;&gt; step, we will then evaluate different curve proposals (including e=
xtant<br>
&gt;&gt; proposals and any emerging ones) for a period of 4 weeks. In a fin=
al<br>
&gt;&gt; period of 2 weeks, we will produce a proposal for the TLS WG and s=
eek<br>
&gt;&gt; consensus on it.<br>
&gt;<br>
&gt; What should a proposal look like? A family of similar curves, one for<=
br>
&gt; each length?<br>
&gt; How much implementation should be done? Making very fast<br>
&gt; implementations can require a lot of coding,<br>
&gt; but I think we know about how fast prime shapes will be, and curve<br>
&gt; shape+prime shape gives you<br>
&gt; everything but the TLC factor.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The first step, running for 2 weeks, begins here.<br>
&gt;&gt;<br>
&gt;&gt; A starting point for requirements can be found in David McGrew&#39=
;s recent<br>
&gt;&gt; CFRG post<br>
&gt;&gt; (<a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg0=
4461.html" target=3D"_blank">http://www.ietf.org/mail-archive/web/cfrg/curr=
ent/msg04461.html</a>) and<br>
&gt;&gt; reproduced here:<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt; Simplicity<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R1. =C2=A0Desired: easy to understand and implement [1]<br>
&gt;&gt;<br>
&gt;&gt; Efficiency<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R2. =C2=A0Required: amenable to compact implementations and=
 fast<br>
&gt;&gt; =C2=A0 implementations, across both small and large processors [1]=
<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R3. =C2=A0Desired: re-use components between signatures and=
 key exchange<br>
&gt;&gt; =C2=A0 algorithms [3]<br>
&gt;<br>
&gt; How about code size for R3 to make it more amenable to argument?<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Intellectual Property<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R4. =C2=A0Required: available worldwide under reasonable an=
d well<br>
&gt;&gt; =C2=A0 understood licensing terms [1]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R5. =C2=A0Desired: available worldwide under royalty-free l=
icensing<br>
&gt;&gt; =C2=A0 terms [1]<br>
&gt;<br>
&gt; I would make R5 a requirement. Royalties are a nonstarter for many use=
rs.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Interoperability<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R6. =C2=A0Desired: can be used with current software implem=
entations<br>
&gt;&gt; =C2=A0 (using different curve parameters) of TLS, PKIX, SSH, and I=
KE [4]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R7. =C2=A0Desired: can be used within current ECC standards=
 of TLS,<br>
&gt;&gt; =C2=A0 PKIX, SSH, and IKE [4]<br>
&gt;<br>
&gt; These desiderata are worthwhile, but implementors have signalled they<=
br>
&gt; are willing to make<br>
&gt; large changes for performance.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Security<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R8. =C2=A0Required: amenable to constant-time implementatio=
ns, to avoid<br>
&gt;&gt; =C2=A0 side channel attacks [2]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R9. =C2=A0Required: resist twist attacks [2]<br>
&gt;<br>
&gt; I don&#39;t like R9: twist attacks are only an issue with algorithms t=
hat<br>
&gt; work on the compressed form. It just feels different.<br>
&gt; Perhaps the requirement should be that implementations that miss<br>
&gt; checks avoid being completely insecure.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R10. =C2=A0Required: curve parameters should have good prov=
enance;<br>
&gt;&gt; =C2=A0 random curves should be provably pseudorandom [5]<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R11. =C2=A0Desired for key exchange: resist invalid curve a=
ttacks [2];<br>
&gt;&gt; =C2=A0 note that complete addition laws help and are thus desirabl=
e [2].<br>
&gt;&gt; =C2=A0 (Note that the use of ephemeral keys also resist such attac=
ks.)<br>
&gt;<br>
&gt; I feel this should be folded into an edited R9.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 R12. =C2=A0Required for PAKE: indistinguishability of curve=
 points from<br>
&gt;&gt; =C2=A0 random strings [2]<br>
&gt;<br>
&gt; Mike Hamburg will know better than I, but my vague recollection is<br>
&gt; that Elligator 2 worked for everything.<br>
&gt;&gt;<br>
&gt;&gt; Footnotes:<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [1] Original criteria set out for the Advanced Encryption S=
tandard,<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 which is equally applicable to ECC. =C2=A0Nat=
ional Institute of<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 Standards and Technology (NIST) of the United=
 States, 1998.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosi=
ng safe<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 curves for elliptic-curve cryptography.<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://safecurves.cr.yp.to/" targe=
t=3D"_blank">http://safecurves.cr.yp.to</a> &lt;<a href=3D"http://safecurve=
s.cr.yp.to/" target=3D"_blank">http://safecurves.cr.yp.to/</a>&gt;<br>
&gt;&gt; &lt;<a href=3D"http://safecurves.cr.yp.to/" target=3D"_blank">http=
://safecurves.cr.yp.to/</a>&gt;, accessed<br>
&gt;&gt; April 2014.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [3] Criteria identified by David McGrew, 2014.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [4] Criteria identified by Russ Housley, TLS WG meeting at =
IETF89.<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 [5] Criteria widely acknowledged on CFRG email list during =
2014.<br>
&gt;&gt;<br>
&gt;&gt; ----<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Our first request, then, is that you consider these requirements, =
and<br>
&gt;&gt; provide your views on their appropriateness, completeness, and ind=
ividual<br>
&gt;&gt; classifications (required/desired). We will continue that discussi=
on for 2<br>
&gt;&gt; weeks, until the end of the IETF meeting in Toronto. The chairs wi=
ll then<br>
&gt;&gt; compile a consensus-based list of requirements of the above form, =
after<br>
&gt;&gt; which we will move to the second step.<br>
&gt;&gt;<br>
&gt;&gt; We thank you in advance for your participation in this important t=
ask.<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt;<br>
&gt;&gt; Alexei, Kenny and Kevin (CFRG co-chairs)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 11/07/2014 05:44, &quot;Joseph Salowey (jsalowey)&quot; &lt;<a =
href=3D"mailto:jsalowey@cisco.com" target=3D"_blank">jsalowey@cisco.com</a>=
&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; CFRG Chairs and Security ADs,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; TLS WG would like to formally request that the<br>
&gt;&gt;&gt; CFRG make a recommendation for new ECC group support for TLS<b=
r>
&gt;&gt;&gt; and other similar applications. Specifically, we request that =
CFRG<br>
&gt;&gt;&gt; recommend the following:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - Curves suitable for both key establishment and digital signa=
ture<br>
&gt;&gt;&gt; (though the same curves need not be used for both purposes).<b=
r>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; - One proposed curve or set of curves at the following securit=
y<br>
&gt;&gt;&gt; levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve)=
.<br>
&gt;&gt;&gt; 192-bit security is optional.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If the same curves are used for key establishment and signatur=
e, this<br>
&gt;&gt;&gt; would be a recommendation for two curves. =C2=A0If different c=
urves are<br>
&gt;&gt;&gt; used, this would be a recommendation for four curves.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; In addition to a recommendation, we also request that the CFRG=
 provide<br>
&gt;&gt;&gt; a technical rationale for their selection.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If the CFRG does not feel comfortable making a single set of<b=
r>
&gt;&gt;&gt; selections, we propose that they select a small number of pote=
ntial<br>
&gt;&gt;&gt; choices with a detailed technical analysis of the advantages a=
nd<br>
&gt;&gt;&gt; disadvantages of each selection and that the Security ADs spon=
sor a<br>
&gt;&gt;&gt; process (perhaps via SAAG) to narrow it down to the specificat=
ion<br>
&gt;&gt;&gt; above.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; For clarity, we are not currently requesting that CFRG replace=
 or<br>
&gt;&gt;&gt; profile the existing curves in RFC4492 and RFC 7027, although =
we are<br>
&gt;&gt;&gt; also not ruling out such an effort in the future. The current =
request<br>
&gt;&gt;&gt; is for a new set of curves to complement the existing ones.<br=
>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please reach out to us if this is unclear or further informati=
on is<br>
&gt;&gt;&gt; required.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; TLS Chairs<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</=
a><br>
&gt;&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_b=
lank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><b=
r>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank=
">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div></div></div>
<br>
</div>

</blockquote></div><br></div></div>

--047d7b86e8ba5ea57704fe939885--


From nobody Sat Jul 19 16:10:11 2014
Return-Path: <b@b3k.us>
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 870241B2AA7 for <cfrg@ietfa.amsl.com>; Sat, 19 Jul 2014 16:10:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 nZtpUV8fQDmi for <cfrg@ietfa.amsl.com>; Sat, 19 Jul 2014 16:10:04 -0700 (PDT)
Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 366011B2AA8 for <cfrg@irtf.org>; Sat, 19 Jul 2014 16:10:04 -0700 (PDT)
Received: by mail-wg0-f52.google.com with SMTP id a1so4838185wgh.11 for <cfrg@irtf.org>; Sat, 19 Jul 2014 16:10:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=yqCPOA0fEJuBbOAGwET5rc6b7xuJzK3QKbsyuGLQ3Wo=; b=JjiF7ZIBXeBKwVsKDKyJ6WU6P/epY3MrmYCkj0pgB0Rh8vPUY+dXS5WASJo1dlUOon UZuGMFLYf/4IXaCBSQOgDA71IY6qtUwWOBIBIsTIUn2LDshTeFzTr0TROQvnF/Jijb9B IyUtzB/IfWfha3zS1mmSqePCB60w8RTX++wDhVXMDpmYZ6h7LYEJsg/bQnsnjvKnTVqx 4HVIAXYkSNn3Yxkz0uvfjOee3re5ckq3yWKb7QAsMtjCr0qAToU+BGdbeaa2zxqd1Bww 7q0GmyC2FYvhQ2YTg4C0/zhCP3GGwfgO2eIwSHi8lrCHzKhKd20bDxEX5bd34weXGF9H +DSQ==
X-Gm-Message-State: ALoCoQlwVXyk6kWt62KD40gjaDtXJUK8bwgjV80Jnnb4okBHo2VXN/SwxQjIsaetHfoC6BVCcr41
X-Received: by 10.180.10.166 with SMTP id j6mr13942451wib.73.1405811402803; Sat, 19 Jul 2014 16:10:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Sat, 19 Jul 2014 16:09:42 -0700 (PDT)
In-Reply-To: <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk>
From: Benjamin Black <b@b3k.us>
Date: Sat, 19 Jul 2014 16:09:42 -0700
Message-ID: <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: multipart/alternative; boundary=001a11c2441249224904fe93f93d
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/7U5rqYB64iCbgfNqDY2MgB5RTcw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sat, 19 Jul 2014 23:10:09 -0000

--001a11c2441249224904fe93f93d
Content-Type: text/plain; charset=UTF-8

"This stems from the fact that in some specific cases an algorithm and a
curve are closely linked, with the two in some sense being carefully
co-designed to gain security and performance."

I am aware of claims to this effect, but I have seen no evidence of
meaningful security or performance gains that would be seen in practical
deployments in TLS. Similar claims have been made about the dramatic
performance gains from certain curve forms, but the MSR research that
produced the NUMS curves shows only slight performance advantages for those
forms and only at low security levels. The ECCLib implementations support
the conclusion that there is little benefit. Please provide specific
supporting documentation for claims of significant, not incremental,
performance or security gains for TLS from this.

If we had evidence of radically improved security or radically improved
performance at a given security level I would agree it would be worth
exploring. For less than 10% performance gain and no security gain I see no
reason to even consider adopting a new signature algorithm. In the abstract
it might seem plausible, but when faced with updating a billion devices
along with all of the supporting infrastructure previously hinted at, it
has to be excluded.

"My own view is that we should broaden our interpretation of the scope of the
request to accommodate this fact, providing both new curves, and where
appropriate,
pointers to algorithms for those curves."

There are multiple available options that support all relevant security
levels, are faster than the NIST curves, and are compatible with existing
infrastructure. There will always be new curves published. Their existence
cannot mean we constantly push incompatible algorithms with enormous
adoption costs at scale. If the goal is radically higher performance at a
given security level and we don't care at all about compatibility, then why
not consider genus 2 curves or other forms which are known to be enormously
faster than even the twisted Edwards curves on the table? Throwing out
compatibility is a very slippery slope.

I ask once again that you and the rest of the CFRG leadership along with
the TLS leadership focus on practical, clear, and specific requirements for
elimination of the NIST curves. Expanding the scope beyond that either
means a hasty process producing something we are likely to regret in a few
years (this is a 15+ year commitment!), or a long and careful process
producing something we will still want around in a few years. Pushing new
crypto on vendors and customers for the sake of maybe a few percent
performance improvement, and that is exactly what we are discussing here,
should alarm everyone.

I will unfortunately not be in Toronto, but a number of others from
Microsoft will be and I hope there can be productive discussion on this
grounded a bit more in the facts of performance, security, and practice.


Ben



On Fri, Jul 18, 2014 at 3:29 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
wrote:

> Hi Ben,
>
> Thanks for your questions. I agree there is ambiguity. This stems from the
> fact that in some specific cases an algorithm and a curve are closely
> linked, with the two in some sense being carefully co-designed to gain
> security and performance.
>
> I understand very well your point that if it is "curves only", then
> certain curves which are incompatible with existing standardized and
> widely deployed algorithms would need to be excluded.
>
> My own view is that we should broaden our interpretation of the scope of
> the request to accommodate this fact, providing both new curves, and where
> appropriate, pointers to algorithms for those curves. (Note that CFRG is
> not being asked to produce I-Ds for either curves or algorithms, though
> that kind of work might inevitably follow depending on the exact choices
> we recommend.) Of course, we can and should have discussion on this
> question of broadening of scope, as you rightly suggest below.
>
> Concerning your second question, yes, in an ideal world we would reach
> rough consensus on the requirements, and they would be clear, complete and
> unambiguous.
>
> If you are in Toronto next week, I'd be glad to continue the conversation,
> otherwise, let's do it on the list.
>
> Regards
>
> Kenny
>
>
> On 18/07/2014 06:51, "Benjamin Black" <b@b3k.us> wrote:
>
> >Kenny,
> >
> >
> >There is rather a lot of ambiguity in these various versions of the
> >requirements. It would be helpful to get clarity on at least two points:
> >
> >
> >1) Is this request for _only_ new curves, as the subject line of your
> >email indicates, or for new "ECC mechanisms" as in the included list from
> >David McGrew? If it is the former, then curves which are incompatible
> >with existing standardized and widely
> > deployed algorithms, at least including ECDHE and ECDSA, must be
> >excluded. If it is the latter, then this request goes far beyond some
> >curves and I suggest deserves a lot more debate on how far down the new
> >cryptography rabbit hole CFRG and the IETF wish to
> > go.
> >
> >
> >2) Is the process here to agree on clear, complete, unambiguous
> >requirements against which candidate curves will be evaluated? I believe
> >the answer is, or should be, yes. However, based on ambiguities in the
> >stated requirements and the subsequent further
> > blurring of those requirements on the mailing list, it seems that might
> >not be the consensus view.
> >
> >
> >
> >
> >Ben
> >
> >
> >
> >
> >On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny
> ><Kenny.Paterson@rhul.ac.uk> wrote:
> >
> >Dear CFRG,
> >
> >CFRG has received a formal request from the TLS Working Group for
> >recommendations for new elliptic curves. Specifically, the TLS WG would
> >like CFRG to recommend:
> >
> >- Curves suitable for both key establishment and digital signature
> >  (though the same curves need not be used for both purposes).
> >
> >- One proposed curve or set of curves at the following security
> >  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
> >  192-bit security is optional.
> >
> >Note that these curves are not intended to supplant current curves in
> >widespread use, but rather to supplement them. Full details of the request
> >can be found in the e-mail from the TLS WG chairs below.
> >
> >The CFRG chairs will coordinate a response to this request from the CFRG
> >readership. Ideally we will reach a rough consensus through discussion on
> >the
> >list and at the upcoming IETF 90 meeting in Toronto. While no deadline is
> >set for our response to the TLS WG, we should aim to have one ready within
> >2 months.
> >
> >We regard this as a major work item for CFRG and one where CFRG can
> >provide real value to the TLS WG and the IETF more widely. So we encourage
> >(and indeed request) active participation from the widest set of
> >participants on this project.
> >
> >As a first step, we propose to discuss the requirements for new curves for
> >a period of 2 weeks. Using an agreed set of requirements, in a second
> >step, we will then evaluate different curve proposals (including extant
> >proposals and any emerging ones) for a period of 4 weeks. In a final
> >period of 2 weeks, we will produce a proposal for the TLS WG and seek
> >consensus on it.
> >
> >
> >The first step, running for 2 weeks, begins here.
> >
> >A starting point for requirements can be found in David McGrew's recent
> >CFRG post
> >(http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
> >reproduced here:
> >
> >----
> >
> >Simplicity
> >
> >   R1.  Desired: easy to understand and implement [1]
> >
> >Efficiency
> >
> >   R2.  Required: amenable to compact implementations and fast
> >   implementations, across both small and large processors [1]
> >
> >   R3.  Desired: re-use components between signatures and key exchange
> >   algorithms [3]
> >
> >Intellectual Property
> >
> >   R4.  Required: available worldwide under reasonable and well
> >   understood licensing terms [1]
> >
> >   R5.  Desired: available worldwide under royalty-free licensing
> >   terms [1]
> >
> >Interoperability
> >
> >   R6.  Desired: can be used with current software implementations
> >   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
> >
> >   R7.  Desired: can be used within current ECC standards of TLS,
> >   PKIX, SSH, and IKE [4]
> >
> >Security
> >
> >   R8.  Required: amenable to constant-time implementations, to avoid
> >   side channel attacks [2]
> >
> >   R9.  Required: resist twist attacks [2]
> >
> >   R10.  Required: curve parameters should have good provenance;
> >   random curves should be provably pseudorandom [5]
> >
> >   R11.  Desired for key exchange: resist invalid curve attacks [2];
> >   note that complete addition laws help and are thus desirable [2].
> >   (Note that the use of ephemeral keys also resist such attacks.)
> >
> >   R12.  Required for PAKE: indistinguishability of curve points from
> >   random strings [2]
> >
> >Footnotes:
> >
> >   [1] Original criteria set out for the Advanced Encryption Standard,
> >       which is equally applicable to ECC.  National Institute of
> >       Standards and Technology (NIST) of the United States, 1998.
> >
> >   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
> >       curves for elliptic-curve cryptography.
> >       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
> ><http://safecurves.cr.yp.to/>, accessed
> >April 2014.
> >
> >   [3] Criteria identified by David McGrew, 2014.
> >
> >   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
> >
> >   [5] Criteria widely acknowledged on CFRG email list during 2014.
> >
> >----
> >
> >
> >Our first request, then, is that you consider these requirements, and
> >provide your views on their appropriateness, completeness, and individual
> >classifications (required/desired). We will continue that discussion for 2
> >weeks, until the end of the IETF meeting in Toronto. The chairs will then
> >compile a consensus-based list of requirements of the above form, after
> >which we will move to the second step.
> >
> >We thank you in advance for your participation in this important task.
> >
> >Regards
> >
> >Alexei, Kenny and Kevin (CFRG co-chairs)
> >
> >
> >
> >
> >On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
> >wrote:
> >
> >>CFRG Chairs and Security ADs,
> >>
> >>TLS WG would like to formally request that the
> >>CFRG make a recommendation for new ECC group support for TLS
> >>and other similar applications. Specifically, we request that CFRG
> >>recommend the following:
> >>
> >>- Curves suitable for both key establishment and digital signature
> >>  (though the same curves need not be used for both purposes).
> >>
> >>- One proposed curve or set of curves at the following security
> >>  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
> >>  192-bit security is optional.
> >>
> >>If the same curves are used for key establishment and signature, this
> >>would be a recommendation for two curves.  If different curves are
> >>used, this would be a recommendation for four curves.
> >>
> >>In addition to a recommendation, we also request that the CFRG provide
> >>a technical rationale for their selection.
> >>
> >>If the CFRG does not feel comfortable making a single set of
> >>selections, we propose that they select a small number of potential
> >>choices with a detailed technical analysis of the advantages and
> >>disadvantages of each selection and that the Security ADs sponsor a
> >>process (perhaps via SAAG) to narrow it down to the specification
> >>above.
> >>
> >>For clarity, we are not currently requesting that CFRG replace or
> >>profile the existing curves in RFC4492 and RFC 7027, although we are
> >>also not ruling out such an effort in the future. The current request
> >>is for a new set of curves to complement the existing ones.
> >>
> >>Please reach out to us if this is unclear or further information is
> >>required.
> >>
> >>Thanks,
> >>
> >>TLS Chairs
> >>
> >>
> >
> >
> >
> >_______________________________________________
> >Cfrg mailing list
> >Cfrg@irtf.org
> >http://www.irtf.org/mailman/listinfo/cfrg
> >
> >
> >
> >
> >
>
>

--001a11c2441249224904fe93f93d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&quot;<span style=3D"font-size:13px;font-family:arial=
,sans-serif">This stems from the=C2=A0</span><span style=3D"font-size:13px;=
font-family:arial,sans-serif">fact that in some specific cases an algorithm=
 and a curve are closely=C2=A0</span><span style=3D"font-size:13px;font-fam=
ily:arial,sans-serif">linked, with the two in some sense being carefully co=
-designed to gain=C2=A0</span><span style=3D"font-size:13px;font-family:ari=
al,sans-serif">security and performance.&quot;</span><br>

</div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>=
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">I am aware of claims to this effect, but I have seen no evidence of mean=
ingful security or performance gains that would be seen in practical deploy=
ments in TLS. Similar claims have been made about the dramatic performance =
gains from certain curve forms, but the MSR research that produced the NUMS=
 curves shows only slight performance advantages for those forms and only a=
t low security levels. The ECCLib implementations support the conclusion th=
at there is little benefit. Please provide specific supporting documentatio=
n for claims of significant, not incremental, performance or security gains=
 for TLS from this.</span></div>

<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">If =
we had evidence of radically improved security or radically improved perfor=
mance at a given security level I would agree it would be worth exploring. =
For less than 10% performance gain and no security gain I see no reason to =
even consider adopting a new signature algorithm. In the abstract it might =
seem plausible, but when faced with updating a billion devices along with a=
ll of the supporting infrastructure previously hinted at, it has to be excl=
uded.</span></div>

<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">&qu=
ot;</span><span style=3D"font-family:arial,sans-serif;font-size:13px">My ow=
n view is that we should broaden our interpretation of the scope of=C2=A0</=
span><span style=3D"font-family:arial,sans-serif;font-size:13px">the reques=
t to accommodate this fact, providing both new curves, and where=C2=A0</spa=
n><span style=3D"font-family:arial,sans-serif;font-size:13px">appropriate, =
pointers to algorithms for those curves.&quot;</span></div>

<div><font face=3D"arial, sans-serif"><br></font></div><div><font face=3D"a=
rial, sans-serif">There are multiple available options that support all rel=
evant security levels, are faster than the NIST curves, and are compatible =
with existing infrastructure. There will always be new curves published. Th=
eir existence cannot mean we constantly push incompatible algorithms with e=
normous adoption costs at scale. If the goal is radically higher performanc=
e at a given security level and we don&#39;t care at all about compatibilit=
y, then why not consider genus 2 curves or other forms which are known to b=
e enormously faster than even the twisted Edwards curves on the table? Thro=
wing out compatibility is a very slippery slope.<br>

</font><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br=
></span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13=
px">I ask once again that you and the rest of the CFRG leadership along wit=
h the TLS leadership focus on practical, clear, and specific requirements f=
or elimination of the NIST curves. Expanding the scope beyond that either m=
eans a hasty process producing something we are likely to regret in a few y=
ears (this is a 15+ year commitment!), or a long and careful process produc=
ing something we will still want around in a few years. Pushing new crypto =
on vendors and customers for the sake of maybe a few percent performance im=
provement, and that is exactly what we are discussing here, should alarm ev=
eryone.</span></div>

<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>I will unfortunately not be in Toronto, but a number of others =
from Microsoft will be and I hope there can be productive discussion on thi=
s grounded a bit more in the facts of performance, security, and practice.<=
br>

</div><div><br></div><div><br></div><div><span style=3D"font-family:arial,s=
ans-serif;font-size:13px">Ben</span></div><div><span style=3D"font-family:a=
rial,sans-serif;font-size:13px"><br></span></div></div></div><div class=3D"=
gmail_extra">

<br><br><div class=3D"gmail_quote">On Fri, Jul 18, 2014 at 3:29 PM, Paterso=
n, Kenny <span dir=3D"ltr">&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk"=
 target=3D"_blank">Kenny.Paterson@rhul.ac.uk</a>&gt;</span> wrote:<br><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex">

Hi Ben,<br>
<br>
Thanks for your questions. I agree there is ambiguity. This stems from the<=
br>
fact that in some specific cases an algorithm and a curve are closely<br>
linked, with the two in some sense being carefully co-designed to gain<br>
security and performance.<br>
<br>
I understand very well your point that if it is &quot;curves only&quot;, th=
en<br>
certain curves which are incompatible with existing standardized and<br>
widely deployed algorithms would need to be excluded.<br>
<br>
My own view is that we should broaden our interpretation of the scope of<br=
>
the request to accommodate this fact, providing both new curves, and where<=
br>
appropriate, pointers to algorithms for those curves. (Note that CFRG is<br=
>
not being asked to produce I-Ds for either curves or algorithms, though<br>
that kind of work might inevitably follow depending on the exact choices<br=
>
we recommend.) Of course, we can and should have discussion on this<br>
question of broadening of scope, as you rightly suggest below.<br>
<br>
Concerning your second question, yes, in an ideal world we would reach<br>
rough consensus on the requirements, and they would be clear, complete and<=
br>
unambiguous.<br>
<br>
If you are in Toronto next week, I&#39;d be glad to continue the conversati=
on,<br>
otherwise, let&#39;s do it on the list.<br>
<br>
Regards<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Kenny<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
On 18/07/2014 06:51, &quot;Benjamin Black&quot; &lt;<a href=3D"mailto:b@b3k=
.us">b@b3k.us</a>&gt; wrote:<br>
<br>
&gt;Kenny,<br>
&gt;<br>
&gt;<br>
&gt;There is rather a lot of ambiguity in these various versions of the<br>
&gt;requirements. It would be helpful to get clarity on at least two points=
:<br>
&gt;<br>
&gt;<br>
&gt;1) Is this request for _only_ new curves, as the subject line of your<b=
r>
&gt;email indicates, or for new &quot;ECC mechanisms&quot; as in the includ=
ed list from<br>
&gt;David McGrew? If it is the former, then curves which are incompatible<b=
r>
&gt;with existing standardized and widely<br>
&gt; deployed algorithms, at least including ECDHE and ECDSA, must be<br>
&gt;excluded. If it is the latter, then this request goes far beyond some<b=
r>
&gt;curves and I suggest deserves a lot more debate on how far down the new=
<br>
&gt;cryptography rabbit hole CFRG and the IETF wish to<br>
&gt; go.<br>
&gt;<br>
&gt;<br>
&gt;2) Is the process here to agree on clear, complete, unambiguous<br>
&gt;requirements against which candidate curves will be evaluated? I believ=
e<br>
&gt;the answer is, or should be, yes. However, based on ambiguities in the<=
br>
&gt;stated requirements and the subsequent further<br>
&gt; blurring of those requirements on the mailing list, it seems that migh=
t<br>
&gt;not be the consensus view.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;Ben<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny<br>
&gt;&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac=
.uk</a>&gt; wrote:<br>
&gt;<br>
&gt;Dear CFRG,<br>
&gt;<br>
&gt;CFRG has received a formal request from the TLS Working Group for<br>
&gt;recommendations for new elliptic curves. Specifically, the TLS WG would=
<br>
&gt;like CFRG to recommend:<br>
&gt;<br>
&gt;- Curves suitable for both key establishment and digital signature<br>
&gt; =C2=A0(though the same curves need not be used for both purposes).<br>
&gt;<br>
&gt;- One proposed curve or set of curves at the following security<br>
&gt; =C2=A0levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).<b=
r>
&gt; =C2=A0192-bit security is optional.<br>
&gt;<br>
&gt;Note that these curves are not intended to supplant current curves in<b=
r>
&gt;widespread use, but rather to supplement them. Full details of the requ=
est<br>
&gt;can be found in the e-mail from the TLS WG chairs below.<br>
&gt;<br>
&gt;The CFRG chairs will coordinate a response to this request from the CFR=
G<br>
&gt;readership. Ideally we will reach a rough consensus through discussion =
on<br>
&gt;the<br>
&gt;list and at the upcoming IETF 90 meeting in Toronto. While no deadline =
is<br>
&gt;set for our response to the TLS WG, we should aim to have one ready wit=
hin<br>
&gt;2 months.<br>
&gt;<br>
&gt;We regard this as a major work item for CFRG and one where CFRG can<br>
&gt;provide real value to the TLS WG and the IETF more widely. So we encour=
age<br>
&gt;(and indeed request) active participation from the widest set of<br>
&gt;participants on this project.<br>
&gt;<br>
&gt;As a first step, we propose to discuss the requirements for new curves =
for<br>
&gt;a period of 2 weeks. Using an agreed set of requirements, in a second<b=
r>
&gt;step, we will then evaluate different curve proposals (including extant=
<br>
&gt;proposals and any emerging ones) for a period of 4 weeks. In a final<br=
>
&gt;period of 2 weeks, we will produce a proposal for the TLS WG and seek<b=
r>
&gt;consensus on it.<br>
&gt;<br>
&gt;<br>
&gt;The first step, running for 2 weeks, begins here.<br>
&gt;<br>
&gt;A starting point for requirements can be found in David McGrew&#39;s re=
cent<br>
&gt;CFRG post<br>
&gt;(<a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.=
html" target=3D"_blank">http://www.ietf.org/mail-archive/web/cfrg/current/m=
sg04461.html</a>) and<br>
&gt;reproduced here:<br>
&gt;<br>
&gt;----<br>
&gt;<br>
&gt;Simplicity<br>
&gt;<br>
&gt; =C2=A0 R1. =C2=A0Desired: easy to understand and implement [1]<br>
&gt;<br>
&gt;Efficiency<br>
&gt;<br>
&gt; =C2=A0 R2. =C2=A0Required: amenable to compact implementations and fas=
t<br>
&gt; =C2=A0 implementations, across both small and large processors [1]<br>
&gt;<br>
&gt; =C2=A0 R3. =C2=A0Desired: re-use components between signatures and key=
 exchange<br>
&gt; =C2=A0 algorithms [3]<br>
&gt;<br>
&gt;Intellectual Property<br>
&gt;<br>
&gt; =C2=A0 R4. =C2=A0Required: available worldwide under reasonable and we=
ll<br>
&gt; =C2=A0 understood licensing terms [1]<br>
&gt;<br>
&gt; =C2=A0 R5. =C2=A0Desired: available worldwide under royalty-free licen=
sing<br>
&gt; =C2=A0 terms [1]<br>
&gt;<br>
&gt;Interoperability<br>
&gt;<br>
&gt; =C2=A0 R6. =C2=A0Desired: can be used with current software implementa=
tions<br>
&gt; =C2=A0 (using different curve parameters) of TLS, PKIX, SSH, and IKE [=
4]<br>
&gt;<br>
&gt; =C2=A0 R7. =C2=A0Desired: can be used within current ECC standards of =
TLS,<br>
&gt; =C2=A0 PKIX, SSH, and IKE [4]<br>
&gt;<br>
&gt;Security<br>
&gt;<br>
&gt; =C2=A0 R8. =C2=A0Required: amenable to constant-time implementations, =
to avoid<br>
&gt; =C2=A0 side channel attacks [2]<br>
&gt;<br>
&gt; =C2=A0 R9. =C2=A0Required: resist twist attacks [2]<br>
&gt;<br>
&gt; =C2=A0 R10. =C2=A0Required: curve parameters should have good provenan=
ce;<br>
&gt; =C2=A0 random curves should be provably pseudorandom [5]<br>
&gt;<br>
&gt; =C2=A0 R11. =C2=A0Desired for key exchange: resist invalid curve attac=
ks [2];<br>
&gt; =C2=A0 note that complete addition laws help and are thus desirable [2=
].<br>
&gt; =C2=A0 (Note that the use of ephemeral keys also resist such attacks.)=
<br>
&gt;<br>
&gt; =C2=A0 R12. =C2=A0Required for PAKE: indistinguishability of curve poi=
nts from<br>
&gt; =C2=A0 random strings [2]<br>
&gt;<br>
&gt;Footnotes:<br>
&gt;<br>
&gt; =C2=A0 [1] Original criteria set out for the Advanced Encryption Stand=
ard,<br>
&gt; =C2=A0 =C2=A0 =C2=A0 which is equally applicable to ECC. =C2=A0Nationa=
l Institute of<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Standards and Technology (NIST) of the United Sta=
tes, 1998.<br>
&gt;<br>
&gt; =C2=A0 [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing s=
afe<br>
&gt; =C2=A0 =C2=A0 =C2=A0 curves for elliptic-curve cryptography.<br>
&gt; =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://safecurves.cr.yp.to" target=3D"=
_blank">http://safecurves.cr.yp.to</a> &lt;<a href=3D"http://safecurves.cr.=
yp.to/" target=3D"_blank">http://safecurves.cr.yp.to/</a>&gt;<br>
&gt;&lt;<a href=3D"http://safecurves.cr.yp.to/" target=3D"_blank">http://sa=
fecurves.cr.yp.to/</a>&gt;, accessed<br>
&gt;April 2014.<br>
&gt;<br>
&gt; =C2=A0 [3] Criteria identified by David McGrew, 2014.<br>
&gt;<br>
&gt; =C2=A0 [4] Criteria identified by Russ Housley, TLS WG meeting at IETF=
89.<br>
&gt;<br>
&gt; =C2=A0 [5] Criteria widely acknowledged on CFRG email list during 2014=
.<br>
&gt;<br>
&gt;----<br>
&gt;<br>
&gt;<br>
&gt;Our first request, then, is that you consider these requirements, and<b=
r>
&gt;provide your views on their appropriateness, completeness, and individu=
al<br>
&gt;classifications (required/desired). We will continue that discussion fo=
r 2<br>
&gt;weeks, until the end of the IETF meeting in Toronto. The chairs will th=
en<br>
&gt;compile a consensus-based list of requirements of the above form, after=
<br>
&gt;which we will move to the second step.<br>
&gt;<br>
&gt;We thank you in advance for your participation in this important task.<=
br>
&gt;<br>
&gt;Regards<br>
&gt;<br>
&gt;Alexei, Kenny and Kevin (CFRG co-chairs)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;On 11/07/2014 05:44, &quot;Joseph Salowey (jsalowey)&quot; &lt;<a href=
=3D"mailto:jsalowey@cisco.com">jsalowey@cisco.com</a>&gt;<br>
&gt;wrote:<br>
&gt;<br>
&gt;&gt;CFRG Chairs and Security ADs,<br>
&gt;&gt;<br>
&gt;&gt;TLS WG would like to formally request that the<br>
&gt;&gt;CFRG make a recommendation for new ECC group support for TLS<br>
&gt;&gt;and other similar applications. Specifically, we request that CFRG<=
br>
&gt;&gt;recommend the following:<br>
&gt;&gt;<br>
&gt;&gt;- Curves suitable for both key establishment and digital signature<=
br>
&gt;&gt; =C2=A0(though the same curves need not be used for both purposes).=
<br>
&gt;&gt;<br>
&gt;&gt;- One proposed curve or set of curves at the following security<br>
&gt;&gt; =C2=A0levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curv=
e).<br>
&gt;&gt; =C2=A0192-bit security is optional.<br>
&gt;&gt;<br>
&gt;&gt;If the same curves are used for key establishment and signature, th=
is<br>
&gt;&gt;would be a recommendation for two curves. =C2=A0If different curves=
 are<br>
&gt;&gt;used, this would be a recommendation for four curves.<br>
&gt;&gt;<br>
&gt;&gt;In addition to a recommendation, we also request that the CFRG prov=
ide<br>
&gt;&gt;a technical rationale for their selection.<br>
&gt;&gt;<br>
&gt;&gt;If the CFRG does not feel comfortable making a single set of<br>
&gt;&gt;selections, we propose that they select a small number of potential=
<br>
&gt;&gt;choices with a detailed technical analysis of the advantages and<br=
>
&gt;&gt;disadvantages of each selection and that the Security ADs sponsor a=
<br>
&gt;&gt;process (perhaps via SAAG) to narrow it down to the specification<b=
r>
&gt;&gt;above.<br>
&gt;&gt;<br>
&gt;&gt;For clarity, we are not currently requesting that CFRG replace or<b=
r>
&gt;&gt;profile the existing curves in RFC4492 and RFC 7027, although we ar=
e<br>
&gt;&gt;also not ruling out such an effort in the future. The current reque=
st<br>
&gt;&gt;is for a new set of curves to complement the existing ones.<br>
&gt;&gt;<br>
&gt;&gt;Please reach out to us if this is unclear or further information is=
<br>
&gt;&gt;required.<br>
&gt;&gt;<br>
&gt;&gt;Thanks,<br>
&gt;&gt;<br>
&gt;&gt;TLS Chairs<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;Cfrg mailing list<br>
&gt;<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank"=
>http://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>

--001a11c2441249224904fe93f93d--


From nobody Sat Jul 19 21:50:22 2014
Return-Path: <watsonbladd@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 25BAC1B2B4F for <cfrg@ietfa.amsl.com>; Sat, 19 Jul 2014 21:50:21 -0700 (PDT)
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 6kSDiD2KopbE for <cfrg@ietfa.amsl.com>; Sat, 19 Jul 2014 21:50:18 -0700 (PDT)
Received: from mail-yh0-x236.google.com (mail-yh0-x236.google.com [IPv6:2607:f8b0:4002:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9421F1B2B1C for <cfrg@irtf.org>; Sat, 19 Jul 2014 21:50:18 -0700 (PDT)
Received: by mail-yh0-f54.google.com with SMTP id v1so3309400yhn.27 for <cfrg@irtf.org>; Sat, 19 Jul 2014 21:50:17 -0700 (PDT)
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=HMGfdCM9UdfhsP40WIPtqKmo8GapKDlJLK2nwCPGvHg=; b=g7DEyBLuxPBx2WvZpJefod8vUT58N2LjA74fKRCW2Zlp2djKDEm4XNE53/+BABwN8a +kGAc6xBGkoUjDHoSla3q0Lslw7gfLAC+U/USMUgHJ0694HkAngDsRdZs6LFdeXgYUGh nILk6OzSaSt4n2n9E2jXcIuCRd/6YoV8pS8rExRalFLFNuUphapK0JkTREmL1Ym6ku2h TV3T/cJwZtPtYzcpZsScS8/6s91LDZ/ICr3V6xJLD74mEkldxkNNydmUb/Vha2bOIRno Va4bfXbhavxN0A+bow0er+uObTYlB/dA2ThQMGxvW5Jn2JzNadwPCZuRycU+YGOUil3x VpkA==
MIME-Version: 1.0
X-Received: by 10.236.39.172 with SMTP id d32mr25679470yhb.66.1405831817639; Sat, 19 Jul 2014 21:50:17 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sat, 19 Jul 2014 21:50:17 -0700 (PDT)
In-Reply-To: <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk> <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com>
Date: Sat, 19 Jul 2014 21:50:17 -0700
Message-ID: <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Benjamin Black <b@b3k.us>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kYBlYc_s5LGGksFKiW_KA9MXnCE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 04:50:21 -0000

On Sat, Jul 19, 2014 at 4:09 PM, Benjamin Black <b@b3k.us> wrote:
> "This stems from the fact that in some specific cases an algorithm and a
> curve are closely linked, with the two in some sense being carefully
> co-designed to gain security and performance."
>
> I am aware of claims to this effect, but I have seen no evidence of
> meaningful security or performance gains that would be seen in practical
> deployments in TLS. Similar claims have been made about the dramatic
> performance gains from certain curve forms, but the MSR research that
> produced the NUMS curves shows only slight performance advantages for those
> forms and only at low security levels. The ECCLib implementations support
> the conclusion that there is little benefit. Please provide specific
> supporting documentation for claims of significant, not incremental,
> performance or security gains for TLS from this.

http://bench.cr.yp.to/

Of course, when it comes to TLS, the two round trips cost far more,
but when we have 1-RTT the exponentiations become far
more critical for performance. Furthermore, CPU is not free, while a
server can do other things while it waits.

>
> If we had evidence of radically improved security or radically improved
> performance at a given security level I would agree it would be worth
> exploring. For less than 10% performance gain and no security gain I see no
> reason to even consider adopting a new signature algorithm. In the abstract
> it might seem plausible, but when faced with updating a billion devices
> along with all of the supporting infrastructure previously hinted at, it has
> to be excluded.
>
> "My own view is that we should broaden our interpretation of the scope of
> the request to accommodate this fact, providing both new curves, and where
> appropriate, pointers to algorithms for those curves."
>
> There are multiple available options that support all relevant security
> levels, are faster than the NIST curves, and are compatible with existing
> infrastructure. There will always be new curves published. Their existence
> cannot mean we constantly push incompatible algorithms with enormous
> adoption costs at scale. If the goal is radically higher performance at a
> given security level and we don't care at all about compatibility, then why
> not consider genus 2 curves or other forms which are known to be enormously
> faster than even the twisted Edwards curves on the table? Throwing out
> compatibility is a very slippery slope.

I can't think of a reason why hyperelliptic curves shouldn't be on the table.
Is your argument that we should keep Weierstrass form despite the
barrier at 13 field ops
per addition? By my calculation twisted (a=-1) Edwards form enables a
25% speedup, (10 field ops)
together with increased ease of avoiding side channels. The 13 field
op formula is not complete,
and the complete method is not fast.

Secondly, scale reduces, not increases, the cost of switching. Write
once, deploy many. There are not that
many TLS implementations out there. We need a new car, which requires
making a garage.
If we are going to pay that cost, why not add the extra zero dollars for the
Ferrar

>
> I ask once again that you and the rest of the CFRG leadership along with the
> TLS leadership focus on practical, clear, and specific requirements for
> elimination of the NIST curves. Expanding the scope beyond that either means
> a hasty process producing something we are likely to regret in a few years
> (this is a 15+ year commitment!), or a long and careful process producing
> something we will still want around in a few years. Pushing new crypto on
> vendors and customers for the sake of maybe a few percent performance
> improvement, and that is exactly what we are discussing here, should alarm
> everyone.

We are not eliminating the NIST curves, but providing high speed
alternatives that should look like reasonable
choice for the next decade. If you don't want Curve25519 in TLS, or
whatever emerges, don't enable it.

If you want to be alarmed, go read any protocol other than IPsec that
the IETF has made that uses cryptography,
and try to prove it secure/write a clearly correct implementation. (My
particular favorite is PGP) However,
I'm pretty sure that DJB and Tanja gathered all the publicly known
attacks on ECC on the Safecurves site.

>
> I will unfortunately not be in Toronto, but a number of others from
> Microsoft will be and I hope there can be productive discussion on this
> grounded a bit more in the facts of performance, security, and practice.

Chrome wants Curve25519. SSH uses Curve25519. Somehow we added
Brainpool, which no one uses,
without this hullabaloo. Somehow Camelia (a Japanese AES knockoff) is
in TLS, despite being less studied
than AES. So what makes these new curve so much different?

Sincerely,
Watson Ladd
>
>
> Ben
>
>
>
> On Fri, Jul 18, 2014 at 3:29 PM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
> wrote:
>>
>> Hi Ben,
>>
>> Thanks for your questions. I agree there is ambiguity. This stems from the
>> fact that in some specific cases an algorithm and a curve are closely
>> linked, with the two in some sense being carefully co-designed to gain
>> security and performance.
>>
>> I understand very well your point that if it is "curves only", then
>> certain curves which are incompatible with existing standardized and
>> widely deployed algorithms would need to be excluded.
>>
>> My own view is that we should broaden our interpretation of the scope of
>> the request to accommodate this fact, providing both new curves, and where
>> appropriate, pointers to algorithms for those curves. (Note that CFRG is
>> not being asked to produce I-Ds for either curves or algorithms, though
>> that kind of work might inevitably follow depending on the exact choices
>> we recommend.) Of course, we can and should have discussion on this
>> question of broadening of scope, as you rightly suggest below.
>>
>> Concerning your second question, yes, in an ideal world we would reach
>> rough consensus on the requirements, and they would be clear, complete and
>> unambiguous.
>>
>> If you are in Toronto next week, I'd be glad to continue the conversation,
>> otherwise, let's do it on the list.
>>
>> Regards
>>
>> Kenny
>>
>>
>> On 18/07/2014 06:51, "Benjamin Black" <b@b3k.us> wrote:
>>
>> >Kenny,
>> >
>> >
>> >There is rather a lot of ambiguity in these various versions of the
>> >requirements. It would be helpful to get clarity on at least two points:
>> >
>> >
>> >1) Is this request for _only_ new curves, as the subject line of your
>> >email indicates, or for new "ECC mechanisms" as in the included list from
>> >David McGrew? If it is the former, then curves which are incompatible
>> >with existing standardized and widely
>> > deployed algorithms, at least including ECDHE and ECDSA, must be
>> >excluded. If it is the latter, then this request goes far beyond some
>> >curves and I suggest deserves a lot more debate on how far down the new
>> >cryptography rabbit hole CFRG and the IETF wish to
>> > go.
>> >
>> >
>> >2) Is the process here to agree on clear, complete, unambiguous
>> >requirements against which candidate curves will be evaluated? I believe
>> >the answer is, or should be, yes. However, based on ambiguities in the
>> >stated requirements and the subsequent further
>> > blurring of those requirements on the mailing list, it seems that might
>> >not be the consensus view.
>> >
>> >
>> >
>> >
>> >Ben
>> >
>> >
>> >
>> >
>> >On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny
>> ><Kenny.Paterson@rhul.ac.uk> wrote:
>> >
>> >Dear CFRG,
>> >
>> >CFRG has received a formal request from the TLS Working Group for
>> >recommendations for new elliptic curves. Specifically, the TLS WG would
>> >like CFRG to recommend:
>> >
>> >- Curves suitable for both key establishment and digital signature
>> >  (though the same curves need not be used for both purposes).
>> >
>> >- One proposed curve or set of curves at the following security
>> >  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>> >  192-bit security is optional.
>> >
>> >Note that these curves are not intended to supplant current curves in
>> >widespread use, but rather to supplement them. Full details of the
>> > request
>> >can be found in the e-mail from the TLS WG chairs below.
>> >
>> >The CFRG chairs will coordinate a response to this request from the CFRG
>> >readership. Ideally we will reach a rough consensus through discussion on
>> >the
>> >list and at the upcoming IETF 90 meeting in Toronto. While no deadline is
>> >set for our response to the TLS WG, we should aim to have one ready
>> > within
>> >2 months.
>> >
>> >We regard this as a major work item for CFRG and one where CFRG can
>> >provide real value to the TLS WG and the IETF more widely. So we
>> > encourage
>> >(and indeed request) active participation from the widest set of
>> >participants on this project.
>> >
>> >As a first step, we propose to discuss the requirements for new curves
>> > for
>> >a period of 2 weeks. Using an agreed set of requirements, in a second
>> >step, we will then evaluate different curve proposals (including extant
>> >proposals and any emerging ones) for a period of 4 weeks. In a final
>> >period of 2 weeks, we will produce a proposal for the TLS WG and seek
>> >consensus on it.
>> >
>> >
>> >The first step, running for 2 weeks, begins here.
>> >
>> >A starting point for requirements can be found in David McGrew's recent
>> >CFRG post
>> >(http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
>> >reproduced here:
>> >
>> >----
>> >
>> >Simplicity
>> >
>> >   R1.  Desired: easy to understand and implement [1]
>> >
>> >Efficiency
>> >
>> >   R2.  Required: amenable to compact implementations and fast
>> >   implementations, across both small and large processors [1]
>> >
>> >   R3.  Desired: re-use components between signatures and key exchange
>> >   algorithms [3]
>> >
>> >Intellectual Property
>> >
>> >   R4.  Required: available worldwide under reasonable and well
>> >   understood licensing terms [1]
>> >
>> >   R5.  Desired: available worldwide under royalty-free licensing
>> >   terms [1]
>> >
>> >Interoperability
>> >
>> >   R6.  Desired: can be used with current software implementations
>> >   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>> >
>> >   R7.  Desired: can be used within current ECC standards of TLS,
>> >   PKIX, SSH, and IKE [4]
>> >
>> >Security
>> >
>> >   R8.  Required: amenable to constant-time implementations, to avoid
>> >   side channel attacks [2]
>> >
>> >   R9.  Required: resist twist attacks [2]
>> >
>> >   R10.  Required: curve parameters should have good provenance;
>> >   random curves should be provably pseudorandom [5]
>> >
>> >   R11.  Desired for key exchange: resist invalid curve attacks [2];
>> >   note that complete addition laws help and are thus desirable [2].
>> >   (Note that the use of ephemeral keys also resist such attacks.)
>> >
>> >   R12.  Required for PAKE: indistinguishability of curve points from
>> >   random strings [2]
>> >
>> >Footnotes:
>> >
>> >   [1] Original criteria set out for the Advanced Encryption Standard,
>> >       which is equally applicable to ECC.  National Institute of
>> >       Standards and Technology (NIST) of the United States, 1998.
>> >
>> >   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>> >       curves for elliptic-curve cryptography.
>> >       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
>> ><http://safecurves.cr.yp.to/>, accessed
>> >April 2014.
>> >
>> >   [3] Criteria identified by David McGrew, 2014.
>> >
>> >   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>> >
>> >   [5] Criteria widely acknowledged on CFRG email list during 2014.
>> >
>> >----
>> >
>> >
>> >Our first request, then, is that you consider these requirements, and
>> >provide your views on their appropriateness, completeness, and individual
>> >classifications (required/desired). We will continue that discussion for
>> > 2
>> >weeks, until the end of the IETF meeting in Toronto. The chairs will then
>> >compile a consensus-based list of requirements of the above form, after
>> >which we will move to the second step.
>> >
>> >We thank you in advance for your participation in this important task.
>> >
>> >Regards
>> >
>> >Alexei, Kenny and Kevin (CFRG co-chairs)
>> >
>> >
>> >
>> >
>> >On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
>> >wrote:
>> >
>> >>CFRG Chairs and Security ADs,
>> >>
>> >>TLS WG would like to formally request that the
>> >>CFRG make a recommendation for new ECC group support for TLS
>> >>and other similar applications. Specifically, we request that CFRG
>> >>recommend the following:
>> >>
>> >>- Curves suitable for both key establishment and digital signature
>> >>  (though the same curves need not be used for both purposes).
>> >>
>> >>- One proposed curve or set of curves at the following security
>> >>  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>> >>  192-bit security is optional.
>> >>
>> >>If the same curves are used for key establishment and signature, this
>> >>would be a recommendation for two curves.  If different curves are
>> >>used, this would be a recommendation for four curves.
>> >>
>> >>In addition to a recommendation, we also request that the CFRG provide
>> >>a technical rationale for their selection.
>> >>
>> >>If the CFRG does not feel comfortable making a single set of
>> >>selections, we propose that they select a small number of potential
>> >>choices with a detailed technical analysis of the advantages and
>> >>disadvantages of each selection and that the Security ADs sponsor a
>> >>process (perhaps via SAAG) to narrow it down to the specification
>> >>above.
>> >>
>> >>For clarity, we are not currently requesting that CFRG replace or
>> >>profile the existing curves in RFC4492 and RFC 7027, although we are
>> >>also not ruling out such an effort in the future. The current request
>> >>is for a new set of curves to complement the existing ones.
>> >>
>> >>Please reach out to us if this is unclear or further information is
>> >>required.
>> >>
>> >>Thanks,
>> >>
>> >>TLS Chairs
>> >>
>> >>
>> >
>> >
>> >
>> >_______________________________________________
>> >Cfrg mailing list
>> >Cfrg@irtf.org
>> >http://www.irtf.org/mailman/listinfo/cfrg
>> >
>> >
>> >
>> >
>> >
>>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 20 02:52:09 2014
Return-Path: <alexey.melnikov@isode.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 9CD461A0137 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 02:52:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.601
X-Spam-Level: 
X-Spam-Status: No, score=-0.601 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-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 J9jOAA_C-_Mi for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 02:52:06 -0700 (PDT)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id BF2A31A00D2 for <cfrg@irtf.org>; Sun, 20 Jul 2014 02:52:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1405849925; d=isode.com; s=selector; i=@isode.com; bh=aa5pcrxZMBbro8FebwBPQtjxIMIal27EFU/qvsVVlQM=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=k6eNKABjCgFGftOF7u1TJWbib9YtaITI2/3I09P9pqr8lt0UhtX7b0ay7UV0fPj6HGINXR mX9785a3CgStmZPeoBai3O8pOloPcX08vwjisjY4XFWha4Usv47F+L6Am/BkAt6L/Axk1g +KKQPMb1elwzDzys/nt4ipd4OlP9JQ8=;
Received: from [10.0.1.16] ((unknown) [199.119.128.122])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <U8uRRAAvQ2L8@waldorf.isode.com>; Sun, 20 Jul 2014 10:52:05 +0100
X-SMTP-Protocol-Errors: NORDNS PIPELINING
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-Id: <D4C18253-B4D6-4462-84A1-2C3CD32B27F0@isode.com>
Date: Sun, 20 Jul 2014 11:01:22 +0100
To: "cfrg@irtf.org" <cfrg@irtf.org>
X-Mailer: iPad Mail (11D201)
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=us-ascii
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Jj7IgrLsk4oMByd-w60CDTIxe5k
Cc: "cfrg-chairs@tools.ietf.org" <cfrg-chairs@tools.ietf.org>
Subject: [Cfrg] Slides for the Toronto meeting
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: Sun, 20 Jul 2014 09:52:07 -0000

Hi,
I would like to ask all presenters to send their slides to CFRG chairs (cfrg=
-chairs@tools.ietf.org) by the end of *Tuesday*.

Thank you,
Alexey, as a co-chair.


From nobody Sun Jul 20 04:28:05 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 4B7001B2BAA for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 04:28:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 CtFgB9AplWp1 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 04:28:00 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lp0010.outbound.protection.outlook.com [213.199.154.10]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EEB7B1B2BA9 for <cfrg@irtf.org>; Sun, 20 Jul 2014 04:27:59 -0700 (PDT)
Received: from DBXPR03MB382.eurprd03.prod.outlook.com (10.141.10.12) by DBXPR03MB479.eurprd03.prod.outlook.com (10.141.15.22) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 11:27:57 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB382.eurprd03.prod.outlook.com (10.141.10.12) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 11:27:56 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0990.007; Sun, 20 Jul 2014 11:27:56 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Benjamin Black <b@b3k.us>, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPpA2mNvzjiLz1XUSGvu3nsSQESg==
Date: Sun, 20 Jul 2014 11:27:55 +0000
Message-ID: <CFF11E5D.27CCE%kenny.paterson@rhul.ac.uk>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CACsn0cnxswoPzS8VFRXTO=MD+L+ezckKmWwhi26-1bJqNw5YCQ@mail.gmail.com> <8303B8FE-DE35-4567-893F-A61606890DFF@cisco.com> <CA+Vbu7zHQf0LAdnwffaBJGV5emFLbz5BM=1ZX7dYuh4A1iPL8w@mail.gmail.com> <E600EB81-2EED-4B84-A9F2-38B27397A497@cisco.com> <CA+Vbu7xOnpHO8-U+f6r_30TfPkOQ5Sz1kp9vf4eAQnXTkG-qwA@mail.gmail.com>
In-Reply-To: <CA+Vbu7xOnpHO8-U+f6r_30TfPkOQ5Sz1kp9vf4eAQnXTkG-qwA@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [68.232.67.171]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02788FF38E
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(24454002)(51704005)(479174003)(199002)(189002)(85306003)(81542001)(19580395003)(81342001)(106116001)(106356001)(105586002)(83506001)(4396001)(20776003)(80022001)(66066001)(77982001)(64706001)(87936001)(79102001)(19580405001)(2656002)(101416001)(83072002)(85852003)(21056001)(31966008)(107046002)(86362001)(76482001)(74662001)(95666004)(74482001)(74502001)(36756003)(92566001)(92726001)(46102001)(93886003)(99396002)(50986999)(76176999)(54356999)(781001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB382; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <3F64ACC2677D8D448F49181657A1F7D0@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/u7cjsgvWFCrBqoxG0-BcCSFFn1k
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 11:28:02 -0000

Ben

On 19/07/2014 18:42, "Benjamin Black" <b@b3k.us> wrote:

>"The CFRG has the cryptographic expertise to determine what pairings are
>appropriate."
>
>
>As do a number of others, including other leaders of the TLS working
>group. I refer you again to RFC5289 and again request an explanation for
>this contradicting of all prior practice in the
> TLS working group.


I'm not sure of the relevance of RFC 5289 here. It does not define any new
curves or fundamentally different algorithms using curves, but instead
simply formalises the use of stronger hash functions for HMAC in existing
combinations such as ECDHE_ECDSA and ECDH_ECDSA. I see that as having been
a necessary bit of tidying-up in the face of realistic concerns about the
long-term security of HMAC-MD5.

As far as I know, the TLS WG is free to ask for advice from any body or
group. It is also free to ignore whatever advice it gets - including from
CFRG. And, in reality, the cryptographic expertise in the TLS WG to which
you refer is also active in CFRG.

Cheers

Kenny


From nobody Sun Jul 20 05:38:37 2014
Return-Path: <mpg@elzevir.fr>
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 DD10D1B2BEC for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 05:38:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.994
X-Spam-Level: 
X-Spam-Status: No, score=0.994 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FH_RELAY_NODNS=1.451, HELO_EQ_FR=0.35, MIME_8BIT_HEADER=0.3, RDNS_NONE=0.793] 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 q1N5ThwInSj3 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 05:38:33 -0700 (PDT)
Received: from mordell.elzevir.fr (unknown [IPv6:2001:4b98:dc0:41:216:3eff:feeb:c406]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 006451B2BE4 for <cfrg@irtf.org>; Sun, 20 Jul 2014 05:38:32 -0700 (PDT)
Received: from thue.elzevir.fr (thue.elzevir.fr [88.165.216.11]) by mordell.elzevir.fr (Postfix) with ESMTPS id 71F53160D4; Sun, 20 Jul 2014 14:38:30 +0200 (CEST)
Received: from [192.168.0.124] (unknown [192.168.0.254]) by thue.elzevir.fr (Postfix) with ESMTPSA id 0507428732; Sun, 20 Jul 2014 14:38:29 +0200 (CEST)
Message-ID: <53CBB83B.3000808@elzevir.fr>
Date: Sun, 20 Jul 2014 14:38:19 +0200
From: =?ISO-8859-1?Q?Manuel_P=E9gouri=E9-Gonnard?= <mpg@elzevir.fr>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>, Benjamin Black <b@b3k.us>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk> <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com> <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com>
In-Reply-To: <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com>
X-Enigmail-Version: 1.6
OpenPGP: id=98EED379; url=https://elzevir.fr/gpg/mpg.asc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/e3H2FcKX0LV2meAbV-zV3I3BxXc
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 12:38:35 -0000

On 20/07/2014 06:50, Watson Ladd wrote:
> On Sat, Jul 19, 2014 at 4:09 PM, Benjamin Black <b@b3k.us> wrote:
>> [...] Please provide specific
>> supporting documentation for claims of significant, not incremental,
>> performance or security gains for TLS from this.
> 
> http://bench.cr.yp.to/
> 
It is rather unfortunate that http://bench.cr.yp.to/impl-dh/nistp256.png returns
a 404 error.

Manuel.


From nobody Sun Jul 20 08:28:05 2014
Return-Path: <csnps@bristol.ac.uk>
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 9D37A1B2C57 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 08:28:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 HvdUw6RbmIlj for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 08:27:58 -0700 (PDT)
Received: from eu1sys200aog123.obsmtp.com (eu1sys200aog123.obsmtp.com [207.126.144.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0921D1B2C56 for <cfrg@irtf.org>; Sun, 20 Jul 2014 08:27:57 -0700 (PDT)
Received: from mail-wi0-f172.google.com ([209.85.212.172]) (using TLSv1) by eu1sys200aob123.postini.com ([207.126.147.11]) with SMTP ID DSNKU8vf+j+KMMFEkbYfZOgXjEhuLVzkFt4q@postini.com; Sun, 20 Jul 2014 15:27:58 UTC
Received: by mail-wi0-f172.google.com with SMTP id n3so2955183wiv.11 for <cfrg@irtf.org>; Sun, 20 Jul 2014 08:27:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=NNju6jN8MnB3ZIWN9ZvJPuvSdKRZglyx+S5Wd8WT/DY=; b=V47CjlgqfCttudUJxKLDAgEDmQz2gz3lBvUHEvHQmJR1/yFHFMJdG/QxLX4/qOOYVd rNQa+KpHv6NT+O/BvhGGhnziQMOyA+K7LqzPoO8cXyHiG1VDkvJrfrxi6QVcALSDioYj sjgdT12GF/b948wWHiebyOAZynG/GsqICEtgjVEz0euTvGZLC1Li9YBRnL3l6dFnz3yX YMVJC26dAWDE6QiGxZ54nK6nx8wFJp4GcpoyHqO1tAb1+gr+HpP6DnTE4CpFvbV+Ico1 sCVeU2CgkGBmRCcu/8d12TGb+XlICmZnltEshhfCfhqccbwqNgHtUboamsMhW2IV4ABM XOfA==
X-Gm-Message-State: ALoCoQna1aUllgQ9sOZ8p5E+vrfbHX6WcpJpL7xhqpsvHnLXyWSHfECPLfbCqWWo2kQMxTHIAI5mz9SAPGctx8BPVQR02HEAoLVZj6HvGMFoGbJOJdUmaH2Qhxt9u8x1zYdM+YE97v2U
X-Received: by 10.194.91.228 with SMTP id ch4mr14270459wjb.59.1405870074510; Sun, 20 Jul 2014 08:27:54 -0700 (PDT)
X-Received: by 10.194.91.228 with SMTP id ch4mr14270447wjb.59.1405870074399; Sun, 20 Jul 2014 08:27:54 -0700 (PDT)
Received: from [192.168.1.78] (host86-168-27-89.range86-168.btcentralplus.com. [86.168.27.89]) by mx.google.com with ESMTPSA id cx5sm30444329wjb.8.2014.07.20.08.27.53 for <cfrg@irtf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 08:27:53 -0700 (PDT)
Sender: Nigel Smart <csnps@bristol.ac.uk>
Message-ID: <53CBDFF8.5050204@cs.bris.ac.uk>
Date: Sun, 20 Jul 2014 16:27:52 +0100
From: Nigel Smart <nigel@cs.bris.ac.uk>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fGzyeDz-m7-o_1VfD1fGyLnFFdc
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 15:28:00 -0000

Hi

It seems there is a lot of noise about new types of curves, curvexxxyy this,
and NUMS that.

Note the request is for new ELLIPTIC CURVES not elliptic curve PROTOCOLS

Thus any curve should be IMHO usable with any STANDARD protocol, in any
STANDARD way of implementing the protocol. Without this constraint one is
bound to get implementation errors.

   - Curve25519 is a combined curve/protocol; so is out of scope IMHO. As
      someone is bound to use the underlying curve with some other protocol
      and make mistakes.

Benjamin Black is correct; having new types of this that and the other for
a marginal security gain, and/or a marginal performance gain is IMHO
inviting problems.

Thus the ONLY response in my view as responsible cryptographers is
to recommend curves which

    i) Whose data format for point transfer/curve definition is in 
Weierstrass
       form
           - I dont care if some implementation wants to use some 
super-duper
             form to do some calculation; the data transfer must enable
             interoperability.
  ii) Whose group order is prime
           - Not having prime group order is inviting problems. Thus Edwards
             curves are out as I am sure they require non-prime group order
iii) The "b" coordinate should be generated by a hash value on some
       random string.
  iv) Usual security constraints; base field has 256 and 512 bits of 
security
        to match AES 128 and AES 256; MOV criteria; SmartASS criteria;
  v) Ignore "esorteric" constrains like twist security etc.

So basically I cannot see what is wrong with the NIST curves. And if people
want something new then they should really come up with a credible
reason for wanting something new. No argument I have seen warrants
the massive change in software and infrastructure that is being proposed.
If people really are that worried about this NIST curves then
    i) They should probably stop using the internet full stop, as that means
       the NSA probably has massive more capability than even Snowden has
       revealed.
   ii) Generate curves as above; and not trust some new fingle-fangled ideas
       which are not supported by all the major cryptographers who have
       worked on ECC.

BTW I still stand by my statement that we should recommend EC-Schnorr
as an extra hash function.
   - Minor change in code needed to support it (compared to some of the 
other
     proposals)
   - Provides some "hedge" against future collisions in SHA-256 and SHA-3.
   - Has IMHO (and this is purely subjective) better provable security than
     EC-DSA
But that is not what we have been asked to comment on; as this is a new
"protocol" (i.e. signature scheme).

Yours

Nigel


From nobody Sun Jul 20 09:12:24 2014
Return-Path: <rsalz@akamai.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 310651B2C7A for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 09:12:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 Owe2XZV3yUUX for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 09:12:20 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (prod-mail-xrelay07.akamai.com [72.246.2.115]) by ietfa.amsl.com (Postfix) with ESMTP id 6F7A51B2C78 for <cfrg@irtf.org>; Sun, 20 Jul 2014 09:12:20 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 637654758F; Sun, 20 Jul 2014 16:12:16 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay07.akamai.com (Postfix) with ESMTP id 1BB2D47556; Sun, 20 Jul 2014 16:12:14 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub7.kendall.corp.akamai.com [172.27.105.23]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id BE7758003C; Sun, 20 Jul 2014 16:12:13 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([169.254.1.95]) by usma1ex-cashub7.kendall.corp.akamai.com ([172.27.105.23]) with mapi; Sun, 20 Jul 2014 12:12:13 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Nigel Smart <nigel@cs.bris.ac.uk>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Sun, 20 Jul 2014 12:12:12 -0400
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: Ac+kLzTfmyGhHtQoQzGo0ir6bWQiRgABdtsw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C7185928A8ED@USMBX1.msg.corp.akamai.com>
References: <53CBDFF8.5050204@cs.bris.ac.uk>
In-Reply-To: <53CBDFF8.5050204@cs.bris.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/du0BUfZBfTjOYJms7nzMonihajs
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 16:12:22 -0000

>    - Curve25519 is a combined curve/protocol; so is out of scope IMHO. As
>       someone is bound to use the underlying curve with some other protoc=
ol
>       and make mistakes.

Strongly disagree.  Many find the performance issues compelling, and the fa=
ct that it defines everything down to the bytes on the wire highly attracti=
ve; the fact that high-quality reference implementations are available make=
s the "someone will get it wrong" not particularly interesting.

	/r$

-- =20
Principal Security Engineer
Akamai Technologies, Cambridge, MA
IM: rsalz@jabber.me; Twitter: RichSalz


From nobody Sun Jul 20 09:16:48 2014
Return-Path: <tanja@hyperelliptic.org>
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 6CE671B2C82 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 09:16:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 ysQs4yr3jNGs for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 09:16:44 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 8B2B41B2C7F for <cfrg@irtf.org>; Sun, 20 Jul 2014 09:16:44 -0700 (PDT)
Received: (qmail 2809 invoked from network); 20 Jul 2014 16:16:45 -0000
Received: from pcdhz005.win.tue.nl (HELO hyperelliptic.org) (131.155.71.33) by mace.cs.uic.edu with SMTP; 20 Jul 2014 16:16:45 -0000
Received: (qmail 19736 invoked by uid 1000); 20 Jul 2014 16:16:40 -0000
Date: Sun, 20 Jul 2014 18:16:40 +0200
From: Tanja Lange <tanja@hyperelliptic.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Message-ID: <20140720161640.GT28481@cph.win.tue.nl>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk> <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com> <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com> <53CBB83B.3000808@elzevir.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <53CBB83B.3000808@elzevir.fr>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/3JIgms57wBbdH7PPAJ0Pt99q_HA
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 16:16:46 -0000

On Sun, Jul 20, 2014 at 02:38:19PM +0200, Manuel Pégourié-Gonnard wrote:
> On 20/07/2014 06:50, Watson Ladd wrote:
> > On Sat, Jul 19, 2014 at 4:09 PM, Benjamin Black <b@b3k.us> wrote:
> >> [...] Please provide specific
> >> supporting documentation for claims of significant, not incremental,
> >> performance or security gains for TLS from this.
> > 
> > http://bench.cr.yp.to/
> > 
> It is rather unfortunate that http://bench.cr.yp.to/impl-dh/nistp256.png returns
> a 404 error.
> 
That implementation only supports sparc and we currently have no 
modern sparc (donations welcome!).

Nobody submitted decent DH implementations of the NIST curves, 
take a look at the signatures page instead
	http://bench.cr.yp.to/impl-sign/ecdonaldp256.html
that implementation wraps OpenSSL's implementation.

	Tanja


From nobody Sun Jul 20 10:25:28 2014
Return-Path: <mike@shiftleft.org>
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 75EAA1B28B8 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 10:25:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, 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 TNKzvz4JmHOl for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 10:25:25 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8AA171B28AE for <cfrg@irtf.org>; Sun, 20 Jul 2014 10:25:25 -0700 (PDT)
Received: from [192.168.1.124] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 1DEE03AA12; Sun, 20 Jul 2014 10:23:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1405877021; bh=Ov67VpDOn0BWVp3HxW1mKrprOavirmbLxE4+a2DOAr8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=EkniTbew7mjWY9L46oonurDQBrCO+RaEbOuM0xCL4B6O4Y15KDQSeISDAeo0bA/qv nmoQ2F2zeK4rhW4ckdsLrfoBYdBv0GEp1QuAB7J3gyN5iUXXOFgwy5Ky8Drdk147sv 6isWmVX4ZrVtYh911KPd0dAIFKYp0WsM5YbTR2B4=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53CBDFF8.5050204@cs.bris.ac.uk>
Date: Sun, 20 Jul 2014 10:25:21 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <0F4DF570-7886-4D0A-8817-DEEF64FBA8A8@shiftleft.org>
References: <53CBDFF8.5050204@cs.bris.ac.uk>
To: Nigel Smart <nigel@cs.bris.ac.uk>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/NF60MQq5mctv3Ft-l1ife6qc7DI
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 17:25:27 -0000

You sound a little bit like you=92re trolling us, Nigel.  It=92s one =
thing to say that the marginal security and performance gains of the new =
curves isn=92t worth the complexity of supporting them in TLS.  It=92s =
another to say that every crypto curve should have all the properties =
that NIST chose for theirs (except 512 bits instead of 521), and that it =
shouldn=92t have any other properties, even twist security.  Do you have =
any justification for those criteria?

=97 Mike

On Jul 20, 2014, at 8:27 AM, Nigel Smart <nigel@cs.bris.ac.uk> wrote:

> Hi
>=20
> It seems there is a lot of noise about new types of curves, curvexxxyy =
this,
> and NUMS that.
>=20
> Note the request is for new ELLIPTIC CURVES not elliptic curve =
PROTOCOLS
>=20
> Thus any curve should be IMHO usable with any STANDARD protocol, in =
any
> STANDARD way of implementing the protocol. Without this constraint one =
is
> bound to get implementation errors.
>=20
>  - Curve25519 is a combined curve/protocol; so is out of scope IMHO. =
As
>     someone is bound to use the underlying curve with some other =
protocol
>     and make mistakes.
>=20
> Benjamin Black is correct; having new types of this that and the other =
for
> a marginal security gain, and/or a marginal performance gain is IMHO
> inviting problems.
>=20
> Thus the ONLY response in my view as responsible cryptographers is
> to recommend curves which
>=20
>   i) Whose data format for point transfer/curve definition is in =
Weierstrass
>      form
>          - I dont care if some implementation wants to use some =
super-duper
>            form to do some calculation; the data transfer must enable
>            interoperability.
> ii) Whose group order is prime
>          - Not having prime group order is inviting problems. Thus =
Edwards
>            curves are out as I am sure they require non-prime group =
order
> iii) The "b" coordinate should be generated by a hash value on some
>      random string.
> iv) Usual security constraints; base field has 256 and 512 bits of =
security
>       to match AES 128 and AES 256; MOV criteria; SmartASS criteria;
> v) Ignore "esorteric" constrains like twist security etc.
>=20
> So basically I cannot see what is wrong with the NIST curves. And if =
people
> want something new then they should really come up with a credible
> reason for wanting something new. No argument I have seen warrants
> the massive change in software and infrastructure that is being =
proposed.
> If people really are that worried about this NIST curves then
>   i) They should probably stop using the internet full stop, as that =
means
>      the NSA probably has massive more capability than even Snowden =
has
>      revealed.
>  ii) Generate curves as above; and not trust some new fingle-fangled =
ideas
>      which are not supported by all the major cryptographers who have
>      worked on ECC.
>=20
> BTW I still stand by my statement that we should recommend EC-Schnorr
> as an extra hash function.
>  - Minor change in code needed to support it (compared to some of the =
other
>    proposals)
>  - Provides some "hedge" against future collisions in SHA-256 and =
SHA-3.
>  - Has IMHO (and this is purely subjective) better provable security =
than
>    EC-DSA
> But that is not what we have been asked to comment on; as this is a =
new
> "protocol" (i.e. signature scheme).
>=20
> Yours
>=20
> Nigel
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Jul 20 10:57:35 2014
Return-Path: <csnps@bristol.ac.uk>
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 DD9DF1B2928 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 10:57:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 8cPHNY3ezY_C for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 10:57:31 -0700 (PDT)
Received: from eu1sys200aog123.obsmtp.com (eu1sys200aog123.obsmtp.com [207.126.144.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DE1281B2925 for <cfrg@irtf.org>; Sun, 20 Jul 2014 10:57:30 -0700 (PDT)
Received: from mail-we0-f178.google.com ([74.125.82.178]) (using TLSv1) by eu1sys200aob123.postini.com ([207.126.147.11]) with SMTP ID DSNKU8wDBrNsZDN+d5tTND+h44UpmXg2J3qS@postini.com; Sun, 20 Jul 2014 17:57:30 UTC
Received: by mail-we0-f178.google.com with SMTP id w61so6575759wes.23 for <cfrg@irtf.org>; Sun, 20 Jul 2014 10:57:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=erZpGYwwNirK8SFMcsjK1W289DXBoZIKs8rDQl6w3FQ=; b=iCEcpID8kmfAHO82K1PiKjtRrR0wv+GQ72QDN22zwDmKwdK8QefHnRqV0CxwN1R/Wo Istw5OLsAG1UBcZ0rCsfR5NYAQu0KEN4Ser+BXnwFFMedet+CYVWZjr31NsIt2I2HCGJ Vqtxajo9trhhH2kMGqL9dARw9a0ZvXM22LrzLYkE0QR4kmg84j00O1ze/t+zudFJPOhA D8vSgum1HJcdIC8fsspt+IqBYFXcj+sfxzFa0Na3uSTzulQn3unHMVEY12SYgsAblAtg 5C1O5DGEMI9RGLWWpa58JUreobtwkMeynmgC6mFXNd6FZcXMyHpYtk7GjC3MpRn452Dy JTsA==
X-Gm-Message-State: ALoCoQkYMguZ1qUVacuXJIdu2iL7GpEaf+MI1fh/IihH6kWgNjT12kINx7qUPi1KHal2DNHsMptPeBJ4aLcNRXX+kInazBdsU/0SF/RbQfILCAXzO8Jqo5D+Thh32STA1cSk5Ct5DPWd
X-Received: by 10.180.90.233 with SMTP id bz9mr25676691wib.42.1405879046693; Sun, 20 Jul 2014 10:57:26 -0700 (PDT)
X-Received: by 10.180.90.233 with SMTP id bz9mr25676675wib.42.1405879046521; Sun, 20 Jul 2014 10:57:26 -0700 (PDT)
Received: from [192.168.1.78] (host86-168-27-89.range86-168.btcentralplus.com. [86.168.27.89]) by mx.google.com with ESMTPSA id ey16sm32405516wid.14.2014.07.20.10.57.25 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 10:57:25 -0700 (PDT)
Sender: Nigel Smart <csnps@bristol.ac.uk>
Message-ID: <53CC0304.4010802@cs.bris.ac.uk>
Date: Sun, 20 Jul 2014 18:57:24 +0100
From: Nigel Smart <nigel@cs.bris.ac.uk>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <53CBDFF8.5050204@cs.bris.ac.uk> <0F4DF570-7886-4D0A-8817-DEEF64FBA8A8@shiftleft.org>
In-Reply-To: <0F4DF570-7886-4D0A-8817-DEEF64FBA8A8@shiftleft.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/F_5fu7yZF6Qkq0DLSEKcv7eDBLM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 17:57:34 -0000

Hi

Various issues here....

i) Is there any justification for new curves at this current point in time?
      - My opinion is no. There is no reasonable argument which can 
suggest that
        NIST cooked their curves. There may be better ways to generate 
the curves
        now with extra functionality (see below), but the basic security 
criteria are
         still valid.

ii) Should we add new SECURITY criteria on the CURVES?
      - My opinion is that this is marginal. I see no benefit at all in 
twist security.
        Dont get me wrong, I think twist security is a cool idea worthy 
of an academic
        paper. Its just not practically relevant here (unless we are 
changing protocols,
        which is not the request).

iii) Should we add in curves with better performance which may deviate 
from the
       NIST choices?
           - Only if they can represent points in Weierstrass form for 
transmission.
           - Only if they have prime order.
                 - Note, here I am being stronger than the ANSI/NIST 
criteria (but actually
                   NIST curves have this property in any case).
                 - I really think prime order curves are vital to avoid 
mistakes. I have
                   been recommending their use in nearly 18 years of 
advising companies
                   on ECC stuff.
           - In other words the curve addition is OK, as long as it can 
interoperate with
             existing software, and will not cause security/patent 
violation issues when
             used with all possible protocols
                  - Last point is key, as we cannot force a new curve to 
only be used
                    with protocol X, as some idiot will use it with Y. 
This is why I think
                    Curve25519 should be treated as a complete protocol, 
as opposed
                    to a curve. The naming by Danja is a unfortunate in 
this respect.

iv) Should we add in new FUNCTIONALITY criteria on the CURVES?
           - Actually yes I do think this. If we were to re-do NIST like 
curves I would also
             publish seeds for TWO base points. The reason for this is 
that many protocols
             require two base points, and not having them defined in the 
"standard" curves
             is a problem and we need the DLP to be unknown so we need 
the seeds to be
             able to guarantee this.

<humour mode>

My problem with the discussion is that it seems to be being conducted in 
exactly
the way which resulted in the mess which is the current TLS. It would 
appear that
to people (like me) who have spend years researching ECC, key agreement 
protocols,
trying to make cryptographic sense of the current TLS protocol, etc etc, 
are being
trolled by people on the list   :-)

</humour mode>

Cheers

Nigel

On 20/07/2014 18:25, Michael Hamburg wrote:
> You sound a little bit like you’re trolling us, Nigel.  It’s one thing to say that the marginal security and performance gains of the new curves isn’t worth the complexity of supporting them in TLS.  It’s another to say that every crypto curve should have all the properties that NIST chose for theirs (except 512 bits instead of 521), and that it shouldn’t have any other properties, even twist security.  Do you have any justification for those criteria?
>
> — Mike
>
> On Jul 20, 2014, at 8:27 AM, Nigel Smart <nigel@cs.bris.ac.uk> wrote:
>
>> Hi
>>
>> It seems there is a lot of noise about new types of curves, curvexxxyy this,
>> and NUMS that.
>>
>> Note the request is for new ELLIPTIC CURVES not elliptic curve PROTOCOLS
>>
>> Thus any curve should be IMHO usable with any STANDARD protocol, in any
>> STANDARD way of implementing the protocol. Without this constraint one is
>> bound to get implementation errors.
>>
>>   - Curve25519 is a combined curve/protocol; so is out of scope IMHO. As
>>      someone is bound to use the underlying curve with some other protocol
>>      and make mistakes.
>>
>> Benjamin Black is correct; having new types of this that and the other for
>> a marginal security gain, and/or a marginal performance gain is IMHO
>> inviting problems.
>>
>> Thus the ONLY response in my view as responsible cryptographers is
>> to recommend curves which
>>
>>    i) Whose data format for point transfer/curve definition is in Weierstrass
>>       form
>>           - I dont care if some implementation wants to use some super-duper
>>             form to do some calculation; the data transfer must enable
>>             interoperability.
>> ii) Whose group order is prime
>>           - Not having prime group order is inviting problems. Thus Edwards
>>             curves are out as I am sure they require non-prime group order
>> iii) The "b" coordinate should be generated by a hash value on some
>>       random string.
>> iv) Usual security constraints; base field has 256 and 512 bits of security
>>        to match AES 128 and AES 256; MOV criteria; SmartASS criteria;
>> v) Ignore "esorteric" constrains like twist security etc.
>>
>> So basically I cannot see what is wrong with the NIST curves. And if people
>> want something new then they should really come up with a credible
>> reason for wanting something new. No argument I have seen warrants
>> the massive change in software and infrastructure that is being proposed.
>> If people really are that worried about this NIST curves then
>>    i) They should probably stop using the internet full stop, as that means
>>       the NSA probably has massive more capability than even Snowden has
>>       revealed.
>>   ii) Generate curves as above; and not trust some new fingle-fangled ideas
>>       which are not supported by all the major cryptographers who have
>>       worked on ECC.
>>
>> BTW I still stand by my statement that we should recommend EC-Schnorr
>> as an extra hash function.
>>   - Minor change in code needed to support it (compared to some of the other
>>     proposals)
>>   - Provides some "hedge" against future collisions in SHA-256 and SHA-3.
>>   - Has IMHO (and this is purely subjective) better provable security than
>>     EC-DSA
>> But that is not what we have been asked to comment on; as this is a new
>> "protocol" (i.e. signature scheme).
>>
>> Yours
>>
>> Nigel
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Sun Jul 20 11:51:10 2014
Return-Path: <watsonbladd@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 2145A1B2C9A for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 11:51:08 -0700 (PDT)
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 AomzaajKklyb for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 11:51:06 -0700 (PDT)
Received: from mail-yh0-x230.google.com (mail-yh0-x230.google.com [IPv6:2607:f8b0:4002:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 12F461B2946 for <cfrg@irtf.org>; Sun, 20 Jul 2014 11:51:06 -0700 (PDT)
Received: by mail-yh0-f48.google.com with SMTP id i57so3513431yha.35 for <cfrg@irtf.org>; Sun, 20 Jul 2014 11:51:05 -0700 (PDT)
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:content-transfer-encoding; bh=kB7Ka75JC9UhrgF8NsPfYO154jA4jgLOqM9Q2EWByNQ=; b=fKaXww3oK2ydwz5bEYezZJ9RkwkWazcQxRHvu4i2xJrOvyfcj1xKqxva4UCB2goIWO SwFQZIpYQ23Rhoinbx1wP0K043C5B4b6ZTDIZ97FuC4012ExzPY/7RIJfBy1kqI3cuPu Cxm992IZapj29Xwk8yaVEna12e/zdQjh3ilncvC7DVcduX4TQ3xxbdnVFAJpFINGwSXC tpj+h5xx4VhCEkWusX835gIJdBR9E7Ai393In3hMsKCujj1QqleC9rqdh3oKVymGQxJG QWNBKdNDWDrZhU22O5nzkh00IG9vkRrLJp0umIyRKmwi9T97yo1nJPounXQMHzroY5z1 05XA==
MIME-Version: 1.0
X-Received: by 10.236.134.208 with SMTP id s56mr31423496yhi.4.1405882265237; Sun, 20 Jul 2014 11:51:05 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 20 Jul 2014 11:51:05 -0700 (PDT)
In-Reply-To: <53CC0304.4010802@cs.bris.ac.uk>
References: <53CBDFF8.5050204@cs.bris.ac.uk> <0F4DF570-7886-4D0A-8817-DEEF64FBA8A8@shiftleft.org> <53CC0304.4010802@cs.bris.ac.uk>
Date: Sun, 20 Jul 2014 11:51:05 -0700
Message-ID: <CACsn0ckPhUobH5k3fM4fECGaBcAVhG963+fwYYHoUcLbfKR4yQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Nigel Smart <nigel@cs.bris.ac.uk>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ToQQ2aKHxVbcHAzp91sIzY35M9Q
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 18:51:08 -0000

On Sun, Jul 20, 2014 at 10:57 AM, Nigel Smart <nigel@cs.bris.ac.uk> wrote:
> Hi
>
> Various issues here....
>
> i) Is there any justification for new curves at this current point in tim=
e?
>      - My opinion is no. There is no reasonable argument which can sugges=
t
> that
>        NIST cooked their curves. There may be better ways to generate the
> curves
>        now with extra functionality (see below), but the basic security
> criteria are
>         still valid.

Except that we want higher performance, to enable the use of TLS with
PFS in places where
it is currently not deployed. Performance matters: if you can get a
curve of size 448 to go faster
then one of size 224, and an even faster curve of size 256, this
enables the use of forwards secrecy
in places where it didn't fit before, and with bigger keys than before.

If you want to see something like tcpcrypt be ubiquitous, than every
little percent of performance matters.
Rich Salz has sent emails saying essentially that the cost of ECDH
exchanges is making it hard for CDNs
to adopt ECDHE. What's the point of cryptography if it cannot be used?

>
> ii) Should we add new SECURITY criteria on the CURVES?
>      - My opinion is that this is marginal. I see no benefit at all in tw=
ist
> security.
>        Dont get me wrong, I think twist security is a cool idea worthy of=
 an
> academic
>        paper. Its just not practically relevant here (unless we are chang=
ing
> protocols,
>        which is not the request).

Twist security enables use of ladders without validation: assume
checks not required for interop get screwed up.

This process began with Curve25519 for TLS. Then Microsoft showed up
with substantially similar NUMS
curves. I think it was obvious that new code was going to be written
and this was understood by the TLS
1.3 WG.

>
> iii) Should we add in curves with better performance which may deviate fr=
om
> the
>       NIST choices?
>           - Only if they can represent points in Weierstrass form for
> transmission.
>           - Only if they have prime order.
>                 - Note, here I am being stronger than the ANSI/NIST crite=
ria
> (but actually
>                   NIST curves have this property in any case).
>                 - I really think prime order curves are vital to avoid
> mistakes. I have
>                   been recommending their use in nearly 18 years of advis=
ing
> companies
>                   on ECC stuff.
>           - In other words the curve addition is OK, as long as it can
> interoperate with
>             existing software, and will not cause security/patent violati=
on
> issues when
>             used with all possible protocols
>                  - Last point is key, as we cannot force a new curve to o=
nly
> be used
>                    with protocol X, as some idiot will use it with Y. Thi=
s
> is why I think
>                    Curve25519 should be treated as a complete protocol, a=
s
> opposed
>                    to a curve. The naming by Danja is a unfortunate in th=
is
> respect.

DJB, not Tanja Lange, made Curve25519: he's the author on the original
(2006) paper.
Read the SEC1 and NIST standards: they do include non-prime order
curves, and picked prime order because they could.
Yes, I can make protocols where non-prime order could be an issue, but
it's a very slight change to make them work.

There isn't going to be an interop problem: TLS includes mechanisms to
negotiate the use of curves
precisely to enable the addition of new mechanisms. The only issue is
certificates, but even there there are ways
to deal with it.

>
> iv) Should we add in new FUNCTIONALITY criteria on the CURVES?
>           - Actually yes I do think this. If we were to re-do NIST like
> curves I would also
>             publish seeds for TWO base points. The reason for this is tha=
t
> many protocols
>             require two base points, and not having them defined in the
> "standard" curves
>             is a problem and we need the DLP to be unknown so we need the
> seeds to be
>             able to guarantee this.

The only protocols I've seen with that property are PAKEs, and
Pedersen commitments, neither of which has great usage
in the IETF. And it's not for lack of definition: SRP was in TLS but unused=
.
>
> <humour mode>
>
> My problem with the discussion is that it seems to be being conducted in
> exactly
> the way which resulted in the mess which is the current TLS. It would app=
ear
> that
> to people (like me) who have spend years researching ECC, key agreement
> protocols,
> trying to make cryptographic sense of the current TLS protocol, etc etc, =
are
> being
> trolled by people on the list   :-)
>
> </humour mode>

Do you see a security issue with Curve25519, or any of the proposals?
Or is this a complaint about interoperability?
One of those you are qualified to talk about: the other one Rich Salz
and Adam Langley know far more about, because they
actually manage large deployments of TLS software.

Sincerely,
Watson Ladd

>
> Cheers
>
> Nigel
>
>
> On 20/07/2014 18:25, Michael Hamburg wrote:
>>
>> You sound a little bit like you=E2=80=99re trolling us, Nigel.  It=E2=80=
=99s one thing to
>> say that the marginal security and performance gains of the new curves i=
sn=E2=80=99t
>> worth the complexity of supporting them in TLS.  It=E2=80=99s another to=
 say that
>> every crypto curve should have all the properties that NIST chose for th=
eirs
>> (except 512 bits instead of 521), and that it shouldn=E2=80=99t have any=
 other
>> properties, even twist security.  Do you have any justification for thos=
e
>> criteria?
>>
>> =E2=80=94 Mike
>>
>> On Jul 20, 2014, at 8:27 AM, Nigel Smart <nigel@cs.bris.ac.uk> wrote:
>>
>>> Hi
>>>
>>> It seems there is a lot of noise about new types of curves, curvexxxyy
>>> this,
>>> and NUMS that.
>>>
>>> Note the request is for new ELLIPTIC CURVES not elliptic curve PROTOCOL=
S
>>>
>>> Thus any curve should be IMHO usable with any STANDARD protocol, in any
>>> STANDARD way of implementing the protocol. Without this constraint one =
is
>>> bound to get implementation errors.
>>>
>>>   - Curve25519 is a combined curve/protocol; so is out of scope IMHO. A=
s
>>>      someone is bound to use the underlying curve with some other
>>> protocol
>>>      and make mistakes.
>>>
>>> Benjamin Black is correct; having new types of this that and the other
>>> for
>>> a marginal security gain, and/or a marginal performance gain is IMHO
>>> inviting problems.
>>>
>>> Thus the ONLY response in my view as responsible cryptographers is
>>> to recommend curves which
>>>
>>>    i) Whose data format for point transfer/curve definition is in
>>> Weierstrass
>>>       form
>>>           - I dont care if some implementation wants to use some
>>> super-duper
>>>             form to do some calculation; the data transfer must enable
>>>             interoperability.
>>> ii) Whose group order is prime
>>>           - Not having prime group order is inviting problems. Thus
>>> Edwards
>>>             curves are out as I am sure they require non-prime group
>>> order
>>> iii) The "b" coordinate should be generated by a hash value on some
>>>       random string.
>>> iv) Usual security constraints; base field has 256 and 512 bits of
>>> security
>>>        to match AES 128 and AES 256; MOV criteria; SmartASS criteria;
>>> v) Ignore "esorteric" constrains like twist security etc.
>>>
>>> So basically I cannot see what is wrong with the NIST curves. And if
>>> people
>>> want something new then they should really come up with a credible
>>> reason for wanting something new. No argument I have seen warrants
>>> the massive change in software and infrastructure that is being propose=
d.
>>> If people really are that worried about this NIST curves then
>>>    i) They should probably stop using the internet full stop, as that
>>> means
>>>       the NSA probably has massive more capability than even Snowden ha=
s
>>>       revealed.
>>>   ii) Generate curves as above; and not trust some new fingle-fangled
>>> ideas
>>>       which are not supported by all the major cryptographers who have
>>>       worked on ECC.
>>>
>>> BTW I still stand by my statement that we should recommend EC-Schnorr
>>> as an extra hash function.
>>>   - Minor change in code needed to support it (compared to some of the
>>> other
>>>     proposals)
>>>   - Provides some "hedge" against future collisions in SHA-256 and SHA-=
3.
>>>   - Has IMHO (and this is purely subjective) better provable security
>>> than
>>>     EC-DSA
>>> But that is not what we have been asked to comment on; as this is a new
>>> "protocol" (i.e. signature scheme).
>>>
>>> Yours
>>>
>>> Nigel
>>>
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> http://www.irtf.org/mailman/listinfo/cfrg
>>
>>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



--=20
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 20 11:56:44 2014
Return-Path: <bal@microsoft.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 020C01B2CB8; Sun, 20 Jul 2014 11:56:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 L5e5SAgAHRBz; Sun, 20 Jul 2014 11:56:27 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0145.outbound.protection.outlook.com [207.46.163.145]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E64991B2CA7; Sun, 20 Jul 2014 11:56:26 -0700 (PDT)
Received: from BL2PR03MB242.namprd03.prod.outlook.com (10.255.231.18) by BL2PR03MB243.namprd03.prod.outlook.com (10.255.231.23) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 18:56:25 +0000
Received: from BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.232]) by BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.232]) with mapi id 15.00.0990.007; Sun, 20 Jul 2014 18:56:25 +0000
From: Brian LaMacchia <bal@microsoft.com>
To: "tls@ietf.org" <tls@ietf.org>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: V1.1 of MSR ECCLib for NUMS Curves library released (now supporting GCC on Linux)
Thread-Index: Ac+kTESvmkQ17PaKRGm9P1nDdxWNMQ==
Date: Sun, 20 Jul 2014 18:56:25 +0000
Message-ID: <32919a77a6ba4b2aab3c446b087ad979@BL2PR03MB242.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [68.166.41.173]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02788FF38E
x-forefront-antispam-report: SFV:NSPM; SFS:(164054003)(377454003)(13464003)(243025005)(189002)(199002)(26614003)(105586002)(16236675004)(77096002)(19300405004)(79102001)(15975445006)(83322001)(85306003)(106356001)(31966008)(95666004)(99286002)(74502001)(74662001)(21056001)(83072002)(77982001)(46102001)(4396001)(92566001)(85852003)(107886001)(76576001)(81542001)(33646002)(19617315012)(81342001)(74316001)(86612001)(54356999)(19625215002)(50986999)(19580405001)(19580395003)(87936001)(15202345003)(86362001)(229853001)(76482001)(101416001)(107046002)(2656002)(99396002)(20776003)(64706001)(66066001)(80022001)(108616002)(42262001)(24736002)(9853045004); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB243; H:BL2PR03MB242.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: multipart/alternative; boundary="_000_32919a77a6ba4b2aab3c446b087ad979BL2PR03MB242namprd03pro_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Nfc7Y-PTkJbyjtwmZWu3xPx-Qwg
Subject: [Cfrg] V1.1 of MSR ECCLib for NUMS Curves library released (now supporting GCC on Linux)
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: Sun, 20 Jul 2014 18:56:38 -0000

--_000_32919a77a6ba4b2aab3c446b087ad979BL2PR03MB242namprd03pro_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Folks,



Microsoft Research is pleased to announce the release of v1.1 of the MSR El=
liptic Curve Cryptography Library for NUMS curves.  Please visit



http://research.microsoft.com/en-us/projects/nums/



for full details and download links.  New features in v1.1 include:



*         GCC support on Linux:  The new pre-assembly files .S located in <=
LibraryPath>/MSR_ECCLib/AMD64 are compatible with both GNU GCC (GAS assembl=
er) and MSVS (MASM assembler) compilers

*         New API for ephemeral elliptic curve Diffie-Hellman key exchange =
(ECDHE)

*         New tests for ECDHE

*         Simplified API for some ECC scalar multiplication functions

*         Extended support to any x64 processor



We welcome questions/comments/feedback on this library; please send them to=
 msrsc@microsoft.com<mailto:msrsc@microsoft.com>.



Thanks,



                                                                           =
     --bal



-----Original Message-----
From: Brian LaMacchia
Sent: Monday, June 30, 2014 3:58 AM
To: cfrg@ietf.org; tls@ietf.org
Subject: Announcing the availability of the MSR Elliptic Curve Cryptography=
 Library for NUMS Curves



Dear members of the IRTF CFRG and the IETF TLS WG,



On behalf of the Microsoft Research ECCLib Project, I am pleased to announc=
e the first release of the Microsoft Research Elliptic Curve Cryptography L=
ibrary (ECCLib) for NUMS ("Nothing Up My Sleeve") curves.  We are releasing=
 ECCLib under the Apache 2.0 License.  Here is a link to the project page a=
nd download location:



http://research.microsoft.com/en-us/projects/nums/



The MSR ECCLib is an efficient cryptography library that provides functions=
 for computing essential elliptic curve operations on a new set of high-sec=
urity curves as previously described in [1] and presented at the CFRG Sprin=
g 2014 Interim Meeting (see [2] for a copy of the slides from that presenta=
tion).  All computations in ECCLib on secret data exhibit regular, constant=
-time execution, providing protection against timing and cache attacks.



ECCLib supports six high-security elliptic curves proposed in [1], which co=
ver three security levels (128-, 192-, and 256-bit security) and two curve =
models. The curves have a very simple and deterministic generation with min=
imal room for parameter manipulation.  ECCLib includes all the ECC function=
s necessary to implement most popular elliptic curve-based schemes. In part=
icular, ECCLib supports the computation of scalar multiplication for the si=
x curves above in three variants:

                1. Variable-base scalar multiplication (e.g., this is used =
for computing the shared key in the Diffie-Hellman key exchange).

                2. Fixed-base scalar multiplication (e.g., this is used for=
 key generation in the Diffie-Hellman key exchange).

                3. Double-scalar multiplication. This operation is typicall=
y used for verifying signatures.



As both the CFRG and the TLS WG are currently considering additional curves=
 for elliptic curve cryptography, we hope that this contribution (in additi=
on to the technical paper previously presented) will further a thoughtful d=
iscussion concerning what new curves CFRG should recommend and TLS should c=
onsider for inclusion.  We welcome questions/comments/feedback on this libr=
ary; please send them to msrsc@microsoft.com<mailto:msrsc@microsoft.com>.



Please Note: the version of ECCLib that we are releasing today is for x64 p=
latforms with AVX and builds with the Microsoft Visual Studio toolchain.  W=
e are actively working on both a version that builds with GCC and also a po=
rtable C version and hope to add these to the release in the near future.



Thanks,



                                                                           =
     --bal



[1] Joppe W. Bos, Craig Costello, Patrick Longa and Michael Naehrig, "Selec=
ting Elliptic Curves for Cryptography: An Efficiency and Security Analysis"=
, Cryptology ePrint Archive: Report 2014/130. Available at: http://eprint.i=
acr.org/2014/130



[2] http://patricklonga.webs.com/Presentation_CFRG_Selecting_Elliptic_Curve=
s_for_Cryptography.pdf





--_000_32919a77a6ba4b2aab3c446b087ad979BL2PR03MB242namprd03pro_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1652099318;
	mso-list-type:hybrid;
	mso-list-template-ids:-466031126 67698711 67698713 67698715 67698703 67698=
713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-number-format:alpha-lower;
	mso-level-text:"%1\)";
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l1
	{mso-list-id:1653948001;
	mso-list-type:hybrid;
	mso-list-template-ids:-1973120130 67698689 67698691 67698693 67698689 6769=
8691 67698693 67698689 67698691 67698693;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l1:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l1:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1:level5
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l1:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
@list l1:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1:level8
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l1:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0A7;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Wingdings;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoPlainText">Folks,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Microsoft Research is pleased to announce the rel=
ease of v1.1 of the MSR Elliptic Curve Cryptography Library for NUMS curves=
.&nbsp; Please visit
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><a href=3D"http://research.microsoft.com/en-us/pr=
ojects/nums/">http://research.microsoft.com/en-us/projects/nums/</a>
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">for full details and download links.&nbsp; New fe=
atures in v1.1 include:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in;text-indent:-.25in;mso-=
list:l1 level1 lfo1">
<![if !supportLists]><span style=3D"font-family:Symbol"><span style=3D"mso-=
list:Ignore">&middot;<span style=3D"font:7.0pt &quot;Times New Roman&quot;"=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>GCC support on Linux:&nbsp; The new pre-asse=
mbly files .S located in &lt;LibraryPath&gt;/MSR_ECCLib/AMD64 are compatibl=
e with both GNU GCC (GAS assembler) and MSVS (MASM assembler) compilers<o:p=
></o:p></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in;text-indent:-.25in;mso-=
list:l1 level1 lfo1">
<![if !supportLists]><span style=3D"font-family:Symbol"><span style=3D"mso-=
list:Ignore">&middot;<span style=3D"font:7.0pt &quot;Times New Roman&quot;"=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>New API for ephemeral elliptic curve Diffie-=
Hellman key exchange (ECDHE)<o:p></o:p></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in;text-indent:-.25in;mso-=
list:l1 level1 lfo1">
<![if !supportLists]><span style=3D"font-family:Symbol"><span style=3D"mso-=
list:Ignore">&middot;<span style=3D"font:7.0pt &quot;Times New Roman&quot;"=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>New tests for ECDHE<o:p></o:p></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in;text-indent:-.25in;mso-=
list:l1 level1 lfo1">
<![if !supportLists]><span style=3D"font-family:Symbol"><span style=3D"mso-=
list:Ignore">&middot;<span style=3D"font:7.0pt &quot;Times New Roman&quot;"=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>Simplified API for some ECC scalar multiplic=
ation functions<o:p></o:p></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in;text-indent:-.25in;mso-=
list:l1 level1 lfo1">
<![if !supportLists]><span style=3D"font-family:Symbol"><span style=3D"mso-=
list:Ignore">&middot;<span style=3D"font:7.0pt &quot;Times New Roman&quot;"=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>Extended support to any x64 processor<o:p></=
o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">We welcome questions/comments/feedback on this li=
brary; please send them to
<a href=3D"mailto:msrsc@microsoft.com"><span style=3D"color:windowtext;text=
-decoration:none">msrsc@microsoft.com</span></a>.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Thanks,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --bal<o:p></o:p></p>
<p class=3D"MsoPlainText"><a name=3D"_MailEndCompose"><o:p>&nbsp;</o:p></a>=
</p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: Brian LaMacchia <br>
Sent: Monday, June 30, 2014 3:58 AM<br>
To: cfrg@ietf.org; tls@ietf.org<br>
Subject: Announcing the availability of the MSR Elliptic Curve Cryptography=
 Library for NUMS Curves</p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Dear members of the IRTF CFRG and the IETF TLS WG=
,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">On behalf of the Microsoft Research ECCLib Projec=
t, I am pleased to announce the first release of the Microsoft Research Ell=
iptic Curve Cryptography Library (ECCLib) for NUMS (&#8220;Nothing Up My Sl=
eeve&#8221;) curves.&nbsp; We are releasing ECCLib
 under the Apache 2.0 License.&nbsp; Here is a link to the project page and=
 download location:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><a href=3D"http://research.microsoft.com/en-us/pr=
ojects/nums/"><span style=3D"color:windowtext;text-decoration:none">http://=
research.microsoft.com/en-us/projects/nums/</span></a>&nbsp;
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">The MSR ECCLib is an efficient cryptography libra=
ry that provides functions for computing essential elliptic curve operation=
s on a new set of high-security curves as previously described in [1] and p=
resented at the CFRG Spring 2014 Interim
 Meeting (see [2] for a copy of the slides from that presentation).&nbsp; A=
ll computations in ECCLib on secret data exhibit regular, constant-time exe=
cution, providing protection against timing and cache attacks.<o:p></o:p></=
p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">ECCLib supports six high-security elliptic curves=
 proposed in [1], which cover three security levels (128-, 192-, and 256-bi=
t security) and two curve models. The curves have a very simple and determi=
nistic generation with minimal room
 for parameter manipulation.&nbsp; ECCLib includes all the ECC functions ne=
cessary to implement most popular elliptic curve-based schemes. In particul=
ar, ECCLib supports the computation of scalar multiplication for the six cu=
rves above in three variants:
<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Variable-base scalar multiplic=
ation (e.g., this is used for computing the shared key in the Diffie-Hellma=
n key exchange).<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Fixed-base scalar multiplicati=
on (e.g., this is used for key generation in the Diffie-Hellman key exchang=
e).<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3. Double-scalar multiplication. =
This operation is typically used for verifying signatures.
<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;<o:p></o:p></p>
<p class=3D"MsoPlainText">As both the CFRG and the TLS WG are currently con=
sidering additional curves for elliptic curve cryptography, we hope that th=
is contribution (in addition to the technical paper previously presented) w=
ill further a thoughtful discussion
 concerning what new curves CFRG should recommend and TLS should consider f=
or inclusion.&nbsp; We welcome questions/comments/feedback on this library;=
 please send them to
<a href=3D"mailto:msrsc@microsoft.com"><span style=3D"color:windowtext;text=
-decoration:none">msrsc@microsoft.com</span></a>.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Please Note: the version of ECCLib that we are re=
leasing today is for x64 platforms with AVX and builds with the Microsoft V=
isual Studio toolchain.&nbsp; We are actively working on both a version tha=
t builds with GCC and also a portable C
 version and hope to add these to the release in the near future.<o:p></o:p=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Thanks,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --bal<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">[1] Joppe W. Bos, Craig Costello, Patrick Longa a=
nd Michael Naehrig, &#8220;Selecting Elliptic Curves for Cryptography: An E=
fficiency and Security Analysis&#8221;, Cryptology ePrint Archive: Report 2=
014/130. Available at:
<a href=3D"http://eprint.iacr.org/2014/130"><span style=3D"color:windowtext=
;text-decoration:none">http://eprint.iacr.org/2014/130</span></a>
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">[2] <a href=3D"http://patricklonga.webs.com/Prese=
ntation_CFRG_Selecting_Elliptic_Curves_for_Cryptography.pdf">
<span style=3D"color:windowtext;text-decoration:none">http://patricklonga.w=
ebs.com/Presentation_CFRG_Selecting_Elliptic_Curves_for_Cryptography.pdf</s=
pan></a><o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_32919a77a6ba4b2aab3c446b087ad979BL2PR03MB242namprd03pro_--


From nobody Sun Jul 20 12:21:52 2014
Return-Path: <hannes.tschofenig@gmx.net>
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 20C711B29B1; Sun, 20 Jul 2014 12:21:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 q1N3zgAscMA4; Sun, 20 Jul 2014 12:21:44 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37D051B296C; Sun, 20 Jul 2014 12:21:44 -0700 (PDT)
Received: from [192.168.10.128] ([66.207.208.102]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MFu0Y-1XLbbY0GCE-00EwDs; Sun, 20 Jul 2014 21:21:38 +0200
Message-ID: <53CC16BF.3080108@gmx.net>
Date: Sun, 20 Jul 2014 21:21:35 +0200
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Brian LaMacchia <bal@microsoft.com>, "tls@ietf.org" <tls@ietf.org>,  "cfrg@ietf.org" <cfrg@ietf.org>
References: <32919a77a6ba4b2aab3c446b087ad979@BL2PR03MB242.namprd03.prod.outlook.com>
In-Reply-To: <32919a77a6ba4b2aab3c446b087ad979@BL2PR03MB242.namprd03.prod.outlook.com>
X-Enigmail-Version: 1.5.2
OpenPGP: id=4D776BC9
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gKvR9uL9QCjw2pEh3haRj3cLBs7hhCiXk"
X-Provags-ID: V03:K0:kcanRWmfn29/GHSrROVSHmTa3EOdiUqWNLIw1xWb04GgP/cEtRy YQsRyyiBgBkURLdmrcjjwFh8g4b/eXyacjfDUPZutSWuuYIcq+ZiF++v0RP5CzCfyQjkFRE mSjOP7jFDqVnEj3RGGGDKsbMtDPFQHpHqDmbG1RzJW1/2xcqrBqmhlQfhIosxTC69x3PD2i 29NXK+aIXbujra9fD2tkQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BwwOUty2bMuf4WO1YuK6mgbYj1g
Subject: Re: [Cfrg] V1.1 of MSR ECCLib for NUMS Curves library released (now supporting GCC on Linux)
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: Sun, 20 Jul 2014 19:21:47 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--gKvR9uL9QCjw2pEh3haRj3cLBs7hhCiXk
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Brian,

thanks for sharing the code.

I am wondering whether you also have a version that does not make use of
assembler code since I cannot run this code on 32-bit ARM processors.

Ciao
Hannes

On 07/20/2014 08:56 PM, Brian LaMacchia wrote:
> Folks,
>=20
> =20
>=20
> Microsoft Research is pleased to announce the release of v1.1 of the MS=
R
> Elliptic Curve Cryptography Library for NUMS curves.  Please visit
>=20
> =20
>=20
> http://research.microsoft.com/en-us/projects/nums/
>=20
> =20
>=20
> for full details and download links.  New features in v1.1 include:
>=20
> =20
>=20
> =B7         GCC support on Linux:  The new pre-assembly files .S locate=
d
> in <LibraryPath>/MSR_ECCLib/AMD64 are compatible with both GNU GCC (GAS=

> assembler) and MSVS (MASM assembler) compilers
>=20
> =B7         New API for ephemeral elliptic curve Diffie-Hellman key
> exchange (ECDHE)
>=20
> =B7         New tests for ECDHE
>=20
> =B7         Simplified API for some ECC scalar multiplication functions=

>=20
> =B7         Extended support to any x64 processor
>=20
> =20
>=20
> We welcome questions/comments/feedback on this library; please send the=
m
> to msrsc@microsoft.com <mailto:msrsc@microsoft.com>.
>=20
> =20
>=20
> Thanks,
>=20
> =20
>=20
>                                                                        =
       =20
> --bal
>=20
> =20
>=20
> -----Original Message-----
> From: Brian LaMacchia
> Sent: Monday, June 30, 2014 3:58 AM
> To: cfrg@ietf.org; tls@ietf.org
> Subject: Announcing the availability of the MSR Elliptic Curve
> Cryptography Library for NUMS Curves
>=20
> =20
>=20
> Dear members of the IRTF CFRG and the IETF TLS WG,
>=20
> =20
>=20
> On behalf of the Microsoft Research ECCLib Project, I am pleased to
> announce the first release of the Microsoft Research Elliptic Curve
> Cryptography Library (ECCLib) for NUMS (=93Nothing Up My Sleeve=94) cur=
ves.=20
> We are releasing ECCLib under the Apache 2.0 License.  Here is a link t=
o
> the project page and download location:
>=20
> =20
>=20
> http://research.microsoft.com/en-us/projects/nums/=20
>=20
> =20
>=20
> The MSR ECCLib is an efficient cryptography library that provides
> functions for computing essential elliptic curve operations on a new se=
t
> of high-security curves as previously described in [1] and presented at=

> the CFRG Spring 2014 Interim Meeting (see [2] for a copy of the slides
> from that presentation).  All computations in ECCLib on secret data
> exhibit regular, constant-time execution, providing protection against
> timing and cache attacks.
>=20
> =20
>=20
> ECCLib supports six high-security elliptic curves proposed in [1], whic=
h
> cover three security levels (128-, 192-, and 256-bit security) and two
> curve models. The curves have a very simple and deterministic generatio=
n
> with minimal room for parameter manipulation.  ECCLib includes all the
> ECC functions necessary to implement most popular elliptic curve-based
> schemes. In particular, ECCLib supports the computation of scalar
> multiplication for the six curves above in three variants:
>=20
>                 1. Variable-base scalar multiplication (e.g., this is
> used for computing the shared key in the Diffie-Hellman key exchange).
>=20
>                 2. Fixed-base scalar multiplication (e.g., this is used=

> for key generation in the Diffie-Hellman key exchange).
>=20
>                 3. Double-scalar multiplication. This operation is
> typically used for verifying signatures.
>=20
> =20
>=20
> As both the CFRG and the TLS WG are currently considering additional
> curves for elliptic curve cryptography, we hope that this contribution
> (in addition to the technical paper previously presented) will further =
a
> thoughtful discussion concerning what new curves CFRG should recommend
> and TLS should consider for inclusion.  We welcome
> questions/comments/feedback on this library; please send them to
> msrsc@microsoft.com <mailto:msrsc@microsoft.com>.
>=20
> =20
>=20
> Please Note: the version of ECCLib that we are releasing today is for
> x64 platforms with AVX and builds with the Microsoft Visual Studio
> toolchain.  We are actively working on both a version that builds with
> GCC and also a portable C version and hope to add these to the release
> in the near future.
>=20
> =20
>=20
> Thanks,
>=20
> =20
>=20
>                                                                        =
       =20
> --bal
>=20
> =20
>=20
> [1] Joppe W. Bos, Craig Costello, Patrick Longa and Michael Naehrig,
> =93Selecting Elliptic Curves for Cryptography: An Efficiency and Securi=
ty
> Analysis=94, Cryptology ePrint Archive: Report 2014/130. Available at:
> http://eprint.iacr.org/2014/130
>=20
> =20
>=20
> [2]
> http://patricklonga.webs.com/Presentation_CFRG_Selecting_Elliptic_Curve=
s_for_Cryptography.pdf
>=20
> =20
>=20
> =20
>=20
>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>=20


--gKvR9uL9QCjw2pEh3haRj3cLBs7hhCiXk
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTzBa/AAoJEGhJURNOOiAtixoH/1Q3CALDlO0I81T120R4a4CL
am8kLand1TVmngWbJqZLl+LWqVXP9+p9vfXCoGiDJmIE/HFfTVWI19dwTYwXBKBO
S9anUCczy2djEuSc+2DFD6aGEu5RSyYK4oQ9+i0ujo3YKoD5op+2Hl4OuYxuoUGI
28eEjIlJ0YCITeC8T5IZbim4cJJrmUq4fA482Uf9PnYNI1oqkRx8lD/UFn6jc6Cg
G/lKvf5gT6A5zuaJCh46vF7wxXJbYgtd3Z1NDLdTNPO5R8xfcY0dOQIAg9BcO9A5
TM7AlXmjAWQ9TIjQHr+yinRMu8A0Pj6Xba3aL90yVJGa4CR2kEvuf7fEd4jWAVM=
=BrD8
-----END PGP SIGNATURE-----

--gKvR9uL9QCjw2pEh3haRj3cLBs7hhCiXk--


From nobody Sun Jul 20 12:39:56 2014
Return-Path: <bal@microsoft.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 C302D1B29D8; Sun, 20 Jul 2014 12:39:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 mm2YMZ6yjyTz; Sun, 20 Jul 2014 12:39:52 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0140.outbound.protection.outlook.com [207.46.163.140]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92EC91B29F3; Sun, 20 Jul 2014 12:39:49 -0700 (PDT)
Received: from BL2PR03MB242.namprd03.prod.outlook.com (10.255.231.18) by BL2PR03MB243.namprd03.prod.outlook.com (10.255.231.23) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 19:39:47 +0000
Received: from BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.232]) by BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.232]) with mapi id 15.00.0990.007; Sun, 20 Jul 2014 19:39:46 +0000
From: Brian LaMacchia <bal@microsoft.com>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>, "tls@ietf.org" <tls@ietf.org>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] V1.1 of MSR ECCLib for NUMS Curves library released (now supporting GCC on Linux)
Thread-Index: Ac+kTESvmkQ17PaKRGm9P1nDdxWNMQAA41WAAAAkyHA=
Date: Sun, 20 Jul 2014 19:39:45 +0000
Message-ID: <45fdc0b2d9754990aa70d9d92d349c84@BL2PR03MB242.namprd03.prod.outlook.com>
References: <32919a77a6ba4b2aab3c446b087ad979@BL2PR03MB242.namprd03.prod.outlook.com> <53CC16BF.3080108@gmx.net>
In-Reply-To: <53CC16BF.3080108@gmx.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [68.166.41.173]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02788FF38E
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(26614003)(13464003)(52604005)(164054003)(377454003)(51704005)(479174003)(189002)(24454002)(199002)(74316001)(86612001)(54356999)(81342001)(50986999)(87936001)(19580395003)(19580405001)(107886001)(76576001)(81542001)(33646002)(64706001)(2656002)(76176999)(99396002)(20776003)(66066001)(80022001)(86362001)(15202345003)(101416001)(107046002)(76482001)(106356001)(31966008)(83322001)(85306003)(95666004)(99286002)(77096002)(105586002)(15975445006)(19273905006)(79102001)(83072002)(21056001)(46102001)(2201001)(77982001)(92566001)(85852003)(4396001)(74502001)(74662001)(108616002)(42262001)(24736002)(563064011)(9853045004); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB243; H:BL2PR03MB242.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/CF0XA0bhO5xbgGbOozSmvXL1_Pk
Subject: Re: [Cfrg] V1.1 of MSR ECCLib for NUMS Curves library released (now supporting GCC on Linux)
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: Sun, 20 Jul 2014 19:39:54 -0000

Hi Hannes,

Thanks very much for your interest and yes we are working on a portable C v=
ersion but it's not quite ready yet.  As soon as it's done & posted I'll se=
nd out another announcement.  =20

--bal

-----Original Message-----
From: Hannes Tschofenig [mailto:hannes.tschofenig@gmx.net]=20
Sent: Sunday, July 20, 2014 3:22 PM
To: Brian LaMacchia; tls@ietf.org; cfrg@ietf.org
Subject: Re: [Cfrg] V1.1 of MSR ECCLib for NUMS Curves library released (no=
w supporting GCC on Linux)

Hi Brian,

thanks for sharing the code.

I am wondering whether you also have a version that does not make use of as=
sembler code since I cannot run this code on 32-bit ARM processors.

Ciao
Hannes

On 07/20/2014 08:56 PM, Brian LaMacchia wrote:
> Folks,
>=20
> =20
>=20
> Microsoft Research is pleased to announce the release of v1.1 of the=20
> MSR Elliptic Curve Cryptography Library for NUMS curves.  Please visit
>=20
> =20
>=20
> http://research.microsoft.com/en-us/projects/nums/
>=20
> =20
>=20
> for full details and download links.  New features in v1.1 include:
>=20
> =20
>=20
> *         GCC support on Linux:  The new pre-assembly files .S located
> in <LibraryPath>/MSR_ECCLib/AMD64 are compatible with both GNU GCC=20
> (GAS
> assembler) and MSVS (MASM assembler) compilers
>=20
> *         New API for ephemeral elliptic curve Diffie-Hellman key
> exchange (ECDHE)
>=20
> *         New tests for ECDHE
>=20
> *         Simplified API for some ECC scalar multiplication functions
>=20
> *         Extended support to any x64 processor
>=20
> =20
>=20
> We welcome questions/comments/feedback on this library; please send=20
> them to msrsc@microsoft.com <mailto:msrsc@microsoft.com>.
>=20
> =20
>=20
> Thanks,
>=20
> =20
>=20
>                                                                          =
     =20
> --bal
>=20
> =20
>=20
> -----Original Message-----
> From: Brian LaMacchia
> Sent: Monday, June 30, 2014 3:58 AM
> To: cfrg@ietf.org; tls@ietf.org
> Subject: Announcing the availability of the MSR Elliptic Curve=20
> Cryptography Library for NUMS Curves
>=20
> =20
>=20
> Dear members of the IRTF CFRG and the IETF TLS WG,
>=20
> =20
>=20
> On behalf of the Microsoft Research ECCLib Project, I am pleased to=20
> announce the first release of the Microsoft Research Elliptic Curve=20
> Cryptography Library (ECCLib) for NUMS ("Nothing Up My Sleeve") curves.
> We are releasing ECCLib under the Apache 2.0 License.  Here is a link=20
> to the project page and download location:
>=20
> =20
>=20
> http://research.microsoft.com/en-us/projects/nums/
>=20
> =20
>=20
> The MSR ECCLib is an efficient cryptography library that provides=20
> functions for computing essential elliptic curve operations on a new=20
> set of high-security curves as previously described in [1] and=20
> presented at the CFRG Spring 2014 Interim Meeting (see [2] for a copy=20
> of the slides from that presentation).  All computations in ECCLib on=20
> secret data exhibit regular, constant-time execution, providing=20
> protection against timing and cache attacks.
>=20
> =20
>=20
> ECCLib supports six high-security elliptic curves proposed in [1],=20
> which cover three security levels (128-, 192-, and 256-bit security)=20
> and two curve models. The curves have a very simple and deterministic=20
> generation with minimal room for parameter manipulation.  ECCLib=20
> includes all the ECC functions necessary to implement most popular=20
> elliptic curve-based schemes. In particular, ECCLib supports the=20
> computation of scalar multiplication for the six curves above in three va=
riants:
>=20
>                 1. Variable-base scalar multiplication (e.g., this is=20
> used for computing the shared key in the Diffie-Hellman key exchange).
>=20
>                 2. Fixed-base scalar multiplication (e.g., this is=20
> used for key generation in the Diffie-Hellman key exchange).
>=20
>                 3. Double-scalar multiplication. This operation is=20
> typically used for verifying signatures.
>=20
> =20
>=20
> As both the CFRG and the TLS WG are currently considering additional=20
> curves for elliptic curve cryptography, we hope that this contribution=20
> (in addition to the technical paper previously presented) will further=20
> a thoughtful discussion concerning what new curves CFRG should=20
> recommend and TLS should consider for inclusion.  We welcome=20
> questions/comments/feedback on this library; please send them to=20
> msrsc@microsoft.com <mailto:msrsc@microsoft.com>.
>=20
> =20
>=20
> Please Note: the version of ECCLib that we are releasing today is for
> x64 platforms with AVX and builds with the Microsoft Visual Studio=20
> toolchain.  We are actively working on both a version that builds with=20
> GCC and also a portable C version and hope to add these to the release=20
> in the near future.
>=20
> =20
>=20
> Thanks,
>=20
> =20
>=20
>                                                                          =
     =20
> --bal
>=20
> =20
>=20
> [1] Joppe W. Bos, Craig Costello, Patrick Longa and Michael Naehrig,=20
> "Selecting Elliptic Curves for Cryptography: An Efficiency and=20
> Security Analysis", Cryptology ePrint Archive: Report 2014/130. Available=
 at:
> http://eprint.iacr.org/2014/130
>=20
> =20
>=20
> [2]
> http://patricklonga.webs.com/Presentation_CFRG_Selecting_Elliptic_Curv
> es_for_Cryptography.pdf
>=20
> =20
>=20
> =20
>=20
>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>=20


From nobody Sun Jul 20 12:51:37 2014
Return-Path: <mike@shiftleft.org>
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 332131A0092 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 12:51:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, 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 NErIvQxBD_-9 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 12:51:31 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6E4891A0049 for <cfrg@irtf.org>; Sun, 20 Jul 2014 12:51:31 -0700 (PDT)
Received: from [192.168.1.124] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 705F33AA3F; Sun, 20 Jul 2014 12:49:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1405885787; bh=d72YO6n1AQ4kSs8zkVLVGQpWKEphizQg5Ho7kgkI8H4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=cnqWn39eTzmJQtU5yyGP701gB43HbRdTDVU69dn3sHdzuN3W5NScs5ghS9cX4xcdr jwYd7KZLGId1HeOVV7Z09Eo7uWkOV0+C1S3G/z8m3hNvL6josvRLbkl2sgVwsLtTrr 1+5g6REJsLgRLCBpbxf4tgeO0/cHRPubmy3J+Bf8=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53CC0304.4010802@cs.bris.ac.uk>
Date: Sun, 20 Jul 2014 12:51:28 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <29A93B93-0C86-4831-A51B-EDDE0221E8FA@shiftleft.org>
References: <53CBDFF8.5050204@cs.bris.ac.uk> <0F4DF570-7886-4D0A-8817-DEEF64FBA8A8@shiftleft.org> <53CC0304.4010802@cs.bris.ac.uk>
To: Nigel Smart <nigel@cs.bris.ac.uk>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lAuSCTnmD2oIpbfRTaf3QtMQXHk
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 19:51:33 -0000

On Jul 20, 2014, at 10:57 AM, Nigel Smart <nigel@cs.bris.ac.uk> wrote:

> Hi
>=20
> Various issues here....
>=20
> i) Is there any justification for new curves at this current point in =
time?
>     - My opinion is no. There is no reasonable argument which can =
suggest that
>       NIST cooked their curves. There may be better ways to generate =
the curves
>       now with extra functionality (see below), but the basic security =
criteria are
>        still valid.

I also do not believe that the NIST curves have backdoors.  They have =
reasonable security criteria as well.  It=92s just that the state of the =
art has progressed in terms of architecture, implementation, security, =
performance, protocols, etc.  So it makes sense to standardize new =
curves for future protocols.

Just because the NIST security criteria were good choices doesn=92t mean =
that they are the best choices.  Making =91b=92 the hash of a random =
seed was a reasonable choice.  I do not see why it is clearly a better =
choice than the DJB / Microsoft NUMS approach.  Prime-order curves have =
good properties.  Edwards curves have different good properties.  Just =
because prime order is desirable doesn=92t mean that it=92s the only =
desirable thing.  We should weigh its properties against the properties =
of curves with cofactors.

Perhaps the new curves should not go into TLS for complexity reasons.  I =
defer on that question to those who manage large-scale TLS delpoyments.

> ii) Should we add new SECURITY criteria on the CURVES?
>     - My opinion is that this is marginal. I see no benefit at all in =
twist security.
>       Dont get me wrong, I think twist security is a cool idea worthy =
of an academic
>       paper. Its just not practically relevant here (unless we are =
changing protocols,
>       which is not the request).

You might well think that various new security features =97 twist =
security, strongly unified formulas, no point with x=3D0 for power =
analysis, etc =97 are not worth a new standard.  But you asserted =
explicitly, and with no justification, that the ONLY responsible course =
is to recommend curves which ignore these constraints.  I don=92t =
understand why extra security constraints would be irresponsible, so =
long as they=92re clearly not part of a "BADA55=94 manipulation of the =
parameters.

> iii) Should we add in curves with better performance which may deviate =
from the
>      NIST choices?
>          - Only if they can represent points in Weierstrass form for =
transmission.
>          - Only if they have prime order.
>                - Note, here I am being stronger than the ANSI/NIST =
criteria (but actually
>                  NIST curves have this property in any case).
>                - I really think prime order curves are vital to avoid =
mistakes. I have
>                  been recommending their use in nearly 18 years of =
advising companies
>                  on ECC stuff.

There is a class of mistakes that people make with prime order curves, =
and a different class of mistakes that they make with cofactors.  You =
may feel that mistakes involving incomplete formulas are less serious or =
easier to avoid than those involving cofactors.  Go ahead and push for =
that.  But it=92s not helpful to just assert that cofactors aren=92t =
acceptable.

>          - In other words the curve addition is OK, as long as it can =
interoperate with
>            existing software, and will not cause security/patent =
violation issues when
>            used with all possible protocols
>                 - Last point is key, as we cannot force a new curve to =
only be used
>                   with protocol X, as some idiot will use it with Y. =
This is why I think
>                   Curve25519 should be treated as a complete protocol, =
as opposed
>                   to a curve. The naming by Danja is a unfortunate in =
this respect.

It is safe to carry out other protocols over Curve25519, or over =
isomorphic Weierstrass or Edwards curves if they specify those formats.  =
Most EC protocols account for a cofactor, including the TLS-revelant =
ECDHE and ECDSA.  It is of course possible to screw up implementing such =
protocols.  But is Curve25519 any more dangerous for this than any other =
curve with a cofactor?

> iv) Should we add in new FUNCTIONALITY criteria on the CURVES?
>          - Actually yes I do think this. If we were to re-do NIST like =
curves I would also
>            publish seeds for TWO base points. The reason for this is =
that many protocols
>            require two base points, and not having them defined in the =
"standard" curves
>            is a problem and we need the DLP to be unknown so we need =
the seeds to be
>            able to guarantee this.
>=20
> <humour mode>
>=20
> My problem with the discussion is that it seems to be being conducted =
in exactly
> the way which resulted in the mess which is the current TLS. It would =
appear that
> to people (like me) who have spend years researching ECC, key =
agreement protocols,
> trying to make cryptographic sense of the current TLS protocol, etc =
etc, are being
> trolled by people on the list   :-)
>=20
> </humour mode>

I don=92t want to see a mess, and I respect your input.  It=92s just =
that most of these criteria have been discussed for a while now.  It=92s =
frustrating to have a discussion like this, and then you come in and say =
=93actually, it=92s obvious that the criteria should be that the curve =
looks like a NIST curve.  Also it=92s important that the new desiderata =
that you all have been discussing should be ignored.=94  That position =
requires justification.  You=92ve provided justification for some of =
your points, which is helpful.

> Cheers
>=20
> Nigel

Cheers,
=97 Mike

>=20
> On 20/07/2014 18:25, Michael Hamburg wrote:
>> You sound a little bit like you=92re trolling us, Nigel.  It=92s one =
thing to say that the marginal security and performance gains of the new =
curves isn=92t worth the complexity of supporting them in TLS.  It=92s =
another to say that every crypto curve should have all the properties =
that NIST chose for theirs (except 512 bits instead of 521), and that it =
shouldn=92t have any other properties, even twist security.  Do you have =
any justification for those criteria?
>>=20
>> =97 Mike
>>=20
>> On Jul 20, 2014, at 8:27 AM, Nigel Smart <nigel@cs.bris.ac.uk> wrote:
>>=20
>>> Hi
>>>=20
>>> It seems there is a lot of noise about new types of curves, =
curvexxxyy this,
>>> and NUMS that.
>>>=20
>>> Note the request is for new ELLIPTIC CURVES not elliptic curve =
PROTOCOLS
>>>=20
>>> Thus any curve should be IMHO usable with any STANDARD protocol, in =
any
>>> STANDARD way of implementing the protocol. Without this constraint =
one is
>>> bound to get implementation errors.
>>>=20
>>>  - Curve25519 is a combined curve/protocol; so is out of scope IMHO. =
As
>>>     someone is bound to use the underlying curve with some other =
protocol
>>>     and make mistakes.
>>>=20
>>> Benjamin Black is correct; having new types of this that and the =
other for
>>> a marginal security gain, and/or a marginal performance gain is IMHO
>>> inviting problems.
>>>=20
>>> Thus the ONLY response in my view as responsible cryptographers is
>>> to recommend curves which
>>>=20
>>>   i) Whose data format for point transfer/curve definition is in =
Weierstrass
>>>      form
>>>          - I dont care if some implementation wants to use some =
super-duper
>>>            form to do some calculation; the data transfer must =
enable
>>>            interoperability.
>>> ii) Whose group order is prime
>>>          - Not having prime group order is inviting problems. Thus =
Edwards
>>>            curves are out as I am sure they require non-prime group =
order
>>> iii) The "b" coordinate should be generated by a hash value on some
>>>      random string.
>>> iv) Usual security constraints; base field has 256 and 512 bits of =
security
>>>       to match AES 128 and AES 256; MOV criteria; SmartASS criteria;
>>> v) Ignore "esorteric" constrains like twist security etc.
>>>=20
>>> So basically I cannot see what is wrong with the NIST curves. And if =
people
>>> want something new then they should really come up with a credible
>>> reason for wanting something new. No argument I have seen warrants
>>> the massive change in software and infrastructure that is being =
proposed.
>>> If people really are that worried about this NIST curves then
>>>   i) They should probably stop using the internet full stop, as that =
means
>>>      the NSA probably has massive more capability than even Snowden =
has
>>>      revealed.
>>>  ii) Generate curves as above; and not trust some new fingle-fangled =
ideas
>>>      which are not supported by all the major cryptographers who =
have
>>>      worked on ECC.
>>>=20
>>> BTW I still stand by my statement that we should recommend =
EC-Schnorr
>>> as an extra hash function.
>>>  - Minor change in code needed to support it (compared to some of =
the other
>>>    proposals)
>>>  - Provides some "hedge" against future collisions in SHA-256 and =
SHA-3.
>>>  - Has IMHO (and this is purely subjective) better provable security =
than
>>>    EC-DSA
>>> But that is not what we have been asked to comment on; as this is a =
new
>>> "protocol" (i.e. signature scheme).
>>>=20
>>> Yours
>>>=20
>>> Nigel
>>>=20
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> http://www.irtf.org/mailman/listinfo/cfrg
>>=20


From nobody Sun Jul 20 13:04:43 2014
Return-Path: <plonga@microsoft.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 634B81A0070 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 13:04:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 z4E0zs3N53mq for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 13:04:38 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0185.outbound.protection.outlook.com [207.46.163.185]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 82A4E1B29F9 for <cfrg@irtf.org>; Sun, 20 Jul 2014 13:04:37 -0700 (PDT)
Received: from BY2PR03MB474.namprd03.prod.outlook.com (10.141.141.149) by BY2PR03MB475.namprd03.prod.outlook.com (10.141.141.150) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 20:04:34 +0000
Received: from BY2PR03MB474.namprd03.prod.outlook.com ([10.141.141.149]) by BY2PR03MB474.namprd03.prod.outlook.com ([10.141.141.149]) with mapi id 15.00.0990.007; Sun, 20 Jul 2014 20:04:34 +0000
From: Patrick Longa Pierola <plonga@microsoft.com>
To: "rsalz@akamai.com" <rsalz@akamai.com>, Nigel Smart <nigel@cs.bris.ac.uk>,  "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: AQHPpC8rQYOQwnvnWUy4VjgkuzYLoZupVtYw
Date: Sun, 20 Jul 2014 20:04:33 +0000
Message-ID: <4f25233deb804496b4b17b70f01d9b31@BY2PR03MB474.namprd03.prod.outlook.com>
References: <53CBDFF8.5050204@cs.bris.ac.uk>
In-Reply-To: <53CBDFF8.5050204@cs.bris.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [50.47.83.223]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02788FF38E
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(24454002)(189002)(199002)(51704005)(80022001)(83322001)(105586002)(106356001)(87936001)(76176999)(95666004)(50986999)(106116001)(85306003)(46102001)(86612001)(2656002)(64706001)(20776003)(4396001)(33646002)(66066001)(86362001)(77982001)(99286002)(74316001)(21056001)(31966008)(74502001)(74662001)(107886001)(107046002)(81342001)(76576001)(85852003)(79102001)(76482001)(81542001)(54356999)(99396002)(83072002)(101416001)(92566001)(108616002)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB475; H:BY2PR03MB474.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lI07iWcExmlUYuiv7eadQ3q5Zxw
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic	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: Sun, 20 Jul 2014 20:04:41 -0000

> Nigel Smart wrote:
> Note the request is for new ELLIPTIC CURVES not elliptic curve PROTOCOLS
> Thus any curve should be IMHO usable with any STANDARD protocol, in any S=
TANDARD way of implementing the protocol. Without this constraint one is bo=
und to get implementation errors.

>  - Curve25519 is a combined curve/protocol; so is out of scope IMHO. As
>    someone is bound to use the underlying curve with some other protocol
>    and make mistakes.

> Benjamin Black is correct; having new types of this that and the other fo=
r a marginal security gain, and/or a marginal performance gain is IMHO invi=
ting problems.
=20
IMO these are important points made by Ben and Nigel. To the point: so far =
I haven't seen compelling evidence to want to "hardwire" a curve to a proto=
col. Many well-designed curves can be used for different protocols without =
restrictions, with the same (or potentially stronger) security assurances a=
nd with virtually equivalent performance. OTOH, tying curve/protocol can br=
ing potential compatibility problems, make agility harder, increase complex=
ity of implementations (from a narrow perspective "hardwired" curve/protoco=
l implementations might seem to simplify things, however in actual deployme=
nts in which many other components participate this is not necessarily the =
case), etc.

As a rule of thumb, IMHO a solid curve selection process should focus on cu=
rves (and reference implementations) that apply to a flexible number of pro=
tocols and, in special, to ECDHE and ECDSA.=20

>> Nigel Smart wrote:
>>   - Curve25519 is a combined curve/protocol; so is out of scope IMHO. As
>>     someone is bound to use the underlying curve with some other protoco=
l
>>      and make mistakes.
>
> Rich Salz wrote:
> Strongly disagree.  Many find the performance issues compelling, and the =
fact that it defines everything down to the bytes on the wire highly attrac=
tive; the fact that high-quality reference implementations are available ma=
kes the "someone will get it wrong" not particularly interesting.

Can you point me out the reference implementations that make the performanc=
e that compelling? Please, if you can, back your response with precise perf=
ormance numbers for ECDHE (IMO this is the most important metric to evaluat=
e performance in this IETF process). This is important because we wouldn't =
want to dismiss strong compatibility features at the expense of negligible =
speedups.

Best regards,

Patrick


From nobody Sun Jul 20 16:53:41 2014
Return-Path: <bal@microsoft.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 9C8FF1B2A57 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 16:53:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 3wQ7NATTi5PZ for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 16:53:37 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0204.outbound.protection.outlook.com [207.46.163.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F4E01B2A5A for <cfrg@irtf.org>; Sun, 20 Jul 2014 16:53:37 -0700 (PDT)
Received: from BL2PR03MB242.namprd03.prod.outlook.com (10.255.231.18) by BL2PR03MB241.namprd03.prod.outlook.com (10.255.231.15) with Microsoft SMTP Server (TLS) id 15.0.990.7; Sun, 20 Jul 2014 23:53:22 +0000
Received: from BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.232]) by BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.232]) with mapi id 15.00.0990.007; Sun, 20 Jul 2014 23:53:22 +0000
From: Brian LaMacchia <bal@microsoft.com>
To: Watson Ladd <watsonbladd@gmail.com>, Nigel Smart <nigel@cs.bris.ac.uk>
Thread-Topic: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: Ac+kYjXWFCn4j3nZR7i6WM7bROKhBQ==
Date: Sun, 20 Jul 2014 23:53:22 +0000
Message-ID: <c37f9974d2be4614b9a03392572dd29c@BL2PR03MB242.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [38.121.226.131]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02788FF38E
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(377454003)(189002)(87936001)(77096002)(99286002)(95666004)(106356001)(64706001)(92566001)(74316001)(20776003)(66066001)(21056001)(81342001)(50986999)(86362001)(80022001)(79102001)(85852003)(101416001)(83072002)(76576001)(2656002)(77982001)(107046002)(74662001)(83322001)(76482001)(86612001)(85306003)(99396002)(74502001)(31966008)(19580405001)(54356999)(81542001)(19580395003)(33646002)(4396001)(46102001)(105586002)(108616002)(42262001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB241; H:BL2PR03MB242.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gFiPvOS6XN77l2HWxLnE_qr6lAs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Sun, 20 Jul 2014 23:53:39 -0000

V2VsbCwgbm90IGV4YWN0bHksIHRoZXJlIGFyZSBzb21lIGltcG9ydGFudCBkaWZmZXJlbmNlcyBi
ZXR3ZWVuIEN1cnZlMjU1MTkgYW5kIHRoZSB0d28gTlVNUyBjdXJ2ZSBzdWItZmFtaWxpZXMuICBJ
biBwYXJ0aWN1bGFyLCBub3RlIHRoYXQgZHJhZnQtYmxhY2stbnVtc2N1cnZlcyBpbmNsdWRlcyBi
b3RoIGEgc2V0IG9mIFdlaWVyc3RyYXNzICphbmQqIGEgc2V0IG9mIHR3aXN0ZWQgRWR3YXJkcyBj
dXJ2ZXMuICBXZSBpbmNsdWRlZCB0aGUgV2VpZXJzdHJhc3MgY3VydmVzIGluIG9yZGVyIHRvIHBy
b3ZpZG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JhbA0KDQotLS0tLU9yaWdp
bmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogQ2ZyZyBbbWFpbHRvOmNmcmctYm91bmNlc0BpcnRmLm9y
Z10gT24gQmVoYWxmIE9mIFdhdHNvbiBMYWRkDQpTZW50OiBTdW5kYXksIEp1bHkgMjAsIDIwMTQg
Mjo1MSBQTQ0KVG86IE5pZ2VsIFNtYXJ0DQpDYzogY2ZyZ0BpcnRmLm9yZw0KU3ViamVjdDogUmU6
IFtDZnJnXSBGb3JtYWwgcmVxdWVzdCBmcm9tIFRMUyBXRyB0byBDRlJHIGZvciBuZXcgZWxsaXB0
aWMgY3VydmVzDQoNCltzbmlwXQ0KDQpUaGlzIHByb2Nlc3MgYmVnYW4gd2l0aCBDdXJ2ZTI1NTE5
IGZvciBUTFMuIFRoZW4gTWljcm9zb2Z0IHNob3dlZCB1cCB3aXRoIHN1YnN0YW50aWFsbHkgc2lt
aWxhciBOVU1TIGN1cnZlcy4gSSB0aGluayBpdCB3YXMgb2J2aW91cyB0aGF0IG5ldyBjb2RlIHdh
cyBnb2luZyB0byBiZSB3cml0dGVuIGFuZCB0aGlzIHdhcyB1bmRlcnN0b29kIGJ5IHRoZSBUTFMg
MS4zIFdHLg0KDQo=


From nobody Sun Jul 20 19:32:29 2014
Return-Path: <crypto@brainhub.org>
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 6D9D91B2AC8 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 19:32:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.831
X-Spam-Level: 
X-Spam-Status: No, score=-1.831 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=0.77, 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 4-lk0lyHIXmP for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 19:32:27 -0700 (PDT)
Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 157141B2ACE for <cfrg@irtf.org>; Sun, 20 Jul 2014 19:32:26 -0700 (PDT)
Received: by mail-ie0-f172.google.com with SMTP id lx4so6369808iec.31 for <cfrg@irtf.org>; Sun, 20 Jul 2014 19:32:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=idmLUjBxSlly5khfdSHXE8yp7QvYkkR2Izq3PMAK85c=; b=Uewpy0KJYktdkYB6CEdInfuc6H0OWr/w+t4fxtQQZ/Jc8e98eoNSd3UNCGwVKz/ccm OcjIuWG0JYLdlRjboK9fQ/xLYBc+mHp7Cp1LDYe0zJeoYKbh0w7AHf6ETImdZNj3bN/c T6h+1MM6CJCObAtERezACJBMd4z0Vdxhr4r0+H1gLE4nnTif3lmLinSRAZe8q68Oz3bp uVvTZmCiYMIfw6kXOs/wJjJqwZ8QN7tUUPDTYRm/N4R8jkf91HugZazB+3AbEJ6EZnMd ir+hItpplAukkq0241xOqEhtdsgvkj6ljj3S3EAmg3DINa/fip44HjS6hVKdOXPG2aQP mong==
X-Gm-Message-State: ALoCoQlFs9nGL7YF7TmtWjGE5lqM84Zwxf2OfuadC6p6TTOFmjjC2hxRsbsR8evE6nHZ5OJSWb4I
X-Received: by 10.50.79.232 with SMTP id m8mr4611034igx.39.1405909946343; Sun, 20 Jul 2014 19:32:26 -0700 (PDT)
Received: from [10.255.234.94] ([207.236.147.203]) by mx.google.com with ESMTPSA id lo3sm34103907igb.22.2014.07.20.19.32.25 for <cfrg@irtf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 19:32:25 -0700 (PDT)
Sender: Andrey <andrey@brainhub.org>
Message-ID: <53CC7BB8.8050604@brainhub.org>
Date: Sun, 20 Jul 2014 22:32:24 -0400
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <c37f9974d2be4614b9a03392572dd29c@BL2PR03MB242.namprd03.prod.outlook.com>
In-Reply-To: <c37f9974d2be4614b9a03392572dd29c@BL2PR03MB242.namprd03.prod.outlook.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/w5JToNNLcA3WtjOGdnoazUReYek
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 02:32:28 -0000

>  s: Denotes the bit length, here s in {256,384,512}.
>  p: Denotes the prime number defining the base field.
>  c: A positive integer used in the representation of the prime
>          p = 2^s - c.

In light of the recent discussion, would an attempt to reach a consensus 
on the value of p first has a higher chance for success at this point?

Assuming we want a new p, some arguments for a fixed F(p) are:

* the specs like Curve25519 are "stacks of layers", which prescribe a 
Curve, co-factor multiplication, F(p) operations, and an integer format 
(fixing p seems as one of the the least controversial tasks among these 
"layers")
* the performance advantage are mostly attributed to the F(p) operations 
(factor of n improvement in F(p) results in ~ n^2 curve performance)
* F(p) operations are platform-specific  (if there is assembler code 
used in the "stack", it will likely be restricted to the F(p))
* F(p) clarity will let hardware vendors focus on optimizations (and not 
worry about the entire stack)
* same F(p) doesn't prohibit multiple curves over it; ( fixing F(p) 
first and the curve or curves later will allow implementations to 
proceed sooner and enables a compromise )
* fixed F(p) allows greater flexibility to upgrade the curves (future 
curves will likely have hardware support available, sensitive code resused).
* fixed F(p) reduces the code size, increases interoperability 
(currently NUMS and Curve25519 are at odds here)

This narrow focus leads to these questions regarding the F(p):
* is a pseudo-Mersenne p an appropriate p for the new curves (the only 
cons to this so far is that such a p fixes the Curve's order to be close 
to 2^s; besides the trivial one that this makes the Pollard-rho faster)
* Curve25519 uses 255 instead of 256; however, CFRG can choose s=255 for 
128 bit security as well (citing "historic" reasons).

Should CFRG seek consensus on the above two questions first?



From nobody Sun Jul 20 20:13:33 2014
Return-Path: <watsonbladd@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 3F29F1B2B16 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 20:13:31 -0700 (PDT)
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 zE8Mmnizo8ki for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 20:13:29 -0700 (PDT)
Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59CB51B2AB1 for <cfrg@irtf.org>; Sun, 20 Jul 2014 20:13:29 -0700 (PDT)
Received: by mail-yk0-f181.google.com with SMTP id q200so3474271ykb.12 for <cfrg@irtf.org>; Sun, 20 Jul 2014 20:13:28 -0700 (PDT)
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=Wnvee8j3G0ES/B9RL4lKtLiAkl31sOEmbhttEscjRjI=; b=pwlouQV02Q6qnO+pNbUM/GXfApZI8ebTlao8riCL7JPdz4JHR5jDYZB+AdNTLZ2T20 tHq3hSpKbqD/RqAaUDoe5EzErOy9m3/R0x5JKoimT8KNztCr8N5ZikrrE0RNf0UK3r/a UpGyELzloh3WJ6R1J5PNQucC7xQv18OS3eVb/R47VgBfeBN7KJzu6vHVCjoAJGNxaV0L Cg+/Z+y8JLVP3xB6NJZ5bN4jfskXR8gopSyNa9gbwWg5u8KdmeGSmdwlsd7sPN28AF4q +LIBzRH4ArMTc1nXnRPUuWgewyHp/l+TxvgXAfrlYoiKd18m4BlWXUycZeb1f5qV6uzq M8og==
MIME-Version: 1.0
X-Received: by 10.236.39.172 with SMTP id d32mr35984742yhb.66.1405912408494; Sun, 20 Jul 2014 20:13:28 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 20 Jul 2014 20:13:28 -0700 (PDT)
In-Reply-To: <53CC7BB8.8050604@brainhub.org>
References: <c37f9974d2be4614b9a03392572dd29c@BL2PR03MB242.namprd03.prod.outlook.com> <53CC7BB8.8050604@brainhub.org>
Date: Sun, 20 Jul 2014 20:13:28 -0700
Message-ID: <CACsn0ckiQQCgtDAquhPQwYUx4cfeMJHMV7aUa_626aHocV9Vag@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/769fYXHeCXet1N6eFtksUFY5Znc
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 03:13:31 -0000

On Sun, Jul 20, 2014 at 7:32 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>>  s: Denotes the bit length, here s in {256,384,512}.
>>  p: Denotes the prime number defining the base field.
>>  c: A positive integer used in the representation of the prime
>>          p = 2^s - c.
>
>
> In light of the recent discussion, would an attempt to reach a consensus on
> the value of p first has a higher chance for success at this point?

What is wrong with the program the chair outlined for a competition, and how
does your proposal fix them?

>
> Assuming we want a new p, some arguments for a fixed F(p) are:
>
> * the specs like Curve25519 are "stacks of layers", which prescribe a Curve,
> co-factor multiplication, F(p) operations, and an integer format (fixing p
> seems as one of the the least controversial tasks among these "layers")
> * the performance advantage are mostly attributed to the F(p) operations
> (factor of n improvement in F(p) results in ~ n^2 curve performance)
> * F(p) operations are platform-specific  (if there is assembler code used in
> the "stack", it will likely be restricted to the F(p))
> * F(p) clarity will let hardware vendors focus on optimizations (and not
> worry about the entire stack)
> * same F(p) doesn't prohibit multiple curves over it; ( fixing F(p) first
> and the curve or curves later will allow implementations to proceed sooner
> and enables a compromise )
> * fixed F(p) allows greater flexibility to upgrade the curves (future curves
> will likely have hardware support available, sensitive code resused).
> * fixed F(p) reduces the code size, increases interoperability (currently
> NUMS and Curve25519 are at odds here)

How long do you think this is going to take? It should be taking much
shorter than
the time it takes to design hardware. Furthermore, all of the choices
come with software
implementations liberally licensed.

I don't quite understand your replacement point: many tricks such as
hyper-and-elliptic,
endomorphisms (misleadingly called Koblitz curves), etc. require
primes with some special
properties or use extension fields. Even going to the Kummer surface
in genus 2 involves dropping
field size, so the F(p) will need to be sized differently.

Any future proposal if we need it can use an F(p) defined now, possibly.

>
> This narrow focus leads to these questions regarding the F(p):
> * is a pseudo-Mersenne p an appropriate p for the new curves (the only cons
> to this so far is that such a p fixes the Curve's order to be close to 2^s;
> besides the trivial one that this makes the Pollard-rho faster)
> * Curve25519 uses 255 instead of 256; however, CFRG can choose s=255 for 128
> bit security as well (citing "historic" reasons).

The extra word for the top bit is a pain. The loss of half a bit in
"security" is really de minimis.
>
> Should CFRG seek consensus on the above two questions first?

No, because that is not how this is being done, and there is a strong
(but rebuttable) presumption that
the chair knows what they are doing in organizing WG activities.

Sincerely,
Watson Ladd

>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 20 23:15:27 2014
Return-Path: <crypto@brainhub.org>
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 368B81A0381 for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 23:15:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.831
X-Spam-Level: 
X-Spam-Status: No, score=-1.831 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=0.77, 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 HQFyssqKJnjJ for <cfrg@ietfa.amsl.com>; Sun, 20 Jul 2014 23:15:15 -0700 (PDT)
Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 541921B2B6E for <cfrg@irtf.org>; Sun, 20 Jul 2014 23:15:15 -0700 (PDT)
Received: by mail-ie0-f177.google.com with SMTP id at20so6192661iec.8 for <cfrg@irtf.org>; Sun, 20 Jul 2014 23:15:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=hqwFCqH1mdFk9PHSMVwD3TmU7H2l1dalfFwldb5/9Qg=; b=f0Wz4DyWRa+48M3+yF0NL6k9NFxiVd6jgSJBzfhAWG0Z4rvYwVHPWkTCiuRDzE7wf+ DEFMSR+3n4ArtwyXc898NNF7wUCCIsUcKaPg8n2EZ4E0+hkVSvUbUxd/tZCTo5i9CN3q PPz7zjK7YCduuHFhHH47VEHOn3HZUEvw0egpTwi6oySzK/6fq79OZVm8xIJmD+x913pg JtlLoWFXhohf073/mnjLq6OoDCWB/YtYNSbQGvGHffMvhAKYbgCgAkcDw+V9/goCDAfd Mk1/pgmUVAIc6TG0M9AmeXxPNmotApOyZdCIMahMF/MPP9NVOKuXqSrFOZryNN5RkKL/ +wAw==
X-Gm-Message-State: ALoCoQnctqv5rGDopxw3KB3zHBKvkqsNsSWHUov9szTmkUN9+ZzA8RXAfirg74RYFlzEGpNyeTAw
X-Received: by 10.50.134.232 with SMTP id pn8mr1376049igb.11.1405923314461; Sun, 20 Jul 2014 23:15:14 -0700 (PDT)
Received: from [10.255.234.94] ([207.236.147.203]) by mx.google.com with ESMTPSA id dx6sm35738089igb.15.2014.07.20.23.15.13 for <cfrg@irtf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jul 2014 23:15:13 -0700 (PDT)
Sender: Andrey <andrey@brainhub.org>
Message-ID: <53CCAFEF.8070807@brainhub.org>
Date: Mon, 21 Jul 2014 02:15:11 -0400
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <c37f9974d2be4614b9a03392572dd29c@BL2PR03MB242.namprd03.prod.outlook.com>	<53CC7BB8.8050604@brainhub.org> <CACsn0ckiQQCgtDAquhPQwYUx4cfeMJHMV7aUa_626aHocV9Vag@mail.gmail.com>
In-Reply-To: <CACsn0ckiQQCgtDAquhPQwYUx4cfeMJHMV7aUa_626aHocV9Vag@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gcfNW9hI62ayM-4_lturT3hWxwk
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 06:15:18 -0000

On 7/20/2014 11:13 PM, Watson Ladd wrote:
> On Sun, Jul 20, 2014 at 7:32 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>>>   s: Denotes the bit length, here s in {256,384,512}.
>>>   p: Denotes the prime number defining the base field.
>>>   c: A positive integer used in the representation of the prime
>>>           p = 2^s - c.
>>
>> In light of the recent discussion, would an attempt to reach a consensus on
>> the value of p first has a higher chance for success at this point?
> What is wrong with the program the chair outlined for a competition, and how
> does your proposal fix them

I meant this as an additional nice to have property. I could state a 
specific requirement, e.g. "2^s-C with s max",  but my main point is to 
show a benefit to have a commitment to a fixed p for each s.

>
>> Assuming we want a new p, some arguments for a fixed F(p) are:
>>
>> * the specs like Curve25519 are "stacks of layers", which prescribe a Curve,
>> co-factor multiplication, F(p) operations, and an integer format (fixing p
>> seems as one of the the least controversial tasks among these "layers")
>> * the performance advantage are mostly attributed to the F(p) operations
>> (factor of n improvement in F(p) results in ~ n^2 curve performance)
>> * F(p) operations are platform-specific  (if there is assembler code used in
>> the "stack", it will likely be restricted to the F(p))
>> * F(p) clarity will let hardware vendors focus on optimizations (and not
>> worry about the entire stack)
>> * same F(p) doesn't prohibit multiple curves over it; ( fixing F(p) first
>> and the curve or curves later will allow implementations to proceed sooner
>> and enables a compromise )
>> * fixed F(p) allows greater flexibility to upgrade the curves (future curves
>> will likely have hardware support available, sensitive code resused).
>> * fixed F(p) reduces the code size, increases interoperability (currently
>> NUMS and Curve25519 are at odds here)
> How long do you think this is going to take? It should be taking much
> shorter than
> the time it takes to design hardware. Furthermore, all of the choices
> come with software
> implementations liberally licensed.

If there is an unquestionable winner, similar to an AES finalist, then 
there is no worry about universal adoption.

The issue with ECC has always been fragmented ecosystem. At this point 
we are looking at SuiteB / CFRG's choice split. A consensus on F(p) has 
benefits to get more support behind the CFRG choice.

The availability of software libraries is not helping the products that 
need hardware acceleration.

> I don't quite understand your replacement point: many tricks such as
> hyper-and-elliptic,
> endomorphisms (misleadingly called Koblitz curves), etc. require
> primes with some special
> properties or use extension fields. Even going to the Kummer surface
> in genus 2 involves dropping
> field size, so the F(p) will need to be sized differently.

The importance of these other possibilities should be considered, of 
course. I had current contenders in mind. Fewer choices helps with adoption.


>
> Any future proposal if we need it can use an F(p) defined now, possibly.
Right, a fixed p with typical constrains on p covers many important 
choices of curves. We can hope that a large class of future curves 
should be able to use the same F(p) layer.

There is also hope that national standards may feel motivated to use the 
"standard p" on performance/hardware reasons with "their" curves, as 
opposed to completely defining the entirely new stack.

>
>> This narrow focus leads to these questions regarding the F(p):
>> * is a pseudo-Mersenne p an appropriate p for the new curves (the only cons
>> to this so far is that such a p fixes the Curve's order to be close to 2^s;
>> besides the trivial one that this makes the Pollard-rho faster)
>> * Curve25519 uses 255 instead of 256; however, CFRG can choose s=255 for 128
>> bit security as well (citing "historic" reasons).
> The extra word for the top bit is a pain. The loss of half a bit in
> "security" is really de minimis.
Could you please be more specific about how this brings in a new word?

( Even with the off-the-shelf CPUs, we currently have x86, x86_64, 
AVX2-256, and upcoming AVX-512. Please define your target instruction set)

>> Should CFRG seek consensus on the above two questions first?
> No, because that is not how this is being done, and there is a strong
> (but rebuttable) presumption that
> the chair knows what they are doing in organizing WG activities.
>
> Sincerely,
> Watson Ladd
>
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>
>


From nobody Mon Jul 21 04:45:51 2014
Return-Path: <mcgrew@cisco.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 27D3E1B2D4A for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 04:45:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level: 
X-Spam-Status: No, score=-14.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 KIc7sWwcFqjf for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 04:45:48 -0700 (PDT)
Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99E7C1B2DA4 for <cfrg@irtf.org>; Mon, 21 Jul 2014 04:45:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5439; q=dns/txt; s=iport; t=1405943145; x=1407152745; h=mime-version:subject:from:in-reply-to:date:cc: content-transfer-encoding:message-id:references:to; bh=6wVxGuNhjo/mxVy7rpdPLzC/xHWVjvwS1ma+oOidtrw=; b=OumenAdcwdGavOGa76+easL3DnBtFNgOeUzN3wYuuN3vBkUHb3K9bsSf Amkhb5vbllAzwhmEENM7v4lfGXiw+7CRcfIkCc09Jp8PkFGKxGZdehjCc hV4fh/kDtvjtzTEd3jYRG+SnQg09bMjvwYmrEdk/sdc17NcQkZAOKjmOW 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgUFAB/8zFOtJV2R/2dsb2JhbABZgw5SxXYKh0UBgRoWdoQEAQEDAQEBAQtXCQsFCwtGJzAGEwkSiB8IDb5mF4l+gxAtgTgBJDMHgy6BGAWbJZQvg2AhL4EDAR8
X-IronPort-AV: E=Sophos;i="5.01,700,1400025600"; d="scan'208";a="62642903"
Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by alln-iport-8.cisco.com with ESMTP; 21 Jul 2014 11:45:44 +0000
Received: from rtp-mcgrew-8914.cisco.com (rtp-mcgrew-8914.cisco.com [10.117.10.229]) by rcdn-core-9.cisco.com (8.14.5/8.14.5) with ESMTP id s6LBjfMa014215 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 21 Jul 2014 11:45:42 GMT
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: David McGrew <mcgrew@cisco.com>
In-Reply-To: <87d2d5aspu.fsf@latte.josefsson.org>
Date: Mon, 21 Jul 2014 07:45:51 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <21D5885D-4ED7-40C0-A093-9B4F78AA161D@cisco.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <87d2d5aspu.fsf@latte.josefsson.org>
To: Simon Josefsson <simon@josefsson.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/vLNwENBVClgMWgMMdh2ElkZP7Hs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 11:45:50 -0000

Hi Simon,

On Jul 16, 2014, at 5:39 PM, Simon Josefsson <simon@josefsson.org> =
wrote:

> I'm reviewing the selection criteria.  Some of the requirements are
> rather fine-grained and poorly justified, and appear to limit the =
search
> space.  If taken literally, I believe they exclude some good =
candidates
> and steer the selection into a rather small field of available =
options.
>=20
> I'm fine with R1-R3.
>=20
> "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> writes:
>=20
>> Intellectual Property
>>=20
>>   R4.  Required: available worldwide under reasonable and well
>>   understood licensing terms [1]
>>=20
>>   R5.  Desired: available worldwide under royalty-free licensing
>>   terms [1]
>=20
> I believe non-royalty-free licensing terms is a nonstarter.  I suggest
> collapsing this into:
>=20
> R4'. Required: available for worldwide implementation (by both
>     proprietary and free open source software) and use under well
>     understood and royalty-free licensing terms
>=20
>> Interoperability
>>=20
>>   R6.  Desired: can be used with current software implementations
>>   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>>=20
>>   R7.  Desired: can be used within current ECC standards of TLS,
>>   PKIX, SSH, and IKE [4]
>=20
> I do not see why these are desirable properties, so I disagree they
> should be a selection criteria. =20

These properties are valuable because 1) they lower the cost of adopting =
the new curves, thus making adoption faster or more likely, 2) they =
simplify (at least some) implementations by allowing them to avoid =
implementing an additional ECC scheme and a protocol interface for it.   =
 Many people do see these requirements as important; this was Russ =
Housley=92s point at the mic at the last TLS WG, and I agree with him.   =
Simplicity of design and implementation is a really important point that =
we need to not lose sight of.   Less code, fewer bugs.

I concede that these properties do limit the design space, which is why =
they should be =93desired=94 rather than required.    In my opinion, =
anyway.

What is most important is that people understand which criteria are met =
by a given ECC scheme, so that they understand what they are actually =
getting.=20

> These properties restricts the search
> space.  I would prefer if the CFRG are at liberty to recommend the =
best
> alternative even if it is clearly not re-usable in existing software =
or
> standards.  I would go even further saying that one of the reasons for
> doing this excercise is that the existing software and standards are =
not
> sufficient.
>=20
> On the topic of interoperability, I would propose to add the =
following,
> to me, more important property:
>=20
> Rx. Desired: either a clear algorithm description exists (with clarity
> on byte-ordering etc) or multiple interoperable implementations are
> available.

I agree that this is a good criteria, though I will note that multiple =
interoperable implementations are no substitute for a clear algorithm =
description. =20

>=20
> If some alternative does not appear to be sufficiently specified or
> widely implemented, the CFRG could take on driving a document to =
clarify
> the solution.
>=20
>> Security
>>=20
>>   R8.  Required: amenable to constant-time implementations, to avoid
>>   side channel attacks [2]
>>=20
>>   R9.  Required: resist twist attacks [2]
>>=20
>>   R10.  Required: curve parameters should have good provenance;
>>   random curves should be provably pseudorandom [5]
>>=20
>>   R11.  Desired for key exchange: resist invalid curve attacks [2];
>>   note that complete addition laws help and are thus desirable [2].
>>   (Note that the use of ephemeral keys also resist such attacks.)
>=20
> Instead of R8-R11, I suggest to summarize this more generally

I disagree.   These requirements should be kept separate because they =
allow us to differentiate between different proposed ECC schemes.

> as:
>=20
> R8'. Required: the solution should be secure against reasonable and
> well-understood threats, including (but not limited to and necessarily
> not all of) brute-force, side-channel, invalid-curve, twist attacks, =
or
> maliciously chosen curve parameters.
>=20
> Designing against security threats is a balance, and I would say that
> there are no perfect solutions.  Every solution will have some area
> where they perform less well compared to some other solution.  I =
believe
> the overall choice(s) should reflect well-balanced alternatives with
> strong advantages and some understood disadvantages.
>=20
>>   R12.  Required for PAKE: indistinguishability of curve points from
>>   random strings [2]
>=20
> I do not see why this is a desirable property for TLS, or other IETF
> areas, so I disagree it should be a requirement.

Yeah, I take your point.   In the context of TLS, perhaps this should be =
worded as =93desired: indistinguishability of curve points from random =
strings, so that the curves could also be used in PAKE protocols=94.    =
This would allow for implementation and specification re-use for PAKE, =
which could make a PAKE easier to adopt. =20

David

>=20
> /Simon
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jul 21 07:42:59 2014
Return-Path: <watsonbladd@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 5C45A1A00A9 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 07:42:56 -0700 (PDT)
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=unavailable
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 jE36WKwx5Li8 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 07:42:53 -0700 (PDT)
Received: from mail-yh0-x22a.google.com (mail-yh0-x22a.google.com [IPv6:2607:f8b0:4002:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 285941A0079 for <cfrg@irtf.org>; Mon, 21 Jul 2014 07:42:53 -0700 (PDT)
Received: by mail-yh0-f42.google.com with SMTP id a41so4189918yho.29 for <cfrg@irtf.org>; Mon, 21 Jul 2014 07:42:52 -0700 (PDT)
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=tmqNFFiskiKfLuoOcjj7SQxfHLpl+qoXNJzgUroMNGA=; b=qzk8KRJzY7nuaXTRxGnbV9kTtVRwzH/r/fsIArsYiZcO1o/QvTLa5XwdrxVypPskna q53f86UPFJcmVZjp3Ko9+NLCd4LtlIyDFREHg8wdo3hTTAtHkuEKYb4j8wmjOFy1Fghq W6kkAvSmtdKXqqUxvDDfR79Q2s++4ILxZ8I4f7pAZrkBWDjUzN+GLZD1cBeReG1e/aTX DXjlyIIAxmrFPo0KZ4lDqaJNLYWQDJy/vdmUQDelRn0IPFuamrpcmCy1n7ilC5QP9dso kSYc9LZpDGla6Xv2xUYI00EP3CsBHpUPhFFUEutQINu7TuBiiOP/jAYdX/PQ3YgElTAY BvUA==
MIME-Version: 1.0
X-Received: by 10.236.39.172 with SMTP id d32mr41419374yhb.66.1405953771960; Mon, 21 Jul 2014 07:42:51 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Mon, 21 Jul 2014 07:42:51 -0700 (PDT)
In-Reply-To: <CA+Vbu7zhx47==30VkFOCMG=MOLxX5oOn259G0VWj4xVvs4eZpw@mail.gmail.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk> <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com> <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com> <CA+Vbu7zhx47==30VkFOCMG=MOLxX5oOn259G0VWj4xVvs4eZpw@mail.gmail.com>
Date: Mon, 21 Jul 2014 07:42:51 -0700
Message-ID: <CACsn0cmnq8grw6Zr+A8-sbkiWO3FB9Q+TVQYoobxvb6A2ecNbg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Benjamin Black <b@b3k.us>, "tls@ietf.org" <tls@ietf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ZIji7qkImHsh-jh1VRz7jQfkiy4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 14:42:56 -0000

On Sun, Jul 20, 2014 at 8:56 PM, Benjamin Black <b@b3k.us> wrote:
> On Sat, Jul 19, 2014 at 9:50 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>>
>> On Sat, Jul 19, 2014 at 4:09 PM, Benjamin Black <b@b3k.us> wrote:
>> > "This stems from the fact that in some specific cases an algorithm and a
>> > curve are closely linked, with the two in some sense being carefully
>> > co-designed to gain security and performance."
>> >
>> > I am aware of claims to this effect, but I have seen no evidence of
>> > meaningful security or performance gains that would be seen in practical
>> > deployments in TLS. Similar claims have been made about the dramatic
>> > performance gains from certain curve forms, but the MSR research that
>> > produced the NUMS curves shows only slight performance advantages for
>> > those
>> > forms and only at low security levels. The ECCLib implementations
>> > support
>> > the conclusion that there is little benefit. Please provide specific
>> > supporting documentation for claims of significant, not incremental,
>> > performance or security gains for TLS from this.
>>
>> http://bench.cr.yp.to/
>>
>> Of course, when it comes to TLS, the two round trips cost far more,
>> but when we have 1-RTT the exponentiations become far
>> more critical for performance. Furthermore, CPU is not free, while a
>> server can do other things while it waits.
>>
>
> If TLS 1.2 is a guide, we are 5 years from widespread TLS 1.3 deployment. I
> suggest 2 round trips is a more realistic expectation here.

TLS 1.2 offered no compelling advantages. Everyone hates latency on the web.
>
> Even with a single round trip the network latency dwarfs differences in
> latency between the various curves under discussion. As session resumption
> becomes more widespread, and I am working to see that it does, the cost is
> amortized over multiple connections, making it even less of a concern.
> Regarding a server doing "other things" while it "waits" it seems you are
> not familiar with what actually happens in large scale online services.
> Front end servers terminating customer connections have nothing else to do
> but terminate connections and route requests. If a client is slow to respond
> that just means the server is handling connections/requests from clients
> that are responsive. There is no waiting.

If the server is slow to do a calculation, that reduces the number of clients it
can handle.
>
>>
>> >
>> > If we had evidence of radically improved security or radically improved
>> > performance at a given security level I would agree it would be worth
>> > exploring. For less than 10% performance gain and no security gain I see
>> > no
>> > reason to even consider adopting a new signature algorithm. In the
>> > abstract
>> > it might seem plausible, but when faced with updating a billion devices
>> > along with all of the supporting infrastructure previously hinted at, it
>> > has
>> > to be excluded.
>> >
>> > "My own view is that we should broaden our interpretation of the scope
>> > of
>> > the request to accommodate this fact, providing both new curves, and
>> > where
>> > appropriate, pointers to algorithms for those curves."
>> >
>> > There are multiple available options that support all relevant security
>> > levels, are faster than the NIST curves, and are compatible with
>> > existing
>> > infrastructure. There will always be new curves published. Their
>> > existence
>> > cannot mean we constantly push incompatible algorithms with enormous
>> > adoption costs at scale. If the goal is radically higher performance at
>> > a
>> > given security level and we don't care at all about compatibility, then
>> > why
>> > not consider genus 2 curves or other forms which are known to be
>> > enormously
>> > faster than even the twisted Edwards curves on the table? Throwing out
>> > compatibility is a very slippery slope.
>>
>> I can't think of a reason why hyperelliptic curves shouldn't be on the
>> table.
>> Is your argument that we should keep Weierstrass form despite the
>> barrier at 13 field ops
>> per addition? By my calculation twisted (a=-1) Edwards form enables a
>> 25% speedup, (10 field ops)
>> together with increased ease of avoiding side channels. The 13 field
>> op formula is not complete,
>> and the complete method is not fast.
>>
>
> My argument is that Montgomery is not necessary to achieve the desired
> performance improvements and thus there is no justification at all for
> tossing out the existing protocols.

How does Montgomery involve tossing out an existing protocol? Or
does protocol mean something to me it doesn't to me.

A change in form from short Weierstrass is necessary to have the absolute
best speed. The more speed, the more places we can stick encryption.

>
>>
>> Secondly, scale reduces, not increases, the cost of switching. Write
>> once, deploy many. There are not that
>> many TLS implementations out there. We need a new car, which requires
>> making a garage.
>> If we are going to pay that cost, why not add the extra zero dollars for
>> the
>> Ferrar
>>
>
> There are a dozen relevant implementations and a dozen versions of each. Or
> did you think this would only be implemented going forward? Beyond that, you
> are confusing unit cost with absolute cost and completely ignoring the
> significant infrastructure costs. Where in your write once, deploy many are
> HSMs upgraded? Where are compatibility problems between independent or old
> implementations handled? Where are the customer support costs? The extensive
> interop testing? Write once, deploy many is a myth.
>
> Your Ferrari analogy is apt: expensive, unreliable, and pointless except in
> the service of vanity.
>
>>
>> >
>> > I ask once again that you and the rest of the CFRG leadership along with
>> > the
>> > TLS leadership focus on practical, clear, and specific requirements for
>> > elimination of the NIST curves. Expanding the scope beyond that either
>> > means
>> > a hasty process producing something we are likely to regret in a few
>> > years
>> > (this is a 15+ year commitment!), or a long and careful process
>> > producing
>> > something we will still want around in a few years. Pushing new crypto
>> > on
>> > vendors and customers for the sake of maybe a few percent performance
>> > improvement, and that is exactly what we are discussing here, should
>> > alarm
>> > everyone.
>>
>> We are not eliminating the NIST curves, but providing high speed
>> alternatives that should look like reasonable
>> choice for the next decade. If you don't want Curve25519 in TLS, or
>> whatever emerges, don't enable it.
>>
>
> If we were only discussing new curves, as we should be, that would be true.
> What you and others are promoting is new curves and new protocols. The small
> performance advantage of Curve25519 over a good twisted Edwards curve in
> standard ECDHE does not justify a new protocol.
>
> I wouldn't be so quick to dismiss our deploying it. Might matter in whether
> it is successful.

How is Curve25519 a new protocol?  x-coordinate only transmission was
invented in the same paper with ECC. How does that make it harder to
deploy or not?

>
>>
>> If you want to be alarmed, go read any protocol other than IPsec that
>> the IETF has made that uses cryptography,
>> and try to prove it secure/write a clearly correct implementation. (My
>> particular favorite is PGP) However,
>> I'm pretty sure that DJB and Tanja gathered all the publicly known
>> attacks on ECC on the Safecurves site.
>>
>> >
>> > I will unfortunately not be in Toronto, but a number of others from
>> > Microsoft will be and I hope there can be productive discussion on this
>> > grounded a bit more in the facts of performance, security, and practice.
>>
>> Chrome wants Curve25519. SSH uses Curve25519. Somehow we added
>> Brainpool, which no one uses,
>> without this hullabaloo. Somehow Camelia (a Japanese AES knockoff) is
>> in TLS, despite being less studied
>> than AES. So what makes these new curve so much different?
>>
>
> It would be more honest and accurate to say the Chrome/Google team wants
> more efficient curves. Curve25519 was convenient. This applies to a number
> of folks considering Curve25519, as well. There are now other options which
> do not bring the incompleteness and incompatibility concerns of Curve25519.

But your incompatibility concerns would apply to a twisted Edwards
curve as well,
and to anything not in short Weierstrass form. I see this could be an issue:
how about "RTBD: represent a group, not a Kummer surface, for use in signatures"

(I also don't think its much of one: most of the work is in the field,
not the group.
That said the fixed-based speed of twisted Edwards is mildly useful)
>
> Regarding IETF crypto adoption, you are describing how things should work: a
> variety of systems are specified and they are integrated into protocols and
> deployed by customers, resulting in some becoming very popular and others
> seeing little use. That is not a flaw in the system, it is working as
> designed and it is exactly why I don't understand the point of this request.
> Specify them all, the market will know its own.

I'm going to send this to TLS: I must confess to not having seen much
discussion of this point.
However, with signatures it is impossible to ignore even slightly used
algorithms for risk of failing
to verify something valid. This has already become an issue in DNSSEC.

Sincerely,
Watson Ladd

>
>
> Ben
>
>>
>> Sincerely,
>> Watson Ladd
>> >
>> >
>> > Ben
>> >
>> >
>> >
>> > On Fri, Jul 18, 2014 at 3:29 PM, Paterson, Kenny
>> > <Kenny.Paterson@rhul.ac.uk>
>> > wrote:
>> >>
>> >> Hi Ben,
>> >>
>> >> Thanks for your questions. I agree there is ambiguity. This stems from
>> >> the
>> >> fact that in some specific cases an algorithm and a curve are closely
>> >> linked, with the two in some sense being carefully co-designed to gain
>> >> security and performance.
>> >>
>> >> I understand very well your point that if it is "curves only", then
>> >> certain curves which are incompatible with existing standardized and
>> >> widely deployed algorithms would need to be excluded.
>> >>
>> >> My own view is that we should broaden our interpretation of the scope
>> >> of
>> >> the request to accommodate this fact, providing both new curves, and
>> >> where
>> >> appropriate, pointers to algorithms for those curves. (Note that CFRG
>> >> is
>> >> not being asked to produce I-Ds for either curves or algorithms, though
>> >> that kind of work might inevitably follow depending on the exact
>> >> choices
>> >> we recommend.) Of course, we can and should have discussion on this
>> >> question of broadening of scope, as you rightly suggest below.
>> >>
>> >> Concerning your second question, yes, in an ideal world we would reach
>> >> rough consensus on the requirements, and they would be clear, complete
>> >> and
>> >> unambiguous.
>> >>
>> >> If you are in Toronto next week, I'd be glad to continue the
>> >> conversation,
>> >> otherwise, let's do it on the list.
>> >>
>> >> Regards
>> >>
>> >> Kenny
>> >>
>> >>
>> >> On 18/07/2014 06:51, "Benjamin Black" <b@b3k.us> wrote:
>> >>
>> >> >Kenny,
>> >> >
>> >> >
>> >> >There is rather a lot of ambiguity in these various versions of the
>> >> >requirements. It would be helpful to get clarity on at least two
>> >> > points:
>> >> >
>> >> >
>> >> >1) Is this request for _only_ new curves, as the subject line of your
>> >> >email indicates, or for new "ECC mechanisms" as in the included list
>> >> > from
>> >> >David McGrew? If it is the former, then curves which are incompatible
>> >> >with existing standardized and widely
>> >> > deployed algorithms, at least including ECDHE and ECDSA, must be
>> >> >excluded. If it is the latter, then this request goes far beyond some
>> >> >curves and I suggest deserves a lot more debate on how far down the
>> >> > new
>> >> >cryptography rabbit hole CFRG and the IETF wish to
>> >> > go.
>> >> >
>> >> >
>> >> >2) Is the process here to agree on clear, complete, unambiguous
>> >> >requirements against which candidate curves will be evaluated? I
>> >> > believe
>> >> >the answer is, or should be, yes. However, based on ambiguities in the
>> >> >stated requirements and the subsequent further
>> >> > blurring of those requirements on the mailing list, it seems that
>> >> > might
>> >> >not be the consensus view.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >Ben
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >On Mon, Jul 14, 2014 at 12:49 PM, Paterson, Kenny
>> >> ><Kenny.Paterson@rhul.ac.uk> wrote:
>> >> >
>> >> >Dear CFRG,
>> >> >
>> >> >CFRG has received a formal request from the TLS Working Group for
>> >> >recommendations for new elliptic curves. Specifically, the TLS WG
>> >> > would
>> >> >like CFRG to recommend:
>> >> >
>> >> >- Curves suitable for both key establishment and digital signature
>> >> >  (though the same curves need not be used for both purposes).
>> >> >
>> >> >- One proposed curve or set of curves at the following security
>> >> >  levels: 128-bit (~256-bit curve) and 256-bit (~512 bit curve).
>> >> >  192-bit security is optional.
>> >> >
>> >> >Note that these curves are not intended to supplant current curves in
>> >> >widespread use, but rather to supplement them. Full details of the
>> >> > request
>> >> >can be found in the e-mail from the TLS WG chairs below.
>> >> >
>> >> >The CFRG chairs will coordinate a response to this request from the
>> >> > CFRG
>> >> >readership. Ideally we will reach a rough consensus through discussion
>> >> > on
>> >> >the
>> >> >list and at the upcoming IETF 90 meeting in Toronto. While no deadline
>> >> > is
>> >> >set for our response to the TLS WG, we should aim to have one ready
>> >> > within
>> >> >2 months.
>> >> >
>> >> >We regard this as a major work item for CFRG and one where CFRG can
>> >> >provide real value to the TLS WG and the IETF more widely. So we
>> >> > encourage
>> >> >(and indeed request) active participation from the widest set of
>> >> >participants on this project.
>> >> >
>> >> >As a first step, we propose to discuss the requirements for new curves
>> >> > for
>> >> >a period of 2 weeks. Using an agreed set of requirements, in a second
>> >> >step, we will then evaluate different curve proposals (including
>> >> > extant
>> >> >proposals and any emerging ones) for a period of 4 weeks. In a final
>> >> >period of 2 weeks, we will produce a proposal for the TLS WG and seek
>> >> >consensus on it.
>> >> >
>> >> >
>> >> >The first step, running for 2 weeks, begins here.
>> >> >
>> >> >A starting point for requirements can be found in David McGrew's
>> >> > recent
>> >> >CFRG post
>> >> >(http://www.ietf.org/mail-archive/web/cfrg/current/msg04461.html) and
>> >> >reproduced here:
>> >> >
>> >> >----
>> >> >
>> >> >Simplicity
>> >> >
>> >> >   R1.  Desired: easy to understand and implement [1]
>> >> >
>> >> >Efficiency
>> >> >
>> >> >   R2.  Required: amenable to compact implementations and fast
>> >> >   implementations, across both small and large processors [1]
>> >> >
>> >> >   R3.  Desired: re-use components between signatures and key exchange
>> >> >   algorithms [3]
>> >> >
>> >> >Intellectual Property
>> >> >
>> >> >   R4.  Required: available worldwide under reasonable and well
>> >> >   understood licensing terms [1]
>> >> >
>> >> >   R5.  Desired: available worldwide under royalty-free licensing
>> >> >   terms [1]
>> >> >
>> >> >Interoperability
>> >> >
>> >> >   R6.  Desired: can be used with current software implementations
>> >> >   (using different curve parameters) of TLS, PKIX, SSH, and IKE [4]
>> >> >
>> >> >   R7.  Desired: can be used within current ECC standards of TLS,
>> >> >   PKIX, SSH, and IKE [4]
>> >> >
>> >> >Security
>> >> >
>> >> >   R8.  Required: amenable to constant-time implementations, to avoid
>> >> >   side channel attacks [2]
>> >> >
>> >> >   R9.  Required: resist twist attacks [2]
>> >> >
>> >> >   R10.  Required: curve parameters should have good provenance;
>> >> >   random curves should be provably pseudorandom [5]
>> >> >
>> >> >   R11.  Desired for key exchange: resist invalid curve attacks [2];
>> >> >   note that complete addition laws help and are thus desirable [2].
>> >> >   (Note that the use of ephemeral keys also resist such attacks.)
>> >> >
>> >> >   R12.  Required for PAKE: indistinguishability of curve points from
>> >> >   random strings [2]
>> >> >
>> >> >Footnotes:
>> >> >
>> >> >   [1] Original criteria set out for the Advanced Encryption Standard,
>> >> >       which is equally applicable to ECC.  National Institute of
>> >> >       Standards and Technology (NIST) of the United States, 1998.
>> >> >
>> >> >   [2] Daniel J. Bernstein and Tanja Lange. SafeCurves: choosing safe
>> >> >       curves for elliptic-curve cryptography.
>> >> >       http://safecurves.cr.yp.to <http://safecurves.cr.yp.to/>
>> >> ><http://safecurves.cr.yp.to/>, accessed
>> >> >April 2014.
>> >> >
>> >> >   [3] Criteria identified by David McGrew, 2014.
>> >> >
>> >> >   [4] Criteria identified by Russ Housley, TLS WG meeting at IETF89.
>> >> >
>> >> >   [5] Criteria widely acknowledged on CFRG email list during 2014.
>> >> >
>> >> >----
>> >> >
>> >> >
>> >> >Our first request, then, is that you consider these requirements, and
>> >> >provide your views on their appropriateness, completeness, and
>> >> > individual
>> >> >classifications (required/desired). We will continue that discussion
>> >> > for
>> >> > 2
>> >> >weeks, until the end of the IETF meeting in Toronto. The chairs will
>> >> > then
>> >> >compile a consensus-based list of requirements of the above form,
>> >> > after
>> >> >which we will move to the second step.
>> >> >
>> >> >We thank you in advance for your participation in this important task.
>> >> >
>> >> >Regards
>> >> >
>> >> >Alexei, Kenny and Kevin (CFRG co-chairs)
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >On 11/07/2014 05:44, "Joseph Salowey (jsalowey)" <jsalowey@cisco.com>
>> >> >wrote:
>> >> >
>> >> >>CFRG Chairs and Security ADs,
>> >> >>
>> >> >>TLS WG would like to formally request that the
>> >> >>CFRG make a recommendation for new ECC group support for TLS
>> >> >>and other similar applications. Specifically, we request that CFRG
>> >> >>recommend the following:
>> >> >>
>> >> >>- Curves suitable for both key establishment and digital signature
>> >> >>  (though the same curves need not be used for both purposes).
>> >> >>
>> >> >>- One proposed curve or set of curves at the following security
>> >> >>  levels: 128-bit (~256-bit curvee) and 256-bit (~512 bit curve).
>> >> >>  192-bit security is optional.
>> >> >>
>> >> >>If the same curves are used for key establishment and signature, this
>> >> >>would be a recommendation for two curves.  If different curves are
>> >> >>used, this would be a recommendation for four curves.
>> >> >>
>> >> >>In addition to a recommendation, we also request that the CFRG
>> >> >> provide
>> >> >>a technical rationale for their selection.
>> >> >>
>> >> >>If the CFRG does not feel comfortable making a single set of
>> >> >>selections, we propose that they select a small number of potential
>> >> >>choices with a detailed technical analysis of the advantages and
>> >> >>disadvantages of each selection and that the Security ADs sponsor a
>> >> >>process (perhaps via SAAG) to narrow it down to the specification
>> >> >>above.
>> >> >>
>> >> >>For clarity, we are not currently requesting that CFRG replace or
>> >> >>profile the existing curves in RFC4492 and RFC 7027, although we are
>> >> >>also not ruling out such an effort in the future. The current request
>> >> >>is for a new set of curves to complement the existing ones.
>> >> >>
>> >> >>Please reach out to us if this is unclear or further information is
>> >> >>required.
>> >> >>
>> >> >>Thanks,
>> >> >>
>> >> >>TLS Chairs
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >_______________________________________________
>> >> >Cfrg mailing list
>> >> >Cfrg@irtf.org
>> >> >http://www.irtf.org/mailman/listinfo/cfrg
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> > _______________________________________________
>> > Cfrg mailing list
>> > Cfrg@irtf.org
>> > http://www.irtf.org/mailman/listinfo/cfrg
>> >
>>
>>
>>
>> --
>> "Those who would give up Essential Liberty to purchase a little
>> Temporary Safety deserve neither  Liberty nor Safety."
>> -- Benjamin Franklin
>
>



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Mon Jul 21 07:47:21 2014
Return-Path: <rsalz@akamai.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 DABCA1A010D for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 07:47:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=unavailable
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 qahg2A8b09G9 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 07:47:15 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (prod-mail-xrelay07.akamai.com [72.246.2.115]) by ietfa.amsl.com (Postfix) with ESMTP id 6F0CB1A00B9 for <cfrg@irtf.org>; Mon, 21 Jul 2014 07:47:12 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 3B17A47639; Mon, 21 Jul 2014 14:47:11 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay07.akamai.com (Postfix) with ESMTP id 34C5647685; Mon, 21 Jul 2014 14:47:11 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub5.kendall.corp.akamai.com [172.27.105.21]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id 2F2348004A; Mon, 21 Jul 2014 14:47:11 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([169.254.1.95]) by USMA1EX-CASHUB5.kendall.corp.akamai.com ([172.27.105.21]) with mapi; Mon, 21 Jul 2014 10:47:10 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Watson Ladd <watsonbladd@gmail.com>, Benjamin Black <b@b3k.us>, "tls@ietf.org" <tls@ietf.org>
Date: Mon, 21 Jul 2014 10:47:09 -0400
Thread-Topic: [TLS] [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: Ac+k8hLl+hmFdwo/SF6v76cPHuDX0gAAGQlg
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C7185928AAB5@USMBX1.msg.corp.akamai.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk> <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com> <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com> <CA+Vbu7zhx47==30VkFOCMG=MOLxX5oOn259G0VWj4xVvs4eZpw@mail.gmail.com> <CACsn0cmnq8grw6Zr+A8-sbkiWO3FB9Q+TVQYoobxvb6A2ecNbg@mail.gmail.com>
In-Reply-To: <CACsn0cmnq8grw6Zr+A8-sbkiWO3FB9Q+TVQYoobxvb6A2ecNbg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/J1ZVR3uA7o4N0TrNfizB5dOsaoM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] [TLS] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 14:47:17 -0000

> TLS 1.2 offered no compelling advantages.

Yes.  TLS 1.3 will offer some good reasons to adopt, from the simplicity, s=
ecurity, privacy, and efficiency areas.  The comparison to TLS 1.2 doesn't =
hold.

	/r$

-- =20
Principal Security Engineer
Akamai Technologies, Cambridge, MA
IM: rsalz@jabber.me; Twitter: RichSalz


From nobody Mon Jul 21 08:39:25 2014
Return-Path: <joachim@strombergson.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 5CC351A0174 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 08:39:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.6
X-Spam-Level: 
X-Spam-Status: No, score=-1.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3] 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 D0hikpKCDXv6 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 08:39:19 -0700 (PDT)
Received: from vsp01.oderland.com (vsp01-out.oderland.com [91.201.60.219]) by ietfa.amsl.com (Postfix) with SMTP id 148051A0171 for <cfrg@irtf.org>; Mon, 21 Jul 2014 08:39:18 -0700 (PDT)
X-Scanned-Cookie: b12a05d12b23ae622f7215184e090f6a8f986438
Received: from susano.oderland.com (unknown [91.201.63.143]) by vsp-out.oderland.com (Halon Mail Gateway) with ESMTPSA; Mon, 21 Jul 2014 17:38:51 +0200 (CEST)
Received: from 2.67.227.87.static.g-sn.siw.siwnet.net ([87.227.67.2]:36441 helo=tunnis.local) by susano.oderland.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.82) (envelope-from <Joachim@Strombergson.com>) id 1X9FgK-000LzT-Nk; Mon, 21 Jul 2014 17:39:16 +0200
Message-ID: <53CD3422.5040407@Strombergson.com>
Date: Mon, 21 Jul 2014 17:39:14 +0200
From: =?ISO-8859-1?Q?Joachim_Str=F6mbergson?= <Joachim@Strombergson.com>
Organization: Kryptologik
User-Agent: Postbox 3.0.9 (Macintosh/20140129)
MIME-Version: 1.0
To: Simon Josefsson <simon@josefsson.org>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <87d2d5aspu.fsf@latte.josefsson.org>
In-Reply-To: <87d2d5aspu.fsf@latte.josefsson.org>
X-Enigmail-Version: 1.2.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gTA9F_3SFlaXdjxGoZgYOHhgoIQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Joachim@Strombergson.com
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: Mon, 21 Jul 2014 15:39:24 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Aloha!

Simon Josefsson wrote:
>> R5.  Desired: available worldwide under royalty-free licensing 
>> terms [1]
> 
> I believe non-royalty-free licensing terms is a nonstarter.  I
> suggest collapsing this into:
> 
> R4'. Required: available for worldwide implementation (by both 
> proprietary and free open source software) and use under well 
> understood and royalty-free licensing terms

Please generalize to free, open source. Period.

If someone (like me for example) would like to develop en open source HW
implementation, the "software" distinction really is a hindrance that I
think stems from ignorance that there are open HW implementations too.

(This software only designation is unfortunately pretty common in open
licenses for algorithms.)

- -- 
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJTzTQhAAoJEF3cfFQkIuyNOPEQAI//IM3AoZXtyVsjoQgJmBJI
hnubKUUNQSUbpIPwY2aw1IB/wCYyaJsHK5Sj3L/C4QrOTUnB18XE659Kw+7wXK1R
YczXzYYgUaIYM0zVU5zyLA9yZbYcEom63VEFJM7Imm7fgFICtCDEQWVxtVgLoB9C
4Ch+C/ZHz7jpRc3nAow2UgAxSXa2gCaFD/SFtcIC/kXNR1n1TOaWacAo6IYWdkMm
i+bAx2z3Tdd9Dd776sjn/w1iM6JPrXP5Nk5k2YS1reSCK5GJPAoIU6zrj3VFl74m
5XKM5wF71I/oAazKiTiomcxQe8x4cGRzq2XajV47hy2Q//x9JOg3VcF2rxQ/M+Yl
soLEi+Q/bFT8WKPT6Uxux2KnEZeRFf515XVhh4/7aWZdy6QuWFRsfNATplNxzmo8
hCMUf6VRmk5TSGIhdI67LSw4OzM2xDwkgkH2Gv+I2/fNoHfKkD92uIU8OmLdrWW7
Dfq+ldf9wD3rxV1VI/smf3zOer6OoYLw+VHj4uz6VAAMqzXL+bLz/b9duo7KU0jU
q/hdkkV7535GU1xWAk+aHCqmzhJ49UZFZ8AQUphz6LjJQKNaP65V035CUsglPdF7
8wSztJgNy2vciyhpGhq+FAEwmgD6wcHnlxSmX4oN8NTqjbWqCykP1RKeWL1iK9zD
vM/npwR08KacJ0TWEWBO
=ehra
-----END PGP SIGNATURE-----


From nobody Mon Jul 21 08:57:15 2014
Return-Path: <b@b3k.us>
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 B7AF91A02E3 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 08:57:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 FHzrYpLIjy4o for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 08:57:12 -0700 (PDT)
Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 38C971A02E0 for <cfrg@irtf.org>; Mon, 21 Jul 2014 08:57:12 -0700 (PDT)
Received: by mail-wg0-f45.google.com with SMTP id x12so6638701wgg.4 for <cfrg@irtf.org>; Mon, 21 Jul 2014 08:57:09 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=jccVL5DSmEMay/qgLNeRad3Sx6StJuJnFrMU49nYLCo=; b=QcE2P8lZRnEsp5k2iXsGHhpqyy/onTpLIDgOiI5RvCHOg5yPrzAL94bRxWMDkVCJgr LuzIoAi/U5+53BU5Z6i6qgKrI9NEvpCCXNyFcJsJdjI8rty2IbvlqfHu8Abbhpbphgl/ eDiq9vvHP3oiDtpsf7D/X09r6sJ19G4j6JBMKTEFkApUPp0XX4CFzfjAqRKhZ78uWkUh f2lsh0wzjZrarEImr3OUchfy+5zNn+lKHSc9wffLs0h+rM+OfW3waB/Q8ykQwK5PlRUW x+HbbEWekSkXGmWO0ANXp4dgyKTLcgohKYnJcXM0yx44s3zG81lEA/gzEnOH2+jol8VQ 5w7w==
X-Gm-Message-State: ALoCoQkehrSu9X9l99Hbv17O7YMqzQugXzZPXYmLUeqQjDqr6pKLsRlZulwkp8RCAS1rkn7rn+cX
X-Received: by 10.194.71.52 with SMTP id r20mr23469639wju.113.1405958229576; Mon, 21 Jul 2014 08:57:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Mon, 21 Jul 2014 08:56:49 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C7185928AAB5@USMBX1.msg.corp.akamai.com>
References: <CFE9F2DE.26E5A%kenny.paterson@rhul.ac.uk> <CA+Vbu7zQ-k5i74ZpoOyNPoFJqjWKYVkHwkAYD+1uyAvtMmTBmg@mail.gmail.com> <CFEF5C78.27B54%kenny.paterson@rhul.ac.uk> <CA+Vbu7yVm5TPNoe=erPvUsq8P7vXj2HmauG2PpzPtKuvCsdSkA@mail.gmail.com> <CACsn0c=+9z=1YP8bFN5Uw4tNPyPLjNZO3vVm3_vr_gCaJj1svA@mail.gmail.com> <CA+Vbu7zhx47==30VkFOCMG=MOLxX5oOn259G0VWj4xVvs4eZpw@mail.gmail.com> <CACsn0cmnq8grw6Zr+A8-sbkiWO3FB9Q+TVQYoobxvb6A2ecNbg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185928AAB5@USMBX1.msg.corp.akamai.com>
From: Benjamin Black <b@b3k.us>
Date: Mon, 21 Jul 2014 08:56:49 -0700
Message-ID: <CA+Vbu7zRnfZEVHVwCXRWqUDUZXqQBQYB3W6nb94RJ+4zkzN+ww@mail.gmail.com>
To: "Salz, Rich" <rsalz@akamai.com>
Content-Type: multipart/alternative; boundary=047d7bfcec50d7ed8004feb6283c
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pGGFeh8EXeQ2eETNHoJJINR80sg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Formal request from TLS WG to CFRG for new elliptic 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: Mon, 21 Jul 2014 15:57:13 -0000

--047d7bfcec50d7ed8004feb6283c
Content-Type: text/plain; charset=UTF-8

On Mon, Jul 21, 2014 at 7:47 AM, Salz, Rich <rsalz@akamai.com> wrote:

> > TLS 1.2 offered no compelling advantages.
>
> Yes.  TLS 1.3 will offer some good reasons to adopt, from the simplicity,
> security, privacy, and efficiency areas.  The comparison to TLS 1.2 doesn't
> hold.
>
>
We are all speculating here, but I don't see how TLS 1.3 will be different
from every other new protocol/version. These things take years, even if
there are some large early adopters.


Ben

--047d7bfcec50d7ed8004feb6283c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On M=
on, Jul 21, 2014 at 7:47 AM, Salz, Rich <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:rsalz@akamai.com" target=3D"_blank">rsalz@akamai.com</a>&gt;</span> wr=
ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">

<div class=3D"">&gt; TLS 1.2 offered no compelling advantages.<br>
<br>
</div>Yes. =C2=A0TLS 1.3 will offer some good reasons to adopt, from the si=
mplicity, security, privacy, and efficiency areas. =C2=A0The comparison to =
TLS 1.2 doesn&#39;t hold.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br></div></div></blockquote><div><=
br></div><div>We are all speculating here, but I don&#39;t see how TLS 1.3 =
will be different from every other new protocol/version. These things take =
years, even if there are some large early adopters.</div>

<div><br></div><div><br></div><div>Ben</div></div></div></div>

--047d7bfcec50d7ed8004feb6283c--


From nobody Mon Jul 21 10:07:26 2014
Return-Path: <dbrown@certicom.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 A093E1A00C3 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 10:07:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 XrYlYDMRCngF for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 10:07:15 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 110A91A00C2 for <cfrg@irtf.org>; Mon, 21 Jul 2014 10:07:10 -0700 (PDT)
Received: from xct101cnc.rim.net ([10.65.161.201]) by mhs214cnc.rim.net with ESMTP/TLS/AES128-SHA; 21 Jul 2014 13:07:06 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT101CNC.rim.net ([fe80::9c22:d9c:c906:c488%16]) with mapi id 14.03.0174.001; Mon, 21 Jul 2014 13:07:05 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Twist security question 
Thread-Index: Ac+lBjJ/jspEZYkdTLK4AZ6myj9axg==
Date: Mon, 21 Jul 2014 17:07:05 +0000
Message-ID: <20140721170703.6656149.88919.16917@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============2019853508=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/IuUb06jGt_dNCGQj8oMo1iOF-xY
Subject: [Cfrg] Twist security question
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: Mon, 21 Jul 2014 17:07:22 -0000

--===============2019853508==
Content-Type: multipart/alternative; boundary="===============0235247169=="
MIME-Version: 1.0

--===============0235247169==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

U2luY2UgQ3VydmUyNTUxOSBESCBwcm90b2NvbCBsZXRzIGluZm8gYWJvdXQgcHJpdmF0ZSBrZXkg
b3V0IHZpYSB0aGUgdHdpc3QgKHRoZW4ga2RmLCBtYWMgYW5kIGNpcGhlciksIGl0IHNlZW1zIHRv
IHJlcXVpcmUgYW4gZXh0cmEgY29tcHV0YXRpb25hbCBhc3N1bXB0aW9uLCByaWdodD/CoAoKUHJv
YmFibHkgdGhpcyBoYXMgYmVlbiBjb25zaWRlcmVkIGJlZm9yZS4gTWF5YmUgdGhlcmUncyBhIHJl
ZHVjdGlvbiB0byBhIHN0YW5kYXJkIHByb2JsZW0sIG9yIGEgZ2VuZXJpYyBncm91cCBtb2RlbCBw
cm9vZiwgYXQgbGVhc3QsIHdoaWNoIG91Z2h0IHRvIGJlIGVhc3kuCgpCZXN0IHJlZ2FyZHMsIAoK
LS0gRGFuCgpQUyBOLiBTbWFydCdzIGNvbW1lbnRzIGFib3V0IHR3aXN0IHNlY3VyaXR5IGdvdCBt
ZSB0aGlua2luZyBhYm91dCB0aGlzLg==

--===============0235247169==
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/plain;"><styl=
e> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }=
</style> </head> <body data-blackberry-caret-color=3D"#00a8df"><div>Since C=
urve25519 DH protocol lets info about private key out via the twist (then k=
df, mac and cipher), it seems to require an extra computational assumption,=
 right?&nbsp;</div><div><br></div><div>Probably this has been considered be=
fore. Maybe there's a reduction to a standard problem, or a generic group m=
odel proof, at least, which ought to be easy.</div><div><br></div><div>Best=
 regards, <br><br>-- Dan</div><div><br></div><div>PS N. Smart's comments ab=
out twist security got me thinking about this.</div></body></html>
--===============0235247169==--

--===============2019853508==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQxNDM2MzhaMIGkMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMQ0wCwYDVQQLEwRBTUVSMQswCQYDVQQLEwJDQTEUMBIGA1UE
CxMLTWlzc2lzc2F1Z2ExDjAMBgNVBAsTBVVzZXJzMRIwEAYDVQQDEwlEYW4gQnJvd24xIjAgBgkq
hkiG9w0BCQEWE2Ricm93bkBjZXJ0aWNvbS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
AOeGGgTmotlA0vPS6BzGw3AuPnPHRJeU6ZCVs9Jrqo51z+saUmKgc6LbMPUqTw9/9MBfA8++2YZG
DfAQ0hdEQHbZn1yl3uNLUJB6KZTeKaLPY5wWVuXvB7k2VJBFQv6u239/fXLJKcTLfTAPd+ILwa0p
NUDW0dw+x6t+LeGzh10lAgMBAAGjggOYMIIDlDALBgNVHQ8EBAMCBaAwRAYJKoZIhvcNAQkPBDcw
NTAOBggqhkiG9w0DAgICAIAwDgYIKoZIhvcNAwQCAgCAMAcGBSsOAwIHMAoGCCqGSIb3DQMHMBcG
CSsGAQQBgjcUAgQKHggAVQBzAGUAcjApBgNVHSUEIjAgBgorBgEEAYI3CgMEBggrBgEFBQcDBAYI
KwYBBQUH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.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 902F51A01C8 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 10:35:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.557
X-Spam-Level: *
X-Spam-Status: No, score=1.557 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, 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 m0mgzeX_LSD1 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 10:35:52 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 723421A01AC for <cfrg@irtf.org>; Mon, 21 Jul 2014 10:35:52 -0700 (PDT)
Received: from [192.168.1.124] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 8475F3AA12; Mon, 21 Jul 2014 10:34:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1405964043; bh=MvUaefHFchY6iOAnQKs5eNAPA38E9AgCATlPkQgfFCc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=kGPZRdCK5cqN0CwiO5Oi2XaAPQcCmDi3ynztZknNfdZ4pSPeX4UzmBYA8jNair6Gk 9sPIe4g3rpO4Is/Pe6P86wXlIGbsnhfZirbU4koXqp+gIY75LTLEq44+54KBLMHVp4 PI1uJU0fJdux1nNy7Qo/v9GmQ39ZGiLHuIY7MNfU=
Content-Type: multipart/alternative; boundary="Apple-Mail=_9C4B3953-284C-4394-87E0-CD77D39A00F7"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <20140721170703.6656149.88919.16917@certicom.com>
Date: Mon, 21 Jul 2014 10:35:47 -0700
Message-Id: <31A4333C-1CDF-4734-88CB-D62E66618E5E@shiftleft.org>
References: <20140721170703.6656149.88919.16917@certicom.com>
To: Dan Brown <dbrown@certicom.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/jCAVTSlvOCDeplVwebTfVrymmUs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Twist security question
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: Mon, 21 Jul 2014 17:35:54 -0000

--Apple-Mail=_9C4B3953-284C-4394-87E0-CD77D39A00F7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Yeah, I=92ve wondered about that too.  If you give the attacker the =
point on the twist, it probably gives away information in E(F^2) as well =
which she wouldn't obtain otherwise.  But in Curve25519 you hash the =
point, and in the random oracle the attack is going to be really weak.

The attacker supplies a point P on the twist, and gets (information =
derived from) the hash of some other point Q on the twist.  She can=92t =
force Q into a subgroup other than {identity} or the whole q-torsion.  =
She can=92t guess Q if it=92s in the q-torsion.  So it seems she can=92t =
learn anything from that hash.  Likewise, she can=92t predict anything =
about the hash (except whether it=92s H(identity)), so she can=92t =
attack the rest of the protocol with it.

In the ROM there's not even an attack through discrete log or CDH on the =
twist, because no honest party ever outputs a point on the twist.

This isn=92t a rigorous argument, though, because I don=92t see an =
obvious proof that the attacker can=92t narrow down Q on the twist.  =
That is, maybe she can figure out that your public key corresponds to at =
most a million =93twist-public-keys=94 G_twist^secret, and then figure =
out which one by sending G_twist.

But it seems that the attacker cannot learn anything at all in the ROM =
without solving a sort of twisting problem:
Given (G, G^x) on the curve where x is in some big set (the Curve25519 =
public key set is weird),
And some sort of fixed-DDH oracle on the curve, because she can interact =
with the real protocol,
Find points (H, H^x) with order q on the twist with non-negligible =
probability.

Cheers,
=97 Mike

On Jul 21, 2014, at 10:07 AM, Dan Brown <dbrown@certicom.com> wrote:

> Since Curve25519 DH protocol lets info about private key out via the =
twist (then kdf, mac and cipher), it seems to require an extra =
computational assumption, right?=20
>=20
> Probably this has been considered before. Maybe there's a reduction to =
a standard problem, or a generic group model proof, at least, which =
ought to be easy.
>=20
> Best regards,=20
>=20
> -- Dan
>=20
> PS N. Smart's comments about twist security got me thinking about =
this.
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--Apple-Mail=_9C4B3953-284C-4394-87E0-CD77D39A00F7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>Yeah, I=92ve wondered about that too. &nbsp;If =
you give the attacker the point on the twist, it probably gives away =
information in E(F^2) as well which she wouldn't obtain otherwise. =
&nbsp;But in Curve25519 you hash the point, and in the random oracle the =
attack is going to be really weak.</div><div><br></div><div>The attacker =
supplies a point P on the twist, and gets (information derived from) the =
hash of some other point Q on the twist. &nbsp;She can=92t force Q into =
a subgroup other than {identity} or the whole q-torsion. &nbsp;She can=92t=
 guess Q if it=92s in the q-torsion. &nbsp;So it seems she can=92t learn =
anything from that hash. &nbsp;Likewise, she can=92t predict anything =
about the hash (except whether it=92s H(identity)), so she can=92t =
attack the rest of the protocol with it.</div><div><br></div><div>In the =
ROM there's not even an attack through discrete log or CDH on the twist, =
because no honest party ever outputs a point on the =
twist.</div><div><br></div><div>This isn=92t a rigorous argument, =
though, because I don=92t see an obvious proof that the attacker can=92t =
narrow down Q on the twist. &nbsp;That is, maybe she can figure out that =
your public key corresponds to at most a million =93twist-public-keys=94 =
G_twist^secret, and then figure out which one by sending =
G_twist.</div><div><br></div><div>But it seems that the attacker cannot =
learn anything at all in the ROM without solving a sort of twisting =
problem:</div><div>Given (G, G^x) on the curve where x is in some big =
set (the Curve25519 public key set is weird),</div><div>And some sort of =
fixed-DDH oracle on the curve, because she can interact with the real =
protocol,</div><div>Find points (H, H^x) with order q on the twist with =
non-negligible probability.</div><div><br></div><div>Cheers,</div><div>=97=
 Mike</div><br><div><div>On Jul 21, 2014, at 10:07 AM, Dan Brown &lt;<a =
href=3D"mailto:dbrown@certicom.com">dbrown@certicom.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div data-blackberry-caret-color=3D"#00a8df" =
style=3D"font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(38, =
38, 38); font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"><div>Since Curve25519 DH protocol lets =
info about private key out via the twist (then kdf, mac and cipher), it =
seems to require an extra computational assumption, =
right?&nbsp;</div><div><br></div><div>Probably this has been considered =
before. Maybe there's a reduction to a standard problem, or a generic =
group model proof, at least, which ought to be =
easy.</div><div><br></div><div>Best regards,<span =
class=3D"Apple-converted-space">&nbsp;</span><br><br>-- =
Dan</div><div><br></div><div>PS N. Smart's comments about twist security =
got me thinking about =
this.</div>_______________________________________________<br>Cfrg =
mailing list<br><a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br><a =
href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.org/mai=
lman/listinfo/cfrg</a></div></blockquote></div><br></body></html>=

--Apple-Mail=_9C4B3953-284C-4394-87E0-CD77D39A00F7--


From nobody Mon Jul 21 10:51:39 2014
Return-Path: <rransom.8774@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 BE82A1A0053 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 10:51:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 s7LVNDT6PdYE for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 10:51:37 -0700 (PDT)
Received: from mail-qg0-x234.google.com (mail-qg0-x234.google.com [IPv6:2607:f8b0:400d:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E552D1A000E for <cfrg@irtf.org>; Mon, 21 Jul 2014 10:51:36 -0700 (PDT)
Received: by mail-qg0-f52.google.com with SMTP id f51so5636568qge.39 for <cfrg@irtf.org>; Mon, 21 Jul 2014 10:51:36 -0700 (PDT)
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:content-transfer-encoding; bh=15SGDZl8c7ocDpsfzvuXnGDkjnYrsSVAO5Ng2QlFFpI=; b=c9OoDt1wG5Ix8uTTeiRGB1LG2uaSyd4p9PCEUq199A7Y0cZunjiv8BixARp95xaFf2 89jt4NEpn8zVcVSvSEF2kHFqc28Ahi1gU00/v1jr4cNVcbGuLNJ9sp39rONgMJ2LWTe3 TlSGHRhsDfx5eDrZeFJ6ozqRVEvgM9v6jNQD81so4vC5Q+wk2cIDCxfUALqRO9ArSeHV vA5XyLMpvCnZs3fpfqEzJgZ2t2C318h87HcZVwsJ6pUt213IhkckGLT3NcpOEA82ww6O 8Xwm3FIEAJE0DJ6nQqdZ/LvJoDX1a0rgy7uXD2xFaChaFy7va2vvOxaImS+bQ1dcFQKw CAxg==
MIME-Version: 1.0
X-Received: by 10.224.137.135 with SMTP id w7mr30142232qat.52.1405965096102; Mon, 21 Jul 2014 10:51:36 -0700 (PDT)
Received: by 10.140.98.233 with HTTP; Mon, 21 Jul 2014 10:51:36 -0700 (PDT)
In-Reply-To: <31A4333C-1CDF-4734-88CB-D62E66618E5E@shiftleft.org>
References: <20140721170703.6656149.88919.16917@certicom.com> <31A4333C-1CDF-4734-88CB-D62E66618E5E@shiftleft.org>
Date: Mon, 21 Jul 2014 10:51:36 -0700
Message-ID: <CABqy+sp9DO1YzKRy5qvK2hvoNroL+wdWdrYWLttHDfgwSMv8rQ@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/jzk0udnklaFdh5orw5g2Un_h9Sw
Cc: Dan Brown <dbrown@certicom.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Twist security question
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: Mon, 21 Jul 2014 17:51:37 -0000

On 7/21/14, Michael Hamburg <mike@shiftleft.org> wrote:
> Yeah, I=E2=80=99ve wondered about that too.  If you give the attacker the=
 point on
> the twist, it probably gives away information in E(F^2) as well which she
> wouldn't obtain otherwise.  But in Curve25519 you hash the point, and in =
the
> random oracle the attack is going to be really weak.
>
> The attacker supplies a point P on the twist, and gets (information deriv=
ed
> from) the hash of some other point Q on the twist.  She can=E2=80=99t for=
ce Q into a
> subgroup other than {identity} or the whole q-torsion.  She can=E2=80=99t=
 guess Q if
> it=E2=80=99s in the q-torsion.  So it seems she can=E2=80=99t learn anyth=
ing from that hash.
>  Likewise, she can=E2=80=99t predict anything about the hash (except whet=
her it=E2=80=99s
> H(identity)), so she can=E2=80=99t attack the rest of the protocol with i=
t.

This does leak whether the honest party is using a Montgomery-ladder
implementation or an implementation which decompresses to Edwards form
on only one of the curves, which is relevant to anonymity systems.

> In the ROM there's not even an attack through discrete log or CDH on the
> twist, because no honest party ever outputs a point on the twist.

Is there any useful attack against systems which use M=C3=B6ller's
curve-or-twist trick for generating ciphertexts indistinguishable from
uniform?

Is there any useful attack against the obvious variant of M=C3=B6ller's
technique where a single scalar is used on both the curve and the
twist?  (I didn't realize that M=C3=B6ller had specified to use independent
scalars until the Elligator paper pointed it out.)

If those systems are not vulnerable to any useful attack (and they
certainly should be secure), then Curve25519 is clearly safe too.


Robert Ransom


From nobody Mon Jul 21 14:09:56 2014
Return-Path: <dbrown@certicom.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 EBECA1A0426 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 14:09:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 hW4Ds05jit4a for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 14:09:53 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 587CE1A0334 for <cfrg@irtf.org>; Mon, 21 Jul 2014 14:09:53 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs211cnc.rim.net with ESMTP/TLS/AES128-SHA; 21 Jul 2014 17:09:52 -0400
Received: from XCT116CNC.rim.net (10.65.161.216) by XCT107CNC.rim.net (10.65.161.207) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 21 Jul 2014 17:09:51 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT116CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Mon, 21 Jul 2014 17:09:51 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Prime order + twisty DH benefit (theoretical)
Thread-Index: Ac+lKBwZKLQiRF9VS3ietodFNgImmA==
Date: Mon, 21 Jul 2014 21:09:50 +0000
Message-ID: <20140721210944.6656149.59544.16939@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============0621958836=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/2n60JcsZ5vubmR43cg1DloUttsQ
Subject: [Cfrg] Prime order + twisty DH benefit (theoretical)
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: Mon, 21 Jul 2014 21:09:55 -0000

--===============0621958836==
Content-Type: multipart/alternative; boundary="===============2073439786=="
MIME-Version: 1.0

--===============2073439786==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

4oCOU29ycnksIGlmIHRoZSBmb2xsb3dpbmcgaGFzIGJlZW4gZGlzY3Vzc2VkIHByZXZpb3VzbHku
IEN1cnZlMjU1MTkgaGFzIGNvZmFjdG9yIDggYmVjYXVzZSBpdCB1c2VzIGEgZGlmZmVyZW50IHNo
YXBlIGN1cnZlLgoKSWYgY29mYWN0b3IgbXVsdGlwbGljYXRpb24gREggaXMgdXNlZCwgdGhpcyBn
aXZlcyB0aGUgc2hhcmVkIHNlY3JldHMgYWJvdXQgMyBiaXRzIG9mIGluZm9ybWF0aW9uIHRoZW9y
ZXRpY2FsIGJpYXMuIE9mIGNvdXJzZSwgdGhlIGtkZiBldGMgc2hvdWxkIGhpZGUgdGhhdCBiaWFz
IGp1c3QgZmluZSwgYnV0IGl0IHdvdWxkIGJlIHRoZW9yZXRpY2FsbHkgc2ltcGxlciB0byBoYXZl
IGEgc2hhcmVkIHNlY3JldCB3aXRoIHBvdGVudGlhbGx5IG5vIGJpYXMsIGVnIHByaW1lIG9yZGVy
IGZvciBib3RoIGN1cnZlIGFuZCB0d2lzdC4KCkJlc3QgcmVnYXJkcywgCgotLSBEYW4=

--===============2073439786==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/plain;"><styl=
e> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }=
</style> </head> <body data-blackberry-caret-color=3D"#00a8df"><div>=E2=80=
=8ESorry, if the following has been discussed previously. Curve25519 has co=
factor 8 because it uses a different shape curve.</div><div><br name=3D"BB1=
0" caretmarkerset=3D"INVALID" class=3D"markedForCaretMarkerRemoval"></div><=
div>If cofactor multiplication DH is used, this gives the shared secrets ab=
out 3 bits of information theoretical bias. Of course, the kdf etc should h=
ide that bias just fine, but it would be theoretically simpler to have a sh=
ared secret with potentially no bias, eg prime order for both curve and twi=
st.</div><div><br name=3D"BB10" caretmarkerset=3D"INVALID" class=3D"markedF=
orCaretMarkerRemoval"></div><div>Best regards, <br><br>-- Dan</div></body><=
/html>
--===============2073439786==--

--===============0621958836==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSB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6BJaf4iPy41BjBG/
rSXR7bbBhMb0M0ndc8JNVOnDop2A/NmNPMwOW89/JeWxNvqZZn19xEPLwimAPeabIBoN4bH359ed
LJqWOx3hDxkWYfb4JRn4tsJzKmP0IDvqrO/HajvwtW3t6rkFN1h0OmHGa9yT9UXO8o++iu4xggFf
MIIBWwIBATBeMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAi
BgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRgIKbandRwAEAAAFajAHBgUrDgMCGqBd
MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDcyMTIxMDk0MVow
IwYJKoZIhvcNAQkEMRYEFGDSDl/GIQNbht6I8chxceJyqNxkMAsGCSqGSIb3DQEBBQSBgJmkmFOX
RlksY4eX/LnryuvJkv1dLBzAj1nvokDnh9elGxR/Zl3AfFjQBTkaLocnh6TBBmsm0GAgob+wSbCM
L+maJjp0fWtr3pRiKod/Yx0lpPHsnXJI7A4gTmhupobex+M/JzsNc4vB2SaDSJXcBzuyMj6l7Lhn
7NtGDFSjkP0kAAAAAAAA

--===============0621958836==--


From nobody Mon Jul 21 16:05:19 2014
Return-Path: <mike@shiftleft.org>
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 D16491A0299 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 16:05:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 TcGyRl4yJpfy for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 16:05:17 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E8E11A0282 for <cfrg@irtf.org>; Mon, 21 Jul 2014 16:05:17 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 62AA03AA12; Mon, 21 Jul 2014 16:03:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1405983809; bh=af8UDhSAFzZZ0oRbucliCpsCb8IPqFzoQVUO1L9McNc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Unz4Y7HZoW7OEgtz0QpXWh6Fx4f0Vjxva1zkq8dxVvZ1inudTS3JB0GnBxDyXAgOB XIOrtWDWr+CpX9gj0XbBeA7lQKwV9KAjhbOXl2BPpAADfV9X03bwLA4Ck30XSjU7XW XmM/EHEly8AmkyiPfLW76SJttPVTA55V6LvsBhRs=
Content-Type: multipart/alternative; boundary="Apple-Mail=_F74F54F1-6D1E-48D0-A093-B46521BCDC04"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <20140721210944.6656149.59544.16939@certicom.com>
Date: Mon, 21 Jul 2014 16:05:13 -0700
Message-Id: <8386CCEB-50DE-45CB-9318-D36E03F33212@shiftleft.org>
References: <20140721210944.6656149.59544.16939@certicom.com>
To: Dan Brown <dbrown@certicom.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sy2dF2HvYNEkO5Zes1cRWKNahuY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Prime order + twisty DH benefit (theoretical)
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: Mon, 21 Jul 2014 23:05:19 -0000

--Apple-Mail=_F74F54F1-6D1E-48D0-A093-B46521BCDC04
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Dan, this doesn=E2=80=99t seem right.  The shared secret on an ordinary =
curve has at least one bit of information, because not every value in =
the field is the x-coordinate of a point.  Even if the input can be =
either on the twist or the curve, so that every x-coordinate can come =
out (not the case in current NIST curves), the adversary can see whether =
the shared secret is on the curve or the twist.

Amplifying this to 4 bits of information isn=E2=80=99t going to change =
much.

So you can=E2=80=99t get to no bias, unless you do a completely =
unwarranted hack involving Elligator.

So you should use a KDF no matter what, and the KDF must be able to hide =
the small amount of bias.

Is your argument that people who use Curve25519 with no KDF are slightly =
more edgy than people who use NISTp256 ECDH with no KDF?  In this case, =
you should add another bit, because the high bit out of Curve25519 is =
always clear.  This is more serious than the cofactor.  But I still =
don=E2=80=99t think this is a good argument.

Cheers,
=E2=80=94 Mike

On Jul 21, 2014, at 2:09 PM, Dan Brown <dbrown@certicom.com> wrote:

> =E2=80=8ESorry, if the following has been discussed previously. =
Curve25519 has cofactor 8 because it uses a different shape curve.
>=20
> If cofactor multiplication DH is used, this gives the shared secrets =
about 3 bits of information theoretical bias. Of course, the kdf etc =
should hide that bias just fine, but it would be theoretically simpler =
to have a shared secret with potentially no bias, eg prime order for =
both curve and twist.
>=20
> Best regards,=20
>=20
> -- Dan
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--Apple-Mail=_F74F54F1-6D1E-48D0-A093-B46521BCDC04
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>Dan, this doesn=E2=80=99t seem right. &nbsp;The =
shared secret on an ordinary curve has at least one bit of information, =
because not every value in the field is the x-coordinate of a point. =
&nbsp;Even if the input can be either on the twist or the curve, so that =
every x-coordinate can come out (not the case in current NIST curves), =
the adversary can see whether the shared secret is on the curve or the =
twist.</div><div><br></div><div>Amplifying this to 4 bits of information =
isn=E2=80=99t going to change much.</div><div><br></div><div>So you =
can=E2=80=99t get to no bias, unless you do a completely unwarranted =
hack involving Elligator.</div><div><br></div><div>So you should use a =
KDF no matter what, and the KDF must be able to hide the small amount of =
bias.</div><div><br></div><div>Is your argument that people who use =
Curve25519 with no KDF are slightly more edgy than people who use =
NISTp256 ECDH with no KDF? &nbsp;In this case, you should add another =
bit, because the high bit out of Curve25519 is always clear. &nbsp;This =
is more serious than the cofactor. &nbsp;But I still don=E2=80=99t think =
this is a good argument.</div><div><br></div><div>Cheers,</div><div>=E2=80=
=94 Mike</div><br><div><div>On Jul 21, 2014, at 2:09 PM, Dan Brown =
&lt;<a href=3D"mailto:dbrown@certicom.com">dbrown@certicom.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div data-blackberry-caret-color=3D"#00a8df" =
style=3D"font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(38, =
38, 38); font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"><div>=E2=80=8ESorry, if the following =
has been discussed previously. Curve25519 has cofactor 8 because it uses =
a different shape curve.</div><div><br name=3D"BB10" =
caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>If cofactor =
multiplication DH is used, this gives the shared secrets about 3 bits of =
information theoretical bias. Of course, the kdf etc should hide that =
bias just fine, but it would be theoretically simpler to have a shared =
secret with potentially no bias, eg prime order for both curve and =
twist.</div><div><br name=3D"BB10" caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>Best regards,<span =
class=3D"Apple-converted-space">&nbsp;</span><br><br>-- =
Dan</div>_______________________________________________<br>Cfrg mailing =
list<br><a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br><a =
href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.org/mai=
lman/listinfo/cfrg</a></div></blockquote></div><br></body></html>=

--Apple-Mail=_F74F54F1-6D1E-48D0-A093-B46521BCDC04--


From nobody Mon Jul 21 16:07:29 2014
Return-Path: <hhalpin@w3.org>
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 F037B1A0083 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 16:07:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.903
X-Spam-Level: 
X-Spam-Status: No, score=-6.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-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 M9c-ZDHuWDog for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 16:07:24 -0700 (PDT)
Received: from jay.w3.org (ssh.w3.org [128.30.52.60]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA00D1A0024 for <cfrg@irtf.org>; Mon, 21 Jul 2014 16:07:23 -0700 (PDT)
Received: from [70.42.157.30] (helo=[10.6.106.163]) by jay.w3.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <hhalpin@w3.org>) id 1X9Mfy-00010w-0J for cfrg@irtf.org; Mon, 21 Jul 2014 19:07:22 -0400
Message-ID: <53CD9D23.6030401@w3.org>
Date: Tue, 22 Jul 2014 01:07:15 +0200
From: Harry Halpin <hhalpin@w3.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/FmO12pVISIqXi8wZy5YVeo6Jop8
Subject: [Cfrg] Request from W3C Web Crypto WG to adopt "Security Considerations" document?
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: Mon, 21 Jul 2014 23:07:29 -0000

CFRG,

  The W3C Web Cryptography Working Group has an open issue on Security
Considerations for the Web Cryptography API [1], with details in the
bugzilla [2].

 Graham Steel (INRIA), with feedback from Rich Salz and help from the
W3C staff, is willing to help create a "per-algorithm" security
consideration Informational RFC for the algorithms listed in the Web
Cryptography API (see his blog post [3]). However, as the landscape of
algorithms is changing and the Web Cryptography Working Group may have a
finite lifespan, we thought the CFRG would be a place to host such a
document as the CFRG will continue after the Web Crypto Working Group
ends and the CFRG obviously has the experience and expertise to help
make sure such a document reaches the high standards the Internet
community deserves.

Would the CFRG be OK with publishing such a document and maintaining it,
if we took the effort to produce the first draft and the W3C helped in
maintaining it? We think such a list of known attacks on a popular
subset of algorithms would be useful also to other IETF and W3C
standards, although the need is most pressing with the Web Crypto API.

Although I will not be at IETF Toronto, Wendy Seltzer from the W3C will
be, and we hope this can be discussed during the "AOB" session at the
CFRG meeting.

Please inform us over at the Web Cryptography WG if this proposal is
accepted by CFRG.

  cheers,
    harry

[1]https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html
[2]https://www.w3.org/Bugs/Public/show_bug.cgi?id=25607
[3]http://cryptosense.com/choice-of-algorithms-in-the-w3c-crypto-api/


From nobody Mon Jul 21 16:19:47 2014
Return-Path: <dbrown@certicom.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 B8DD51A00E5 for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 16:19:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 Yc2N2yaPpIxp for <cfrg@ietfa.amsl.com>; Mon, 21 Jul 2014 16:19:44 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id D76471A0085 for <cfrg@irtf.org>; Mon, 21 Jul 2014 16:19:43 -0700 (PDT)
Received: from xct106cnc.rim.net ([10.65.161.206]) by mhs211cnc.rim.net with ESMTP/TLS/AES128-SHA; 21 Jul 2014 19:19:28 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT106CNC.rim.net ([fe80::d824:6c98:60dc:3918%16]) with mapi id 14.03.0174.001; Mon, 21 Jul 2014 19:19:27 -0400
From: Dan Brown <dbrown@certicom.com>
To: Michael Hamburg <mike@shiftleft.org>
Thread-Topic: [Cfrg] Prime order + twisty DH benefit (theoretical)
Thread-Index: Ac+lOjcrKLQiRF9VS3ietodFNgImmA==
Date: Mon, 21 Jul 2014 23:19:27 +0000
Message-ID: <20140721231901.6656149.47385.16948@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============0478696127=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pBCRoignGEc58AdCPr6wzcrsVyg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Prime order + twisty DH benefit (theoretical)
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: Mon, 21 Jul 2014 23:19:45 -0000

--===============0478696127==
Content-Type: multipart/alternative; boundary="===============1213212277=="
MIME-Version: 1.0

--===============1213212277==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

TXkgbWlzdGFrZSwgc29ycnkgYWdhaW4uIFRoYW5rcyBNaWtlIGZvciBleHBsYWluaW5nIHRoYXQu
CgpXYXNuJ3QgcmVhbGx5IHRyeWluZyB0byBjb21wYXJlIHAyNTYgYW5kIDI1NTE5OiB3YXMganVz
dCB0cnlpbmcgdG8gZ2V0IGJlc3Qgb2YgYm90aC4KCkJlc3QgcmVnYXJkcywgCgotLSBEYW4KRnJv
bTogTWljaGFlbCBIYW1idXJnClNlbnQ6IE1vbmRheSwgSnVseSAyMSwgMjAxNCA3OjA1IFBNClRv
OiBEYW4gQnJvd24KQ2M6IGNmcmdAaXJ0Zi5vcmcKU3ViamVjdDogUmU6IFtDZnJnXSBQcmltZSBv
cmRlciArIHR3aXN0eSBESCBiZW5lZml0ICh0aGVvcmV0aWNhbCkKCkRhbiwgdGhpcyBkb2VzbuKA
mXQgc2VlbSByaWdodC4gwqBUaGUgc2hhcmVkIHNlY3JldCBvbiBhbiBvcmRpbmFyeSBjdXJ2ZSBo
YXMgYXQgbGVhc3Qgb25lIGJpdCBvZiBpbmZvcm1hdGlvbiwgYmVjYXVzZSBub3QgZXZlcnkgdmFs
dWUgaW4gdGhlIGZpZWxkIGlzIHRoZSB4LWNvb3JkaW5hdGUgb2YgYSBwb2ludC4gwqBFdmVuIGlm
IHRoZSBpbnB1dCBjYW4gYmUgZWl0aGVyIG9uIHRoZSB0d2lzdCBvciB0aGUgY3VydmUsIHNvIHRo
YXQgZXZlcnkgeC1jb29yZGluYXRlIGNhbiBjb21l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ydGljb20uY29tPiB3cm90ZToKCuKAjlNvcnJ5LCBpZiB0aGUgZm9s
bG93aW5nIGhhcyBiZWVuIGRpc2N1c3NlZCBwcmV2aW91c2x5LiBDdXJ2ZTI1NTE5IGhhcyBjb2Zh
Y3RvciA4IGJlY2F1c2UgaXQgdXNlcyBhIGRpZmZlcmVudCBzaGFwZSBjdXJ2ZS4KCklmIGNvZmFj
dG9yIG11bHRpcGxpY2F0aW9uIERIIGlzIHVzZWQsIHRoaXMgZ2l2ZXMgdGhlIHNoYXJlZCBzZWNy
ZXRzIGFib3V0IDMgYml0cyBvZiBpbmZvcm1hdGlvbiB0aGVvcmV0aWNhbCBiaWFzLiBPZiBjb3Vy
c2UsIHRoZSBrZGYgZXRjIHNob3VsZCBoaWRlIHRoYXQgYmlhcyBqdXN0IGZpbmUsIGJ1dCBpdCB3
b3VsZCBiZSB0aGVvcmV0aWNhbGx5IHNpbXBsZXIgdG8gaGF2ZSBhIHNoYXJlZCBzZWNyZXQgd2l0
aCBwb3RlbnRpYWxseSBubyBiaWFzLCBlZyBwcmltZSBvcmRlciBmb3IgYm90aCBjdXJ2ZSBhbmQg
dHdpc3QuCgpCZXN0IHJlZ2FyZHMswqAKCi0tIERhbgpfX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fXwpDZnJnIG1haWxpbmcgbGlzdApDZnJnQGlydGYub3JnCmh0
dHA6Ly93d3cuaXJ0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9jZnJnCgoK

--===============1213212277==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head></head><body data-blackberry-caret-color=3D"#00a8df" style=3D"b=
ackground-color: rgb(255, 255, 255); line-height: initial;"><div style=3D"w=
idth: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-ser=
if; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255=
, 255, 255);">My mistake, sorry again. Thanks Mike for explaining that.</di=
v>                                                                         =
                                                            <div style=3D"w=
idth: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-ser=
if; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255=
, 255, 255);"><br></div><div style=3D"width: 100%; font-size: initial; font=
-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-al=
ign: initial; background-color: rgb(255, 255, 255);">Wasn't really trying t=
o compare p256 and 25519: was just trying to get best of both.</div><div st=
yle=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', =
sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color:=
 rgb(255, 255, 255);"><br name=3D"BB10" caretmarkerset=3D"INVALID" class=3D=
"markedForCaretMarkerRemoval"></div>                                       =
                                                                           =
                   <div style=3D"font-size: initial; font-family: Calibri, =
'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; back=
ground-color: rgb(255, 255, 255);">Best regards, <br><br>-- Dan</div>      =
                                                                           =
                                                                           =
                            <table width=3D"100%" style=3D"background-color=
:white;border-spacing:0px;"> <tbody><tr><td colspan=3D"2" style=3D"font-siz=
e: initial; text-align: initial; background-color: rgb(255, 255, 255);">   =
                                           <div id=3D"_persistentHeader" st=
yle=3D"border-style: solid none none; border-top-color: rgb(181, 196, 223);=
 border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alph=
a Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Michael Hamburg=
</div><div><b>Sent: </b>Monday, July 21, 2014 7:05 PM</div><div><b>To: </b>=
Dan Brown</div><div><b>Cc: </b>cfrg@irtf.org</div><div><b>Subject: </b>Re: =
[Cfrg] Prime order + twisty DH benefit (theoretical)</div></div></td></tr><=
/tbody></table><div style=3D"border-style: solid none none; border-top-colo=
r: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-alig=
n: initial; background-color: rgb(255, 255, 255);"></div><br><div id=3D"_or=
iginalContent" style=3D"">

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">


<div>Dan, this doesn=E2=80=99t seem right. &nbsp;The shared secret on an or=
dinary curve has at least one bit of information, because not every value i=
n the field is the x-coordinate of a point. &nbsp;Even if the input can be =
either on the twist or the curve, so that every x-coordinate
 can come out (not the case in current NIST curves), the adversary can see =
whether the shared secret is on the curve or the twist.</div>
<div><br>
</div>
<div>Amplifying this to 4 bits of information isn=E2=80=99t going to change=
 much.</div>
<div><br>
</div>
<div>So you can=E2=80=99t get to no bias, unless you do a completely unwarr=
anted hack involving Elligator.</div>
<div><br>
</div>
<div>So you should use a KDF no matter what, and the KDF must be able to hi=
de the small amount of bias.</div>
<div><br>
</div>
<div>Is your argument that people who use Curve25519 with no KDF are slight=
ly more edgy than people who use NISTp256 ECDH with no KDF? &nbsp;In this c=
ase, you should add another bit, because the high bit out of Curve25519 is =
always clear. &nbsp;This is more serious than
 the cofactor. &nbsp;But I still don=E2=80=99t think this is a good argumen=
t.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>=E2=80=94 Mike</div>
<br>
<div>
<div>On Jul 21, 2014, at 2:09 PM, Dan Brown &lt;<a href=3D"mailto:dbrown@ce=
rticom.com">dbrown@certicom.com</a>&gt; wrote:</div>
<br class=3D"Apple-interchange-newline">
<blockquote type=3D"cite">
<div style=3D"font-family:Calibri,'Slate Pro',sans-serif; color:rgb(38,38,3=
8); font-size:12px; font-style:normal; font-variant:normal; font-weight:nor=
mal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:st=
art; text-indent:0px; text-transform:none; white-space:normal; widows:auto;=
 word-spacing:0px">
<div>=E2=80=8ESorry, if the following has been discussed previously. Curve2=
5519 has cofactor 8 because it uses a different shape curve.</div>
<div><br>
</div>
<div>If cofactor multiplication DH is used, this gives the shared secrets a=
bout 3 bits of information theoretical bias. Of course, the kdf etc should =
hide that bias just fine, but it would be theoretically simpler to have a s=
hared secret with potentially no
 bias, eg prime order for both curve and twist.</div>
<div><br>
</div>
<div>Best regards,<span class=3D"Apple-converted-space">&nbsp;</span><br>
<br>
-- Dan</div>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_BLANK">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a></div>
</blockquote>
</div>
<br>


<br><!--end of _originalContent --></div></body></html>
--===============1213212277==--

--===============0478696127==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQxNDM2MzhaMIGkMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMQ0wCwYDVQQLEwRBTUVSMQswCQYDVQQLEwJDQTEUMBIGA1UE
CxMLTWlzc2lzc2F1Z2ExDjAMBgNVBAsTBVVzZXJzMRIwEAYDVQQDEwlEYW4gQnJvd24xIjAgBgkq
hkiG9w0BCQEWE2Ricm93bkBjZXJ0aWNvbS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
AOeGGgTmotlA0vPS6BzGw3AuPnPHRJeU6ZCVs9Jrqo51z+saUmKgc6LbMPUqTw9/9MBfA8++2YZG
DfAQ0hdEQHbZn1yl3uNLUJB6KZTeKaLPY5wWVuXvB7k2VJBFQv6u239/fXLJKcTLfTAPd+ILwa0p
NUDW0dw+x6t+LeGzh10lAgMBAAGjggOYMIIDlDALBgNVHQ8EBAMCBaA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JU8bFnv
HuAO01DxlvXluFkVKG4r9PyGDtqnthqpbom+2qJkOS66Lm9gnDvYgKEOkzVc2VeVzlDyWl/vPsxV
heRnCu2tvNRQAAAAAAAA

--===============0478696127==--


From nobody Tue Jul 22 03:40:30 2014
Return-Path: <pgut001@cs.auckland.ac.nz>
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 A63321A0AB5 for <cfrg@ietfa.amsl.com>; Tue, 22 Jul 2014 03:40:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RP_MATCHES_RCVD=-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 pp0zpHXoUXBf for <cfrg@ietfa.amsl.com>; Tue, 22 Jul 2014 03:40:18 -0700 (PDT)
Received: from mx2.auckland.ac.nz (mx2.auckland.ac.nz [130.216.125.245]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C26D61A0AB4 for <cfrg@irtf.org>; Tue, 22 Jul 2014 03:40:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1406025618; x=1437561618; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=IcsCmaWWOruvsmYVGsky+rFys8pSSSIIOXESBu5FHik=; b=WgsNDrEFEH3IqwzyXbua3chxs5x10/Fy+vyj58c3HUjt2akyve6SARAa g6yPYZAqg0DnYuc6AJS3Ubdc2kjWlhTynWQS/aZn0fbBZfsINEpbvp27d 1ZEp6MfnnbKfe2zTGxTZmO6stLm/XRkJY4als7WFBh7VDDWDA3SbiXE4I g=;
X-IronPort-AV: E=Sophos;i="5.01,709,1399982400"; d="scan'208";a="265151160"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.125 - Outgoing - Outgoing
Received: from uxchange10-fe3.uoa.auckland.ac.nz ([130.216.4.125]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES128-SHA; 22 Jul 2014 22:40:15 +1200
Received: from UXCN10-5.UoA.auckland.ac.nz ([169.254.5.247]) by uxchange10-fe3.UoA.auckland.ac.nz ([130.216.4.125]) with mapi id 14.03.0174.001; Tue, 22 Jul 2014 22:40:15 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "tls@ietf.org" <tls@ietf.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [TLS] [Cfrg] Formal request from TLS WG to CFRG for new elliptic curves
Thread-Index: Ac+lmVKBp1FFM2f1RJS1LzlOl6ghTQ==
Date: Tue, 22 Jul 2014 10:40:15 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C738EFAE9B3@uxcn10-5.UoA.auckland.ac.nz>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/c4LhCfZSLMgkKyW4D1F-Ik0lS68
Subject: Re: [Cfrg] [TLS] Formal request from TLS WG to CFRG for new elliptic 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: Tue, 22 Jul 2014 10:40:23 -0000

"Salz, Rich" <rsalz@akamai.com> writes:=0A=
>> TLS 1.2 offered no compelling advantages.=0A=
>=0A=
>Yes.  TLS 1.3 will offer some good reasons to adopt, from the simplicity,=
=0A=
>security, privacy, and efficiency areas.  The comparison to TLS 1.2 doesn'=
t=0A=
>hold.=0A=
=0A=
TLS 1.3 will also offer a really strong reason to defer adoption for as lon=
g=0A=
as possible: Unlike the previous tweaks of SSL, which did lead to the=0A=
frankensteinian implementation we have to deal with now but at least were=
=0A=
close to the original, TLS 1.3 is pretty much an entirely new protocol.  I=
=0A=
have no idea what it'll end up looking like once the design committee has=
=0A=
finished adding every feature everyone's ever wanted in a protocol to it, b=
ut=0A=
it's most likely going to be TLS 2.0 even if it's called TLS 1.3.  That mea=
ns=0A=
a completely new implementation from scratch rather than trying to add yet=
=0A=
another layer to what started long ago as an SSL implementation, and deploy=
ing=0A=
a new protocol up against SSL/TLS, even if it's sold as TLS-something, will=
 be=0A=
a huge uphill battle.  Look at how long TLS 1.2 adoption took, outside of w=
eb=0A=
browsers it's still very much the exception rather than the rule (and even =
for=0A=
web browsers there are some amazing calisthenics they perform in order to m=
ake=0A=
things work for non-TLS 1.2 servers and devices).=0A=
=0A=
Peter.=


From nobody Tue Jul 22 11:26:49 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 0B7211B2B92 for <cfrg@ietfa.amsl.com>; Tue, 22 Jul 2014 11:26:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 euqH3mDNFqIK for <cfrg@ietfa.amsl.com>; Tue, 22 Jul 2014 11:26:46 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0077.outbound.protection.outlook.com [213.199.154.77]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 38FB01B2B91 for <cfrg@irtf.org>; Tue, 22 Jul 2014 11:26:45 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB384.eurprd03.prod.outlook.com (10.141.10.20) with Microsoft SMTP Server (TLS) id 15.0.990.7; Tue, 22 Jul 2014 18:26:43 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0990.007; Tue, 22 Jul 2014 18:26:43 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Harry Halpin <hhalpin@w3.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Request from W3C Web Crypto WG to adopt "Security Considerations" document?
Thread-Index: AQHPpTiUOLwQAa0+o0SvSKtW2u0xbZusJ3QA
Date: Tue, 22 Jul 2014 18:26:42 +0000
Message-ID: <CFF422C0.28814%kenny.paterson@rhul.ac.uk>
References: <53CD9D23.6030401@w3.org>
In-Reply-To: <53CD9D23.6030401@w3.org>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [31.133.156.135]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02801ACE41
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(24454002)(189002)(199002)(51704005)(479174003)(80022001)(81342001)(2656002)(64706001)(99396002)(77982001)(36756003)(50986999)(76176999)(46102001)(87936001)(76482001)(561944003)(66066001)(83072002)(19273905006)(79102001)(85852003)(31966008)(21056001)(101416001)(4396001)(86362001)(74482001)(85306003)(74662001)(74502001)(107046002)(107886001)(15975445006)(83506001)(92726001)(81542001)(19580395003)(92566001)(54356999)(20776003)(106116001)(83322001)(19580405001)(15395725005)(15202345003)(95666004)(106356001)(105586002)(563064011); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB384; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <58BAF3A1BFCC69438BFB4EB583AD67B3@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/exnuCo01_tBsflmVPBpMOOV6Ac8
Subject: Re: [Cfrg] Request from W3C Web Crypto WG to adopt "Security Considerations" document?
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: Tue, 22 Jul 2014 18:26:49 -0000

Dear Harry,

The CFRG would be interested in being involved in this activity. As you
say, it should have wider applicability than W3C, and there's a good
chance that CFRG will have a greater longevity than the WebCrypto working
group.

With luck, the CFRG session here in Toronto tomorrow will not be so packed
with other things that we can't squeeze a few words from Wendy Seltzer
into the AoB. The CFRG chairs are also around all week if she wants to
catch us beforehand.

Regards,

Kenny=20

On 21/07/2014 19:07, "Harry Halpin" <hhalpin@w3.org> wrote:

>CFRG,
>
>  The W3C Web Cryptography Working Group has an open issue on Security
>Considerations for the Web Cryptography API [1], with details in the
>bugzilla [2].
>
> Graham Steel (INRIA), with feedback from Rich Salz and help from the
>W3C staff, is willing to help create a "per-algorithm" security
>consideration Informational RFC for the algorithms listed in the Web
>Cryptography API (see his blog post [3]). However, as the landscape of
>algorithms is changing and the Web Cryptography Working Group may have a
>finite lifespan, we thought the CFRG would be a place to host such a
>document as the CFRG will continue after the Web Crypto Working Group
>ends and the CFRG obviously has the experience and expertise to help
>make sure such a document reaches the high standards the Internet
>community deserves.
>
>Would the CFRG be OK with publishing such a document and maintaining it,
>if we took the effort to produce the first draft and the W3C helped in
>maintaining it? We think such a list of known attacks on a popular
>subset of algorithms would be useful also to other IETF and W3C
>standards, although the need is most pressing with the Web Crypto API.
>
>Although I will not be at IETF Toronto, Wendy Seltzer from the W3C will
>be, and we hope this can be discussed during the "AOB" session at the
>CFRG meeting.
>
>Please inform us over at the Web Cryptography WG if this proposal is
>accepted by CFRG.
>
>  cheers,
>    harry
>
>[1]https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html
>[2]https://www.w3.org/Bugs/Public/show_bug.cgi?id=3D25607
>[3]http://cryptosense.com/choice-of-algorithms-in-the-w3c-crypto-api/
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Tue Jul 22 23:03:45 2014
Return-Path: <tanja@hyperelliptic.org>
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 1314C1A0007 for <cfrg@ietfa.amsl.com>; Tue, 22 Jul 2014 23:03:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 O-57wPcRUG5E for <cfrg@ietfa.amsl.com>; Tue, 22 Jul 2014 23:03:41 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id A92191A0011 for <cfrg@irtf.org>; Tue, 22 Jul 2014 23:03:41 -0700 (PDT)
Received: (qmail 6407 invoked from network); 23 Jul 2014 06:03:42 -0000
Received: from unknown (HELO hyperelliptic.org) (131.155.71.33) by mace.cs.uic.edu with SMTP; 23 Jul 2014 06:03:42 -0000
Received: (qmail 13007 invoked by uid 1000); 23 Jul 2014 06:03:14 -0000
Date: Wed, 23 Jul 2014 08:03:14 +0200
From: Tanja Lange <tanja@hyperelliptic.org>
To: tls@ietf.org, cfrg@irtf.org
Message-ID: <20140723060313.GU28481@cph.win.tue.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/0LjVnw5T4Qu3FPp5FRTchWQ5mEw
Cc: "D. J. Bernstein" <djb@cr.yp.to>
Subject: [Cfrg] [djb@cr.yp.to: Re: New curve-selection paper]
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 06:03:44 -0000

There seems to be some issue with emails from DJB to ietf.org

----- Forwarded message from "D. J. Bernstein" <djb@cr.yp.to> -----

Subject: New curve-selection paper
From: "D. J. Bernstein" <djb@cr.yp.to>
Date: 23 Jul 2014 05:32:50 -0000
To: tls@ietf.org, cfrg@irtf.org
Message-ID: <20140723053250.30025.qmail@cr.yp.to>

"How to manipulate curve standards: a white paper for the black hat"
 
Authors (alphabetical order): Bernstein, Chou, Chuengsatiansup, Hülsing,
Lange, Niederhagen, van Vredendaal
 
http://safecurves.cr.yp.to/bada55/bada55-20140722.pdf
 
---Dan

----- End forwarded message -----


From nobody Wed Jul 23 14:34:02 2014
Return-Path: <internet-drafts@ietf.org>
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 6BB531A0B0E; Wed, 23 Jul 2014 14:34:01 -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 iTy5tcJTlZau; Wed, 23 Jul 2014 14:34:00 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 683901A0404; Wed, 23 Jul 2014 14:34:00 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.2.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20140723213400.18686.14504.idtracker@ietfa.amsl.com>
Date: Wed, 23 Jul 2014 14:34:00 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/afSkIQZnjywBIaCfAKuWZpcxtio
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
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 21:34:01 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
 This draft is a work item of the Crypto Forum Research Group Working Group of the IETF.

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-irtf-cfrg-chacha20-poly1305-00.txt
	Pages           : 38
	Date            : 2014-07-23

Abstract:
   This document defines the ChaCha20 stream cipher, as well as the use
   of the Poly1305 authenticator, both as stand-alone algorithms, and as
   a "combined mode", or Authenticated Encryption with Additional Data
   (AEAD) algorithm.

   This document does not introduce any new crypto, but is meant to
   serve as a stable reference and an implementation guide.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-irtf-cfrg-chacha20-poly1305-00


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Wed Jul 23 15:28:08 2014
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 8D5981A0322 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 15:28:06 -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 8QbqROfmufDX for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 15:28:05 -0700 (PDT)
Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6DD5E1B297C for <Cfrg@irtf.org>; Wed, 23 Jul 2014 15:28:05 -0700 (PDT)
Received: by mail-we0-f173.google.com with SMTP id q58so1867960wes.18 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 15:28:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:date:message-id:subject:from:to:content-type;  bh=Cvj3L6793UwN6ws/GYKeI0lAPXmonA/WhiS/ZdBSRPg=; b=Jn2c2X+SK1ovzKXqGRm9etFW77awb/PvT5EY/9wUZEO5rQPDeYhsQTC4TcA1sc0Bs/ 95jKW4JYIU0nyug8UF5tj6nR7SJPaaKHJZn2+6pb6bpDqWUw5HQRRIJFxQdN00ZHPSV3 FEXeO8RDEevivDHeLddD+j+Q00nCv1BwmkladK/uVqgcC8CzUp+KTxm0mGpWD+llooBL igdlte0XjwDX0/OPgXrCPi/p+RcWUbsr424EoBM0/LMCBB8x4Fdg3t3y59cbutMoM0NX WwYYzVUf6E7spHw5u8cdSw2JL0/5PM+1pgDhbSXhmyDz4G/qjzEyOOvG4Kca2gipMKf9 PH5w==
MIME-Version: 1.0
X-Received: by 10.194.71.12 with SMTP id q12mr6167571wju.5.1406154483881; Wed, 23 Jul 2014 15:28:03 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Wed, 23 Jul 2014 15:28:03 -0700 (PDT)
Date: Wed, 23 Jul 2014 18:28:03 -0400
X-Google-Sender-Auth: fiF3MBvn-kGp8J7_GLP4QDRY3KE
Message-ID: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Cfrg@irtf.org
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ZoJ2dzZ0IvkySjFxd_1q7n57u4M
Subject: [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 22:28:06 -0000

Thanks to all the presenters, some thoughts on comparing like with like:

1) How do we compare algorithm A taking X cycles and offering a work
factor 2^Y with algorithm B taking 2X cycles and offering a work
factor 2^(Y+Z)?

My answer here is that I am interested in the yield ratio i.e.
[attacker work factor] / [defender effort]. so having the defender do
twice as much work to get an improvement of one bit is not a win.

We can define an exclusion rule: B, is definitely not going to be
interesting as an alternative to A if Z >= 1. Doubling the work factor
is not a win if I have to do twice as much work.

But that still leaves open the question of how much defender effort it
is worth to increase the difficulty by a factor of two.


2) Should the security levels be maximums or minimums?

Looking through the Microsoft presentation I see that they have chosen
work factors of 128, 192 and 256 bits. This is reasonable of course
but maybe not the best way to compare like with like. Because the real
limitations here are the machine resources which nowadays come in
units of 64 bits.

What I am really interested in is how much security you can provide
for an n*64 bits wide datapath. I do not want to have to mess about
with a129 bits to achieve 128 bits security. If someone can do the
math significantly faster then I'll take 127 bits. But I certainly
don't want to go below 120 bits unless the advantages were phenomenal.


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.

The only reason for going above 2^128 is that I don't trust the
algorithm. Its not about increasing the work factor by 2^64, its about
increasing the safety margin in the case of a cryptanalytic attack. I
have seen attacks that reduce the work factor to the root of the
intended one (i.e. 2^n becomes 2^(n/2)). I can't think of a better one
that has been discovered offhand (most are not that good of course).
So 2^256 makes me feel like I am sufficiently protected against
algorithm compromise while 2^192 is kinda marginal.


From nobody Wed Jul 23 15:34:14 2014
Return-Path: <b@b3k.us>
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 2CFA51A004D for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 15:34:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 ef6ZURSccZF5 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 15:34:11 -0700 (PDT)
Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5B5F41A00F3 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 15:34:11 -0700 (PDT)
Received: by mail-we0-f172.google.com with SMTP id x48so1890883wes.17 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 15:34:10 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=Kf3P39fq2G501v7nhHdO+Is9rr+PMRARFSOStVkGC1s=; b=i/RyQjEhJalEe73ZZ7g+dvJQ0rye4/H3Fijozz1KdmvJ+haKSih4YMgUxVnRv7uTKw GA+y7nd3UIkBQXM9LlnDCSHwc/gQ8zlLc/G0AGoJEeHB9MzEZt/UqQJDvKjKIdIvfRfY NbinBHcoKFFjrh2N31aGm7VnNJzMRBU5ScWoGCx671i+da1cD3XLlLhXzprtSQrJMOoB PeaE3Qxt3vyE7BhIpGm8M/LFtoam1bwneCfVhXltMjiK6RqTCb80SjV0Jk9V+4E/6uv1 1nBU13AxY2Jxjgc0PlX3tJA7yaFSp3UVJtzByOSGoYauH6BRU0ojA0x+lToPaKCyOwyw QUHw==
X-Gm-Message-State: ALoCoQlemkZyMDHgpN4eYRLXRxQCRME7VuuA4Yypb+Cgo8CKVR/8MRs7xfxSdHI0nQ/pjZ36HqT4
X-Received: by 10.194.71.52 with SMTP id r20mr5696380wju.113.1406154850027; Wed, 23 Jul 2014 15:34:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Wed, 23 Jul 2014 15:33:49 -0700 (PDT)
In-Reply-To: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
From: Benjamin Black <b@b3k.us>
Date: Wed, 23 Jul 2014 15:33:49 -0700
Message-ID: <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=047d7bfcec5055e57f04fee3f0c9
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/UUe9gR2MyPk1k-7Hyu7Xt-oYiMI
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 22:34:13 -0000

--047d7bfcec5055e57f04fee3f0c9
Content-Type: text/plain; charset=UTF-8

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


Ben

--047d7bfcec5055e57f04fee3f0c9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jul 23, 2014 at 3:28 PM, Phillip Hallam-Baker <span dir=3D"ltr">&lt;<a =
href=3D"mailto:phill@hallambaker.com" target=3D"_blank">phill@hallambaker.c=
om</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><br>
3) Do we need to consider 2^192 work factor?<br>
<br>
I can&#39;t see any case where I am interested in a work factor of 2^192.<b=
r>
Either I am willing to make some concession to performance or I want<br>
it gold plated and 2^256. I would quite like to see the 2^192 work<br>
factor nuked.<br><br></blockquote><div><br></div><div>Phillip,=C2=A0</div><=
div><br></div><div>This was our conclusion, as well. If you haven&#39;t see=
n it, here&#39;s the NUMS TLS draft which only specifies the twisted Edward=
s curves at 128 and 256 bit security levels:=C2=A0<a href=3D"http://tools.i=
etf.org/id/draft-black-tls-numscurves-00.txt">http://tools.ietf.org/id/draf=
t-black-tls-numscurves-00.txt</a></div>

<div><br></div><div><br></div><div>Ben</div><div><br></div></div></div></di=
v>

--047d7bfcec5055e57f04fee3f0c9--


From nobody Wed Jul 23 16:07:19 2014
Return-Path: <mike@shiftleft.org>
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 B3DEA1A011E for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 16:07:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.755
X-Spam-Level: **
X-Spam-Status: No, score=2.755 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, J_CHICKENPOX_15=0.6, J_CHICKENPOX_35=0.6, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 WqTjWk4GFZYg for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 16:07:15 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4884D1A0373 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 16:07:15 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id F00C43AA13; Wed, 23 Jul 2014 16:05:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406156719; bh=ZhwtT2vGPmUY3mnTkK5W0UvwXyJzTmAP2y5gOkF2KrI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DshVkXWAi2tUE6wbL6RViD5M4IoM3hC62a+LhPw9RQPEXD9GuxR0G042XSX+AjFNN Hi2uoV5hR5EPCfLtAqsZQSoBGipQud9eX6+KtNoxw21ScNm4dT4TPkYKH7kwBBg6Y0 GVWrOrv1NsW46I8NMus+u9eprJiPKjFKA3Svihbw=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
Date: Wed, 23 Jul 2014 16:07:06 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <D0B4FCF5-9207-49C4-B4C7-C0391988692E@shiftleft.org>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/zUXwBS2VOxTkIBO2-ne0EQoWNLk
Cc: 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:07:16 -0000

Hi Phillip,

This has also been discussed on the curves@moderncrypto.org list.  =
Trevor Perrin and I have discussed roughly the following:

There=92s nothing magical about 128, 192 or 256-bit security levels.  We =
are hedging against improvements in the math of attacking ECC, not =
against specific levels of improved compute power.  So other things =
being equal, a bigger group order is better, but the question is how big =
a group order (and thus how good a hedge) can be bought for a given =
performance budget.  DJB has also advanced this argument in favor of =
Curve41417, and I=92ve advanced it in favor of Ed448-Goldilocks.

Obviously we want only a few curves of fairly different security levels, =
so something aimed at 2^160 work isn=92t interesting.  We should pay =
attention to which curves are efficient, i.e. attain the best security =
level compared to their performance.  Ideally, it would be best to =
select only two new curves instead of three, i.e. a 128-ish-bit secure =
one and a much stronger one.

Since Karatsuba multiplication is suitable for the curves in question, =
we should expect EC software to take time proportional to T(group size) =
:=3D log(group size) ^ (1 + log 3 / log 2) time.  So a simple benchmark =
would be that, other things being equal, we should look especially =
closely at curves where T(group size) / (time for ECDH or sign or =
verify) is largest.  Obviously this will vary by platform and =
implementation, but it seems like a reasonable benchmark between =
security levels.

For example, on Intel Sandy Bridge, Microsoft=92s Ed-384-mers takes =
617kcy to compute a shared secret (not counting decompression).  =
Ed448-Goldilocks takes 674kcy (counting decompression) and Ed-512-mers =
takes 1293kcy (not counting decompression).  So their =93efficiency=94 =
scores on that platform are roughly 7.7, 10.5, and 7.7 respectively.

This is why Trevor and I (and perhaps also DJB?) believe that a fast, =
ordinary-security curve like Curve25519 and a high-security curve like =
Goldilocks or Curve41417 would be a good pair of alternatives in future =
deployments.

Cheers,
=97 Mike

On Jul 23, 2014, at 3:28 PM, Phillip Hallam-Baker =
<phill@hallambaker.com> wrote:

> Thanks to all the presenters, some thoughts on comparing like with =
like:
>=20
> 1) How do we compare algorithm A taking X cycles and offering a work
> factor 2^Y with algorithm B taking 2X cycles and offering a work
> factor 2^(Y+Z)?
>=20
> My answer here is that I am interested in the yield ratio i.e.
> [attacker work factor] / [defender effort]. so having the defender do
> twice as much work to get an improvement of one bit is not a win.
>=20
> We can define an exclusion rule: B, is definitely not going to be
> interesting as an alternative to A if Z >=3D 1. Doubling the work =
factor
> is not a win if I have to do twice as much work.
>=20
> But that still leaves open the question of how much defender effort it
> is worth to increase the difficulty by a factor of two.
>=20
>=20
> 2) Should the security levels be maximums or minimums?
>=20
> Looking through the Microsoft presentation I see that they have chosen
> work factors of 128, 192 and 256 bits. This is reasonable of course
> but maybe not the best way to compare like with like. Because the real
> limitations here are the machine resources which nowadays come in
> units of 64 bits.
>=20
> What I am really interested in is how much security you can provide
> for an n*64 bits wide datapath. I do not want to have to mess about
> with a129 bits to achieve 128 bits security. If someone can do the
> math significantly faster then I'll take 127 bits. But I certainly
> don't want to go below 120 bits unless the advantages were phenomenal.
>=20
>=20
> 3) Do we need to consider 2^192 work factor?
>=20
> 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.
>=20
> The only reason for going above 2^128 is that I don't trust the
> algorithm. Its not about increasing the work factor by 2^64, its about
> increasing the safety margin in the case of a cryptanalytic attack. I
> have seen attacks that reduce the work factor to the root of the
> intended one (i.e. 2^n becomes 2^(n/2)). I can't think of a better one
> that has been discovered offhand (most are not that good of course).
> So 2^256 makes me feel like I am sufficiently protected against
> algorithm compromise while 2^192 is kinda marginal.
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jul 23 16:17:06 2014
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.


From nobody Wed Jul 23 18:10:52 2014
Return-Path: <watsonbladd@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 605391A03D6 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 18:10:47 -0700 (PDT)
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 nKNngPvHFywo for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 18:10:42 -0700 (PDT)
Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 304701A03F2 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 18:10:42 -0700 (PDT)
Received: by mail-yk0-f172.google.com with SMTP id 10so1344103ykt.3 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 18:10:41 -0700 (PDT)
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=7ZQ3raNANwN6As5TEY6vm6L44ttpCqHpopRwss4hmvE=; b=h1fgpLbp/qdInw9CefB2JE1wNPQFBlVuilFXRUy78sQzQdeehod/raaCPb5aZd9jlP zl2aH8ZaKqEPSZLnD9bXZGdDc2tajJ1jagZqbUx6iYyrzN8fZdPV0OO81o1wSjmhoX+A LB3qBAgDZqbPT2twyX8M/ttlg//2j6TEi7l9DhHbtLRZ3S8lzentUssAq5NdtU3uOUIZ FOX/jIclrb/VrhRnUbf8ptx/CZQcKpyA1H9bWysfGpxaFrky27M+WBtSENce9u1CTOSK 9Xk4C2Ae/Oxpt2gC8aDeuv81RTf4dG2t6eG9+6VHnn8XlF51sENlKafSM722XlwXF74s 3VuQ==
MIME-Version: 1.0
X-Received: by 10.236.39.172 with SMTP id d32mr7262285yhb.66.1406164240998; Wed, 23 Jul 2014 18:10:40 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Wed, 23 Jul 2014 18:10:40 -0700 (PDT)
In-Reply-To: <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com> <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com>
Date: Wed, 23 Jul 2014 18:10:40 -0700
Message-ID: <CACsn0c=o0HFdr_qn--H8ZStQan2asbt-M60kP_70p1DCT5f0_w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/cpBc2Y_Jq7beZD7LwMI3XhkiOOY
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: Thu, 24 Jul 2014 01:10:47 -0000

On Wed, Jul 23, 2014 at 4:17 PM, Phillip Hallam-Baker
<phill@hallambaker.com> wrote:
> 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.

Why will that happen with these curves when it didn't with the NIST
curves vs. RSA?
Yes, I'm aware of patent issues that used to exist, but this was an
unforced error in
standardization: RSA is of a similar vintage.

>
>
> 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.

Not being at IETF 90 I can't comment on the standardization, but I
certainly can comment
on the cryptography. All protocols use ECDH and signatures, and any
twisted Edwards curve
will work for both. The only debate is how to represent points for
ECDH, which exact prime to use,
and the exact curve to use. There are many implemented, functioning
systems using Curve25519
and Ed25519 and friends, without any problems.

(What you propose for email encryption is in fact what ECIES does,
which is what OpenPGP does)

>
> 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]

Point compression can dramatically shrink keys. The patent expires next Tuesday,
and Curve25519 never infringed upon it.

However, DNSSEC still uses RSA, despite ECC existing and making sizes
much smaller.

>
> 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.

That won't happen.

Sincerely,
Watson Ladd
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Wed Jul 23 19:56:32 2014
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 9F63C1A02BA for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 19:56:29 -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 0bBsftqzEzgT for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 19:56:28 -0700 (PDT)
Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B98C51A0B07 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 19:56:27 -0700 (PDT)
Received: by mail-wg0-f52.google.com with SMTP id a1so2033053wgh.35 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 19:56:26 -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=x/O/U42X3eCnnEvF2QnFaHwiLEEnuH3yH+GAc+dgJyE=; b=z9PbiWisvBe1FC70jPnSb5aB033LKjE19rCN9xpZkUNyBtu+h4djBNMrDeGHOvGZ/y NliNB5MvQLtSctaWZgH4MOtKoAHLf48obRdX99gayFSYb4OrZLsuPbhJXXUHs0mDs98V E6CH7ZgmW9j+QMGa8SpRgb5VkThLga1Uny8gWacNkiMX2calggUBfhJjrLlm0mwRZmAV ozk3iSBSdymwpOi1xYhDR1fOINppGzmtAwGzcyow1H0+OY6IL6ngMSpN7a1l1sT0ozat zncMQE3oIs9RRuk+r0fs3xfm2ocVl+mdT6Z5DUWwW+y/vUrY6vXxIhQ9vYUVr/jv+pcm AdHw==
MIME-Version: 1.0
X-Received: by 10.180.104.42 with SMTP id gb10mr30173600wib.65.1406170586286;  Wed, 23 Jul 2014 19:56:26 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Wed, 23 Jul 2014 19:56:26 -0700 (PDT)
In-Reply-To: <CACsn0c=o0HFdr_qn--H8ZStQan2asbt-M60kP_70p1DCT5f0_w@mail.gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com> <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com> <CACsn0c=o0HFdr_qn--H8ZStQan2asbt-M60kP_70p1DCT5f0_w@mail.gmail.com>
Date: Wed, 23 Jul 2014 22:56:26 -0400
X-Google-Sender-Auth: cyy6sY8Ayftxiq3ItkE7bvMtoIQ
Message-ID: <CAMm+LwjxnGw6hgoba_V+GY8WVKh-YGpPkw1AFfn_RvoX+2OzKQ@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/HsFJygd3-XeCVc1mhe_BvkqHb7E
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: Thu, 24 Jul 2014 02:56:29 -0000

On Wed, Jul 23, 2014 at 9:10 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> On Wed, Jul 23, 2014 at 4:17 PM, Phillip Hallam-Baker
> <phill@hallambaker.com> wrote:
>> 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.
>
> Why will that happen with these curves when it didn't with the NIST
> curves vs. RSA?
> Yes, I'm aware of patent issues that used to exist, but this was an
> unforced error in
> standardization: RSA is of a similar vintage.

Several reasons.

First off, we had this philosophy that lots of algorithm choices was a
good thing. It is only recently that it is generally acknowledged that
adding stronger algorithms does not improve security. Only stopping
using weak algorithms helps matters.

So back in the mid 90s we had dozens of symmetric ciphers and RSA and
DSA and DH and it was thought to be a good thing. Then we got the idea
that there should be as few algorithms as possible, preferably one
good one. And now I am pushing for a scheme where we have one REQUIRED
and one RECOMMENDED per type of algorithm and make no other
recommendations except in unusual circumstances where a legacy
transition is in progress.

The main reason we haven't had consensus across the IETF on mandatory
to implement algorithms before is that the decisions were taken at
different times and the field moved on. So the mandatory to implement
algorithms for quite a few specs are now out of date. S/MIME requires
3DES for example. This was changed for SIP but not for mail as far as
I can see.

It is possible that some people used to enjoy algorithm discussions.
At this point I think we all realize that the discussion is necessary
but not so much fun that I want to have it repeated for each working
group.

But the main reason I want to change that practice is that when we
decided to move to AES in place of 3DES, that was a decision made
independent of any particular protocol but implementation required us
to make changes to every protocol separately. That is silly and
tedious and lots of makework for authors and the IESG.

Hence the rationale for this draft:

http://tools.ietf.org/html/draft-hallambaker-consensuscrypto-00

The idea of this is that future protocols would not make MTI choices
of algorithms, they would reference the consensus RFC and leave it at
that. If we change our idea of what necessary crypto is, the consensus
RFC would be made obsolete and replaced by a new one.

The reason for having backup algorithms is that unless we are in panic
mode (like Google starts selling a Quantum Computer just for S&G) the
pattern should be that the new REQUIRED algorithm is a previous
RECOMMENDED algorithm. Since they are backup algorithms there is a
requirement that they be constructed in a distinctly different fashion
(e.g. SHA-3 is a logical backup to SHA-2 because it is spongeworthy).
The backups also need to be distinctly stronger.

I will also note that it looks like we now have a pretty strong
primary and backup for hash functions and MACs and seem to be
approaching consensus on public key (RSA plus ECC exact scheme to be
decided). That leaves a gap for backup encryption algorithm.


From nobody Wed Jul 23 20:50:48 2014
Return-Path: <watsonbladd@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 ABCD91A0217 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 20:50:45 -0700 (PDT)
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 ad2-Sev5usYi for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 20:50:43 -0700 (PDT)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BCA881A8BB2 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 20:50:41 -0700 (PDT)
Received: by mail-yk0-f179.google.com with SMTP id 142so1415455ykq.24 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 20:50:41 -0700 (PDT)
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=TJrzR8mEfhtkXP65T3zRuJs00Gzggbc9gdIqW1OoiR4=; b=zuXqhsAdgd0cNQgj0zOzqUiCA1iYz46X1wQJctejRAWfP7fg7is2vpDnaw41StBAre y8mff3uydFzVXtLuMtRShbPlW2G0YahkpX8ZfwqvgoRnV4hBUFAI4wBKYfegAQ2K32/u yghtIOGykHTu+9mcTgTSpQKHXzZeexbD1/kiJ7XgGlpjWOU7M+g7058k//3gRWOceuq4 wmYC684pLPqRT6vUKlyDXxKfoVJSae8Evud41Gje5tmehvQinVfOslUqplfTcQ4YKr2T FPTCq0PvLz3XGNJ9Q7Xka92oRuS4x5tzB3GzCAjvk0PGr9/PpbF+6ltcwb+7opxp+U+X r7DA==
MIME-Version: 1.0
X-Received: by 10.236.39.172 with SMTP id d32mr8502289yhb.66.1406173840864; Wed, 23 Jul 2014 20:50:40 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Wed, 23 Jul 2014 20:50:40 -0700 (PDT)
In-Reply-To: <CAMm+LwjxnGw6hgoba_V+GY8WVKh-YGpPkw1AFfn_RvoX+2OzKQ@mail.gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com> <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com> <CACsn0c=o0HFdr_qn--H8ZStQan2asbt-M60kP_70p1DCT5f0_w@mail.gmail.com> <CAMm+LwjxnGw6hgoba_V+GY8WVKh-YGpPkw1AFfn_RvoX+2OzKQ@mail.gmail.com>
Date: Wed, 23 Jul 2014 20:50:40 -0700
Message-ID: <CACsn0cmywvO1eNf96nyVtP8dYdqAPj9QYCLCdMNNbnkYN-05hQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/2j7UVoanSDIrZRSlkxcoBYkYww0
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: Thu, 24 Jul 2014 03:50:45 -0000

On Wed, Jul 23, 2014 at 7:56 PM, Phillip Hallam-Baker
<phill@hallambaker.com> wrote:
> On Wed, Jul 23, 2014 at 9:10 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>> On Wed, Jul 23, 2014 at 4:17 PM, Phillip Hallam-Baker
>> <phill@hallambaker.com> wrote:
>>> 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.
>>
>> Why will that happen with these curves when it didn't with the NIST
>> curves vs. RSA?
>> Yes, I'm aware of patent issues that used to exist, but this was an
>> unforced error in
>> standardization: RSA is of a similar vintage.
>
> Several reasons.
>
> First off, we had this philosophy that lots of algorithm choices was a
> good thing. It is only recently that it is generally acknowledged that
> adding stronger algorithms does not improve security. Only stopping
> using weak algorithms helps matters.
>
> So back in the mid 90s we had dozens of symmetric ciphers and RSA and
> DSA and DH and it was thought to be a good thing. Then we got the idea
> that there should be as few algorithms as possible, preferably one
> good one. And now I am pushing for a scheme where we have one REQUIRED
> and one RECOMMENDED per type of algorithm and make no other
> recommendations except in unusual circumstances where a legacy
> transition is in progress.
>
> The main reason we haven't had consensus across the IETF on mandatory
> to implement algorithms before is that the decisions were taken at
> different times and the field moved on. So the mandatory to implement
> algorithms for quite a few specs are now out of date. S/MIME requires
> 3DES for example. This was changed for SIP but not for mail as far as
> I can see.
>
> It is possible that some people used to enjoy algorithm discussions.
> At this point I think we all realize that the discussion is necessary
> but not so much fun that I want to have it repeated for each working
> group.
>
> But the main reason I want to change that practice is that when we
> decided to move to AES in place of 3DES, that was a decision made
> independent of any particular protocol but implementation required us
> to make changes to every protocol separately. That is silly and
> tedious and lots of makework for authors and the IESG.
>
> Hence the rationale for this draft:
>
> http://tools.ietf.org/html/draft-hallambaker-consensuscrypto-00
>
> The idea of this is that future protocols would not make MTI choices
> of algorithms, they would reference the consensus RFC and leave it at
> that. If we change our idea of what necessary crypto is, the consensus
> RFC would be made obsolete and replaced by a new one.

While I agree with the overall sentiment (excess agility is harmful,
we need to mandate two ciphers to
have a backup, crypto should be centralized by someone who knows what
they are doing), treating
this decision as though your draft was already ready doesn't work. In
particular this decision has to
be made assuming the status quo with regards to algorithms.

There are good reasons to have both CCM and GCM for example. A
nonce-reuse resistant protocol would
be more expensive than either, but potentially useful in cases where
protocols that fail when nonces are reused
would not be.

In particular the Great Cleanup has yet to begin: having consensus
crypto now requires reworking everything
to use it. That said, I don't think that twisted Edwards curves have
any difficulties in protocols that can negotiate
usable curves: they represent points for both signatures and ECDH.
(I do think we should compress the points: avoid nastiness).

We're going to have to change the order of encrypt then MAC in PGP
(which has no MAC), Kerberos(!),
SSH(!!), the record protocol in TLS (!!!) to get them all to be the
same. If we use AEAD it's the same issue.
Add that to the real problems of backwards compatibility and
implementation update cycles,
 and I'm not sure we can do it in a reasonable time frame.

>
> The reason for having backup algorithms is that unless we are in panic
> mode (like Google starts selling a Quantum Computer just for S&G) the
> pattern should be that the new REQUIRED algorithm is a previous
> RECOMMENDED algorithm. Since they are backup algorithms there is a
> requirement that they be constructed in a distinctly different fashion
> (e.g. SHA-3 is a logical backup to SHA-2 because it is spongeworthy).
> The backups also need to be distinctly stronger.
>
> I will also note that it looks like we now have a pretty strong
> primary and backup for hash functions and MACs and seem to be
> approaching consensus on public key (RSA plus ECC exact scheme to be
> decided). That leaves a gap for backup encryption algorithm.

RSA is slow, requires big keys, and is usually used incorrectly in
IETF protocols:
OAEP should be be used instead of PKCS 1.5 encryption. Interesting TLS
has decided to use
DHE and ECDH, with no proposal to put RSA back on, except for
signatures (which sadly
are not PSS).

Sincerely,
Watson Ladd


From nobody Wed Jul 23 23:36:16 2014
Return-Path: <plonga@microsoft.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 E4F711A00C9 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 23:36:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 yz5cVrbD9WR1 for <cfrg@ietfa.amsl.com>; Wed, 23 Jul 2014 23:36:13 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0142.outbound.protection.outlook.com [207.46.163.142]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A405B1A0010 for <Cfrg@irtf.org>; Wed, 23 Jul 2014 23:36:12 -0700 (PDT)
Received: from BY2PR03MB474.namprd03.prod.outlook.com (10.141.141.149) by BY2PR03MB476.namprd03.prod.outlook.com (10.141.141.153) with Microsoft SMTP Server (TLS) id 15.0.990.7; Thu, 24 Jul 2014 06:36:10 +0000
Received: from BY2PR03MB474.namprd03.prod.outlook.com ([10.141.141.149]) by BY2PR03MB474.namprd03.prod.outlook.com ([10.141.141.149]) with mapi id 15.00.0990.007; Thu, 24 Jul 2014 06:36:10 +0000
From: Patrick Longa Pierola <plonga@microsoft.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>, "Cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] Comparing ECC curves
Thread-Index: AQHPpsVlokHtIBVyPkOedmRlQCZAupuurLaA
Date: Thu, 24 Jul 2014 06:36:09 +0000
Message-ID: <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
In-Reply-To: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [50.47.83.223]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 028256169F
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(243025005)(24454002)(51704005)(189002)(57704003)(199002)(50986999)(81542001)(106116001)(74662001)(79102001)(86362001)(83322001)(66066001)(15975445006)(33646002)(54356999)(76176999)(86612001)(77982001)(81342001)(15202345003)(105586002)(101416001)(99396002)(2656002)(80022001)(99286002)(19580395003)(74316001)(46102001)(19580405001)(21056001)(76576001)(20776003)(83072002)(31966008)(85852003)(107046002)(74502001)(76482001)(106356001)(95666004)(85306003)(107886001)(92566001)(64706001)(87936001)(4396001)(108616002)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB476; H:BY2PR03MB474.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lJfBqKUmV1OG5VVQcbQ3ae5PJ_c
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: Thu, 24 Jul 2014 06:36:15 -0000

> Phillip Hallam-Baker wrote:
> 2) Should the security levels be maximums or minimums?
>
> Looking through the Microsoft presentation I see that they have chosen wo=
rk factors of 128, 192 and 256 bits. This is reasonable of course but maybe=
 not the best =20
> way to compare like with like. Because the real limitations here are the =
machine resources which nowadays come in units of 64 bits.

> What I am really interested in is how much security you can provide for a=
n n*64 bits wide datapath. I do not want to have to mess about with a129 bi=
ts to achieve 128
> bits security. If someone can do the math significantly faster then I'll =
take 127 bits. But I certainly don't want to go below 120 bits unless the a=
dvantages were
> phenomenal.

An important related point: I haven't seen any result in the literature dem=
onstrating any meaningful performance advantage when dropping one bit from =
256 to=20
255 bits, or from 384 to 383, or from 512 to 511 (case of primes with the f=
orm 2^m - c). Our experiments [1] reveal that one bit less injects less tha=
n 4% of performance=20
improvement. Under this light, we prefer the conservative approach: keep a =
traditional 2 x s bitlength, which is multiple of a computer word of 64 bit=
s (for a bit-security
level s =3D {128,192,256}), maximize ECDLP security and make the curve gene=
ration process as simple and rigid as possible. This also helps to keep cur=
ve design at different
security levels consistent. And, arguably, all this together avoids some po=
tential errors and ease the work of implementers. At the other side of the =
spectrum, I haven't seen
any performance advantage of increasing the prime bitlength beyond 2 x s. I=
t is actually potentially counterproductive: in [1] we show that increasing=
 the field
representation by one word (which happens when moving from 512 bits to 521 =
bits for example) degrades performance by a factor 1.2. In this case, the p=
erformance
issues make the conservative approach even more attractive, taking as a bon=
us all the benefits mentioned above.=20

[1] http://eprint.iacr.org/2014/130.pdf   =20
    =20
> 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 g=
old plated and 2^256. I would quite like to see the 2^192 work factor nuked=
.

> The only reason for going above 2^128 is that I don't trust the algorithm=
. Its not about increasing the work factor by 2^64, its about increasing th=
e safety margin in the
> case of a cryptanalytic attack. I have seen attacks that reduce the work =
factor to the root of the intended one (i.e. 2^n becomes 2^(n/2)). I can't =
think of a better one
> that has been discovered offhand (most are not that good of course).
> So 2^256 makes me feel like I am sufficiently protected against algorithm=
 compromise while 2^192 is kinda marginal.

Totally agreed. We should give preference to 128 and 256-bit sec levels.

Patrick=20

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
http://www.irtf.org/mailman/listinfo/cfrg


From nobody Thu Jul 24 06:26:03 2014
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 B25741A0331 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 06:25:58 -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 9J1323Q0cMxe for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 06:25:57 -0700 (PDT)
Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 301341A032F for <Cfrg@irtf.org>; Thu, 24 Jul 2014 06:25:57 -0700 (PDT)
Received: by mail-wi0-f171.google.com with SMTP id hi2so9580243wib.16 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 06:25:54 -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=7oeKlRIcCiwP/i2fhJADOfy4a/bhjpv4AUO2pC9mE2w=; b=YlP6S7Q2V7zAXcB6qyjIInMzaLqljTNvpMbc+qRt5GK60/OsMfP8CXHfX5nvJsokyO li4XR32vsMMlL57B/Rjtm2Tdc+iP63zI/D54jN3X1Cn7Hw5ur0lzKKyYfpfmOA7DTzf+ 5dB5XC7siLLxFpz6d0b3eEsKY2S0ER2cNIeoIT02upsA5dSSUA+RcaljDxm8xEH6FFkz qhMYsAvi5/I72ER8awM2e710kF/aSCFbZjRqr7jApQ3FjCiyItgls8J8hG8KfLmUQka9 5RCOESbIZzh+K0ZC6PV+l5YMRczWaMvta760oYgsSGQqvC7R7Jq8m2Pq4nGYd+otzag7 hFWg==
MIME-Version: 1.0
X-Received: by 10.194.158.226 with SMTP id wx2mr12233508wjb.107.1406208353596;  Thu, 24 Jul 2014 06:25:53 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Thu, 24 Jul 2014 06:25:53 -0700 (PDT)
In-Reply-To: <CACsn0cmywvO1eNf96nyVtP8dYdqAPj9QYCLCdMNNbnkYN-05hQ@mail.gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com> <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com> <CACsn0c=o0HFdr_qn--H8ZStQan2asbt-M60kP_70p1DCT5f0_w@mail.gmail.com> <CAMm+LwjxnGw6hgoba_V+GY8WVKh-YGpPkw1AFfn_RvoX+2OzKQ@mail.gmail.com> <CACsn0cmywvO1eNf96nyVtP8dYdqAPj9QYCLCdMNNbnkYN-05hQ@mail.gmail.com>
Date: Thu, 24 Jul 2014 09:25:53 -0400
X-Google-Sender-Auth: _A2Z4MfJuEGECZnSm9aKhUFpNMc
Message-ID: <CAMm+Lwhp-N+gU5ThCu1CdjvWzbg-T8xw_-t4tHu4TsZ-WvuGMA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/8n37XbiTEfMffmzekdLT2qvi5UI
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: Thu, 24 Jul 2014 13:25:59 -0000

On Wed, Jul 23, 2014 at 11:50 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> On Wed, Jul 23, 2014 at 7:56 PM, Phillip Hallam-Baker
> <phill@hallambaker.com> wrote:

>> The idea of this is that future protocols would not make MTI choices
>> of algorithms, they would reference the consensus RFC and leave it at
>> that. If we change our idea of what necessary crypto is, the consensus
>> RFC would be made obsolete and replaced by a new one.
>
> While I agree with the overall sentiment (excess agility is harmful,
> we need to mandate two ciphers to
> have a backup, crypto should be centralized by someone who knows what
> they are doing), treating
> this decision as though your draft was already ready doesn't work. In
> particular this decision has to
> be made assuming the status quo with regards to algorithms.

I don't think so. The Status Quo emerged from the days when each WG
made the choice of algorithms independently. We have already decided
to only make that decision in CFRG.

The reason for pointing to the draft is that it makes the argument in
greater detail, not to suggest it was a decision already made.

We discussed the need for the draft in SECDIR and I was asked to write
it. So far, yours is the first response...


> There are good reasons to have both CCM and GCM for example. A
> nonce-reuse resistant protocol would
> be more expensive than either, but potentially useful in cases where
> protocols that fail when nonces are reused
> would not be.

There we get into protocol design and the question is whether we
should standardize on 'AES' for encryption or AES-CBC / AES-GCM, etc.

I would really like to standardize on AES-GCM going forward for new
protocols. But right now I can't use that in Windows .NET without
writing my own AES code. Hmmm.

For existing protocols written before encrypt and authenticate became
fashionable, I would not want to go back and try to retrofit use of an
E&A scheme. That would certainly not be something to do in the
consensus draft.


> In particular the Great Cleanup has yet to begin: having consensus
> crypto now requires reworking everything
> to use it.

No, not at all. The idea of stating what the consensus is so that an
implementation can state that it complies with RFC-6071 and RFC-XXXX
and tell people that it will interoperate securely with
implementations that comply with either.

So if HMAC-SHA1 is specified as MTI in the base spec and
HMAC-SHA-2-256 as MTI in RFC-XXXX, then an implementation claiming to
be compliant with both would have to implement both.

What this approach does not fully address is what to do if the base
spec specifies MD5 and there is no RFC that has come out saying 'do
not use MD5'.


> We're going to have to change the order of encrypt then MAC in PGP
> (which has no MAC), Kerberos(!),
> SSH(!!), the record protocol in TLS (!!!) to get them all to be the
> same.

Order of operations is a protocol design choice, not an algorithm
choice. Funny thing is that people keep telling me that it is
absolutely vital that the order be one or the other 'because security'
but which is better changes.

Obviously the order is going to have an effect on security. But
changing it has a bigger effect on code. If people wanted consistency
at that level they would have to write drafts for each protocol to
harmonize them all. I don't see the point in that unless it is part of
the ongoing process of rewriting everything in JSON.


>> I will also note that it looks like we now have a pretty strong
>> primary and backup for hash functions and MACs and seem to be
>> approaching consensus on public key (RSA plus ECC exact scheme to be
>> decided). That leaves a gap for backup encryption algorithm.
>
> RSA is slow, requires big keys, and is usually used incorrectly in
> IETF protocols:
> OAEP should be be used instead of PKCS 1.5 encryption. Interesting TLS
> has decided to use
> DHE and ECDH, with no proposal to put RSA back on, except for
> signatures (which sadly
> are not PSS).

Well the PKIX stack in the WebPKI is currently limited to RSA2048 in
practice, so I don't know what that means.

The RFC cited in the draft specifies OAEP and PKCS 1.5. It should be
just OAEP. I was looking for the OAEP draft, didn't notice it also has
the PKCS 1.5.


From nobody Thu Jul 24 07:27:10 2014
Return-Path: <dmjacobson@sbcglobal.net>
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 36D731A03A4 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 07:27:08 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001] 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 V41CtCvzsCAV for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 07:27:05 -0700 (PDT)
Received: from nm27-vm7.access.bullet.mail.gq1.yahoo.com (nm27-vm7.access.bullet.mail.gq1.yahoo.com [216.39.63.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 645261A0375 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 07:26:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1406212014; bh=qcg6+e/xHTk0G6VmvY4als7kiZnF7E+39Wz0j1JQUHA=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=dwogdNUw6hJByo0tgQlLNK8Myxun3+B3BHYrD53z08YnBwOTDTSUH8VYc08j88dbflpU0y48aU9X+OIOQsC43b/x9+okKClavxvnJfGv0h01C/pRM8Jtkvq20QGQQ44BBj7srzOxTCQEMKwDkZV3P8aSYN7MVJ6Irs15HiWA22g8Y+ScU0VYSmgranN/I6BfeLNx+TC+MZ1IWEJRbjUNIBIY6HPrfJOor/vzU/J31ClNeJavR9h0juGhN3MlyzfOadoyQsx2ysN77H0S1FN0yAgmwKKcFkB9E0EdwKjqoz1No4Tqn+zolUdKZnLwrN6IzDLp6A5hppkbvpRt8LLGcA==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=icAo1AsNcysBgdd6o+ElkUPKY+s5IEqVO6wqf/9djbb3iBYanlTYWYWn5ZFzcyvy1tWClC6WZk5gZmNOupKlDAmtXaZ9PtPD7P2edqyt+l2+AFDh1bzCJsBMRt3/pjYXBA0cqaX7saIONIQP6fBsbhb1hOk/0cdKRJwqf7bSG0pFZQ6f9v4LNvf3V7vbD03njwnoNfQQduqqDoX8PjWSU1R6+0rYtuY3H+kRzniwhcdlJ0TLrucFHyOFdxxcUZr3/y851WTNJm+G79ZEoELz294OP0VuLTwD2BqFg4iKm/Q00YniDxvKJfjurP/oE2eSICFYQLOAvKFDJsQQVLzisw==;
Received: from [216.39.60.167] by nm27.access.bullet.mail.gq1.yahoo.com with NNFMP; 24 Jul 2014 14:26:54 -0000
Received: from [67.195.23.146] by tm3.access.bullet.mail.gq1.yahoo.com with NNFMP; 24 Jul 2014 14:26:54 -0000
Received: from [127.0.0.1] by smtp118.sbc.mail.gq1.yahoo.com with NNFMP; 24 Jul 2014 14:26:54 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1406212014; bh=qcg6+e/xHTk0G6VmvY4als7kiZnF7E+39Wz0j1JQUHA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=0OTyPBfJvl+1BkgmSIIgqYBD3lMmXPO0/RnvGQZ50cqx9/KfMGUkXA8iz5aVz6abi+47o6pJME/AGr7cJPnXiaRkiqNoYb7vLsDxVojvyDubo0ibxg75csLU8GrcwS5aB+EU5YsCZohkQfSh/oFta5BfWXOFrt49cfsEmVZ5doE=
X-Yahoo-Newman-Id: 826701.55532.bm@smtp118.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: bPmX46IVM1lNtFwtIRVdLHlO7Lu_YnTJtGR9.tHNl5QJCEx Y1WM5TRszrvn3E1KSWEX4uxI8KTwXOVu6rCDPk5SCeJdVnWhpyJWVRIl.28g VBEv2TNVqIH8QJ4zUtpLmSZUMrdp20AyEjdHVrUOzXvJRDUYmPnth2A0o2g4 F7vlsvZDUVAZi5Y0XJaElFsfT7ypzaYx5mJxW2lL4JCftkyR0lVKvf9axdNe oTBwu7MX_yqX6uXzUdr1hvvZ_UPKj0vZVyu_rMqy1Yq_YY2HVSihGUDWBjKC hjVZ1KjlHp5k0Psz1al.f5CgLcU0ftnwIf5T7xMBhFMrPqwRBlv_wZBPteUH 3ozQTiJ90ImmVrZlS7gtptAvGS5HnVTNqXScNZqDCKbLBz8T9LrQ27Z._Vmr 6.SfrTBuOkrakjTLBMRc3z2TO8InnC0.avulnhG4faih3HZFYivcfuehZmGJ EHsyJ2Cf7zk9Ie5Trz77cFUMcsNhtuvaaw_FMzVBHjTg7sOFsIbeEPsYCNsh 4X6_8angIHOyrYct3eYk2aHKWKayjerLtitf0T7NSjGEDxnEMjimu2zqr6PO lrfVtfuDrxe6f3YmHbIVB6_bNcQGsIFI1MmGxmX.VSsrahWArxtFp0QPYRJo feIYug_vl
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53D117AD.8060506@sbcglobal.net>
Date: Thu, 24 Jul 2014 07:26:53 -0700
From: David Jacobson <dmjacobson@sbcglobal.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Patrick Longa Pierola <plonga@microsoft.com>,  Phillip Hallam-Baker <phill@hallambaker.com>, "Cfrg@irtf.org" <Cfrg@irtf.org>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com>
In-Reply-To: <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/NEV9Na9YMQk_IhA2ew3eHOy713Q
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: Thu, 24 Jul 2014 14:27:08 -0000

On 7/23/14 11:36 PM, Patrick Longa Pierola wrote:
[snip]
> An important related point: I haven't seen any result in the 
> literature demonstrating any meaningful performance advantage when 
> dropping one bit from 256 to 255 bits, or from 384 to 383, or from 512 
> to 511 (case of primes with the form 2^m - c). Our experiments [1] 
> reveal that one bit less injects less than 4% of performance 
> improvement. Under this light, we prefer the conservative approach: 
> keep a traditional 2 x s bitlength, which is multiple of a computer 
> word of 64 bits (for a bit-security level s = {128,192,256}), maximize 
> ECDLP security and make the curve generation process as simple and 
> rigid as possible. This also helps to keep curve design at different 
> security levels consistent. And, arguably, all this together avoids 
> some potential errors and ease the work of implementers. At the other 
> side of the spectrum, I haven't seen any performance advantage of 
> increasing the prime bitlength beyond 2 x s. It is actually 
> potentially counterproductive: in [1] we show that increasing the 
> field representation by one word (which happens when moving from 512 
> bits to 521 bits for example) degrades performance by a factor 1.2. In 
> this case, the performance issues make the conservative approach even 
> more attractive, taking as a bonus all the benefits mentioned above. 
> [1] http://eprint.iacr.org/2014/130.pdf
[snip]

You are addressing performance.  But what about the ease of making a 
constant time implementation?  The security value of 256 over 255 or 254 
is not much.  It is just that 256 is a nice round number, and might be a 
checkbox item.  If we can accept 255 or 254, it might make constant time 
implementations easier.   Perhaps people who have done constant time 
implementations can comment.

     --David


From nobody Thu Jul 24 08:14:18 2014
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 89C851A02D5 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 08:14:13 -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 6zRqfIsxoXzm for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 08:14:07 -0700 (PDT)
Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49FD51A03EB for <Cfrg@irtf.org>; Thu, 24 Jul 2014 08:11:10 -0700 (PDT)
Received: by mail-wi0-f170.google.com with SMTP id f8so9399548wiw.3 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 08:11:09 -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=Nz0n+4YexCfxpF/cJF+A/0Gjiq21b3RTWBFwjSvKhok=; b=cLvy1049kgrmxzn3IvzbB7qz0I5PXBKw0zQQyWxN4EM37q4Us+QvInxvJ/bxn5zyeG XBj69E4wbXqd9XtEtbjsXSN7HNxGzi+U8zeoB4zS2N1RzurinNhxODAPg5dikMJT32R6 fqoJKDENSJshCJe+MhenU/m/r3OhtItUj7g34VSiiumaC03JGUXmluRjFD1ieJSAiSin /uDmRXyhCoA3MavOJlod+1Tp3kvRLb4GtmQmuLXJzk0zUU2d2RSyEmt6PwH/L+5p1Zh8 Jxcs4M6htUTKX8bkwTLrskR18+AG7N0KaMt1/9McR4rQozmtJTx89fKgrhtiEstPADF4 Ni/g==
MIME-Version: 1.0
X-Received: by 10.194.71.12 with SMTP id q12mr13279689wju.5.1406214667931; Thu, 24 Jul 2014 08:11:07 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Thu, 24 Jul 2014 08:11:07 -0700 (PDT)
In-Reply-To: <53D117AD.8060506@sbcglobal.net>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com> <53D117AD.8060506@sbcglobal.net>
Date: Thu, 24 Jul 2014 11:11:07 -0400
X-Google-Sender-Auth: fiUcXMkrxG-gbJ6xWkH6y7IEFbM
Message-ID: <CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: David Jacobson <dmjacobson@sbcglobal.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/j9vFhHExjqVNHAl7NpY9fwmtAW8
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: Thu, 24 Jul 2014 15:14:13 -0000

On Thu, Jul 24, 2014 at 10:26 AM, David Jacobson
<dmjacobson@sbcglobal.net> wrote:
> On 7/23/14 11:36 PM, Patrick Longa Pierola wrote:
> [snip]
>
>> An important related point: I haven't seen any result in the literature
>> demonstrating any meaningful performance advantage when dropping one bit
>> from 256 to 255 bits, or from 384 to 383, or from 512 to 511 (case of primes
>> with the form 2^m - c). Our experiments [1] reveal that one bit less injects
>> less than 4% of performance improvement. Under this light, we prefer the
>> conservative approach: keep a traditional 2 x s bitlength, which is multiple
>> of a computer word of 64 bits (for a bit-security level s = {128,192,256}),
>> maximize ECDLP security and make the curve generation process as simple and
>> rigid as possible. This also helps to keep curve design at different
>> security levels consistent. And, arguably, all this together avoids some
>> potential errors and ease the work of implementers. At the other side of the
>> spectrum, I haven't seen any performance advantage of increasing the prime
>> bitlength beyond 2 x s. It is actually potentially counterproductive: in [1]
>> we show that increasing the field representation by one word (which happens
>> when moving from 512 bits to 521 bits for example) degrades performance by a
>> factor 1.2. In this case, the performance issues make the conservative
>> approach even more attractive, taking as a bonus all the benefits mentioned
>> above. [1] http://eprint.iacr.org/2014/130.pdf
>
> [snip]
>
> You are addressing performance.  But what about the ease of making a
> constant time implementation?  The security value of 256 over 255 or 254 is
> not much.  It is just that 256 is a nice round number, and might be a
> checkbox item.  If we can accept 255 or 254, it might make constant time
> implementations easier.   Perhaps people who have done constant time
> implementations can comment.

My understanding here is that DJB has a curve with 255 bits that he
claims operates a lot faster than the 256 bit alternatives. I do not
know how that affects the work factor but what I do know is that I
really don't care.

E-521 seems to have been chosen as the fastest prime giving a work
factor of at least 2^256. If someone finds a prime that gives a work
factor of 2^240 and is 30% faster, I would have to think about which I
preferred.


Comparing performance of symmetric algorithms is easier in some ways
as every strong 128 bit cipher has the exact same work factor. So we
are arguing over whether they are strong and which is faster (which
can of course be complex as it might be architecture dependent).

The problem I am trying to explore here is how we compare two
different proposals that deliver slightly different work factors.


Another point to consider here is that the whole PKIX world is
currently using 2048 bit keys and we have infrastructure built out to
support them. Any of these choices is going to be dramatically faster
and have shorter keys.

We use public keys with an effective work factor of 2^120 because that
is the best compromise of strength versus inconvenience, not because
that is a work factor we are happy with. From an architectural point
of view I would like my long term public keys that I use repeatedly to
be a lot stronger than my ephemeral keys and session keys.

So people implementing just one curve should probably be looking at
the curves giving a work factor of approx 2^256 rather than the
shorter ones. There are certainly people who think they need the
absolute best performance and go for the shorter ones. But thats most
likely to be driven by key size constraints trying to shoehorn into
UDP packets and twitter packets.


From nobody Thu Jul 24 08:17:44 2014
Return-Path: <plonga@microsoft.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 C8E091A0451 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 08:17:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 ASuQt-6trGbs for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 08:17:39 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0181.outbound.protection.outlook.com [207.46.163.181]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 393361A04BA for <Cfrg@irtf.org>; Thu, 24 Jul 2014 08:15:09 -0700 (PDT)
Received: from BY2PR03MB474.namprd03.prod.outlook.com (10.141.141.149) by BY2PR03MB476.namprd03.prod.outlook.com (10.141.141.153) with Microsoft SMTP Server (TLS) id 15.0.990.7; Thu, 24 Jul 2014 15:15:07 +0000
Received: from BY2PR03MB474.namprd03.prod.outlook.com ([10.141.141.149]) by BY2PR03MB474.namprd03.prod.outlook.com ([10.141.141.149]) with mapi id 15.00.0990.007; Thu, 24 Jul 2014 15:15:07 +0000
From: Patrick Longa Pierola <plonga@microsoft.com>
To: David Jacobson <dmjacobson@sbcglobal.net>, Phillip Hallam-Baker <phill@hallambaker.com>, "Cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] Comparing ECC curves
Thread-Index: AQHPpsVlokHtIBVyPkOedmRlQCZAupuurLaAgACcX4CAAAfBEA==
Date: Thu, 24 Jul 2014 15:15:06 +0000
Message-ID: <3bd6bf358e7a42a6ada96f7187656c32@BY2PR03MB474.namprd03.prod.outlook.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com> <53D117AD.8060506@sbcglobal.net>
In-Reply-To: <53D117AD.8060506@sbcglobal.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [50.47.83.223]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 028256169F
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(479174003)(243025005)(377454003)(13464003)(24454002)(189002)(199002)(106116001)(81542001)(50986999)(66066001)(83322001)(79102001)(15975445006)(76176999)(74662001)(86362001)(81342001)(77982001)(15202345003)(80022001)(2656002)(101416001)(105586002)(86612001)(33646002)(99396002)(99286002)(19580395003)(74316001)(46102001)(21056001)(19580405001)(76576001)(83072002)(20776003)(31966008)(85852003)(107046002)(74502001)(92566001)(76482001)(85306003)(107886001)(54356999)(64706001)(87936001)(4396001)(95666004)(106356001)(108616002)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB476; H:BY2PR03MB474.namprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/e_BQ10RGwFzYgTBP6QSj3VEKUVE
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: Thu, 24 Jul 2014 15:17:41 -0000

-----Original Message-----
From: David Jacobson [mailto:dmjacobson@sbcglobal.net]=20
Sent: Thursday, July 24, 2014 7:27 AM
To: Patrick Longa Pierola; Phillip Hallam-Baker; Cfrg@irtf.org
Subject: Re: [Cfrg] Comparing ECC curves

On 7/23/14 11:36 PM, Patrick Longa Pierola wrote:
[snip]
> An important related point: I haven't seen any result in the=20
> literature demonstrating any meaningful performance advantage when=20
> dropping one bit from 256 to 255 bits, or from 384 to 383, or from 512=20
> to 511 (case of primes with the form 2^m - c). Our experiments [1]=20
> reveal that one bit less injects less than 4% of performance=20
> improvement. Under this light, we prefer the conservative approach:
> keep a traditional 2 x s bitlength, which is multiple of a computer=20
> word of 64 bits (for a bit-security level s =3D {128,192,256}), maximize=
=20
> ECDLP security and make the curve generation process as simple and=20
> rigid as possible. This also helps to keep curve design at different=20
> security levels consistent. And, arguably, all this together avoids=20
> some potential errors and ease the work of implementers. At the other=20
> side of the spectrum, I haven't seen any performance advantage of=20
> increasing the prime bitlength beyond 2 x s. It is actually=20
> potentially counterproductive: in [1] we show that increasing the=20
> field representation by one word (which happens when moving from 512=20
> bits to 521 bits for example) degrades performance by a factor 1.2. In=20
> this case, the performance issues make the conservative approach even=20
> more attractive, taking as a bonus all the benefits mentioned above.
> [1] http://eprint.iacr.org/2014/130.pdf
[snip]

> David Jacobson wrote:
> You are addressing performance.  But what about the ease of making a cons=
tant time implementation?  The security value of 256 over 255 or 254 is not=
 much.  It is
> just that 256 is a nice round number, and might be a checkbox item.  If w=
e can accept 255 or 254, it might make constant time implementations easier=
.   Perhaps
> people who have done constant time implementations can comment.

All our implementations supporting different bitlenghts (255, 256, 383, 384=
, 511 and 512) are constant-time. They follow the standard approach using t=
he
minimal word representation (e.g., 4 words to represent 255 and 256-bit fie=
ld elements). Another alternative is to use an extended, unsaturated repres=
entation (e.g., in
the case of 255 and 256-bit one would use 5 words). Although the choice and=
 preference is somehow subjective and depends on a given implementer's pref=
erence,
ultimately every prime under discussion can be implemented in any of these =
two methods. So really the difficulty of implementation is not a differenti=
ating factor
in this case.

Patrick
=20


From nobody Thu Jul 24 09:53:16 2014
Return-Path: <mike@shiftleft.org>
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 04CE11A061D for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 09:53:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 UFNSIf6ToGw3 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 09:53:13 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D42B1A0547 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 09:53:13 -0700 (PDT)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id AE81E3AA13; Thu, 24 Jul 2014 09:51:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406220674; bh=pxLngsGA0W/ZvYplItCumey6aHIhw2dZPIVqgx1bWao=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=CJU3Dw2K9ADrGenesnQHE6sW63jhP5Eq03THFtSxsXevylLFauz5VR/nHm5G1ZOsI 2V1jdYwLq9KtsxekRhSDwdnsiysAjDFPOcTM04ZH0CsZaeH3yrx+HQ3JfYftj6plPd SKcqVwt49Iw2oofgGmCORAi66EvoskesHcEDDKjU=
Message-ID: <53D139EF.1020002@shiftleft.org>
Date: Thu, 24 Jul 2014 09:53:03 -0700
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>,  David Jacobson <dmjacobson@sbcglobal.net>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com> <53D117AD.8060506@sbcglobal.net> <CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com>
In-Reply-To: <CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------010602060200050603070208"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/EKuUNTog97m1gYnRn8TC26x9Ns8
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: Thu, 24 Jul 2014 16:53:15 -0000

This is a multi-part message in MIME format.
--------------010602060200050603070208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 7/24/2014 8:11 AM, Phillip Hallam-Baker wrote:
> E-521 seems to have been chosen as the fastest prime giving a work
> factor of at least 2^256. If someone finds a prime that gives a work
> factor of 2^240  and is 30% faster, I would have to think about which I
> preferred.
It may interest you to know that that the prime 2^480 - 2^240 - 1 is 
about 40% faster than 2^512 - 569 on modern 64-bit Intel processors, 
meaning that each field operation takes about 60% of the time.  For 
example, on Haswell a field multiply mod 2^480 - 2^240 - 1 costs about 
121 cycles, and addition (with no reduce, because of reduced radix) 
takes fewer cycles than the pipeline (it's just two AVX2 add instructions).

I believe it is also about that much faster on than 2^521 - 1 on Sandy 
Bridge, but only by 20% or so on Haswell due to an implementation of 
multiplication mod 2^521-1 using 3-way Karatsuba/Chung-Hasan with AVX2.  
It uses 9 limbs of 58 bits each organized as (Z[w]/(w^3-2))[t]/(t^3-w), 
and needs AVX2 for all the adding.

I don't know how the three primes stack up on ARM.

-- Mike

--------------010602060200050603070208
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 7/24/2014 8:11 AM, Phillip Hallam-Baker wrote:<br>
    <blockquote
cite="mid:CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com"
      type="cite">
      <pre wrap="">E-521 seems to have been chosen as the fastest prime giving a work
factor of at least 2<sup class="moz-txt-sup"><span style="display:inline-block;width:0;height:0;overflow:hidden">^</span>256</sup>. If someone finds a prime that gives a work
factor of 2<sup class="moz-txt-sup"><span style="display:inline-block;width:0;height:0;overflow:hidden">^</span>240</sup> and is 30% faster, I would have to think about which I
preferred.</pre>
    </blockquote>
    It may interest you to know that that the prime 2^480 - 2^240 - 1 is
    about 40% faster than 2^512 - 569 on modern 64-bit Intel processors,
    meaning that each field operation takes about 60% of the time.&nbsp; For
    example, on Haswell a field multiply mod 2^480 - 2^240 - 1 costs
    about 121 cycles, and addition (with no reduce, because of reduced
    radix) takes fewer cycles than the pipeline (it's just two AVX2 add
    instructions).<br>
    <br>
    I believe it is also about that much faster on than 2^521 - 1 on
    Sandy Bridge, but only by 20% or so on Haswell due to an
    implementation of multiplication mod 2^521-1 using 3-way
    Karatsuba/Chung-Hasan with AVX2.&nbsp; It uses 9 limbs of 58 bits each
    organized as (Z[w]/(w^3-2))[t]/(t^3-w), and needs AVX2 for all the
    adding.<br>
    <br>
    I don't know how the three primes stack up on ARM.<br>
    <br>
    -- Mike<br>
  </body>
</html>

--------------010602060200050603070208--


From nobody Thu Jul 24 10:24:10 2014
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 8DB5B1A0AF8 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 10:24:09 -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 KUrNyMuGXXpl for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 10:24:08 -0700 (PDT)
Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C5BD1A03AA for <Cfrg@irtf.org>; Thu, 24 Jul 2014 10:23:15 -0700 (PDT)
Received: by mail-wg0-f48.google.com with SMTP id x13so3063717wgg.19 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 10:23:13 -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=NHYY5kRgDfUwj4egvnLCwxwA3CojkD33M+PHTsZHkQk=; b=LaN7ZIUx9JK9G8l9AU8r2H7Us4Mqb54mLF2hiFBfdhrAbSBk3HzSSPlH6zxkpzoDhE R39RDvLcW5I8wB3RjAbTFKz/8rWm5fClyVIx3vd835osS7fSjqrynR4Uh7XuN6JP9GDL kwY8J5Xs0gK1ams6DGvVehCp7wNYiSS2onQPWox8AI7F+qcC6G+7EVWmkUL8Fo2HZH8D TQ7Nzeg9UcYSK5iG8uQ855jkotbCGnmiUQoUQHtI0FaGgYSgyuvllNsH7p2iAeW7Sn5V iphFTI9uMKvKn45ANR9UA6RnzBX/VIpi9f9Y+IfUgN1KuJJJ+BuroAi0WO4807c65rjQ QKIA==
MIME-Version: 1.0
X-Received: by 10.194.191.131 with SMTP id gy3mr14597709wjc.108.1406222593803;  Thu, 24 Jul 2014 10:23:13 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Thu, 24 Jul 2014 10:23:13 -0700 (PDT)
In-Reply-To: <53D139EF.1020002@shiftleft.org>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com> <53D117AD.8060506@sbcglobal.net> <CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com> <53D139EF.1020002@shiftleft.org>
Date: Thu, 24 Jul 2014 13:23:13 -0400
X-Google-Sender-Auth: A1SRILu7RBP8WdUABkBuNMw_cZo
Message-ID: <CAMm+LwhEC8Cqfv1Z+qiyNYEDU4t-mXwirCU9TY+d_XQEhXDvUw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Mike Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/b4ypSrGjIc7DkzexahDmEOBvfUU
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: Thu, 24 Jul 2014 17:24:09 -0000

On Thu, Jul 24, 2014 at 12:53 PM, Mike Hamburg <mike@shiftleft.org> wrote:
> On 7/24/2014 8:11 AM, Phillip Hallam-Baker wrote:
>
> E-521 seems to have been chosen as the fastest prime giving a work
> factor of at least 2^256. If someone finds a prime that gives a work
> factor of 2^240 and is 30% faster, I would have to think about which I
> preferred.
>
> It may interest you to know that that the prime 2^480 - 2^240 - 1 is about
> 40% faster than 2^512 - 569 on modern 64-bit Intel processors, meaning that
> each field operation takes about 60% of the time.  For example, on Haswell a
> field multiply mod 2^480 - 2^240 - 1 costs about 121 cycles, and addition
> (with no reduce, because of reduced radix) takes fewer cycles than the
> pipeline (it's just two AVX2 add instructions).
>
> I believe it is also about that much faster on than 2^521 - 1 on Sandy
> Bridge, but only by 20% or so on Haswell due to an implementation of
> multiplication mod 2^521-1 using 3-way Karatsuba/Chung-Hasan with AVX2.  It
> uses 9 limbs of 58 bits each organized as (Z[w]/(w^3-2))[t]/(t^3-w), and
> needs AVX2 for all the adding.

Hmm, that is good for performance I guess. But doesn't help making a decision.

Talking to folk, I see the current concerns raised:

1) Nothing up my sleeves.
2) Key size.
3) Ability to support encryption and signature with one set of code.
4) Performance.
5) Work factor

My point here is meeting a work factor precisely is much less
important to me than performance.

But the other argument raised is that if you drop the requirement for
hitting the work factor exactly and allow a tradeoff between work
factor and performance this clouds the argument for 'nothing up my
sleeves'.

I think that is actually a good argument. If the requirement is for
256 and nothing less, that is completely defensible. Opening the door
to performance/work factor tradeoffs makes the decision subjective and
we get back to the problem of the proposers proving that there is
nothing up their sleeves.


The objective here is not to decide which algorithms are good, it is
deciding which to reject. I am arguing for each of those criteria as
criteria for reducing the search space.


From nobody Thu Jul 24 10:52:42 2014
Return-Path: <ynir.ietf@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 49D861A0AAC for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 10:52:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 ytXX-TOtVCZJ for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 10:52:25 -0700 (PDT)
Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7FF01B2797 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 10:52:05 -0700 (PDT)
Received: by mail-we0-f181.google.com with SMTP id k48so3160691wev.40 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 10:52:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=4tbwnwjmb8WjySewiLNKNsCEcHpu8sELw5eFzy1QIm0=; b=CzI3FGp4helcn+y7zytmt/bDLktVZaX+/r+GdcPJOse7eyTldKT8MtQzCD7p6XJrcn aogKntUtj2YzSK8smmzxFcH+jSpFAfMcGNeMYmjcg1H3ASved/kLoZlDZ9FA6nFSY4pY C8CLH5OR34IKBCvYUCu2uCfEokFSSJjiqpRRdUVOpxdD2huVhOJr179uPvo/d/Hmoou6 UMiOX6W8410NTOEHSAmo2F7fGcz2G7ryrj8NvoCNn9HuJVdm+X3CjGK8Gvmg2YsOUz5W IL1ZtGFPVIXOlKcOl6xY7CrS+HXG+iYDOvt6PfpIO0KgmmXfjYAj44gnM4J/Xxaz9b44 YKzg==
X-Received: by 10.194.175.41 with SMTP id bx9mr14311778wjc.123.1406224324237;  Thu, 24 Jul 2014 10:52:04 -0700 (PDT)
Received: from wireless-v6.meeting.ietf.org ([2001:67c:370:160:98a4:b998:3a17:1e6f]) by mx.google.com with ESMTPSA id fb8sm25578111wib.15.2014.07.24.10.52.03 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:52:03 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_4049E95C-EA24-4063-AF60-8724127A1D6B"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <CAMm+LwhEC8Cqfv1Z+qiyNYEDU4t-mXwirCU9TY+d_XQEhXDvUw@mail.gmail.com>
Date: Thu, 24 Jul 2014 13:52:00 -0400
Message-Id: <72F16DDC-E62B-4AB0-B500-4C0EC74E8B38@gmail.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com> <53D117AD.8060506@sbcglobal.net> <CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com> <53D139EF.1020002@shiftleft.org> <CAMm+LwhEC8Cqfv1Z+qiyNYEDU4t-mXwirCU9TY+d_XQEhXDvUw@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hF2H0mjTrmzFyx8z45fxR0RcAdo
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: Thu, 24 Jul 2014 17:52:35 -0000

--Apple-Mail=_4049E95C-EA24-4063-AF60-8724127A1D6B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Jul 24, 2014, at 1:23 PM, Phillip Hallam-Baker =
<phill@hallambaker.com> wrote:

> On Thu, Jul 24, 2014 at 12:53 PM, Mike Hamburg <mike@shiftleft.org> =
wrote:
>> On 7/24/2014 8:11 AM, Phillip Hallam-Baker wrote:
>>=20
>> E-521 seems to have been chosen as the fastest prime giving a work
>> factor of at least 2^256. If someone finds a prime that gives a work
>> factor of 2^240 and is 30% faster, I would have to think about which =
I
>> preferred.
>>=20
>> It may interest you to know that that the prime 2^480 - 2^240 - 1 is =
about
>> 40% faster than 2^512 - 569 on modern 64-bit Intel processors, =
meaning that
>> each field operation takes about 60% of the time.  For example, on =
Haswell a
>> field multiply mod 2^480 - 2^240 - 1 costs about 121 cycles, and =
addition
>> (with no reduce, because of reduced radix) takes fewer cycles than =
the
>> pipeline (it's just two AVX2 add instructions).
>>=20
>> I believe it is also about that much faster on than 2^521 - 1 on =
Sandy
>> Bridge, but only by 20% or so on Haswell due to an implementation of
>> multiplication mod 2^521-1 using 3-way Karatsuba/Chung-Hasan with =
AVX2.  It
>> uses 9 limbs of 58 bits each organized as (Z[w]/(w^3-2))[t]/(t^3-w), =
and
>> needs AVX2 for all the adding.
>=20
> Hmm, that is good for performance I guess. But doesn't help making a =
decision.
>=20
> Talking to folk, I see the current concerns raised:
>=20
> 1) Nothing up my sleeves.
> 2) Key size.
> 3) Ability to support encryption and signature with one set of code.
> 4) Performance.
> 5) Work factor

You missed:
   6) constant-time operation



--Apple-Mail=_4049E95C-EA24-4063-AF60-8724127A1D6B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><br><div><div>On Jul 24, 2014, at 1:23 PM, Phillip =
Hallam-Baker &lt;<a =
href=3D"mailto:phill@hallambaker.com">phill@hallambaker.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;">On Thu, Jul 24, 2014 at 12:53 PM, =
Mike Hamburg &lt;<a =
href=3D"mailto:mike@shiftleft.org">mike@shiftleft.org</a>&gt; =
wrote:<br><blockquote type=3D"cite">On 7/24/2014 8:11 AM, Phillip =
Hallam-Baker wrote:<br><br>E-521 seems to have been chosen as the =
fastest prime giving a work<br>factor of at least 2^256. If someone =
finds a prime that gives a work<br>factor of 2^240 and is 30% faster, I =
would have to think about which I<br>preferred.<br><br>It may interest =
you to know that that the prime 2^480 - 2^240 - 1 is about<br>40% faster =
than 2^512 - 569 on modern 64-bit Intel processors, meaning that<br>each =
field operation takes about 60% of the time. &nbsp;For example, on =
Haswell a<br>field multiply mod 2^480 - 2^240 - 1 costs about 121 =
cycles, and addition<br>(with no reduce, because of reduced radix) takes =
fewer cycles than the<br>pipeline (it's just two AVX2 add =
instructions).<br><br>I believe it is also about that much faster on =
than 2^521 - 1 on Sandy<br>Bridge, but only by 20% or so on Haswell due =
to an implementation of<br>multiplication mod 2^521-1 using 3-way =
Karatsuba/Chung-Hasan with AVX2. &nbsp;It<br>uses 9 limbs of 58 bits =
each organized as (Z[w]/(w^3-2))[t]/(t^3-w), and<br>needs AVX2 for all =
the adding.<br></blockquote><br>Hmm, that is good for performance I =
guess. But doesn't help making a decision.<br><br>Talking to folk, I see =
the current concerns raised:<br><br>1) Nothing up my sleeves.<br>2) Key =
size.<br>3) Ability to support encryption and signature with one set of =
code.<br>4) Performance.<br>5) Work =
factor<br></div></blockquote><div><br></div>You missed:</div><div>&nbsp; =
&nbsp;6) constant-time operation</div><div><br></div><br></body></html>=

--Apple-Mail=_4049E95C-EA24-4063-AF60-8724127A1D6B--


From nobody Thu Jul 24 10:59:14 2014
Return-Path: <Michael.Jones@microsoft.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 F17151ABB2B for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 10:59:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 6-Wg9FQbBR-b for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 10:59:01 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0240.outbound.protection.outlook.com [207.46.163.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 51FEC1A019C for <Cfrg@irtf.org>; Thu, 24 Jul 2014 10:58:42 -0700 (PDT)
Received: from CH1PR03CA006.namprd03.prod.outlook.com (10.255.156.151) by BL2PR03MB618.namprd03.prod.outlook.com (10.255.109.43) with Microsoft SMTP Server (TLS) id 15.0.995.14; Thu, 24 Jul 2014 17:58:40 +0000
Received: from BN1BFFO11FD001.protection.gbl (10.255.156.132) by CH1PR03CA006.outlook.office365.com (10.255.156.151) with Microsoft SMTP Server (TLS) id 15.0.995.14 via Frontend Transport; Thu, 24 Jul 2014 17:58:40 +0000
Received: from mail.microsoft.com (131.107.125.37) by BN1BFFO11FD001.mail.protection.outlook.com (10.58.144.64) with Microsoft SMTP Server (TLS) id 15.0.980.11 via Frontend Transport; Thu, 24 Jul 2014 17:58:39 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC104.redmond.corp.microsoft.com ([157.54.80.25]) with mapi id 14.03.0195.002; Thu, 24 Jul 2014 17:58:01 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Thread-Topic: [Cfrg] Comparing ECC curves
Thread-Index: AQHPpsVltRKhI9riPEacZw7cZlqhYJuuPs2AgAAMEwCAAB/AAIAAHY0AgAAPJwCAAKC2gIAASxQA
Date: Thu, 24 Jul 2014 17:58:00 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439ADEBF56@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <CA+Vbu7xAcKjpeqWGqkVRQeENELdMYUpZF6BNb2ntne25_dyzKg@mail.gmail.com> <CAMm+LwgDZR1_onqJ2sAEx7=rgh7=9mGYuqS36nb0T-RAr6Vgnw@mail.gmail.com> <CACsn0c=o0HFdr_qn--H8ZStQan2asbt-M60kP_70p1DCT5f0_w@mail.gmail.com> <CAMm+LwjxnGw6hgoba_V+GY8WVKh-YGpPkw1AFfn_RvoX+2OzKQ@mail.gmail.com> <CACsn0cmywvO1eNf96nyVtP8dYdqAPj9QYCLCdMNNbnkYN-05hQ@mail.gmail.com> <CAMm+Lwhp-N+gU5ThCu1CdjvWzbg-T8xw_-t4tHu4TsZ-WvuGMA@mail.gmail.com>
In-Reply-To: <CAMm+Lwhp-N+gU5ThCu1CdjvWzbg-T8xw_-t4tHu4TsZ-WvuGMA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.37]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(199002)(189002)(86362001)(106116001)(46406003)(15975445006)(77096002)(93886003)(92566001)(97756001)(76482001)(84676001)(77982001)(81156004)(2656002)(31966008)(26826002)(106466001)(23726002)(97736001)(21056001)(87936001)(93376004)(92726001)(104016003)(86612001)(83322001)(85852003)(83072002)(76176999)(44976005)(19580395003)(6806004)(54356999)(50986999)(20776003)(85306003)(95666004)(99396002)(79102001)(68736004)(50466002)(110136001)(69596002)(15202345003)(64706001)(74662001)(4396001)(55846006)(47776003)(81542001)(46102001)(80022001)(66066001)(81342001)(33656002)(74502001)(107046002)(15302535012); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB618; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 028256169F
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/GxSk-yOeFcHBwJ-20_v8WAiLlyI
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: Thu, 24 Jul 2014 17:59:06 -0000

> I would really like to standardize on AES-GCM going forward for new proto=
cols. But right now I can't use that in Windows .NET without writing my own=
 AES code. Hmmm.

See http://blogs.msdn.com/b/shawnfa/archive/2009/03/17/authenticated-symmet=
ric-encryption-in-net.aspx for an example using the authenticated encryptio=
n support in .NET.  Substitute CngChainingMode.Gcm for CngChainingMode.Ccm =
in the code and you're off to the races using GCM in .NET.

				-- Mike


From nobody Thu Jul 24 11:46:56 2014
Return-Path: <mike@shiftleft.org>
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 011A31A0194 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 11:46:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 1ur2zqwMnj8F for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 11:46:53 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8CE4D1A0146 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 11:46:53 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 2C9103AA13; Thu, 24 Jul 2014 11:44:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406227494; bh=OMIyhRmieYyKK2hU8EVgND6gUI5x2gK4pNuKTQoGpCk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Ipa5a4/FQQ8L1MUPlHUgk/WYbuawcVXXquzReG25HJ7rfBd9r6yGJHQOIrx65pc0u FHAacV4YkRFg/onkTW4f2NJZyfx/yHpy7qAMT6Ntv9n+bfAsD45XrnOgF34sjLGuWs 9xNhdZk4B2iumuSmfp6ftiU4mOLijsWjuS28Ghqc=
Content-Type: multipart/alternative; boundary="Apple-Mail=_6F3CDF41-D879-4598-B7D9-9DBA7380AAA9"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <72F16DDC-E62B-4AB0-B500-4C0EC74E8B38@gmail.com>
Date: Thu, 24 Jul 2014 11:46:49 -0700
Message-Id: <8A5BD82E-F647-417D-A5A3-A7B13562FABC@shiftleft.org>
References: <CAMm+Lwj9EPJ9v92xrkM1ceAbkWYe22fpOOBObUbUJjkk8X0dng@mail.gmail.com> <bf68fd7300e14fb58330b094f4795f30@BY2PR03MB474.namprd03.prod.outlook.com> <53D117AD.8060506@sbcglobal.net> <CAMm+LwiJbkr3z5DxDtVMqjrzt0bz=5+4MRkwBMSScoLh_K=k0Q@mail.gmail.com> <53D139EF.1020002@shiftleft.org> <CAMm+LwhEC8Cqfv1Z+qiyNYEDU4t-mXwirCU9TY+d_XQEhXDvUw@mail.gmail.com> <72F16DDC-E62B-4AB0-B500-4C0EC74E8B38@gmail.com>
To: Yoav Nir <ynir.ietf@gmail.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sKrQCVaTQaK9rSCeoV1QNAmRWUI
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: Thu, 24 Jul 2014 18:46:55 -0000

--Apple-Mail=_6F3CDF41-D879-4598-B7D9-9DBA7380AAA9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Jul 24, 2014, at 10:52 AM, Yoav Nir <ynir.ietf@gmail.com> wrote:

>=20
> On Jul 24, 2014, at 1:23 PM, Phillip Hallam-Baker =
<phill@hallambaker.com> wrote:
>=20
>> On Thu, Jul 24, 2014 at 12:53 PM, Mike Hamburg <mike@shiftleft.org> =
wrote:
>>> On 7/24/2014 8:11 AM, Phillip Hallam-Baker wrote:
>>>=20
>>> E-521 seems to have been chosen as the fastest prime giving a work
>>> factor of at least 2^256. If someone finds a prime that gives a work
>>> factor of 2^240 and is 30% faster, I would have to think about which =
I
>>> preferred.
>>>=20
>>> It may interest you to know that that the prime 2^480 - 2^240 - 1 is =
about
>>> 40% faster than 2^512 - 569 on modern 64-bit Intel processors, =
meaning that
>>> each field operation takes about 60% of the time.  For example, on =
Haswell a
>>> field multiply mod 2^480 - 2^240 - 1 costs about 121 cycles, and =
addition
>>> (with no reduce, because of reduced radix) takes fewer cycles than =
the
>>> pipeline (it's just two AVX2 add instructions).
>>>=20
>>> I believe it is also about that much faster on than 2^521 - 1 on =
Sandy
>>> Bridge, but only by 20% or so on Haswell due to an implementation of
>>> multiplication mod 2^521-1 using 3-way Karatsuba/Chung-Hasan with =
AVX2.  It
>>> uses 9 limbs of 58 bits each organized as (Z[w]/(w^3-2))[t]/(t^3-w), =
and
>>> needs AVX2 for all the adding.
>>=20
>> Hmm, that is good for performance I guess. But doesn't help making a =
decision.
>>=20
>> Talking to folk, I see the current concerns raised:
>>=20
>> 1) Nothing up my sleeves.
>> 2) Key size.
>> 3) Ability to support encryption and signature with one set of code.
>> 4) Performance.
>> 5) Work factor
>=20
> You missed:
>    6) constant-time operation


I=92d like to add:
  7) difficulty of implementation.

I think that 2), 3) and 6) are close to even across every option.

2) Every curve can use point compression once the patent expires, even =
if they don=92t use the Montgomery ladder.  So the key size is the same =
as the field size, +- a few bits.

3) Weierstrass has this by default.  The other options proposed are all =
twisted or untwisted Edwards, or Montgomery.  These three forms are all =
isomorphic or isogenous to each other depending on the field, so you can =
pick your representation.  The isomorphisms and isogenies tend to be =
cheap and simple enough not to matter very much.

For a stronger curve (384-bit field and above), =
Bos-Costello-Longa-Naehrig and I did work which suggests that the =
Montgomery ladder is only 5% faster than twisted Edwards, and only if =
you=92re compressing points.  So implementations can use twisted Edwards =
for everything if they want simplicity.  Montgomery-compatible point =
formats might still be desirable, but they aren=92t that important.

6) To my knowledge, all the options we=92ve discussed support =
constant-time operation.  The Weierstrass options are complex but =
doable.  The full-size packed options (field size 256, 384, 512) are =
slightly tricky but not that bad.


So that leaves:

1) NUMS.  I think we can all agree that this favors the BCLN curves and =
Curve25519.

4) Performance.  This trades off with work factor, but overall I think =
it favors non-BCLN curves (Curve25519, Ed448-Goldilocks, a 480-bit =
cousin of Goldilocks, possibly E-521) and within the BCLN curves it =
favors the twisted Edwards ones.

5) Work factor.  It=92s clear what this is for every curve, but it isn=92t=
 clear what the ideal set of options is.

7) Difficulty of implementation.  This favors cofactor-4 curves, because =
constant-time Weierstrass is tricky (but doable and not horribly slow; =
see BCLN).

Cheers,
=97 Mike=

--Apple-Mail=_6F3CDF41-D879-4598-B7D9-9DBA7380AAA9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><br><div><div>On Jul 24, 2014, at 10:52 AM, Yoav Nir =
&lt;<a href=3D"mailto:ynir.ietf@gmail.com">ynir.ietf@gmail.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;"><div><br class=3D"Apple-interchange-newline">On Jul 24, 2014, at =
1:23 PM, Phillip Hallam-Baker &lt;<a =
href=3D"mailto:phill@hallambaker.com">phill@hallambaker.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;">On Thu, Jul 24, 2014 at 12:53 PM, =
Mike Hamburg &lt;<a =
href=3D"mailto:mike@shiftleft.org">mike@shiftleft.org</a>&gt; =
wrote:<br><blockquote type=3D"cite">On 7/24/2014 8:11 AM, Phillip =
Hallam-Baker wrote:<br><br>E-521 seems to have been chosen as the =
fastest prime giving a work<br>factor of at least 2^256. If someone =
finds a prime that gives a work<br>factor of 2^240 and is 30% faster, I =
would have to think about which I<br>preferred.<br><br>It may interest =
you to know that that the prime 2^480 - 2^240 - 1 is about<br>40% faster =
than 2^512 - 569 on modern 64-bit Intel processors, meaning that<br>each =
field operation takes about 60% of the time. &nbsp;For example, on =
Haswell a<br>field multiply mod 2^480 - 2^240 - 1 costs about 121 =
cycles, and addition<br>(with no reduce, because of reduced radix) takes =
fewer cycles than the<br>pipeline (it's just two AVX2 add =
instructions).<br><br>I believe it is also about that much faster on =
than 2^521 - 1 on Sandy<br>Bridge, but only by 20% or so on Haswell due =
to an implementation of<br>multiplication mod 2^521-1 using 3-way =
Karatsuba/Chung-Hasan with AVX2. &nbsp;It<br>uses 9 limbs of 58 bits =
each organized as (Z[w]/(w^3-2))[t]/(t^3-w), and<br>needs AVX2 for all =
the adding.<br></blockquote><br>Hmm, that is good for performance I =
guess. But doesn't help making a decision.<br><br>Talking to folk, I see =
the current concerns raised:<br><br>1) Nothing up my sleeves.<br>2) Key =
size.<br>3) Ability to support encryption and signature with one set of =
code.<br>4) Performance.<br>5) Work =
factor<br></div></blockquote><div><br></div>You missed:</div><div =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;">&nbsp; &nbsp;6) constant-time =
operation</div></blockquote></div><div><br></div><div>I=92d like to =
add:</div><div>&nbsp; 7) difficulty of =
implementation.</div><div><br></div><div>I think that 2), 3) and 6) are =
close to even across every option.</div><div><br></div><div>2) Every =
curve can use point compression once the patent expires, even if they =
don=92t use the Montgomery ladder. &nbsp;So the key size is the same as =
the field size, +- a few bits.</div><div><br></div><div>3) Weierstrass =
has this by default. &nbsp;The other options proposed are all twisted or =
untwisted Edwards, or Montgomery. &nbsp;These three forms are all =
isomorphic or isogenous to each other depending on the field, so you can =
pick your representation. &nbsp;The isomorphisms and isogenies tend to =
be cheap and simple enough not to matter very =
much.</div><div><br></div><div>For a stronger curve (384-bit field and =
above),&nbsp;Bos-Costello-Longa-Naehrig&nbsp;and I did work which =
suggests that the Montgomery ladder is only 5% faster than twisted =
Edwards, and only if you=92re compressing points. &nbsp;So =
implementations can use twisted Edwards for everything if they want =
simplicity. &nbsp;Montgomery-compatible point formats might still be =
desirable, but they aren=92t that important.</div><div><br></div><div>6) =
To my knowledge, all the options we=92ve discussed support constant-time =
operation. &nbsp;The Weierstrass options are complex but doable. =
&nbsp;The full-size packed options (field size 256, 384, 512) are =
slightly tricky but not that =
bad.</div><div><br></div><div><br></div><div>So that =
leaves:</div><div><br></div><div>1) NUMS. &nbsp;I think we can all agree =
that this favors the BCLN curves and =
Curve25519.</div><div><br></div><div>4) Performance. &nbsp;This trades =
off with work factor, but overall I think it favors non-BCLN curves =
(Curve25519, Ed448-Goldilocks, a 480-bit cousin of Goldilocks, possibly =
E-521) and within the BCLN curves it favors the twisted Edwards =
ones.</div><div><br></div><div>5) Work factor. &nbsp;It=92s clear what =
this is for every curve, but it isn=92t clear what the ideal set of =
options is.</div><div><br></div><div>7) Difficulty of implementation. =
&nbsp;This favors cofactor-4 curves, because constant-time Weierstrass =
is tricky (but doable and not horribly slow; see =
BCLN).</div><div><br></div><div>Cheers,</div><div>=97 =
Mike</div></body></html>=

--Apple-Mail=_6F3CDF41-D879-4598-B7D9-9DBA7380AAA9--


From nobody Thu Jul 24 11:58:32 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 A9F0C1B27DA for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 11:58:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 mEj5SZtLMjSz for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 11:58:25 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0075.outbound.protection.outlook.com [213.199.154.75]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 265EF1B27B5 for <cfrg@irtf.org>; Thu, 24 Jul 2014 11:58:24 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) with Microsoft SMTP Server (TLS) id 15.0.990.7; Thu, 24 Jul 2014 18:58:22 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0990.007; Thu, 24 Jul 2014 18:58:22 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>, "saag@ietf.org" <saag@ietf.org>
Thread-Topic: CFRG@IETF90 summary
Thread-Index: AQHPp3E9D6TDVep/6EOKPK8XSZUHtA==
Date: Thu, 24 Jul 2014 18:58:21 +0000
Message-ID: <CFF6CF85.28BE8%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [31.133.156.135]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 028256169F
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(60444003)(189002)(85852003)(81542001)(64706001)(36756003)(107886001)(101416001)(105586002)(79102001)(107046002)(81342001)(76482001)(20776003)(229853001)(83506001)(46102001)(106116001)(83072002)(54356999)(15975445006)(50986999)(19580395003)(87936001)(2656002)(4396001)(92566001)(99396002)(92726001)(77982001)(95666004)(66066001)(80022001)(74662001)(74482001)(74502001)(85306003)(106356001)(31966008)(15974865002)(83322001)(86362001)(21056001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <1ACD9BC1323B9549987D324066741734@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gAEbC7nNDm14l5rmuvy2fYqRqCg
Subject: [Cfrg] CFRG@IETF90 summary
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: Thu, 24 Jul 2014 18:58:28 -0000

CFRG met at IETF90 this week in Toronto. The agenda and meeting materials
can be found at

https://datatracker.ietf.org/meeting/90/agenda/cfrg/
https://datatracker.ietf.org/meeting/90/agenda/cfrg-drafts.pdf

The main focus of our meeting was presentations and discussions in
response to the TLS WG's request for recommendations for new elliptic
curves (see www.ietf.org/mail-archive/web/cfrg/current/msg04655.html for
details of the request). Tanja Lange from TU Eindhoven set the scene by
giving a tutorial on ECC, old and new. Brian LaMacchia and Craig Costello
from Microsoft talked about NUMS curves. Dan Bernstein from UIC/TU
Eindhoven spoke about Curve25519 and friends. There was active discussion
on the TLS WG's request during and after the presentations.

Yoav Nir (Check Point) presented on AEAD built from ChaCha20+Poly1305 for
TLS. CFRG has adopted a document describing the latter scheme, and the
CFRG chairs will soon receive a formal request from TLS WG to review this
document. The document itself can be found at
www.ietf.org/id/draft-irtf-cfrg-chacha20-poly1305-00.txt

We also had a presentation from David McGrew (Cisco Systems) on hash-based
signatures, relating to the Internet Draft
www.ietf.org/id/draft-mcgrew-hash-sigs-02.txt. The CFRG chairs will
formally ask CFRG if we should adopt the document as a RG document.

Rifaat Shekh-Yusef gave a presentation on Challenge-Response mechanisms.

Under AoB, Wendy Seltzer, representing W3C, asked CFRG to consider
creating a "per-algorithm" security considerations Informational RFC for
the algorithms listed in the W3C Web Cryptography API
(www.w3.org/TR/WebCryptoAPI). In principle, the CFRG will sponsor this
work; the initial Internet Draft will be produced by Graham Steel (INRIA),
with feedback from Rich Salz (Akamai) and help from the W3C staff. Once a
draft is available, the CFRG chairs will formally ask the CFRG list to
consider sponsoring this document.

Kenny Paterson
(for the CFRG chairs)








From nobody Thu Jul 24 12:54:54 2014
Return-Path: <dbrown@certicom.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 72ABF1A0ADD for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 12:54:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.299
X-Spam-Level: 
X-Spam-Status: No, score=-1.299 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, J_CHICKENPOX_22=0.6] 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 3FiMG7UIuhDM for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 12:54:49 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 0AF8F1A0AC1 for <cfrg@irtf.org>; Thu, 24 Jul 2014 12:54:48 -0700 (PDT)
Received: from xct106cnc.rim.net ([10.65.161.206]) by mhs210cnc.rim.net with ESMTP/TLS/AES128-SHA; 24 Jul 2014 15:54:44 -0400
Received: from XCT114CNC.rim.net (10.65.161.214) by XCT106CNC.rim.net (10.65.161.206) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 24 Jul 2014 15:54:43 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT114CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Thu, 24 Jul 2014 15:54:43 -0400
From: Dan Brown <dbrown@certicom.com>
To: "D. J. Bernstein" <djb@cr.yp.to>
Thread-Topic: Side channel effectiveness against P256?
Thread-Index: Ac+neRxn9JPdjeeURryk8KmXSL41ag==
Date: Thu, 24 Jul 2014 19:54:42 +0000
Message-ID: <20140724195442.6656149.37460.17103@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============2140904899=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BZJgamS3AXVbTzZj4JenyWmbZHA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] Side channel effectiveness against P256?
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: Thu, 24 Jul 2014 19:54:50 -0000

--===============2140904899==
Content-Type: multipart/alternative; boundary="===============1074915299=="
MIME-Version: 1.0

--===============1074915299==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

4oCORGFuLAoKRm9yZ290IHRvIGFzayB5ZXN0ZXJkYXk6IGlzIHRoZSBzaWRlIGNoYW5uZWwgb24g
bmFpdmUgUDI1NiB5b3UgZGVzY3JpYmVkIGluIHRoZSBDRlJHIG1lZXRpbmcgZXhwbG9pdGFibGUg
YWdhaW5zdCBFQ0RIRSBvdmVyIEludGVybmV0IHZpYSB0aW1pbmc/4oCOIElmIG5vdCwgd2hlbiBp
cyBpdCBleHBsb2l0YWJsZT8gRWcsYnkgdGltaW5nIDI1NiBrZXkgcmUtdXNlcyBvbiBhIGxvY2Fs
IG5ldHdvcmsgb25seT8gQnkgYW5vdGhlciBwcm9jZXNzIGluIHRoZSBzYW1lIG1hY2hpbmU/IEkg
cmVhbGx5IGRvbid0IGtub3cgdGhpcyBhcmVhLiBTaG91bGQgd2UgcmVjb21tZW5kIGFnYWluc3Qg
c3VjaCBzZXR0aW5ncyByYXRoZXIgdGhhbiBqdXN0IHJlbHlpbmcgb24gc2lkZSBjaGFubmVsIGNv
dW50ZXJtZWFzdXJlcyBmb3IgUDI1Nj/CoAoKQmVzdCByZWdhcmRzLCAKCi0tIERhbgoKUFMgU29y
cnkgaWYgeW91IGFscmVhZHkgYW5zd2VyZWQgdGhpcyBpbiB5b3VyIHRhbGvigI4u

--===============1074915299==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/plain;"><styl=
e> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }=
</style> </head> <body data-blackberry-caret-color=3D"#00a8df"><div>=E2=80=
=8EDan,</div><div><br></div><div>Forgot to ask yesterday: is the side chann=
el on naive P256 you described in the CFRG meeting exploitable against ECDH=
E over Internet via timing?=E2=80=8E If not, when is it exploitable? Eg,by =
timing 256 key re-uses on a local network only? By another process in the s=
ame machine? I really don't know this area. Should we recommend against suc=
h settings rather than just relying on side channel countermeasures for P25=
6?&nbsp;</div><div><br name=3D"BB10" caretmarkerset=3D"INVALID" class=3D"ma=
rkedForCaretMarkerRemoval"></div><div>Best regards, <br><br>-- Dan</div><di=
v><br></div><div>PS Sorry if you already answered this in your talk=E2=80=
=8E.</div></body></html>
--===============1074915299==--

--===============2140904899==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQxNDM2M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eWxNvqZZn19xEPLwimAPeabIBoN4bH359ed
LJqWOx3hDxkWYfb4JRn4tsJzKmP0IDvqrO/HajvwtW3t6rkFN1h0OmHGa9yT9UXO8o++iu4xggFf
MIIBWwIBATBeMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAi
BgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRgIKbandRwAEAAAFajAHBgUrDgMCGqBd
MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDcyNDE5NTQzOVow
IwYJKoZIhvcNAQkEMRYEFIrCWu3j0G9CqoFxHLuyGAKK3VxxMAsGCSqGSIb3DQEBBQSBgCVWFt+w
VRUVPO6SayFamjFmeo26VF2OBEwRKs3oNc2Tq5YSopnJ84dm/eKnbpCNc9VFRqzbwcVEaGe5lPI4
TdVob77kA5WXMXHfO92N6ZHNmi+SXQi8ro55fhpNavzB9lQHwNLQrDt56v/fbTTZTSwy+riSvjbU
PoiLePxR/NrOAAAAAAAA

--===============2140904899==--


From nobody Thu Jul 24 14:55:56 2014
Return-Path: <dbrown@certicom.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 1CE2B1A00E6 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 14:55:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 c6PJIEqKb7VV for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 14:55:53 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 2DC611A00DE for <cfrg@irtf.org>; Thu, 24 Jul 2014 14:55:52 -0700 (PDT)
Received: from xct103cnc.rim.net ([10.65.161.203]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 24 Jul 2014 17:55:52 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT103CNC.rim.net ([fe80::b8:d5e:26a5:f4d6%17]) with mapi id 14.03.0174.001; Thu, 24 Jul 2014 17:55:51 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Random curves
Thread-Index: Ac+nigiu48BgBnYiS2yVh7eAQRKwpw==
Date: Thu, 24 Jul 2014 21:55:51 +0000
Message-ID: <20140724215550.6656150.15604.17116@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============1646856345=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/FnMIxUEh08fV7eW5sDzCqro571A
Subject: [Cfrg] Random 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: Thu, 24 Jul 2014 21:55:55 -0000

--===============1646856345==
Content-Type: multipart/alternative; boundary="===============0530544587=="
MIME-Version: 1.0

--===============0530544587==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

4oCOSnVzdCB0byBjbGFyaWZ5LCBJIHN0aWxsIHRoaW5rIHJhbmRvbSBjdXJ2ZXMgY2FuIHByb3Zp
ZGUgYmV0dGVyIHNlY3VyaXR5IGFzc3VyYW5jZXMgdGhhbiBzcGVjaWFsIGN1cnZlcywgYmVjYXVz
ZSB0d28gcmVhbCBub24tZ2VuZXJpYyBFQyBhdHRhY2tzLCBNT1YgYW5kIFNBU1MsIHdvdWxkIGhh
dmUgYmVlbiBhdm9pZGVkIGJ5IHJhbmRvbSBjdXJ2ZXMgYW5kIGJlY2F1c2Ugc3BlY2lhbCBjdXJ2
ZXMgd2VyZSBwcm9wb3NlZCB0aGF0IHdlcmUgYWZmZWN0ZWQgYnkgdGhlbS7CoAoKVGhhdCBzYWlk
LCBJIGFncmVlIGl0J3MgaGFyZGVyIHRvIGVzdGFibGlzaCB0aGUgTlVNUyBwcm9wZXJ0eSBmb3Ig
cmFuZG9tIG9yIHBzZXVkb3JhbmRvbSBjdXJ2ZXMsIGFuZCBJIHRoaW5rIHJpZ2lkIHNwZWNpYWwg
Y3VydmVz4oCOIGFyZSBva2F5LCBqdXN0IG5vdCB0aGUgYmVzdC4KCkJlc3QgcmVnYXJkcywgCgot
LSBEYW4=

--===============0530544587==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/plain;"><styl=
e> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }=
</style> </head> <body data-blackberry-caret-color=3D"#00a8df"><div>=E2=80=
=8EJust to clarify, I still think random curves can provide better security=
 assurances than special curves, because two real non-generic EC attacks, M=
OV and SASS, would have been avoided by random curves and because special c=
urves were proposed that were affected by them.&nbsp;</div><div><br name=3D=
"BB10" caretmarkerset=3D"INVALID" class=3D"markedForCaretMarkerRemoval"></d=
iv><div>That said, I agree it's harder to establish the NUMS property for r=
andom or pseudorandom curves, and I think rigid special curves=E2=80=8E are=
 okay, just not the best.</div><div><span style=3D"font-family: Calibri, 'S=
late Pro', sans-serif;" name=3D"BB10" caretmarkerset=3D"INVALID" class=3D"m=
arkedForCaretMarkerRemoval"></span><br name=3D"BB10" caretmarkerset=3D"INVA=
LID" class=3D"markedForCaretMarkerRemoval"></div><div>Best regards, <br><br=
>-- Dan</div></body></html>
--===============0530544587==--

--===============1646856345==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQxNDM2MzhaMIGkMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMQ0wCwYDVQQLEwRBTUVSMQswCQYDVQQLEwJDQTEUMBIGA1UE
CxMLTWlzc2lzc2F1Z2ExDjAMBgNVBAsTBVVzZXJzMRIwEAYDVQQDEwlEYW4gQnJvd24xIjAgBgkq
hkiG9w0BCQEWE2Ricm93bkBjZXJ0aWNvbS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
AOeGGgTmotlA0vPS6BzGw3AuPnPHRJeU6ZCVs9Jrqo51z+saUmKgc6LbMPUqTw9/9MBfA8++2YZG
DfAQ0hdEQHbZn1yl3uNLUJB6KZTeKaLPY5wWVuXvB7k2VJBFQv6u239/fXLJKcTLfTAPd+ILwa0p
NUDW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wd0qXFB7Hw2p0vWbKiWgQLkWwAM5Ph0bz6MF8OIFqKJRDiHiU4tzojVXZ07BUy
6wAlpkxpmpM0JotNogLyVhQcC/rIetw5sd/Yxilo6/MwmekXcQTLkl2EzOHF7yryR/begErdhHBk
aiqztnXZPXfIAAAAAAAA

--===============1646856345==--


From nobody Thu Jul 24 18:15:29 2014
Return-Path: <watsonbladd@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 B18FD1A0324 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 18:15:27 -0700 (PDT)
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 lEUtL-RgE3Qx for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 18:15:25 -0700 (PDT)
Received: from mail-yh0-x231.google.com (mail-yh0-x231.google.com [IPv6:2607:f8b0:4002:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 005311A0016 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 18:15:24 -0700 (PDT)
Received: by mail-yh0-f49.google.com with SMTP id b6so2492639yha.36 for <Cfrg@irtf.org>; Thu, 24 Jul 2014 18:15:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:cc:content-type;  bh=aTw+fI/KUNwGt9q3e0JlZuW4N364Ps3yIyoi+E8wn8Y=; b=bxayu+WjIDaqm1VcBLalX9mM7tvxeMjwKhPTl5c9HVyuQOzc0O6tGyeaTCFfUOC/nF DJkxsGla1wwwdqt9+iVKniKyqo+bgDbtxgLAEpR24e7L619S0EXIPsQjKZFse4xSOfkl NjhiP5+yqpX5rvIaxTKnxiirNKdfpP+7Bt5EF3/X3EP3SO3wC0EJW6XhHJMmR0DlRvaa L5pmGGO7+9ymgYShM3T658pz4yQ0wMktbcDBoO6NZQXZCfi28V0TbsSiX2BJQ0TJLeBr BWs6tUMstBIE6jasPW1Slm5K6WdXbHovTJWarzDMCCFyHGY2orqCaGlQfjB1BMTcfOZc xGhA==
MIME-Version: 1.0
X-Received: by 10.236.104.133 with SMTP id i5mr17562783yhg.137.1406250924180;  Thu, 24 Jul 2014 18:15:24 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Thu, 24 Jul 2014 18:15:24 -0700 (PDT)
Date: Thu, 24 Jul 2014 18:15:24 -0700
Message-ID: <CACsn0ckjgxK5xp_AHu7qAsS5z_LdTMuPBfrths1MjaARTtkJjg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/5ydW8YwYFlKCxeYX6uzNIZa8LJA
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: [Cfrg] What the CFRG could do (was Re:  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: Fri, 25 Jul 2014 01:15:27 -0000

On Thu, Jul 24, 2014 at 6:25 AM, Phillip Hallam-Baker
<phill@hallambaker.com> wrote:
> On Wed, Jul 23, 2014 at 11:50 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>> On Wed, Jul 23, 2014 at 7:56 PM, Phillip Hallam-Baker
>> <phill@hallambaker.com> wrote:
>
>>> The idea of this is that future protocols would not make MTI choices
>>> of algorithms, they would reference the consensus RFC and leave it at
>>> that. If we change our idea of what necessary crypto is, the consensus
>>> RFC would be made obsolete and replaced by a new one.
>>
>> While I agree with the overall sentiment (excess agility is harmful,
>> we need to mandate two ciphers to
>> have a backup, crypto should be centralized by someone who knows what
>> they are doing), treating
>> this decision as though your draft was already ready doesn't work. In
>> particular this decision has to
>> be made assuming the status quo with regards to algorithms.
>
> I don't think so. The Status Quo emerged from the days when each WG
> made the choice of algorithms independently. We have already decided
> to only make that decision in CFRG.
>
> The reason for pointing to the draft is that it makes the argument in
> greater detail, not to suggest it was a decision already made.
>
> We discussed the need for the draft in SECDIR and I was asked to write
> it. So far, yours is the first response...

We also got asked by the W3C to make an algorithms guide for webcrypto. In that
document we will be describing the risks of the algorithms included.
Not one of those
risks results from cryptanalysis: all result from poor design
decisions and a desire to
preserve backwards compatibility with some bad ideas.

>
>
>> There are good reasons to have both CCM and GCM for example. A
>> nonce-reuse resistant protocol would
>> be more expensive than either, but potentially useful in cases where
>> protocols that fail when nonces are reused
>> would not be.
>
> There we get into protocol design and the question is whether we
> should standardize on 'AES' for encryption or AES-CBC / AES-GCM, etc.
>
> I would really like to standardize on AES-GCM going forward for new
> protocols. But right now I can't use that in Windows .NET without
> writing my own AES code. Hmmm.
>
> For existing protocols written before encrypt and authenticate became
> fashionable, I would not want to go back and try to retrofit use of an
> E&A scheme. That would certainly not be something to do in the
> consensus draft.

Well, someone needs to do it.

>
>
>> In particular the Great Cleanup has yet to begin: having consensus
>> crypto now requires reworking everything
>> to use it.
>
> No, not at all. The idea of stating what the consensus is so that an
> implementation can state that it complies with RFC-6071 and RFC-XXXX
> and tell people that it will interoperate securely with
> implementations that comply with either.
>
> So if HMAC-SHA1 is specified as MTI in the base spec and
> HMAC-SHA-2-256 as MTI in RFC-XXXX, then an implementation claiming to
> be compliant with both would have to implement both.
>
> What this approach does not fully address is what to do if the base
> spec specifies MD5 and there is no RFC that has come out saying 'do
> not use MD5'.

Yes, this is a real problem. DES didn't die until 2009 or thereabouts, despite
very short key size.

However, a single IETF wide algorithm repository requires work on
negotiating what
to do: all protocols have their own negotiation methods, with their
own constants. It's not possible to have a central repository right
now, and updating a method will still require work.

(This might address new protocols, but we don't have many of those)
>
>
>> We're going to have to change the order of encrypt then MAC in PGP
>> (which has no MAC), Kerberos(!),
>> SSH(!!), the record protocol in TLS (!!!) to get them all to be the
>> same.
>
> Order of operations is a protocol design choice, not an algorithm
> choice. Funny thing is that people keep telling me that it is
> absolutely vital that the order be one or the other 'because security'
> but which is better changes.

A choice which protocol designers keep getting wrong. That encrypt then mac is
secure is obvious and was known in 1995: Rogaway's comments on IPsec say this,
and are from that year. Oracles in CBC mode were from 2001, again in
2003, and it should
be no surprise that in 2014 we have not forgotten how to make them sing.

The only issue with TLS that your proposal would have solved was RC4.
>
> Obviously the order is going to have an effect on security. But
> changing it has a bigger effect on code. If people wanted consistency
> at that level they would have to write drafts for each protocol to
> harmonize them all. I don't see the point in that unless it is part of
> the ongoing process of rewriting everything in JSON.

It's not consistency: it's about ensuring that we don't have nasty
surprises. People haven't looked at Kerberos, or CMS. (Well, the
people who let us know when we mess up) Protocol designers should not
do cryptographic protocols: cryptographers should.

>
>
>>> I will also note that it looks like we now have a pretty strong
>>> primary and backup for hash functions and MACs and seem to be
>>> approaching consensus on public key (RSA plus ECC exact scheme to be
>>> decided). That leaves a gap for backup encryption algorithm.
>>
>> RSA is slow, requires big keys, and is usually used incorrectly in
>> IETF protocols:
>> OAEP should be be used instead of PKCS 1.5 encryption. Interesting TLS
>> has decided to use
>> DHE and ECDH, with no proposal to put RSA back on, except for
>> signatures (which sadly
>> are not PSS).
>
> Well the PKIX stack in the WebPKI is currently limited to RSA2048 in
> practice, so I don't know what that means.

RSA key transport is dead. You are right: I didn't include PKIX in
TLS, hence the confusion.
>
> The RFC cited in the draft specifies OAEP and PKCS 1.5. It should be
> just OAEP. I was looking for the OAEP draft, didn't notice it also has
> the PKCS 1.5.

Sincerely,
Watson Ladd


-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Thu Jul 24 22:10:49 2014
Return-Path: <b@b3k.us>
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 9C87B1A0AE9 for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 22:10:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 Pjhd8Tf19Pey for <cfrg@ietfa.amsl.com>; Thu, 24 Jul 2014 22:10:40 -0700 (PDT)
Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 732101A0306 for <cfrg@irtf.org>; Thu, 24 Jul 2014 22:10:40 -0700 (PDT)
Received: by mail-we0-f169.google.com with SMTP id u56so3707127wes.28 for <cfrg@irtf.org>; Thu, 24 Jul 2014 22:10:39 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=Z5RXaDiY8CY1NhMkKjyLsUeyEUWdJg/UjQLEPaspckw=; b=IUvdOT3Mu/rcNV1HFonE3HE5XNxllN1yMLrW/Ew3Le51/Ud0oMB03MqSA6q4CDineL i1FhxSbXVohk+OwB9vUhtoSRXLXsu+mhVL17RfiCr0H5dKmCKZU6sXJheX9C60DzoWsY rHvsw0wYXO09E+ieXAV6RBygAM4+/FthpVcijbRkSwAeQXfl8GGot+9JC7wksSyjoh63 mUo6FC2lKqA20ROj51Xml37lmUpT/1fkzuCpucN66lFAXTe5fHKiW9qHu/mXaCigLqJZ xHeFEmqWJV37T9gXBajJbJSMuN50UZmoVGRnVvFOw8btgJjuI1bexmR0VNInwH62vl8r /Yjg==
X-Gm-Message-State: ALoCoQlH4GVsC5HtCY/3UIbLS02ZbSdJyUHOqnLEjtUTn/yrxmdET9AFAbrXYalAzpXFAyNFlRdC
X-Received: by 10.194.23.135 with SMTP id m7mr18437031wjf.2.1406265039040; Thu, 24 Jul 2014 22:10:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Thu, 24 Jul 2014 22:10:18 -0700 (PDT)
From: Benjamin Black <b@b3k.us>
Date: Thu, 24 Jul 2014 22:10:18 -0700
Message-ID: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=047d7b5d5ffe1cc64a04fefd984e
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/XLeFGjtaR1X_t_Qsi5TXBtMIdYA
Subject: [Cfrg] Curve selection revisited
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: Fri, 25 Jul 2014 05:10:47 -0000

--047d7b5d5ffe1cc64a04fefd984e
Content-Type: text/plain; charset=UTF-8

Inspired by some comments from other and in hopes of returning to a more
productive debate rather than the pointed back and forth, of which I am
absolutely guilty, I'm suggesting a few constraints. These are not priority
ordered and none of them deal with the math, instead focusing on process
and practice.

1) As we are discussing this in the context of TLS, the performance of
various kx options must be evaluated for ECDHE as typically deployed. ECDH
is neither common nor recommended in the TLS BCP draft. In addition, I hope
there will be discussion of benchmarking methodology, with the
understanding the ultimate choice is for the CFRG chairs.

2) Performance must be measured using "production-quality" implementations.
By this I mean implementations which employ the sort of
techniques/optimizations appropriate for large scale deployment. This is
specifically intended to exclude discussion of how simple or fast an
implementation _could_ be, in favor of what they actually are in practice.
However, the goal is to select curves which strike the best balance between
various requirements, not simply the fastest.

3) The timeframe for a decision constrains the scope of this process. If a
decision is desired within a few months, then it is difficult to include
options beyond new curves. If a decision can take a year, new algorithms
could be considered. Given the importance, impact, and contentiousness of
new algorithms, I believe it would be difficult to complete a thorough,
careful algorithm and curve selection process in a short amount of time.

4) The precise set of security levels needed should be specified in advance
(whether by TLS or CFRG) and curve recommendations delivered together for
all levels. A stated goal is to use these curves in new drafts, and it
minimizes work to specify all security levels for a proposal in the same
draft. This is strictly a practical matter recognizing the chairs and area
directors have limited bandwidth and implementors can get everything done
in a single go.

5) Selections must efficiently support TLS 1.2. Adoption of new curves, and
potentially new algorithms, can't be gated on completion and widespread
deployment of TLS 1.3.

6) Drop-in replacement for the NIST curves is _not_ a requirement in this
process.

7) I don't think the chairs are signing up for a full-on, NIST-style
selection competition and we should aim to keep things are lightweight as
possible while still achieving the required level of rigor. I hope they
will address this point soon.


Ben

--047d7b5d5ffe1cc64a04fefd984e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Inspired by some comments from other and in hopes of retur=
ning to a more productive debate rather than the pointed back and forth, of=
 which I am absolutely guilty, I&#39;m suggesting a few constraints. These =
are not priority ordered and none of them deal with the math, instead focus=
ing on process and practice.<div>


<br></div><div>1) As we are discussing this in the context of TLS, the perf=
ormance of various kx options must be evaluated for ECDHE as typically depl=
oyed. ECDH is neither common nor recommended in the TLS BCP draft. In addit=
ion, I hope there will be discussion of benchmarking methodology, with the =
understanding the ultimate choice is for the CFRG chairs.</div>


<div><br></div><div>2) Performance must be measured using &quot;production-=
quality&quot; implementations. By this I mean implementations which employ =
the sort of techniques/optimizations appropriate for large scale deployment=
. This is specifically intended to exclude discussion of how simple or fast=
 an implementation _could_ be, in favor of what they actually are in practi=
ce. However, the goal is to select curves which strike the best balance bet=
ween various requirements, not simply the fastest.</div>


<div><br></div><div>3) The timeframe for a decision constrains the scope of=
 this process. If a decision is desired within a few months, then it is dif=
ficult to include options beyond new curves. If a decision can take a year,=
 new algorithms could be considered. Given the importance, impact, and cont=
entiousness of new algorithms, I believe it would be difficult to complete =
a thorough, careful algorithm and curve selection process in a short amount=
 of time.</div>


<div><br></div><div>4) The precise set of security levels needed should be =
specified in advance (whether by TLS or CFRG) and curve recommendations del=
ivered together for all levels. A stated goal is to use these curves in new=
 drafts, and it minimizes work to specify all security levels for a proposa=
l in the same draft. This is strictly a practical matter recognizing the ch=
airs and area directors have limited bandwidth and implementors can get eve=
rything done in a single go.</div>


<div><br></div><div>5) Selections must efficiently support TLS 1.2. Adoptio=
n of new curves, and potentially new algorithms, can&#39;t be gated on comp=
letion and widespread deployment of TLS 1.3.</div><div><br></div><div>

6) Drop-in replacement for the NIST curves is _not_ a requirement in this p=
rocess.</div>
<div><br></div><div>7) I don&#39;t think the chairs are signing up for a fu=
ll-on, NIST-style selection competition and we should aim to keep things ar=
e lightweight as possible while still achieving the required level of rigor=
. I hope they will address this point soon.</div>

<div><br></div><div><br></div><div>Ben</div>
<div><br></div><div><br></div></div>

--047d7b5d5ffe1cc64a04fefd984e--


From nobody Fri Jul 25 06:17:47 2014
Return-Path: <dbrown@certicom.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 2D61D1A028A for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 06:17:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 FE3_rAzW7WhI for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 06:17:43 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id E46601A0250 for <cfrg@irtf.org>; Fri, 25 Jul 2014 06:17:42 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 25 Jul 2014 09:17:41 -0400
Received: from XCT114CNC.rim.net (10.65.161.214) by XCT107CNC.rim.net (10.65.161.207) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 25 Jul 2014 09:17:39 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT114CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 25 Jul 2014 09:17:38 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Schnorr just as vulnerable to bad RNG
Thread-Index: Ac+oCs6QZBW0IZyiTTSZYsiyVXkKCw==
Date: Fri, 25 Jul 2014 13:17:38 +0000
Message-ID: <20140725131738.6639765.60290.17138@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============1966393139=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/K-UhIP_nonLglY0-Y2pRjssTK1E
Subject: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Fri, 25 Jul 2014 13:17:45 -0000

--===============1966393139==
Content-Type: multipart/alternative; boundary="===============0873880686=="
MIME-Version: 1.0

--===============0873880686==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

4oCOSW4gdGhlIFNBQUcgbWVldGluZyB5ZXN0ZXJkYXksIGl0IHdhcyBzdWdnZXN0ZWQgdGhhdCBT
Y2hub3JyIHNpZ25hdHVyZXMgYmV0dGVyIHJlc2lzdCBiYWQgUk5HIHRoYW4gRUNEU0EsIGNpdGlu
ZyBhIGZsYXdlZCBFQ0RTQSBpbXBsZW1lbnRhdGlvbi7CoAoKSnVzdCBsaWtlIChFQylEU0EsIGlm
IHRoZSBlcGhlb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VkdXJhbGx5LCBJIHRoaW5rIHNpZ25hdHVy
ZSBhbGdvcml0aG0gY2hvaWNlLCBhbmQgbWV0aG9kIHRvIGdlbmVyYXRlIGVwaGVtZXJhbHMgaXMg
YSBDRlJHIGlzc3VlLCBub3QgYSBTQUFHIGlzc3VlLgoKQmVzdCByZWdhcmRzLCAKCi0tIERhbg==

--===============0873880686==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/plain;"><styl=
e> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }=
</style> </head> <body data-blackberry-caret-color=3D"#00a8df"><div>=E2=80=
=8EIn the SAAG meeting yesterday, it was suggested that Schnorr signatures =
better resist bad RNG than ECDSA, citing a flawed ECDSA implementation.&nbs=
p;</div><div><br></div><div>Just like (EC)DSA, if the ephemeral key is expo=
sed or repeated, then the Schnorr static key is exposed, which then can lea=
d to forgery.</div><div><br></div><div>So this one implementation failure i=
s not a reason to prefer Schnorr signatures, as an algorithm.&nbsp;</div><d=
iv><br name=3D"BB10" caretmarkerset=3D"INVALID" class=3D"markedForCaretMark=
erRemoval"></div><div>The importance of proper ephemeral key generation is =
why ANSI=E2=80=8E X9.62-2005 for ECDSA added a requirement (not in the1998 =
version) that the ephemeral key be generated using HMAC DRBG and that it be=
 properly seeded, or else use another ANSI approved RNG. The 1998 version i=
nstead said something like unique and unpredictable.&nbsp;</div><div><br></=
div><div>Some people propose using deriving the ephemerals from the message=
 and a long term key. This does not seem any better as an algorithm than th=
e DRBG approach, provided the X9.62 algorithm is adhered to.</div><div><br =
name=3D"BB10" caretmarkerset=3D"INVALID" class=3D"markedForCaretMarkerRemov=
al"></div><div>There's an RFC melding both these ideas, but that is trying =
fix something that is not broken, at the algorithm level.</div><div><br nam=
e=3D"BB10" caretmarkerset=3D"INVALID" class=3D"markedForCaretMarkerRemoval"=
></div><div>If a flawed implementation uses a DRBG in compliance with X9.62=
-2005, but fails to update DRBG state fails between signed messages=E2=80=
=8E, then the signing key is leaked. If a flawed implementation opts to als=
o use deterministic ephemeral keys for encryption, then repeated messages l=
eak info via repeated ciphertexts. &nbsp;So, standards should amply warn im=
plementers if these pitfalls.&nbsp;</div><div><br name=3D"BB10" caretmarker=
set=3D"INVALID" class=3D"markedForCaretMarkerRemoval"></div><div>So I think=
 there are issues with ease of implementation, clarity of standards, and ma=
king standards &nbsp;error resistant, but the algorithm security is not sig=
nificant.</div><div><span style=3D"font-family: Calibri, 'Slate Pro', sans-=
serif;"><br></span></div><div><span style=3D"font-family: Calibri, 'Slate P=
ro', sans-serif;">In theory, some security proofs, may give different assur=
ances, depending on the determinism, but I'll defer that issue to future di=
scussion.&nbsp;</span></div><div><br name=3D"BB10" caretmarkerset=3D"INVALI=
D" class=3D"markedForCaretMarkerRemoval"></div><div>=E2=80=8EProcedurally<s=
pan style=3D"font-family: Calibri, 'Slate Pro', sans-serif;">, I think sign=
ature algorithm choice, and method to generate ephemerals is a CFRG issue, =
not a SAAG issue.</span></div><div><br name=3D"BB10" caretmarkerset=3D"INVA=
LID" class=3D"markedForCaretMarkerRemoval"></div><div>Best regards, <br><br=
>-- Dan</div></body></html>
--===============0873880686==--

--===============1966393139==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQxNDM2MzhaMIGkMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMw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DxkWYfb4JRn4tsJzKmP0IDvqrO/HajvwtW3t6rkFN1h0OmHGa9yT9UXO8o++iu4xggFf
MIIBWwIBATBeMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAi
BgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRgIKbandRwAEAAAFajAHBgUrDgMCGqBd
MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDcyNTEzMTczNlow
IwYJKoZIhvcNAQkEMRYEFGRvWYd1blA4KeOtNWtmhteEJdaTMAsGCSqGSIb3DQEBBQSBgNEYTMP8
q8bp/0Q9EGqkno83GEfJ2sVFNWorJI9HT7iOdUsaHbPpiVdgeuHNeBMTwo2J47ltCEQxjZNqbLI2
SA4SMGB3egM2NQ52M002iwySkGRfskieZlqIBp5zk8p4yk4FIsr0OPHP9DRNoRLNWVQKK+pmPDhq
HiPKBXczaWpyAAAAAAAA

--===============1966393139==--


From SRS0=900A=4U=acm.org=bmoeller@srs.kundenserver.de  Fri Jul 25 07:10:49 2014
Return-Path: <SRS0=900A=4U=acm.org=bmoeller@srs.kundenserver.de>
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 494D41B28FB for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:10:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.929
X-Spam-Level: 
X-Spam-Status: No, score=-0.929 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HELO_EQ_DE=0.35, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 lPR1EBkvMCV2 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:10:48 -0700 (PDT)
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CBE161A0316 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:09:23 -0700 (PDT)
Received: from mail-yk0-f176.google.com (mail-yk0-f176.google.com [209.85.160.176]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0M940H-1XN1Su27Cv-00CRZd; Fri, 25 Jul 2014 16:09:21 +0200
Received: by mail-yk0-f176.google.com with SMTP id 19so2781210ykq.7 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:09:20 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.236.115.103 with SMTP id d67mr23694042yhh.46.1406297360558;  Fri, 25 Jul 2014 07:09:20 -0700 (PDT)
Received: by 10.170.129.17 with HTTP; Fri, 25 Jul 2014 07:09:20 -0700 (PDT)
In-Reply-To: <20140725131738.6639765.60290.17138@certicom.com>
References: <20140725131738.6639765.60290.17138@certicom.com>
Date: Fri, 25 Jul 2014 10:09:20 -0400
Message-ID: <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com>
From: Bodo Moeller <bmoeller@acm.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=20cf30363911a0017804ff051e89
X-Provags-ID: V02:K0:QFXA8RReHVeEuZ22p/bCx+z3B/lNQNlOO+2BdCXEiwm vYKicVIh/t4n4HN9yumcrtkwXeXg8a4zALPFQuV3CoZ5eUptEO rlqOsGZj9zu/J1qa12s/9u05S1D0WaJINKwR5ppbVCEZQAena9 IruJM2qe/4VAcQgqZPad8f8g2Cq4XHcl3Mxi9rP8qb8XX8i3CC HsUAw8RDS0Sg79diH3jLo+gYThlSmfYVMKgwSrbxtM2FYeh6YY GWRSNrGoiTsP8DyJv5zmr/aPG2RXKJa5Ba4A6v0rjGHhLMzEka wHaxU//roJw5jc7BWRipyYGyyM4ikNY0YJUP0FwDxkGZZwm6uz l745NG0z1N/g9ZpdIj6ilFkoi3Xsn6kPBYdLlrgV0yqGEy5toB apyKGgp+vxdF9BqxBpJnaXiVIdCJDJXSuVdfQ/ZF69JmXX517I KHnMm
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/2mMCFLs6wVW2PTerKJloTDSUl08
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Fri, 25 Jul 2014 14:12:08 -0000

--20cf30363911a0017804ff051e89
Content-Type: text/plain; charset=UTF-8

Dan Brown <dbrown@certicom.com>:

Some people propose using deriving the ephemerals from the message and a
> long term key. This does not seem any better as an algorithm than the DRBG
> approach, provided the X9.62 algorithm is adhered to.
>
> There's an RFC melding both these ideas, but that is trying fix something
> that is not broken, at the algorithm level.
>

It's certainly not broken, but more fragile than necessary. If you use an
appropriate PRNG with proper seeding, there's no problem, but in practice,
sometimes you *think* you have proper seeding when you actually don't.
 That's usually bad in any case, but it can be less bad with the hash-based
approach.  Since the additional cost of hashing is minor, I think hashing
is a good idea for implementations.

(What document are you referring to?  Really an RFC?)

Bodo

--20cf30363911a0017804ff051e89
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">Dan =
Brown <span dir=3D"ltr">&lt;<a href=3D"mailto:dbrown@certicom.com" target=
=3D"_blank">dbrown@certicom.com</a>&gt;</span>:</div><div class=3D"gmail_qu=
ote"><br></div>
<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex"><div><div>Some people propose u=
sing deriving the ephemerals from the message and a long term key. This doe=
s not seem any better as an algorithm than the DRBG approach, provided the =
X9.62 algorithm is adhered to.</div>
<div><br name=3D"BB10"></div><div>There&#39;s an RFC melding both these ide=
as, but that is trying fix something that is not broken, at the algorithm l=
evel.</div></div></blockquote><div><br></div><div>It&#39;s certainly not br=
oken, but more fragile than necessary. If you use an appropriate PRNG with =
proper seeding, there&#39;s no problem, but in practice, sometimes you *thi=
nk* you have proper seeding when you actually don&#39;t. =C2=A0That&#39;s u=
sually bad in any case, but it can be less bad with the hash-based approach=
. =C2=A0Since the additional cost of hashing is minor, I think hashing is a=
 good idea for implementations.</div>
<div><br></div><div>(What document are you referring to? =C2=A0Really an RF=
C?)</div><div><br></div><div>Bodo</div><div><br></div><div><br></div><div><=
br></div></div></div></div>

--20cf30363911a0017804ff051e89--


From nobody Fri Jul 25 07:16:13 2014
Return-Path: <rstruik.ext@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 02EAC1B291E for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:16:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 F3vlHXuyT41T for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:16:05 -0700 (PDT)
Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 124421B2926 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:15:59 -0700 (PDT)
Received: by mail-wi0-f181.google.com with SMTP id bs8so1078127wib.2 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:15:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=JOsoFwxZYkJNd1eKdYQpJMJOu3VNwAou40Tedt0Ows0=; b=FlAve4d0iBSa6K/6E3kpomn9npHwNbZHyRCyib4ueUwmMS6HbMclc4OFstnHl8PmC9 E1ZRacRKidIMvw9Vg4VWlq0dzaGxz0tlicQYFgGWT3W+JTOapzzhOouffnaf8sqnw7zp B+sc4uPRwwmV9EcgCV/LuQOXUdC8rP8kMQ8UjehKZb9DO1AApIiF7gOAUJb98zOuP1wq E6qUYKCqtnKmZnvVCqk2cHLldtLecOjVr5urkLJ4Rp42glgSG6ABo2Cdjo1KVjOzzhd+ qeTz/fywiYSGLA7kcrOzsagabeXzVYG62zNbpcliyzS3qKbSrm3NpWVvUdEVoJy3jHwx NCiw==
X-Received: by 10.194.62.167 with SMTP id z7mr21678630wjr.112.1406297757733; Fri, 25 Jul 2014 07:15:57 -0700 (PDT)
Received: from ?IPv6:2001:67c:370:160:8da6:e8c5:1fb8:ea01? ([2001:67c:370:160:8da6:e8c5:1fb8:ea01]) by mx.google.com with ESMTPSA id ch5sm25633431wjb.18.2014.07.25.07.15.56 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 07:15:57 -0700 (PDT)
Message-ID: <53D26695.3090005@gmail.com>
Date: Fri, 25 Jul 2014 10:15:49 -0400
From: Rene Struik <rstruik.ext@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Bodo Moeller <bmoeller@acm.org>
References: <20140725131738.6639765.60290.17138@certicom.com> <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com>
In-Reply-To: <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------040302080403070101070401"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/TkrwfI4TJmZ8LqDjdAfkCMhk6aE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Fri, 25 Jul 2014 14:16:11 -0000

This is a multi-part message in MIME format.
--------------040302080403070101070401
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

RFC 6979 - Deterministic Usage of the Digital Signature Algorithm (DSA) 
and Elliptic Curve Digital Signature Algorithm (ECDSA) (August 2013)

On 7/25/2014 10:09 AM, Bodo Moeller wrote:
> Dan Brown <dbrown@certicom.com <mailto:dbrown@certicom.com>>:
>
>     Some people propose using deriving the ephemerals from the message
>     and a long term key. This does not seem any better as an algorithm
>     than the DRBG approach, provided the X9.62 algorithm is adhered to.
>
>     There's an RFC melding both these ideas, but that is trying fix
>     something that is not broken, at the algorithm level.
>
>
> It's certainly not broken, but more fragile than necessary. If you use 
> an appropriate PRNG with proper seeding, there's no problem, but in 
> practice, sometimes you *think* you have proper seeding when you 
> actually don't.  That's usually bad in any case, but it can be less 
> bad with the hash-based approach.  Since the additional cost of 
> hashing is minor, I think hashing is a good idea for implementations.
>
> (What document are you referring to?  Really an RFC?)
>
> Bodo
>
>
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


-- 
email: rstruik.ext@gmail.com | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363


--------------040302080403070101070401
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">RFC 6979 - Deterministic Usage of the
      Digital Signature Algorithm (DSA) and Elliptic Curve Digital
      Signature Algorithm (ECDSA) (August 2013)<br>
      <br>
      On 7/25/2014 10:09 AM, Bodo Moeller wrote:<br>
    </div>
    <blockquote
cite="mid:CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">Dan Brown <span dir="ltr">&lt;<a
                moz-do-not-send="true" href="mailto:dbrown@certicom.com"
                target="_blank">dbrown@certicom.com</a>&gt;</span>:</div>
          <div class="gmail_quote"><br>
          </div>
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div>
                <div>Some people propose using deriving the ephemerals
                  from the message and a long term key. This does not
                  seem any better as an algorithm than the DRBG
                  approach, provided the X9.62 algorithm is adhered to.</div>
                <div><br name="BB10">
                </div>
                <div>There's an RFC melding both these ideas, but that
                  is trying fix something that is not broken, at the
                  algorithm level.</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>It's certainly not broken, but more fragile than
              necessary. If you use an appropriate PRNG with proper
              seeding, there's no problem, but in practice, sometimes
              you *think* you have proper seeding when you actually
              don't. &nbsp;That's usually bad in any case, but it can be less
              bad with the hash-based approach. &nbsp;Since the additional
              cost of hashing is minor, I think hashing is a good idea
              for implementations.</div>
            <div><br>
            </div>
            <div>(What document are you referring to? &nbsp;Really an RFC?)</div>
            <div><br>
            </div>
            <div>Bodo</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
email: <a class="moz-txt-link-abbreviated" href="mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363</pre>
  </body>
</html>

--------------040302080403070101070401--


From nobody Fri Jul 25 07:18:32 2014
Return-Path: <ynir.ietf@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 159921B28B6 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:18:18 -0700 (PDT)
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 UiZo7Q3ksVZk for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:18:14 -0700 (PDT)
Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 589441B2881 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:18:14 -0700 (PDT)
Received: by mail-wi0-f177.google.com with SMTP id ho1so1079210wib.10 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:18:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=O4aMIyX4HzWszUiiToavekJaB7nY6Tap25rpMJnxie0=; b=VADED0aABi+GWzfnWrhEBBJLdYwlAy51AmoTw+YTWsTzplhkltI3R/BzkydZ4S0z1/ mJ6emRbLH84OR6Q7yr61iC3sYH0tkbTjH2o97CDusU5FTwRNgPFiziqR2jKtQVqWEzua jtCd9qkUKEIpBn2AI0rMgQb+LO8sU8NYhtoAX8RK1jEfIqjcsuJ0GtBnr1DCfJpcFwCU c5exc0xQeL+ApjG/tIgev0VRmzWGmLN0QkkqhM6PSMzgrEx9Rf+4m/+38ONBLMdrk+M0 i7eb1zu0bNwXGqzZznkdU6+X7Sy5Zn5bsGHVpLoTCEPS7WIXXpz48Ho6+hlleboK9OGA dsRg==
X-Received: by 10.180.188.203 with SMTP id gc11mr5384176wic.59.1406297892721;  Fri, 25 Jul 2014 07:18:12 -0700 (PDT)
Received: from wireless-v6.meeting.ietf.org ([2001:67c:370:160:1599:5121:83be:2dc8]) by mx.google.com with ESMTPSA id xn12sm6457933wib.13.2014.07.25.07.18.11 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 07:18:12 -0700 (PDT)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
Date: Fri, 25 Jul 2014 10:18:09 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A60DFCAF-94BD-4E99-A0DB-4076A1911545@gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
To: Benjamin Black <b@b3k.us>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/soutHtd3IXUJp1qYki5uKQ7OvqE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Fri, 25 Jul 2014 14:18:18 -0000

On Jul 25, 2014, at 1:10 AM, Benjamin Black <b@b3k.us> wrote:

> Inspired by some comments from other and in hopes of returning to a =
more productive debate rather than the pointed back and forth, of which =
I am absolutely guilty, I'm suggesting a few constraints. These are not =
priority ordered and none of them deal with the math, instead focusing =
on process and practice.
>=20
> 1) As we are discussing this in the context of TLS, the performance of =
various kx options must be evaluated for ECDHE as typically deployed. =
ECDH is neither common nor recommended in the TLS BCP draft. In =
addition, I hope there will be discussion of benchmarking methodology, =
with the understanding the ultimate choice is for the CFRG chairs.

The ultimate choice is with the group, with the chairs refereeing. We =
are also interested in digital signatures, not only key agreement. I =
agree that we need a benchmark methodology, but before that, we need to =
agree on selection criteria. There=92s no point in testing if the =
results don=92t point you towards a choice. The obvious criterion is =
speed of operation (for generate, derive, sign, and verify) on one or =
more platforms (probably need more than one). Another criterion could be =
memory requirements for the operation (matters for small platforms, but =
also limits scalability of large servers). Yet another criterion that =
isn=92t measured in a benchmark is complexity, although I don=92t think =
the candidate curves differ on this.

> 2) Performance must be measured using "production-quality" =
implementations. By this I mean implementations which employ the sort of =
techniques/optimizations appropriate for large scale deployment. This is =
specifically intended to exclude discussion of how simple or fast an =
implementation _could_ be, in favor of what they actually are in =
practice. However, the goal is to select curves which strike the best =
balance between various requirements, not simply the fastest.

I think =93production-quality=94 should be simply the kind of code that =
a vendor or open source project might =93ship=94. This is not =
necessarily the fastest. For example, if Microsoft ships this curve in =
Windows (or Google in Chrome for Windows), they are going to need the =
code to run on any platform that Windows runs on, from Atom to the =
latest i7. If the latest i7 has some instructions that make the =
implementation faster, they are faced with the choice of including =
multiple implementations, tailored to different chips, or coding for the =
lowest common denominator. In practice, they will only include multiple =
implementations if the performance difference is noticeable (no idea =
what their threshold would be, but for me it would need to be at least =
50% before I recommended including multiple implementations).=20

So optimizing code for the target processor does not necessarily yield =
=93production quality=94 code. That said, I don=92t really know how we =
could control for that.

> 3) The timeframe for a decision constrains the scope of this process. =
If a decision is desired within a few months, then it is difficult to =
include options beyond new curves. If a decision can take a year, new =
algorithms could be considered. Given the importance, impact, and =
contentiousness of new algorithms, I believe it would be difficult to =
complete a thorough, careful algorithm and curve selection process in a =
short amount of time.

There=92s also the question of (lack of) resources. NIST or the NSA can =
assign six cryptographers to spend the next year examining curves and =
algorithms. We are all volunteers, so if we get someone with the =
cryptographic chops to take several hours from his or her busy schedule =
to examine and comment on a proposal, or if we get someone with the =
programming chops to spend a few days implementing and benchmarking, we =
should consider ourselves lucky.

> 4) The precise set of security levels needed should be specified in =
advance (whether by TLS or CFRG) and curve recommendations delivered =
together for all levels. A stated goal is to use these curves in new =
drafts, and it minimizes work to specify all security levels for a =
proposal in the same draft. This is strictly a practical matter =
recognizing the chairs and area directors have limited bandwidth and =
implementors can get everything done in a single go.

Agree.

> 5) Selections must efficiently support TLS 1.2. Adoption of new =
curves, and potentially new algorithms, can't be gated on completion and =
widespread deployment of TLS 1.3.

Agree. It shouldn=92t be gated on TLS at all. The same curves will =
probably be adopted by whoever else uses ECDHE and elliptic curve =
signatures. So whatever choice is made here will affect IKE, SSH, =
certificate authorities. There is nothing special about TLS.

> 6) Drop-in replacement for the NIST curves is _not_ a requirement in =
this process.

Totally agree.

> 7) I don't think the chairs are signing up for a full-on, NIST-style =
selection competition and we should aim to keep things are lightweight =
as possible while still achieving the required level of rigor. I hope =
they will address this point soon.

Agree.

Yoav



From nobody Fri Jul 25 07:23:06 2014
Return-Path: <SRS0=900A=4U=acm.org=bmoeller@srs.kundenserver.de>
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 E72451B286D for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:23:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.929
X-Spam-Level: 
X-Spam-Status: No, score=-0.929 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HELO_EQ_DE=0.35, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 Au5v_qnYgA5f for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:23:04 -0700 (PDT)
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B9DBF1B28DA for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:22:36 -0700 (PDT)
Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com [209.85.160.170]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0Lu0I6-1WTHEi2MJ4-011Olw; Fri, 25 Jul 2014 16:22:34 +0200
Received: by mail-yk0-f170.google.com with SMTP id 9so2880871ykp.29 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:22:33 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.236.185.132 with SMTP id u4mr14009275yhm.95.1406298153435; Fri, 25 Jul 2014 07:22:33 -0700 (PDT)
Received: by 10.170.129.17 with HTTP; Fri, 25 Jul 2014 07:22:33 -0700 (PDT)
In-Reply-To: <53D26695.3090005@gmail.com>
References: <20140725131738.6639765.60290.17138@certicom.com> <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com> <53D26695.3090005@gmail.com>
Date: Fri, 25 Jul 2014 10:22:33 -0400
Message-ID: <CADMpkcLq6qPfee-sf7i0e5_MC7YeSNdpaYb3ZF+aVpikuP16vw@mail.gmail.com>
From: Bodo Moeller <bmoeller@acm.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=20cf30549ca1e24b5504ff054df7
X-Provags-ID: V02:K0:OBzKKYcVButAb2qTLBKLv2+6OWTTlo0s5RxUs7EfMmx B1gqz61TDtbV4nmPnhsaFGmwkoC08DHA3h0tQRIPgAB0VDMTP9 3jirM3zg22p0J5VbMek+dKJa+t+d90KoPZm7fbMtyFVnBKZ7am aycDf2v1mvCFoH24NJ3RyXeQTHDXTEWaFEM7u5mwrxqdKC0OGv l2qX90/x7nBbTNs/uq62igRQqpwn11CaxPNqGGLHas8Niqr3EL b21vc6RHeiPpwehqoThyDT4o5ylHPVkjJ0F40epSIkbyoFtNFw inB7oCTzDjyi27ulooVCONjNnc1xOHcPTGslh831bEceHSzDCZ oZKYLw9GR4l/Da6WTrVOH2ulqJ3CseN1RgeyOq6Ws57G1nYJbm TsXOgT1tOM22K3Rcx5TANGfLevUrJxTVj1+I9XOH8bO5ZEA5Fm hqFSM
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/h5ypYBM-K2TAlS9yNDGfF5JTPW8
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Fri, 25 Jul 2014 14:23:05 -0000

--20cf30549ca1e24b5504ff054df7
Content-Type: text/plain; charset=UTF-8

>  RFC 6979 - Deterministic Usage of the Digital Signature Algorithm (DSA)
> and Elliptic Curve Digital Signature Algorithm (ECDSA) (August 2013)
>

Thanks!

That's not what I thought "melding both these ideas" meant; I thought it's
about mixing (presumed) randomness *with* deterministic inputs (such that
you end up with deterministic usage if and only if the "PRNG" is actually
constant).

Bodo

--20cf30549ca1e24b5504ff054df7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><br>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">

 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div>RFC 6979 - Deterministic Usage of the
      Digital Signature Algorithm (DSA) and Elliptic Curve Digital
      Signature Algorithm (ECDSA) (August 2013)</div></div></blockquote><di=
v><br></div><div>Thanks!</div><div><br></div><div>That&#39;s not what I tho=
ught &quot;<span style=3D"color:rgb(80,0,80)">melding both these ideas&quot=
; meant; I thought it&#39;s about mixing (presumed) randomness *with* deter=
ministic inputs (such that you end up with deterministic usage if and only =
if the &quot;PRNG&quot; is actually constant).</span></div>
<div><span style=3D"color:rgb(80,0,80)"><br></span></div><div><span style=
=3D"color:rgb(80,0,80)">Bodo</span></div><div><span style=3D"color:rgb(80,0=
,80)"><br></span></div></div></div></div>

--20cf30549ca1e24b5504ff054df7--


From nobody Fri Jul 25 07:48:37 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 EA22F1A032E for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:48:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 RWj2t6vvSbzH for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 07:48:32 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0079.outbound.protection.outlook.com [213.199.154.79]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4E8DB1A0314 for <cfrg@irtf.org>; Fri, 25 Jul 2014 07:48:32 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB384.eurprd03.prod.outlook.com (10.141.10.20) with Microsoft SMTP Server (TLS) id 15.0.990.7; Fri, 25 Jul 2014 14:48:29 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0990.007; Fri, 25 Jul 2014 14:48:30 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Benjamin Black <b@b3k.us>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Curve selection revisited
Thread-Index: AQHPp8bV0cN3QKmllEqXzDJuWAwph5uwnFmA
Date: Fri, 25 Jul 2014 14:48:29 +0000
Message-ID: <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
In-Reply-To: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [31.133.156.135]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02830F0362
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(189002)(199002)(51704005)(479174003)(15202345003)(54356999)(92726001)(106116001)(77982001)(15975445006)(107886001)(81542001)(46102001)(36756003)(92566001)(106356001)(76176999)(50986999)(95666004)(20776003)(19580395003)(76482001)(2656002)(105586002)(83322001)(19580405001)(81342001)(99396002)(87936001)(74662001)(64706001)(85306003)(21056001)(561944003)(4396001)(31966008)(83072002)(80022001)(83506001)(74482001)(74502001)(79102001)(66066001)(85852003)(107046002)(86362001)(101416001)(781001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB384; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <5AAE7AFF1F1AA14A94CD3C77028A4225@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/qOAETj3-4wI58dyQr1TX1nO-BFM
Subject: Re: [Cfrg] Curve selection revisited
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: Fri, 25 Jul 2014 14:48:36 -0000

Ben

Thanks for this helpful message. I've responded in-line below,
representing the chairs and based on what I've heard on the list and at
the IETF meeting this week. People on the list should still feel free, of
course, to argue for other points of view.

On 25/07/2014 01:10, "Benjamin Black" <b@b3k.us> wrote:

>Inspired by some comments from other and in hopes of returning to a more
>productive debate rather than the pointed back and forth, of which I am
>absolutely guilty, I'm suggesting a few constraints. These are not
>priority ordered and none of them
> deal with the math, instead focusing on process and practice.
>
>
>1) As we are discussing this in the context of TLS, the performance of
>various kx options must be evaluated for ECDHE as typically deployed.
>ECDH is neither common nor recommended in the TLS BCP draft. In addition,
>I hope there will be discussion of benchmarking
> methodology, with the understanding the ultimate choice is for the CFRG
>chairs.

Some detail on benchmarking methods will indeed be helpful.

My perspective, from having talked to a number of vendors this week, is
that speed (one measure of performance) is important, but being the
fastest is not if the performance difference is x%. Here x is a variable
that ranges somewhere between 5 and 50 depending on which vendor you talk
to.

>
>
>2) Performance must be measured using "production-quality"
>implementations. By this I mean implementations which employ the sort of
>techniques/optimizations appropriate for large scale deployment. This is
>specifically intended to exclude discussion of
> how simple or fast an implementation _could_ be, in favor of what they
>actually are in practice. However, the goal is to select curves which
>strike the best balance between various requirements, not simply the
>fastest.
>

I don't think it's very easy to be concrete about what
"production-quality" means. I tend to agree with Yoav's comments here
(http://www.ietf.org/mail-archive/web/cfrg/current/msg04735.html).

>
>3) The timeframe for a decision constrains the scope of this process. If
>a decision is desired within a few months, then it is difficult to
>include options beyond new curves. If a decision can take a year, new
>algorithms could be considered. Given the
> importance, impact, and contentiousness of new algorithms, I believe it
>would be difficult to complete a thorough, careful algorithm and curve
>selection process in a short amount of time.
>

Yes, I agree.=20

Our process is not going to be perfect. We don't have the resources of
NIST/NSA/your favourite agency here. This is not the AES or SHA-3
competition. Yet we can draw on many years of ECC experience and expertise
of people on the list (and off it).

I had a strong steer this week from the TLS WG chairs and other people
active in the TLS WG that ECDHE and EC-DSA are the target algorithms for
us to think about when selecting curves. In other words, it's about new
curves for existing algorithms, not new curves AND new algorithms. That
does not preclude the introduction of new algorithms via CFRG over a
longer timescale, but it's not part of our current work.


>
>4) The precise set of security levels needed should be specified in
>advance (whether by TLS or CFRG) and curve recommendations delivered
>together for all levels. A stated goal is to use these curves in new
>drafts, and it minimizes work to specify all security
> levels for a proposal in the same draft. This is strictly a practical
>matter recognizing the chairs and area directors have limited bandwidth
>and implementors can get everything done in a single go.
>

This is not a point of contention. We've been asked by the TLS WG to
produce curves at the 128-bit and 256-bit levels, with a 192-bit option if
we wish.=20

There is some wiggle room here - for example, a suitable curve with small
co-factor defined over a prime with 383 bits would be acceptable as
meeting the 192-bit level, etc.

>
>5) Selections must efficiently support TLS 1.2. Adoption of new curves,
>and potentially new algorithms, can't be gated on completion and
>widespread deployment of TLS 1.3.

I don't see TLS 1.3 as being an issue. We can safely assume it is going to
be using the same basic algorithms as TLS 1.2 ECC.

>
>6) Drop-in replacement for the NIST curves is _not_ a requirement in this
>process.
>

I agree. At Toronto, the common view amongst people I talked to was that
"Weierstrass-only" form curves (i.e. curves of prime order) is not a
*hard* requirement.

The benefits of switching to other curve forms (speed, simplicity of
side-channel protection) may well outweigh the benefits of sticking with
W-only forms (code re-use, familiarity for developers, no co-factor to
worry about).

>
>7) I don't think the chairs are signing up for a full-on, NIST-style
>selection competition and we should aim to keep things are lightweight as
>possible while still achieving the required level of rigor. I hope they
>will address this point soon.
>

I'm not sure in what way you'd like the chairs to address this point. I
hope it was clear from the initial announcement
(http://www.ietf.org/mail-archive/web/cfrg/current/msg04655.html) that
we're running a lightweight process lasting a couple of months.

That has not changed.

Best regards,

Kenny

>
>
>
>Ben
>


From nobody Fri Jul 25 08:03:42 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 C56CF1B29CB for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 08:03:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level: 
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_48=0.6, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 Ow4tes16PWCy for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 08:03:37 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lp0014.outbound.protection.outlook.com [213.199.154.14]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C93F1B29C1 for <cfrg@irtf.org>; Fri, 25 Jul 2014 08:03:36 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) with Microsoft SMTP Server (TLS) id 15.0.990.7; Fri, 25 Jul 2014 15:03:33 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0990.007; Fri, 25 Jul 2014 15:03:33 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Notes on curve selection from IETF90
Thread-Index: AQHPqBmZb5STTjRNQU66ADGJvKFHQA==
Date: Fri, 25 Jul 2014 15:03:32 +0000
Message-ID: <CFF7E6CD.28F00%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [31.133.156.135]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02830F0362
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(189002)(92726001)(99396002)(92566001)(77982001)(74482001)(19580395003)(2656002)(4396001)(19580405001)(50986999)(87936001)(21056001)(31966008)(66066001)(86362001)(80022001)(74662001)(74502001)(95666004)(83322001)(85306003)(101416001)(106356001)(105586002)(107046002)(107886001)(79102001)(81342001)(2351001)(36756003)(64706001)(85852003)(81542001)(15975445006)(83072002)(83506001)(54356999)(20776003)(106116001)(76482001)(110136001)(229853001)(46102001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <FF63EF41DA7ACB4FA2024230B4F8D48A@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ACXW_1WcmpM6x6jertEwlKcYcDA
Subject: [Cfrg] Notes on curve selection from IETF90
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: Fri, 25 Jul 2014 15:03:41 -0000

Hi,

At IETF90, CFRG was asked to report back to the TLS WG on progress on
curve selection. I prepared and presented some slides which in theory you
should be able to find online here:

https://datatracker.ietf.org/meeting/90/agenda/tls-drafts.pdf


But that pdf seems to be empty right now. So I thought it would be useful
to re-present some of the slides here in text format, as a snapshot of
where I think we are in the process and discussion on requirements. Note
that the views represented here are those of chairs and are based on
discussions on the list and discussions at the meeting here in Toronto.

Comments welcome.

Cheers,

Kenny

---

CFRG@IETF90

=ADWednesday 1300-1500
=ADRoughly 90 minutes presentation + discussion on new ECC.
=ADOverview talk on ECC old and new from Tanja Lange (TU Eindhoven).
=ADTalk on NUMS curves from Brian LaMacchia and Craig Costello (Microsoft).
=ADTalk on Curve25519 and friends from Dan Bernstein (UIC/TU Eindhoven).
=ADLively Q&A/discussion, continued at ISRG dinner.



Emerging Areas of Consensus on Requirements


-Protection against side-channel attacks strongly desired.

-Basic elements of curve selection =AD defined over prime field; prime or
near-prime
order; twist security.
=AD-Not always needed, but we can achieve these at no real cost.

-Need to support existing algorithms.
=AD-Strong steer from TLS WG.
=AD-ECDHE, EC-DSA, and maybe ECDH.
=AD-Interop with existing wire formats desirable, not essential.
=AD-Versus potential perf. gains from adopting new algs

-Need for rigidity in curve generation process.
=AD-Trustable curve generation process is important.
=AD-It=B9s a primary motivation for this work.
=AD-How much rigidity is enough to satisfy public opinion?


Emerging Areas of Consensus on Curve Form


-Switch from Weierstrass-only form to alternative forms
(Montgomery/Edwards/twisted Edwards)
=AD-Deployability of new W.-only form curves not significantly easier, even
though there=B9s a large deployed code base for W.-only form curves.
=AD-Much easier side-channel protection without perf. sacrifice using alt.
forms.
=AD-Co-factor > 1 for alt. forms has potential for implementation errors.
=AD-Overall, tenatively, alt. forms seem to be the way to go.

-Growing realisation amongst non-experts.
=AD-It=B9s complicated!




Current Areas of Debate


-Specific implementation detail at 128-bit security level:
=AD-(Montgomery + twisted Edwards for ECDHE + point conversions) versus jus=
t
twisted Edwards for ECDHE?
=AD-Related implications for wire format.

-What does ephemeral mean?
=AD-Server-side: every key exchange or every 10s or every hour?
=AD-Has implications for selection of curve form (costs of fixed base versu=
s
variable
base computations).

-Actual choice of specific curves.



Summary (personal view)

-In terms of perf+security, there=B9s not much to choose between the
competing alt. (i.e. non-W.-only) curve proposals at each security level.

-We=B9re making progress; rough consensus on requirements should be possibl=
e.

-Getting consensus on selection of curves will require some give and take
from competing proposers.



From nobody Fri Jul 25 08:30:41 2014
Return-Path: <dmjacobson@sbcglobal.net>
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 1BFBE1B2948 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 08:30:39 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001] 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 0GpwitLBCaOj for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 08:30:37 -0700 (PDT)
Received: from nm22-vm4.access.bullet.mail.gq1.yahoo.com (nm22-vm4.access.bullet.mail.gq1.yahoo.com [216.39.63.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 02B8D1B2936 for <cfrg@irtf.org>; Fri, 25 Jul 2014 08:30:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1406302236; bh=L3YIWnrEdhkh6ttl9XEXUZ2Pb1izdu2H1kFr6FmEl0s=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=LgBegOeUTEcgnCEcHqeORZ2u4CIVbae+vbQEyBv+/C4uGwBpGnGUaBHsni7/NVdQAWvZot4jrVUId5yRpSPX4JBf0fnUBWdf1y8VB2x/uaRjxNyhAE+Q2iTDxaV6CIGraT/i8a+2E+J2zCgrpa4/xAxI5VwAA/ysxVCxqqlxP1IF7AXXYdT/KDb9DBG3cZvHlylOyBQ/HrdBLWE+oD26fYBg77GHbnkA8t6ZqMQW/S+SuUDMV720QNbl8mE0bBMSNEEoQe/OPDThLB+z94vjSBwCbGoHeqZVYD6LezsRgpnsc3Lts59a/33R9kCtWl44QzfbS6zaSPn5felDWYlibA==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=IVNiWQNfwflWkowefckj7iCZhO6RTSaGFtZ8gZQsk1j8TlsR0UsSL/httyrBhk9j/LLvI9FrRO3AkAc450POcE+1gS1kKd+YAZvnherpembORTx8EXeeNyjAiNBziU1NxkkWTLhvL5YoeNrDu8hxz0Gve39iw8deK4pVdv5Wr4rr1JLHPA2XlSZ23gOwdH4ItLWLlxll2NVZWNE8rdsgvjm35FTM7A6698UkA8Ur2Va42ctB04RxclnFSg6a8pj3vCXNANEm7HzIReuFPfjuA63WVJBLQtFbcSkvWbzeZNp+pv6KbaiwHxZmJekHawVzp0REOrJUUqFY4RUl6TWEkA==;
Received: from [216.39.60.167] by nm22.access.bullet.mail.gq1.yahoo.com with NNFMP; 25 Jul 2014 15:30:36 -0000
Received: from [67.195.23.145] by tm3.access.bullet.mail.gq1.yahoo.com with NNFMP; 25 Jul 2014 15:30:36 -0000
Received: from [127.0.0.1] by smtp117.sbc.mail.gq1.yahoo.com with NNFMP; 25 Jul 2014 15:30:36 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1406302236; bh=L3YIWnrEdhkh6ttl9XEXUZ2Pb1izdu2H1kFr6FmEl0s=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=TowpbCNVtJ3HVcaMlMdIsI3rQVmERGK8Tyk1cbBsii15JPQ+tfvrF2PWqCsPXaSa6spFBaBONSDUZRZToiNdp+iJZt/m8OUGEn0AgD83R7w2fk1EsavHyZmjLWO571v8Z2V9gDRGwy87T4tichGlcpUSTBjBAA717R4ZK+a3Z40=
X-Yahoo-Newman-Id: 361319.20159.bm@smtp117.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: _NfjhqYVM1lyvadhSGNtBNUa6L_e9SKGY6QsjEtYMxtR_cw 8pb10tugOBSJrTuXrLCZWxSOY5EteV2QP32U_xJvgeETjvIc5qCPXcUSFlw7 tfLFctt_cEPhLZ3eun5p9h08KBvQqVROMFcYLPsxI_5lkUF4V9F8ixzt9k0U 5GI9Mh3ok3nk8Jpt0VH4XiNOw6DyflMS.F.p_laCb8q3K_jOME3o4ehccfHk kAFmdHwe8.uObo6vq8dxQrJyiUwKXEyDmiRHzsWTR76sIc0ZaQz7cY_cDL4c s6gHLoN7z0zNqwV2ThCb0uti9alQsM207RFTghtUspbNWd5QxgrQsW2IhyBF 1sjEj_pgXWFd28LRZq8oJ.22BKAJMNxnQbjo231nK0DD_jRraO6aidRrCxcU Ql2goYqqLKUaxp3gJ.g9mlR.WrSYhKEwyOUiDtKtIE3y3mOqd150RIzEdePR f8mYGW.jD3ukNw2qpYJM5vqS1YUxJqLpOnNG8EYsLywzzT3TpAXkDdV7wSOm CW52KYy0gF1XdBIy1IcOxPyeS4N8JAbM291ogPPUyb7SiAAxfV11nBPdyOLO euppbz8lzrLN3g4_azzEQHEsanlFEhXUwqulodrhQ6qj3cVIr_tl8fNrWXY7 kq86AdnSmlzPp7pC7_AHqh7fYTRWHm.nXKckAevPt1mw-
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53D2781B.8030605@sbcglobal.net>
Date: Fri, 25 Jul 2014 08:30:35 -0700
From: David Jacobson <dmjacobson@sbcglobal.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Benjamin Black <b@b3k.us>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk>
In-Reply-To: <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/nPizu6fxq8eOc9jHYuPLwRKXuYc
Subject: Re: [Cfrg] Curve selection revisited
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: Fri, 25 Jul 2014 15:30:39 -0000

On 7/25/14 7:48 AM, Paterson, Kenny wrote:
> Ben
>
> Thanks for this helpful message. I've responded in-line below,
> representing the chairs and based on what I've heard on the list and at
> the IETF meeting this week. People on the list should still feel free, of
> course, to argue for other points of view.
>
> On 25/07/2014 01:10, "Benjamin Black" <b@b3k.us> wrote:
>
> [snip]
>>
>> 2) Performance must be measured using "production-quality"
>> implementations. By this I mean implementations which employ the sort of
>> techniques/optimizations appropriate for large scale deployment. This is
>> specifically intended to exclude discussion of
>> how simple or fast an implementation _could_ be, in favor of what they
>> actually are in practice. However, the goal is to select curves which
>> strike the best balance between various requirements, not simply the
>> fastest.
>>
> I don't think it's very easy to be concrete about what
> "production-quality" means. I tend to agree with Yoav's comments here
> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04735.html).

I believe that we need to decide what to do about side channel leakage 
resistance.  Performance needs to be measured with the defenses 
deployed.  Of course, the problem is that nobody knows what defenses 
should be deployed and when we have reached "good enough". One common 
defense is no branches on secret data.  Almost certainly we would want 
the benchmarks to be coded this way.  But if the threat model includes 
malicious processes that share a cache with the crypto process, then it 
is  good practice to code so that the stream of memory addresses 
accessed does not depend on secret data.    And then there are various 
blinding techniques with widely varying costs.

This issue is more important if different curves/protocols have 
different sensitivities to leakage or require different leakage 
mitigations.  I don't know whether this is the case.

    --David Jacobson








From nobody Fri Jul 25 09:04:59 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 AF9151B29A5 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 09:04:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 yA_V12hlnttd for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 09:04:56 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lp0010.outbound.protection.outlook.com [213.199.154.10]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 111F21B29A0 for <cfrg@irtf.org>; Fri, 25 Jul 2014 09:04:55 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) with Microsoft SMTP Server (TLS) id 15.0.990.7; Fri, 25 Jul 2014 16:04:53 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0990.007; Fri, 25 Jul 2014 16:04:53 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Request for review of ChaCha/Poly1305
Thread-Index: AQHPp3hGUVtsPaVANUuQu9/F1ZG8J5uwsk6A
Date: Fri, 25 Jul 2014 16:04:52 +0000
Message-ID: <CFF7F62D.28F4A%kenny.paterson@rhul.ac.uk>
References: <82833F6E-FE74-4565-8476-FA8AB6CD55C3@ieca.com>
In-Reply-To: <82833F6E-FE74-4565-8476-FA8AB6CD55C3@ieca.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [31.133.156.135]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02830F0362
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(51704005)(479174003)(199002)(164054003)(189002)(92726001)(99396002)(92566001)(77982001)(74482001)(19580395003)(4396001)(2656002)(19580405001)(50986999)(87936001)(21056001)(31966008)(66066001)(86362001)(80022001)(76176999)(74662001)(74502001)(85306003)(95666004)(101416001)(83322001)(106356001)(105586002)(107046002)(79102001)(81342001)(2351001)(36756003)(64706001)(85852003)(81542001)(15975445006)(83072002)(83506001)(54356999)(20776003)(106116001)(76482001)(110136001)(46102001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <851F6DF185F6AB4B86C76E761DA1AD4D@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Yys7D--8g2YHoIh57L4aasZFHdc
Cc: "tls-chairs@tools.ietf.org" <tls-chairs@tools.ietf.org>
Subject: [Cfrg] FW: Request for review of ChaCha/Poly1305
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: Fri, 25 Jul 2014 16:04:57 -0000

Dear CFRG,

We have been formally requested by the TLS WG to provide review on this
document:

https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/

defining an AEAD construction using the ChaCha and Poly1305 algorithms.
This scheme is being considered by the TLS WG for adoption in TLS.

There are two aspects to the request:

A) analysis of the individual algorithms;
B) analysis of the composition (in Section 2.8 of the document).

My sense is that novel analysis of the algorithms (A) is not likely to be
forthcoming from this group within a realistic timeframe. We can instead
hope that the adoption of ChaCha in TLS will spur further analysis of it
by the research community in the longer term.

On the other hand, analysis of the composition (B) should be within our
collective reach within a realistic timeframe.

Comments, please.

Best wishes

Kenny (for the chairs)




On 24/07/2014 15:47, "Sean Turner" <TurnerS@ieca.com> wrote:

>The TLS WG is currently considering the use of ChaCha/Poly1305
>cipher suites in TLS. Can you please provide the CFRG's feedback
>on the suitability of these algorithms and of the AEAD construction
>found in the following draft:
>
>https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/
>
>Thanks,
>S&J


From nobody Fri Jul 25 10:49:42 2014
Return-Path: <mike@shiftleft.org>
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 D18871A03F1 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 10:49:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 iKKHiM1r3YjM for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 10:49:32 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2518D1A03ED for <cfrg@irtf.org>; Fri, 25 Jul 2014 10:49:31 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id B88243AA13; Fri, 25 Jul 2014 10:47:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406310446; bh=C5DkFcan2YB3IDx+hXdtayUXiEqp8jRT2bR7d55KqUM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=daGVGDzwkE4B5P700x29nymLNe/Lf9hq9n05G+i92xQUd5fYn4Kon0R0NO5nyGeeq bskIvD7pgvvvmbNTGyjMJVY1k7Kz4T4l0FakXXtuDKI72qyLS6XK/I9tiBZtqijmv8 Wqa+NTEBPuT2oprpgrZ470HS2MyKc2DQYoixT+kE=
Content-Type: multipart/alternative; boundary="Apple-Mail=_8A30548B-9BCC-425D-AE0B-71A4BB749F3C"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <20140725131738.6639765.60290.17138@certicom.com>
Date: Fri, 25 Jul 2014 10:49:28 -0700
Message-Id: <616136A0-0AA8-47CF-884D-9C5CDF54E90D@shiftleft.org>
References: <20140725131738.6639765.60290.17138@certicom.com>
To: Dan Brown <dbrown@certicom.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pg2GABHMlqwNohKztfk8YecxM2s
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Fri, 25 Jul 2014 17:49:34 -0000

--Apple-Mail=_8A30548B-9BCC-425D-AE0B-71A4BB749F3C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Bringing in the results of a discussion from the curves list.  I think =
when generating signatures of short messages, the most conservative =
strategy is to use a PRF with a secret key, a random number, and the =
message.

That way if your RNG breaks, unless it=E2=80=99s malicious and =
omniscient*, at worst it will leak that a message has been repeated.  If =
your RNG doesn=E2=80=99t break and your PRF isn=E2=80=99t terrible, it =
will ensure that the nonce is unbiased and that repeated messages =
aren=E2=80=99t evident.

Some people on the curves list favor PRF(message) xor random(), but =
it=E2=80=99s more vulnerable to a broken RNG.

Schnorr doesn=E2=80=99t add anything to this or take anything away.  =
It=E2=80=99s just easier to implement securely because it doesn=E2=80=99t =
have that pesky inversion mod the group order, and it has a slightly =
better security argument.

=E2=80=94 Mike

* Some people care about a model where a malicious RNG is trying to leak =
your key by influencing the ultimate output of the algorithm.  It=E2=80=99=
s more of a concern with nonces.

On Jul 25, 2014, at 6:17 AM, Dan Brown <dbrown@certicom.com> wrote:

> =E2=80=8EIn the SAAG meeting yesterday, it was suggested that Schnorr =
signatures better resist bad RNG than ECDSA, citing a flawed ECDSA =
implementation.=20
>=20
> Just like (EC)DSA, if the ephemeral key is exposed or repeated, then =
the Schnorr static key is exposed, which then can lead to forgery.
>=20
> So this one implementation failure is not a reason to prefer Schnorr =
signatures, as an algorithm.=20
>=20
> The importance of proper ephemeral key generation is why ANSI=E2=80=8E =
X9.62-2005 for ECDSA added a requirement (not in the1998 version) that =
the ephemeral key be generated using HMAC DRBG and that it be properly =
seeded, or else use another ANSI approved RNG. The 1998 version instead =
said something like unique and unpredictable.=20
>=20
> Some people propose using deriving the ephemerals from the message and =
a long term key. This does not seem any better as an algorithm than the =
DRBG approach, provided the X9.62 algorithm is adhered to.
>=20
> There's an RFC melding both these ideas, but that is trying fix =
something that is not broken, at the algorithm level.
>=20
> If a flawed implementation uses a DRBG in compliance with X9.62-2005, =
but fails to update DRBG state fails between signed messages=E2=80=8E, =
then the signing key is leaked. If a flawed implementation opts to also =
use deterministic ephemeral keys for encryption, then repeated messages =
leak info via repeated ciphertexts.  So, standards should amply warn =
implementers if these pitfalls.=20
>=20
> So I think there are issues with ease of implementation, clarity of =
standards, and making standards  error resistant, but the algorithm =
security is not significant.
>=20
> In theory, some security proofs, may give different assurances, =
depending on the determinism, but I'll defer that issue to future =
discussion.=20
>=20
> =E2=80=8EProcedurally, I think signature algorithm choice, and method =
to generate ephemerals is a CFRG issue, not a SAAG issue.
>=20
> Best regards,=20
>=20
> -- Dan
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--Apple-Mail=_8A30548B-9BCC-425D-AE0B-71A4BB749F3C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>Bringing in the results of a discussion from =
the curves list. &nbsp;I think when generating signatures of short =
messages, the most conservative strategy is to use a PRF with a secret =
key, a random number, and the message.</div><div><br></div><div>That way =
if your RNG breaks, unless it=E2=80=99s malicious and omniscient*, at =
worst it will leak that a message has been repeated. &nbsp;If your RNG =
doesn=E2=80=99t break and your PRF isn=E2=80=99t terrible, it will =
ensure that the nonce is unbiased and that repeated messages aren=E2=80=99=
t evident.</div><div><br></div><div>Some people on the curves list favor =
PRF(message) xor random(), but it=E2=80=99s more vulnerable to a broken =
RNG.</div><div><br></div><div>Schnorr doesn=E2=80=99t add anything to =
this or take anything away. &nbsp;It=E2=80=99s just easier to implement =
securely because it doesn=E2=80=99t have that pesky inversion mod the =
group order, and it has a slightly better security =
argument.</div><div><br></div><div>=E2=80=94 =
Mike</div><div><br></div><div>* Some people care about a model where a =
malicious RNG is trying to leak your key by influencing the ultimate =
output of the algorithm. &nbsp;It=E2=80=99s more of a concern with =
nonces.</div><br><div><div>On Jul 25, 2014, at 6:17 AM, Dan Brown &lt;<a =
href=3D"mailto:dbrown@certicom.com">dbrown@certicom.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div data-blackberry-caret-color=3D"#00a8df" =
style=3D"font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(38, =
38, 38); font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"><div>=E2=80=8EIn the SAAG meeting =
yesterday, it was suggested that Schnorr signatures better resist bad =
RNG than ECDSA, citing a flawed ECDSA =
implementation.&nbsp;</div><div><br></div><div>Just like (EC)DSA, if the =
ephemeral key is exposed or repeated, then the Schnorr static key is =
exposed, which then can lead to forgery.</div><div><br></div><div>So =
this one implementation failure is not a reason to prefer Schnorr =
signatures, as an algorithm.&nbsp;</div><div><br name=3D"BB10" =
caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>The importance of =
proper ephemeral key generation is why ANSI=E2=80=8E X9.62-2005 for =
ECDSA added a requirement (not in the1998 version) that the ephemeral =
key be generated using HMAC DRBG and that it be properly seeded, or else =
use another ANSI approved RNG. The 1998 version instead said something =
like unique and unpredictable.&nbsp;</div><div><br></div><div>Some =
people propose using deriving the ephemerals from the message and a long =
term key. This does not seem any better as an algorithm than the DRBG =
approach, provided the X9.62 algorithm is adhered to.</div><div><br =
name=3D"BB10" caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>There's an RFC melding =
both these ideas, but that is trying fix something that is not broken, =
at the algorithm level.</div><div><br name=3D"BB10" =
caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>If a flawed =
implementation uses a DRBG in compliance with X9.62-2005, but fails to =
update DRBG state fails between signed messages=E2=80=8E, then the =
signing key is leaked. If a flawed implementation opts to also use =
deterministic ephemeral keys for encryption, then repeated messages leak =
info via repeated ciphertexts. &nbsp;So, standards should amply warn =
implementers if these pitfalls.&nbsp;</div><div><br name=3D"BB10" =
caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>So I think there are =
issues with ease of implementation, clarity of standards, and making =
standards &nbsp;error resistant, but the algorithm security is not =
significant.</div><div><span style=3D"font-family: Calibri, 'Slate Pro', =
sans-serif;"><br></span></div><div><span style=3D"font-family: Calibri, =
'Slate Pro', sans-serif;">In theory, some security proofs, may give =
different assurances, depending on the determinism, but I'll defer that =
issue to future discussion.&nbsp;</span></div><div><br name=3D"BB10" =
caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>=E2=80=8EProcedurally<spa=
n style=3D"font-family: Calibri, 'Slate Pro', sans-serif;">, I think =
signature algorithm choice, and method to generate ephemerals is a CFRG =
issue, not a SAAG issue.</span></div><div><br name=3D"BB10" =
caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>Best regards,<span =
class=3D"Apple-converted-space">&nbsp;</span><br><br>-- =
Dan</div>_______________________________________________<br>Cfrg mailing =
list<br><a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br><a =
href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.org/mai=
lman/listinfo/cfrg</a></div></blockquote></div><br></body></html>=

--Apple-Mail=_8A30548B-9BCC-425D-AE0B-71A4BB749F3C--


From nobody Fri Jul 25 14:16:48 2014
Return-Path: <stephen.farrell@cs.tcd.ie>
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 6879A1A0342 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 14:16:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 2r7ucxvOoluh for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 14:16:45 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id 8611F1A0252 for <cfrg@irtf.org>; Fri, 25 Jul 2014 14:16:45 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 15D54BE7D; Fri, 25 Jul 2014 22:16:44 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zQVMQG0e1KbB; Fri, 25 Jul 2014 22:16:43 +0100 (IST)
Received: from [31.133.147.251] (dhcp-93fb.meeting.ietf.org [31.133.147.251]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id BE42DBE7B; Fri, 25 Jul 2014 22:16:42 +0100 (IST)
Message-ID: <53D2C939.7080509@cs.tcd.ie>
Date: Fri, 25 Jul 2014 22:16:41 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Dan Brown <dbrown@certicom.com>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <20140725131738.6639765.60290.17138@certicom.com>
In-Reply-To: <20140725131738.6639765.60290.17138@certicom.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kvUQoSJyfLkCBg2VYrbOfNO-KT0
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Fri, 25 Jul 2014 21:16:47 -0000

Hiya,

On 25/07/14 14:17, Dan Brown wrote:
> â€ŽProcedurally, I think signature algorithm choice, and method to
> generate ephemerals is a CFRG issue, not a SAAG issue.

No. IETF WGs can choose to ask CFRG for advice and, when given,
that's very welcome and seriously considered. CFRG, nor the IRTF
more generally, don't get to determine IETF consensus.

S.


From nobody Fri Jul 25 18:04:11 2014
Return-Path: <watsonbladd@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 ABB5C1A8BB0 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 18:04:09 -0700 (PDT)
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 HanFWtWzaBC6 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 18:04:06 -0700 (PDT)
Received: from mail-yk0-x236.google.com (mail-yk0-x236.google.com [IPv6:2607:f8b0:4002:c07::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A27581A03AC for <cfrg@irtf.org>; Fri, 25 Jul 2014 18:04:06 -0700 (PDT)
Received: by mail-yk0-f182.google.com with SMTP id q9so3313049ykb.13 for <cfrg@irtf.org>; Fri, 25 Jul 2014 18:04:06 -0700 (PDT)
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=q455mjeBOb6lReTxU46WUHgOC/eX3tDLa1X1W8XmNT4=; b=r/CUDuBgFVeAirF2l71iDPGmiopiLUMaXBwPWmuN2omt1U18UilrMAoG9y3IMgMyPv DDv1rZwXi2n6rbLlojcU6deie/T/t4mCWnpexT7/e8+HZ2O0VBpLj2FHRTMeCVeVJW6F nG3XYaAileSaTvBsD/FxmT6BzwOVTyxgVbfQMq+j0r5ESYRPjgVYv9hYVxOE957a+7Y5 VALTvGOAgoUKoXM36Oefjjghm2sDbzrttxZljLMHnZQB5LhwCRMo0ml8EdFN7fXs0Zxw MgNx7myVHfNVG/dJFHWEXMr8XD6W8beqfALQQrVQY2e4LfY5VRLWBIH8Q3ePZH/y98C6 g6xw==
MIME-Version: 1.0
X-Received: by 10.236.170.38 with SMTP id o26mr3142614yhl.182.1406336645910; Fri, 25 Jul 2014 18:04:05 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Fri, 25 Jul 2014 18:04:05 -0700 (PDT)
In-Reply-To: <53D2781B.8030605@sbcglobal.net>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net>
Date: Fri, 25 Jul 2014 18:04:05 -0700
Message-ID: <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: David Jacobson <dmjacobson@sbcglobal.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/eTuSOE_1QUUqeIvWJ4-ZW80Y9Bw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 01:04:10 -0000

On Fri, Jul 25, 2014 at 8:30 AM, David Jacobson
<dmjacobson@sbcglobal.net> wrote:
> On 7/25/14 7:48 AM, Paterson, Kenny wrote:
>>
>> Ben
>>
>> Thanks for this helpful message. I've responded in-line below,
>> representing the chairs and based on what I've heard on the list and at
>> the IETF meeting this week. People on the list should still feel free, of
>> course, to argue for other points of view.
>>
>> On 25/07/2014 01:10, "Benjamin Black" <b@b3k.us> wrote:
>>
>> [snip]
>>
>>>
>>> 2) Performance must be measured using "production-quality"
>>> implementations. By this I mean implementations which employ the sort of
>>> techniques/optimizations appropriate for large scale deployment. This is
>>> specifically intended to exclude discussion of
>>> how simple or fast an implementation _could_ be, in favor of what they
>>> actually are in practice. However, the goal is to select curves which
>>> strike the best balance between various requirements, not simply the
>>> fastest.
>>>
>> I don't think it's very easy to be concrete about what
>> "production-quality" means. I tend to agree with Yoav's comments here
>> (http://www.ietf.org/mail-archive/web/cfrg/current/msg04735.html).
>
>
> I believe that we need to decide what to do about side channel leakage
> resistance.  Performance needs to be measured with the defenses deployed.
> Of course, the problem is that nobody knows what defenses should be deployed
> and when we have reached "good enough". One common defense is no branches on
> secret data.  Almost certainly we would want the benchmarks to be coded this
> way.  But if the threat model includes malicious processes that share a
> cache with the crypto process, then it is  good practice to code so that the
> stream of memory addresses accessed does not depend on secret data.    And
> then there are various blinding techniques with widely varying costs.
>
> This issue is more important if different curves/protocols have different
> sensitivities to leakage or require different leakage mitigations.  I don't
> know whether this is the case.

So I'd like to explain a bit about how implementations work, and why
performance will not help us decide between Curve25519 in twisted
Edwards form and the NUMS curve of similar size in twisted Edwards
form.

The first question is how to do the field arithmetic. All the primes
being considered are of the form 2^s-c, so either one of saturated
arithmetic
or unsaturated will work. Unsaturated is more portable: C cannot
access the carry flag. It offers more freedom in radix, and lets carry
chains be vectorized. Karatsuba can be used or not, which depends on
the saturated/unsaturated choice. But the exact values of s and c
don't matter as much.

The second question and third question what coordinates and what
addition formulas to use when, and what algorithm to use. All twisted
Edwards curves expose the same possibilities here: large precomputed
tables with mixed coordinate addition vs. smaller tables for variable
base, or a conversion to some other isogenous curve for variable base
exponentiation.

If we are willing to use Montgomery form (which the TLS WG initially
had strong support for in Curve25519) one caches ephemeral DH
parameters so the cost of fixed-base exponentiation is amortized
across connections. OpenSSL does this anyway, and this affects
technique
slightly. But to be clear, a fast implementation for one prime and
curve of a certain size and shape will likely be adaptable to a
different curve
over a similar prime with the same shape.

Performance data will not distinguish between s=255 and s=256. It will
inform the decision of whether Ed448 is too big for an intermediate
curve, or if the speed disadvantage over whatever curve has size 384
is so minor as to make the extra strength effectively free, and
likewise the question of s=512 vs. s=521. But this is also a messier
question: how many options do we need and what do people want them to
be?

Sincerely,
Watson Ladd

>
>    --David Jacobson
>
>
>
>
>
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Fri Jul 25 19:25:58 2014
Return-Path: <rransom.8774@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 D63961A01E5 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 19:25:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 cRmR8KMXYvp3 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 19:25:55 -0700 (PDT)
Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A70981A01D5 for <cfrg@irtf.org>; Fri, 25 Jul 2014 19:25:55 -0700 (PDT)
Received: by mail-qg0-f42.google.com with SMTP id j5so6036906qga.1 for <cfrg@irtf.org>; Fri, 25 Jul 2014 19:25:54 -0700 (PDT)
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:content-transfer-encoding; bh=zs21VYF2/O9gJI620pb+jO0xPdulIe8y2Sjm41cDB9o=; b=dOSKZHOnAikmeHk8NnqtmpCXGqqoB9xiUCdwSgBuTcE9cj0dWrXvLy+QNpE8l4jEUb iNBHCli2hqPVc9+b6ApUpY562OtBt2iAHtVVto9/Mkb6Cp0pdHLTovgjQ7qmGEdV0IhP XrDu4mHzdlDOZthCp/PKruTRnLmFdNW8NqyH482zo81xfNK7jWfOAiD53WaII6V2c9Kg Gvjq2XjNc/JvOGz0frS13Nwsb5yOp1H6hQ/2iOVnVmWztScfKWAwWHaaAP5ndeIwFDig r5c2dbBEK6uAb6W1DUierqJGD40F6mn44JSh9KqdkC/4LpvwYoEtmy4CsBo630+3gKZ2 SxQw==
MIME-Version: 1.0
X-Received: by 10.224.134.201 with SMTP id k9mr33883918qat.59.1406341554734; Fri, 25 Jul 2014 19:25:54 -0700 (PDT)
Received: by 10.140.98.233 with HTTP; Fri, 25 Jul 2014 19:25:54 -0700 (PDT)
In-Reply-To: <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com>
Date: Fri, 25 Jul 2014 19:25:54 -0700
Message-ID: <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Wvsgkn1nuKPf5Gal8WCII7a_AMM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 02:25:57 -0000

On 7/25/14, Watson Ladd <watsonbladd@gmail.com> wrote:

> So I'd like to explain a bit about how implementations work, and why
> performance will not help us decide between Curve25519 in twisted
> Edwards form and the NUMS curve of similar size in twisted Edwards
> form.
>
> The first question is how to do the field arithmetic. All the primes
> being considered are of the form 2^s-c, so either one of saturated
> arithmetic
> or unsaturated will work. Unsaturated is more portable: C cannot
> access the carry flag. It offers more freedom in radix, and lets carry
> chains be vectorized. Karatsuba can be used or not, which depends on
> the saturated/unsaturated choice. But the exact values of s and c
> don't matter as much.

The exact value of c determines whether a portable or vectorized
implementation can delay carries until after reduction.  For example,
after curve25519-donna performs a multiply or squaring, each of 19
64-bit limbs has absolute value less than 14*2^54.  When
freduce_degree reduces a field element to 10 limbs without carrying,
the result has absolute value less than (c+1)*14*2^54 =3D 280*2^54, or a
bit more than 2^62.  In the Microsoft field 2^255 - 765, or even 2^256
- 189, this would not be possible.

Carries between limbs can be performed more efficiently than in
curve25519-donna -- curve25519-donna goes to extra effort to keep
limbs signed.  In the Montgomery ladder, this optimization does not
add any extra carry steps, because the Montgomery-ladder formulas
never perform more than two add/subtract operations between a
multiply/square operation.  With Edwards-curve operations, this
optimization may require an additional carry step in the doubling
formula.

The exact value of s determines whether carries can be vectorized
within a coordinate-field element.  For example, 2^251 - 9 can be
represented using one 26-bit limb (in the least significant position)
and 9 25-bit limbs, but this interferes with the vectorization
strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
Since c=3D9 is so small, this can be worked around by representing
coordinates modulo 2^252 - 18 instead, but this trick is rarely
possible without running into the bound on c.


> The second question and third question what coordinates and what
> addition formulas to use when, and what algorithm to use. All twisted
> Edwards curves expose the same possibilities here: large precomputed
> tables with mixed coordinate addition vs. smaller tables for variable
> base, or a conversion to some other isogenous curve for variable base
> exponentiation.

Affine Montgomery-form points can be unpacked to and packed from
projective (optionally twisted) Edwards-form points at a trivial extra
cost over unpacking from or packing to a compressed affine
Edwards-form point.  Variable-base scalar-multiplication operations
which use Edwards form internally are not slowed significantly by
having a projective rather than affine input (if any operations rely
on their input being affine, they must occur during table setup), and
they are not slowed at all if they double and/or apply isogenies to
clear the cofactor group before operating on an =E2=80=98incomplete=E2=80=
=99 curve
(e.g. a=3D-1 in a field in which -1 is a non-square).

As you should know, fixed-base scalar-multiplication operations which
use Edwards form internally are not slowed at all by producing
Montgomery-form output.

Affine Edwards-form points cannot be unpacked to affine
Montgomery-form points for use with the Montgomery ladder without an
extra inversion at the beginning of a scalar multiplication, and using
a projective input in the Montgomery ladder is always slower than
inversion by coordinate exponentiation.

Since the Montgomery ladder remains the simplest implementation
strategy, and the performance benefit to more complex implementations
from using an Edwards-form point format is small at most, I still see
no reason to use an Edwards-form point format.


> If we are willing to use Montgomery form (which the TLS WG initially
> had strong support for in Curve25519)

Has the TLS WG changed its support for using the widely implemented,
de-facto standard point format for Curve25519?  If so, when was this
decision made?

> one caches ephemeral DH
> parameters so the cost of fixed-base exponentiation is amortized
> across connections. OpenSSL does this anyway, and this affects
> technique
> slightly.

This is good for performance even if you use a table to optimize
fixed-base scalar multiplications.

> But to be clear, a fast implementation for one prime and
> curve of a certain size and shape will likely be adaptable to a
> different curve
> over a similar prime with the same shape.

This is simply not true.  Curve operations can often be reused, and
some other utility routines can easily be modularized in a way that
supports other coordinate fields with similar properties (e.g.
q=3D3mod4), but primes which make portable or vectorized coordinate
operation implementations efficient are too rare for there to be any
pairs of =E2=80=98similar prime=E2=80=99s.


> Performance data will not distinguish between s=3D255 and s=3D256.

It will distinguish between Curve25519 and the Microsoft curves in the
implementations (either portable, open-source C, or heavily-optimized
machine code) which are actually used.


Robert Ransom


From nobody Fri Jul 25 19:34:01 2014
Return-Path: <dmjacobson@sbcglobal.net>
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 B556C1A01F2 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 19:34:00 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001] 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 9ubC1qZY1O-0 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 19:33:59 -0700 (PDT)
Received: from nm17-vm5.access.bullet.mail.gq1.yahoo.com (nm17-vm5.access.bullet.mail.gq1.yahoo.com [216.39.63.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9CF031A01E5 for <cfrg@irtf.org>; Fri, 25 Jul 2014 19:33:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1406342039; bh=1QDKZx7jYqKunH+YVzBO93pZhoz8B+A0TIR+EcxRKNU=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=MtuwupYA1sIKpZdACrtt1rIY7v7LeBIE4NtxZ7P0PZFdiO2JlvnmWwPnS9EBgIBS5s9NcW2umz+biqAjqXk6vCeczb6aYNQUeDBSKTVZJKI+l6MRz80e4KO1dsPUAgLMbRGF5nTyAXS+TERyfQvSmKl7Hbwlz2auOBYB7/8LDNSaRSqNnWGB8ZXvixeVhW1/ZgeFCnGDW461xnAoOUJeqX9o2npR+NjUXP+DSALQeUJU3Iw4jmJ39GSquKJ4R7RS9JjQCVgdgFrpy8rmyDBW+n0V/CmGNClM6boA7vYyNDG5evqMbOUx+qEgXzGiD36+Tpm3arcyFUMgxwlHzouMhQ==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=RSA21KiNGHeRYSSCAyUIdSX6AZIc8G0awhp1xBHTjO7Q1xz81/Ny00TQcA11b+a5sNdb+PolcZZLfRQjJAV4Nku9NnVfrC2XNZN0adq/Ttsxokxb+XOzzlhz+FhGcTns+HZiMOS3xcDqMZKIkjqniA+zeeZV9idFcm4IzHnozCr9z3cR8emg3YVc2lsutm7g8msXIFrW8LaaEdI5WRv6T7y3yvjBvO8FOdMqmJM5tiwtTDI6MQqBOLV3cRrapat//XjeiK/9kDJ+wWRrIjBEP+XlDbANl/1gs9QqiSc/B15+3G7tSxy1BUeHDcahc9ucp4cm7QwQJnwFOBkqlXwIHw==;
Received: from [216.39.60.166] by nm17.access.bullet.mail.gq1.yahoo.com with NNFMP; 26 Jul 2014 02:33:59 -0000
Received: from [67.195.22.117] by tm2.access.bullet.mail.gq1.yahoo.com with NNFMP; 26 Jul 2014 02:33:59 -0000
Received: from [127.0.0.1] by smtp112.sbc.mail.gq1.yahoo.com with NNFMP; 26 Jul 2014 02:33:59 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1406342039; bh=1QDKZx7jYqKunH+YVzBO93pZhoz8B+A0TIR+EcxRKNU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DD0YznWAlGkrgFTODT4I91s5v2MhxNcnDVA4GncxVVcd7fZM/a9yXrxyPTjjwSNZs4/z6Kv/70w3JCuwSnTfBurNrZWW4rwCF8FQQ4TIZRWh5Yjec1CyDgdBCMVHIPuUC9c8OwYmnDrl6EFFMzRav3CdGNAWSvI54i/7wI71wT0=
X-Yahoo-Newman-Id: 6802.35745.bm@smtp112.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: 715HlcoVM1nfW1WmDUyVMohm_slzL1coUuuXR2bP0r.Lwqq mK8lik6El2oxD4wcp0dwxRn7HFgdGdKMaDFE74IkQ4BfY88j9eTBF_tgLRHN PpcMiM1UqTsHz.mRfgwuyULUY6f9IISywgX_Mu_zw_0jCBcVCZaMLMSNsieH U4fjkwAxXHokA5MviwEzl7hePDGeH5xIK5z3MJtN7mVruXxVixaIOfdvCtMK 4HNqETPT6K4Q2WdYIIfax2YHup272l2I_MKkODNGPKLQvdVqBcVuFmWGCMK. S.JO54xzFhYEb0d.eVUAV3qNioh8VSfPOGT2YiBBnVqJJoYOeK5KS6vlqp6L YkS4OQKWt0HMovCfL58nc_VB4YtnK1dByRCQgogbNVoMN9DSOR99S2dlc0TN pI3tiR5dOSi3AKGki1Mi8SshnODWPHXVIH5nGeA4KE56.XPE5suCADZnKihB HiZ2ZfrcXs13OKB9T7APGrt4FVWD5mn8V39P30mBkj0XotEUUyhPLb8IawS7 3T71xLXWYk6XXifSyw.My8dQxTdNk2xY16ruRCy2qHr.Ft8ol6POOZqk-
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53D31396.2040909@sbcglobal.net>
Date: Fri, 25 Jul 2014 19:33:58 -0700
From: David Jacobson <dmjacobson@sbcglobal.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Bodo Moeller <bmoeller@acm.org>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <20140725131738.6639765.60290.17138@certicom.com> <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com>
In-Reply-To: <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/v5f63r-secsMtf7RI07w5uNOVTY
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Sat, 26 Jul 2014 02:34:00 -0000

On 7/25/14 7:09 AM, Bodo Moeller wrote:
> ... in practice, sometimes you *think* you have proper seeding when 
> you actually don't.
This is wandering off topic, but I'm going to mention it anyway. Entropy 
generation is a very tricky thing.  Unfortunately, there is far too much 
emphasis on estimating the entropy of a source based on long term 
averages of something.  The problem is that many sources have entropy 
dropouts.  In one system I'm aware of, entropy was collected from noise 
in a radio.  I got a pile of the raw entropy, and noticed that every so 
often there were long runs of zeros. My guess is that there were 
occasional powerful RF "clicks" that overloaded the front end RF 
circuitry, and until the system recovered from the overload, zeros were 
reported.  These dropouts were tiny compared to the overall data, maybe 
0.01%, so they would have negligible effect on any metric that does long 
averages.  But had a seed been grabbed right during a dropout, it would 
have been a cryptographic disaster. And 0.01% corresponds to about 13 
bits of security.

      --David Jacobson


From nobody Fri Jul 25 20:40:47 2014
Return-Path: <watsonbladd@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 445FC1A0272 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 20:40:44 -0700 (PDT)
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 oNFM-e2H_YzD for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 20:40:41 -0700 (PDT)
Received: from mail-yh0-x233.google.com (mail-yh0-x233.google.com [IPv6:2607:f8b0:4002:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC4761A0270 for <cfrg@irtf.org>; Fri, 25 Jul 2014 20:40:41 -0700 (PDT)
Received: by mail-yh0-f51.google.com with SMTP id f73so3519273yha.38 for <cfrg@irtf.org>; Fri, 25 Jul 2014 20:40:41 -0700 (PDT)
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:content-transfer-encoding; bh=E7h4yGJuNo4sY1soC6ZA8eXfBRNZ4J+Bde8wjhyxfoY=; b=G9CPexKrpPSY6ZvkaiavYn3edHxPoc/EDXAG60QLty6bY2sTC2nhRHgIsYMA9k6V9q pXcuEt6vMSX1UqPtb9/Q2mGoAsAp8q3c0muMFwre5TJKgY9GtS76BMdQiYV/YsFzJLP/ 27zhsrEA0IzXstZck8tao+ovE1v2bSy2dlEnas7YqzTZyH0U18AIsqQYsFmD9k4JwvW+ k9hkYvGDseQ+2tgtA2jKCl44WQN4ztE9QGOuksdsyfswnz/trrU1iSaCDggFPw0jGrfs KADlaRclV/taG5unlCcX0W8gsy+cFGjpc+EBkr2FjdSvAhju+dZN3PvJIV+Qa9MNSgn1 ciwQ==
MIME-Version: 1.0
X-Received: by 10.236.53.163 with SMTP id g23mr28290469yhc.15.1406346040916; Fri, 25 Jul 2014 20:40:40 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Fri, 25 Jul 2014 20:40:40 -0700 (PDT)
In-Reply-To: <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
Date: Fri, 25 Jul 2014 20:40:40 -0700
Message-ID: <CACsn0ck-nmwtKVmoC=qTuWwJWDZPE6SwKreeJjjdyew+mAcfYw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Robert Ransom <rransom.8774@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/c-Ns8WQ2JRXnLfk103BQ3nVXQkA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 03:40:44 -0000

Thanks for the much more detailed analysis: I'll have to revise my opinion.
On Fri, Jul 25, 2014 at 7:25 PM, Robert Ransom <rransom.8774@gmail.com> wro=
te:
> On 7/25/14, Watson Ladd <watsonbladd@gmail.com> wrote:
>
>> So I'd like to explain a bit about how implementations work, and why
>> performance will not help us decide between Curve25519 in twisted
>> Edwards form and the NUMS curve of similar size in twisted Edwards
>> form.
>>
>> The first question is how to do the field arithmetic. All the primes
>> being considered are of the form 2^s-c, so either one of saturated
>> arithmetic
>> or unsaturated will work. Unsaturated is more portable: C cannot
>> access the carry flag. It offers more freedom in radix, and lets carry
>> chains be vectorized. Karatsuba can be used or not, which depends on
>> the saturated/unsaturated choice. But the exact values of s and c
>> don't matter as much.
>
> The exact value of c determines whether a portable or vectorized
> implementation can delay carries until after reduction.  For example,
> after curve25519-donna performs a multiply or squaring, each of 19
> 64-bit limbs has absolute value less than 14*2^54.  When
> freduce_degree reduces a field element to 10 limbs without carrying,
> the result has absolute value less than (c+1)*14*2^54 =3D 280*2^54, or a
> bit more than 2^62.  In the Microsoft field 2^255 - 765, or even 2^256
> - 189, this would not be possible.
>
> Carries between limbs can be performed more efficiently than in
> curve25519-donna -- curve25519-donna goes to extra effort to keep
> limbs signed.  In the Montgomery ladder, this optimization does not
> add any extra carry steps, because the Montgomery-ladder formulas
> never perform more than two add/subtract operations between a
> multiply/square operation.  With Edwards-curve operations, this
> optimization may require an additional carry step in the doubling
> formula.
>
> The exact value of s determines whether carries can be vectorized
> within a coordinate-field element.  For example, 2^251 - 9 can be
> represented using one 26-bit limb (in the least significant position)
> and 9 25-bit limbs, but this interferes with the vectorization
> strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
> Since c=3D9 is so small, this can be worked around by representing
> coordinates modulo 2^252 - 18 instead, but this trick is rarely
> possible without running into the bound on c.

True: since square roots in F_p with p=3D5(8) are easy, one of the rational=
s
for the NUMS curves is just wrong, and we can live with smaller c.
>
>
>> The second question and third question what coordinates and what
>> addition formulas to use when, and what algorithm to use. All twisted
>> Edwards curves expose the same possibilities here: large precomputed
>> tables with mixed coordinate addition vs. smaller tables for variable
>> base, or a conversion to some other isogenous curve for variable base
>> exponentiation.
>
> Affine Montgomery-form points can be unpacked to and packed from
> projective (optionally twisted) Edwards-form points at a trivial extra
> cost over unpacking from or packing to a compressed affine
> Edwards-form point.  Variable-base scalar-multiplication operations
> which use Edwards form internally are not slowed significantly by
> having a projective rather than affine input (if any operations rely
> on their input being affine, they must occur during table setup), and
> they are not slowed at all if they double and/or apply isogenies to
> clear the cofactor group before operating on an =E2=80=98incomplete=E2=80=
=99 curve
> (e.g. a=3D-1 in a field in which -1 is a non-square).

I think I follow all the way up to the last phrase: the incompleteness
means some
additions might blow up, complicating the analysis, and I think a=3D-1
only gives the twist
if -1 is a nonsquare. Otherwise it is a curve isogenous to the
original one, under a 1-isogeny.
I've not thought about it that much.

>
> As you should know, fixed-base scalar-multiplication operations which
> use Edwards form internally are not slowed at all by producing
> Montgomery-form output.
>
> Affine Edwards-form points cannot be unpacked to affine
> Montgomery-form points for use with the Montgomery ladder without an
> extra inversion at the beginning of a scalar multiplication, and using
> a projective input in the Montgomery ladder is always slower than
> inversion by coordinate exponentiation.
>
> Since the Montgomery ladder remains the simplest implementation
> strategy, and the performance benefit to more complex implementations
> from using an Edwards-form point format is small at most, I still see
> no reason to use an Edwards-form point format.

Signatures: the y-encoding strategies I've seen are too clever by
half, so keys for
ECIES and signatures look very different. There is no security issue
with reuse and
there are papers to that effect, or so I'm told.
That said adding Edwards support or Montgomery support to an implementation
of the other partner in the isogenous pair is easy: we can live with
two point formats.

(there is an additional question of small parameters: a Montgomery
curve with small
parameter is birationally equivalent to a twisted Edwards curve of
small parameter, but
the converse is not (obviously) true. Most generated curves seem to be
in Edwards form
however.)
>
>
>> If we are willing to use Montgomery form (which the TLS WG initially
>> had strong support for in Curve25519)
>
> Has the TLS WG changed its support for using the widely implemented,
> de-facto standard point format for Curve25519?  If so, when was this
> decision made?

Quite true: perhaps the leadership would like to explain why
"curve25519 has no security
issues" was insufficient for the adoption of curve25519 in TLS for
ECDHE, given substantial
implementor support and existing drafts.

>
>> one caches ephemeral DH
>> parameters so the cost of fixed-base exponentiation is amortized
>> across connections. OpenSSL does this anyway, and this affects
>> technique
>> slightly.
>
> This is good for performance even if you use a table to optimize
> fixed-base scalar multiplications.

Very true: the NUMS performance results are thus dead wrong in ECDHE costs,
which are two variable-base multiplications plus a very amortized
fixed-base multiplication, not
the fixed+variable base they used.

>
>> But to be clear, a fast implementation for one prime and
>> curve of a certain size and shape will likely be adaptable to a
>> different curve
>> over a similar prime with the same shape.
>
> This is simply not true.  Curve operations can often be reused, and
> some other utility routines can easily be modularized in a way that
> supports other coordinate fields with similar properties (e.g.
> q=3D3mod4), but primes which make portable or vectorized coordinate
> operation implementations efficient are too rare for there to be any
> pairs of =E2=80=98similar prime=E2=80=99s.

I think within 10% or 5% is likely. Certainly not outside 50%.
>
>
>> Performance data will not distinguish between s=3D255 and s=3D256.
>
> It will distinguish between Curve25519 and the Microsoft curves in the
> implementations (either portable, open-source C, or heavily-optimized
> machine code) which are actually used.

Well, absent hard numbers I'm not sure we can say how much it distinguishes=
.
>
>
> Robert Ransom

Sincerely,
Watson ladd


From nobody Fri Jul 25 22:40:55 2014
Return-Path: <rransom.8774@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 AD9261A02FF for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 22:40:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 v0HixBp2Y3hO for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 22:40:51 -0700 (PDT)
Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5E1571A02F9 for <cfrg@irtf.org>; Fri, 25 Jul 2014 22:40:51 -0700 (PDT)
Received: by mail-qa0-f50.google.com with SMTP id s7so5479766qap.23 for <cfrg@irtf.org>; Fri, 25 Jul 2014 22:40:50 -0700 (PDT)
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:content-transfer-encoding; bh=WAxBpYadoOjzi11d7yoxNUYi4JeXQlRv86/hvVYV9V8=; b=nmO2rP5QYzZqxtnF3it1a0938j//STh1PSUxJORbb1HTsbCOLgbymn+POBi5lq2M2w 45uoU0H18TAHLBifNaL178INNtYZibmugv7bZix6Uqe8Yv1P9bwmeouphbn52PpCpyXa gsanMx0D1rnQhOzwrtMs5HaBm80htzVFxUPM0FEMAF2USk1mXhN1yniym0p44xufF+F9 sskS9eihWTS4rku4TCIDAL36q88WukIidGoMnIrcJVcsqeAcgbec+TcVwJD3rgWSL16s k6BPEOQaiOXi0af0wgL5V9Yg1C4w0gdTIPX2biQeO//yU2AoWsPLuwC7FAPNn3ZgABuy 0ZhA==
MIME-Version: 1.0
X-Received: by 10.140.26.110 with SMTP id 101mr19895914qgu.1.1406353250565; Fri, 25 Jul 2014 22:40:50 -0700 (PDT)
Received: by 10.140.98.233 with HTTP; Fri, 25 Jul 2014 22:40:50 -0700 (PDT)
In-Reply-To: <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
Date: Fri, 25 Jul 2014 22:40:50 -0700
Message-ID: <CABqy+sq=38V7EUcfZtFbiXDRENG2R786pY8o-eVbzFKL_=HVwA@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/VpxX7AQvcqOfEPm-EH1pH4a7c58
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 05:40:52 -0000

On 7/25/14, Robert Ransom <rransom.8774@gmail.com> wrote:

> Carries between limbs can be performed more efficiently than in
> curve25519-donna -- curve25519-donna goes to extra effort to keep
> limbs signed.  In the Montgomery ladder, this optimization does not
> add any extra carry steps, because the Montgomery-ladder formulas
> never perform more than two add/subtract operations between a
> multiply/square operation.  With Edwards-curve operations, this
> optimization may require an additional carry step in the doubling
> formula.

Er.  The =E2=80=98optimization=E2=80=99 I'm referring to is carrying in suc=
h a way
that the resulting limb values are always non-negative, in three
operations (shift, add, and bitwise and) rather than the seven (four
shifts, two adds, one subtract) needed to chop an extra bit off the
absolute value of each limb, and possibly producing negative limbs.


Dr. Bernstein wrote up his own explanation of how the performance of
unsaturated-limb arithmetic depends strongly on the exact values of s
and c on the curves list; see
<https://moderncrypto.org/mail-archive/curves/2014/000237.html>.  The
Curve41417 paper gives a more extensive treatment of how its
coordinate field allows even more optimization.


Robert Ransom


From nobody Fri Jul 25 22:43:13 2014
Return-Path: <rransom.8774@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 263511A0305 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 22:42:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 NIpWFNH0-HBl for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 22:42:46 -0700 (PDT)
Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3A58B1A0302 for <cfrg@irtf.org>; Fri, 25 Jul 2014 22:42:46 -0700 (PDT)
Received: by mail-qg0-f47.google.com with SMTP id i50so6159850qgf.34 for <cfrg@irtf.org>; Fri, 25 Jul 2014 22:42:45 -0700 (PDT)
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:content-transfer-encoding; bh=GA23fuAP+/r59UhKkIa1+v7729i/s8yM3MlrYk34ipY=; b=vpjZVlq1Lmhr3HTJ0TWLYMy+38cDwHTWGXfjvKoBMrwTDMKBTOeE8bjFBTabo9KOg6 pGkpB/N+xhOJp+5+Zf6vOJXGFpXP+V9getiaoJJEnpOvlDkB4kbEC33jDaOGnUBn/TsL KR4F1520X+IFeQo4R3QNXnLqzYL+6fgWFYOY0xuTWXmHo/+g+A2ktJGvoY5GsLKmy2WF g1iViktNI7r0yVATpyHzHc1F/XgTs4lSBjNUSa0Kur0aBNJVHPzoDx5kZXVXxjsbVi0y 2PJzLJU8/rZoOVydJuIzV5QAoNGEzL0Wfhgs0XXj47ON0ov5+C/pZGETiBEy/N3g6Q7A WVEw==
MIME-Version: 1.0
X-Received: by 10.224.137.135 with SMTP id w7mr35038245qat.52.1406353365284; Fri, 25 Jul 2014 22:42:45 -0700 (PDT)
Received: by 10.140.98.233 with HTTP; Fri, 25 Jul 2014 22:42:45 -0700 (PDT)
In-Reply-To: <CACsn0ck-nmwtKVmoC=qTuWwJWDZPE6SwKreeJjjdyew+mAcfYw@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <CACsn0ck-nmwtKVmoC=qTuWwJWDZPE6SwKreeJjjdyew+mAcfYw@mail.gmail.com>
Date: Fri, 25 Jul 2014 22:42:45 -0700
Message-ID: <CABqy+spNJYWyBHLY5YL3kh6PcDm_tTbqyN0tpDNs-Bme7de1hg@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/WO_lN9ZHq39qzHG3NVM5kWUHme4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 05:42:48 -0000
X-List-Received-Date: Sat, 26 Jul 2014 05:42:48 -0000

On 7/25/14, Watson Ladd <watsonbladd@gmail.com> wrote:
> Thanks for the much more detailed analysis: I'll have to revise my opinio=
n.
> On Fri, Jul 25, 2014 at 7:25 PM, Robert Ransom <rransom.8774@gmail.com>
> wrote:
>> On 7/25/14, Watson Ladd <watsonbladd@gmail.com> wrote:

>>> The second question and third question what coordinates and what
>>> addition formulas to use when, and what algorithm to use. All twisted
>>> Edwards curves expose the same possibilities here: large precomputed
>>> tables with mixed coordinate addition vs. smaller tables for variable
>>> base, or a conversion to some other isogenous curve for variable base
>>> exponentiation.
>>
>> Affine Montgomery-form points can be unpacked to and packed from
>> projective (optionally twisted) Edwards-form points at a trivial extra
>> cost over unpacking from or packing to a compressed affine
>> Edwards-form point.  Variable-base scalar-multiplication operations
>> which use Edwards form internally are not slowed significantly by
>> having a projective rather than affine input (if any operations rely
>> on their input being affine, they must occur during table setup), and
>> they are not slowed at all if they double and/or apply isogenies to
>> clear the cofactor group before operating on an =E2=80=98incomplete=E2=
=80=99 curve
>> (e.g. a=3D-1 in a field in which -1 is a non-square).
>
> I think I follow all the way up to the last phrase: the incompleteness
> means some
> additions might blow up, complicating the analysis, and I think a=3D-1
> only gives the twist
> if -1 is a nonsquare.

I'm not talking about using the twist.  I'm talking about mapping from
the =E2=80=98complete=E2=80=99 Edwards/Montgomery curve which the specifica=
tion states
and simple implementations use to an =E2=80=98incomplete=E2=80=99 curve (i.=
e. a
(twisted) Edwards curve with non-affine points defined over the base
field), by whatever means (isomorphism or isogeny), on which the
unified addition formula has exceptional cases for inputs with even
order.  When this is a useful thing to do -- i.e. when the curve is
defined over a field in which -1 is a non-square, and thus (twisted)
Edwards curves with a=3D-1 are always incomplete -- there is almost
always more than one suitable curve to map to.  For example, Mike
Hamburg suggests in <https://eprint.iacr.org/2014/027.pdf> a 4-isogeny
from Ed(1,d) to Ed(-1,d-1); when d is a non-square, there is also an
isomorphism from Ed(1,d) to Ed(-1,-1/d).

My point is that most implementation strategies which want to *use* an
incomplete Edwards curve start with operations which (a) modify the
original input point such that it is guaranteed to have odd order, and
(b) produce a non-affine result, which all further operations use as
their input.  Because of (b), using a Montgomery-form input point
format in such an implementation has almost no performance cost (only
a few multiplies).


Dr. Bernstein's Curve3617 implementation (he now wants to call it
Curve41417) operates on a complete Edwards curve; its implementation
strategy is more complex than the Montgomery ladder, and slightly less
complex than one using an incomplete curve.  As a consequence, it
benefits more than the fastest implementation strategy from having an
affine Edwards-form input point: it saves an additional 7M in the
process of constructing a 15-element table.  I don't think this
benefit to exactly one sub-optimal implementation strategy justifies
the cost to the simplest implementation strategy (the Montgomery
ladder).

> Otherwise it is a curve isogenous to the
> original one, under a 1-isogeny.

The proper term for a =E2=80=981-isogeny=E2=80=99 is =E2=80=9Cisomorphism=
=E2=80=9D.  Otherwise, people
will think that =E2=80=9Cisogeny=E2=80=9D is just the term used for an isom=
orphism
between elliptic curves, rather than a very different type of map.


>> As you should know, fixed-base scalar-multiplication operations which
>> use Edwards form internally are not slowed at all by producing
>> Montgomery-form output.
>>
>> Affine Edwards-form points cannot be unpacked to affine
>> Montgomery-form points for use with the Montgomery ladder without an
>> extra inversion at the beginning of a scalar multiplication, and using
>> a projective input in the Montgomery ladder is always slower than
>> inversion by coordinate exponentiation.
>>
>> Since the Montgomery ladder remains the simplest implementation
>> strategy, and the performance benefit to more complex implementations
>> from using an Edwards-form point format is small at most, I still see
>> no reason to use an Edwards-form point format.
>
> Signatures: the y-encoding strategies I've seen are too clever by
> half, so keys for
> ECIES and signatures look very different.

What do you mean by this?

> There is no security issue
> with reuse and
> there are papers to that effect, or so I'm told.
> That said adding Edwards support or Montgomery support to an implementati=
on
> of the other partner in the isogenous pair is easy: we can live with
> two point formats.

=E2=80=9CEasy=E2=80=9D does not mean =E2=80=9Clow-cost=E2=80=9D.  Adding su=
pport for Edwards-form
input points to a Montgomery-ladder implementation is easy, but has a
high performance cost (1I per scalarmult).  Adding support for
Montgomery-form input points to an implementation which operates on
Edwards form is easy, and has much smaller performance cost.


> (there is an additional question of small parameters: a Montgomery
> curve with small
> parameter is birationally equivalent to a twisted Edwards curve of
> small parameter, but
> the converse is not (obviously) true. Most generated curves seem to be
> in Edwards form
> however.)

Curve25519 chose (A+2)/4 to be a small integer because Edwards curves
had not been published yet.  All new curves should be chosen to have
Edwards d be a small integer, because that makes the Edwards-form
unified addition formulas faster at no cost to the Montgomery ladder
on the isomorphic Montgomery curve.  (I've mentioned this to CFRG
before; I wish more people had listened to me.)

>>> one caches ephemeral DH
>>> parameters so the cost of fixed-base exponentiation is amortized
>>> across connections. OpenSSL does this anyway, and this affects
>>> technique
>>> slightly.
>>
>> This is good for performance even if you use a table to optimize
>> fixed-base scalar multiplications.
>
> Very true: the NUMS performance results are thus dead wrong in ECDHE cost=
s,
> which are two variable-base multiplications plus a very amortized
> fixed-base multiplication, not
> the fixed+variable base they used.

I don't see anything wrong with what MSR states as the cost of ECDHE
-- they're consistent across the implementations, and not reusing
ephemeral keys is the simplest implementation strategy.  (If they did
change their figures to take key reuse into account, though, the cost
would be only one variable-base scalar multiplication, not two.)


Robert Ransom


From nobody Fri Jul 25 22:49:10 2014
Return-Path: <rransom.8774@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 C22B61A02FF for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 22:49:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.45
X-Spam-Level: 
X-Spam-Status: No, score=-1.45 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, GB_I_LETTER=-2, MANGLED_CCK=2.3, 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 nfMzNMNariJ8 for <cfrg@ietfa.amsl.com>; Fri, 25 Jul 2014 22:49:06 -0700 (PDT)
Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5203F1A02F9 for <cfrg@irtf.org>; Fri, 25 Jul 2014 22:49:06 -0700 (PDT)
Received: by mail-qg0-f41.google.com with SMTP id q107so6171045qgd.28 for <cfrg@irtf.org>; Fri, 25 Jul 2014 22:49:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Dq02edNnTCv1h3K01ce8NFV/VNoWBmikzQxrwjBPT+A=; b=frwfW+hmamznfHLQHSRXVMPmjCGQXzxJC5ZX91KwXjHsHyIKZGRnsDmSu1KYPOUpBi f3lG2aMvTq5Ig2DbvR9W4HFkzy9K9vqqj1RB0maNlgPXgPzGU+jTRmHkp+/jd2RhTXsy ozikNQDRv23xktFhDElNbFe42N1oIlTWcWNDPScIoE1I5YLOnA4ckwRdRmf8gw8v12tT aHuyBtv0VUCnwx9/uwkONCc1Asr8HkxWxf0fKAXUzlbQYpHgzRCjyw8nuruUgSdHTp7K 5QNa278rZ3VlaYMZcrpLHaup6lc8VZdt+TbiFL0uGwlMWw5X6EiXRIOcf+P/WXij7j49 FkOg==
MIME-Version: 1.0
X-Received: by 10.224.43.196 with SMTP id x4mr32252389qae.63.1406353745358; Fri, 25 Jul 2014 22:49:05 -0700 (PDT)
Received: by 10.140.98.233 with HTTP; Fri, 25 Jul 2014 22:49:05 -0700 (PDT)
Date: Fri, 25 Jul 2014 22:49:05 -0700
Message-ID: <CABqy+sqDy6AjzLSGqLgzf6DvZxqQU6j5z=enimQdd6DaAHayBQ@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/2uJzHF2e4eRDsulv_o1YQqfSskE
Subject: [Cfrg] Leading zero bits in the Montgomery ladder
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: Sat, 26 Jul 2014 05:49:07 -0000

Traditionally, Montgomery's formulas are stated as a recurrence
relation which computes the x coordinates of 2*n*P and (2*n + 1)*P
from the x coordinates of n*P and (n + 1)*P.  This definition suggests
that the number of ladder steps depends on the position of the most
significant non-zero bit of the scalar.

This is not true: the Montgomery ladder can be used with leading zero
bits.  For example, Adam Langley's curve25519-donna always performs a
ladder step for a leading zero bit at the beginning of each scalar.
Experimentally, it produces correct results, so it must be correct, at
least except for a handful of exceptional cases.

The fact that the Montgomery ladder allows leading zero bits is
somewhat well known, and was almost explicitly stated by Dr. Bernstein
in his recent presentation to CFRG, but I've never seen a good
description of the Montgomery ladder which explains *why* this is
true.


The best description of the Montgomery ladder that I know of (for a
mathematician) is in section 8 of
<http://echidna.maths.usyd.edu.au/~kohel/pub/indocrypt.pdf>;
unfortunately, the scalar multiplication algorithm presented there is
incorrect.  My description below is based on Kohel's, but uses a
different definition of the Kummer-oriented curve, and a different
algorithm for scalar multiplication.

* *Over an algebraically closed field*, a =E2=80=98Kummer variety=E2=80=99 =
K of a
  group variety E is an algebraic variety, specified along with a map
  k from E to the K such that k(P) =3D k(-P) for each element P of E,
  k(P) is not equal to k(Q) unless Q =3D P or Q =3D -P, and every element
  of K is of the form k(P).

  In the non-algebraically-closed fields which must be used for
  cryptography, not every point on K corresponds to an element of E
  over the same base field; the other points represent elements of the
  quadratic twist of E.  =E2=80=98Twist security=E2=80=99 means that both t=
he curve
  and its quadratic twist have group structures suitable for
  cryptographic use, so that software can safely use a point on the
  Kummer variety without checking which curve it belongs to.

  When E is an elliptic curve, K is always the whole projective line
  P^1.

  The Kummer variety usually used for Montgomery curves is P^1, with
  each affine point (x : y : 1) mapped to (x : 1) (i.e. discarding the
  y coordinate), and the point at infinity O =3D (0 : 1 : 0) mapped to
  (1 : 0).

* The =E2=80=98Kummer-oriented curve=E2=80=99 for scalar multiplication of =
a point P
  such that 2*P is not equal to O is an elliptic curve isomorphic to
  E.  It consists of the set of pairs (k(Q), k(R)) where Q and R are
  points on E, such that R - Q =3D P.  A point Q on E corresponds to
  (k(Q), k(Q + P)) on the Kummer-oriented curve; I will denote this
  map from E as koc.

  (When 2*P =3D O, koc(Q) =3D koc(-Q), so the Kummer-oriented curve is
  neither isomorphic to E nor an elliptic curve.  However, the
  abstract Montgomery ladder algorithm stated below does work
  correctly in this case (ignoring the possibility of exceptional
  cases in the formulas used).)

  Two operations on the Kummer-oriented curve are important here:

  - Doubling on the Kummer-oriented curve maps (k(Q), k(Q + P)) to
    (k(2*Q), k(2*Q + P)) =3D (k(2*Q), k((Q + P) + Q)), and is
    implemented using explicit formulas for doubling (to obtain the
    first coordinate) and differential addition (to obtain the second
    coordinate; note that (Q+P) - Q =3D P is known) on the Kummer
    variety.  (Kohel denotes this map using the Greek letter phi; I
    will denote it as f.)

  - Exchanging the two coordinates of a point on the Kummer-oriented
    curve maps koc(Q) =3D (k(Q), k(Q + P)) to (k(Q + P), k(Q)) =3D (k(-Q -
    P), k(-Q)) =3D koc(-Q - P); thus, the result is a point on the
    curve.  (Kohel denotes this map using the Greek letter sigma; I
    will denote it as s.)

  For a point Q on the Kummer-oriented curve, s(Q) =3D -Q - P, f(s(Q)) =3D
  -2*Q - 2*P, and s(f(s(Q))) =3D (2*Q + 2*P) - P =3D 2*Q + P.

* Given k(P) as input, the Montgomery ladder's state Q (a point on the
  Kummer-oriented curve) is initialized as Q =3D koc(O) =3D (k(O), k(P)).

  The ladder processes a scalar one bit at a time, starting from the
  most significant end.  To process a zero bit, Q is replaced with
  f(Q) =3D 2*Q; to process a one bit, Q is replaced with s(f(s(Q))) =3D
  2*Q + P.

  Traditionally, the first scalar bit processed by the Montgomery
  ladder is the most significant one bit; however, in the abstract,
  processing a leading zero bit does not change the state (since
  f(koc(O)) =3D koc(2*O) =3D koc(O)), so it is safe unless an exceptional
  case occurs in the formulas.


To check whether a leading zero bit can trigger exceptional cases in
Montgomery's formulas, I evaluated the formula =E2=80=98ladd-1984-m-3=E2=80=
=99 from
<http://hyperelliptic.org/EFD/g1p/data/montgom/xz/ladder/ladd-1987-m-3>
by hand for the case of a leading zero bit: P1 arbitrary, P2 =3D O =3D (1
: 0), and P3 =3D -P1 (which has the same representation as P1).

When P1 and P3 are the point at infinity ((1 : 0)) or the x=3D0 point of
order 2 ((0 : 1)), the output P5 is undefined; otherwise, P5 is
defined and equal (when compared as an element of P^1) to P3.
Dr. Bernstein's modified x-coordinate function (which maps the point
at infinity, the x=3D0 point of order 2, and the undefined point to 0)
makes these exceptional cases harmless.

In all of these cases, P4 =3D P2.


Robert Ransom


From nobody Sat Jul 26 07:16:59 2014
Return-Path: <sandyinchina@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 CE5301A02DD for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 07:16:57 -0700 (PDT)
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 6snvo3kdb_2Z for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 07:16:56 -0700 (PDT)
Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [IPv6:2607:f8b0:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 51D3C1A0278 for <cfrg@irtf.org>; Sat, 26 Jul 2014 07:16:56 -0700 (PDT)
Received: by mail-vc0-f180.google.com with SMTP id ij19so8937161vcb.11 for <cfrg@irtf.org>; Sat, 26 Jul 2014 07:16:55 -0700 (PDT)
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 :content-type; bh=Ur5XovxHu+GFz5Qf9xWco6rMjhSnhgvc0k0R2RVdv2o=; b=usB9bIKN0jmLyR5KHECmTmXUpKdrtoN4M3J59MpNCA17vJUrDUBqYgM9vTaifdYSCg 2WWCygf7+Vta0NE7a13aOAwZVQP0Hyf01sO95LOJPpGPgXZsyaXiaNzRk8nRjvf0PADc xiSeN37GYAkubupin+hONdnJJBD9rtVbgFzrg2xEUb8Ko9lge5UuNoovBydy5vWYJQmA I+i6T6be6gd9N4k+xQK91EXYd19x+2LezhUmUQjMzibKOkF7r+DxMWGKrIt0V8jtJhr1 hMPoyeAZlvRk/58i0P8FAfAhALNA71y5/n5Ke5q6RfYixo+3e/jlL7cCP3LfM4J4G/Gg oYdw==
MIME-Version: 1.0
X-Received: by 10.52.7.163 with SMTP id k3mr809056vda.58.1406384214125; Sat, 26 Jul 2014 07:16:54 -0700 (PDT)
Received: by 10.58.34.108 with HTTP; Sat, 26 Jul 2014 07:16:54 -0700 (PDT)
In-Reply-To: <53D31396.2040909@sbcglobal.net>
References: <20140725131738.6639765.60290.17138@certicom.com> <CADMpkcJD_qXkNFECQ4YoBUhyxQJNrh1=K6gAGfJ23jFWaD51-Q@mail.gmail.com> <53D31396.2040909@sbcglobal.net>
Date: Sat, 26 Jul 2014 10:16:54 -0400
Message-ID: <CACXcFm=SLXTz0mUY22igUffyHknsuv5VE4LSrHNm8GTebN1dWQ@mail.gmail.com>
From: Sandy Harris <sandyinchina@gmail.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset=ISO-8859-1
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OPOtXUKVqDELDZL5a3mBJ1HRceI
Subject: Re: [Cfrg] Schnorr just as vulnerable to bad RNG
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: Sat, 26 Jul 2014 14:16:58 -0000

David Jacobson <dmjacobson@sbcglobal.net> wrote:

> This is wandering off topic, but I'm going to mention it anyway.

One place where it is on-topic and often discussed is Perry's
crypto list:
http://www.metzdowd.com/mailman/listinfo/cryptography

There is also a list specifically for RNG discussion:
http://lists.bitrot.info/mailman/listinfo/rng

> Entropy
> generation is a very tricky thing.  Unfortunately, there is far too much
> emphasis on estimating the entropy of a source based on long term averages
> of something.

It is possible to build an RNG without having to estimate average
entropy. Instead you can get a provable minimum on Nyquist
noise in a circuit from well-understood physics:
http://www.av8n.com/turbid/paper/turbid.htm

>  The problem is that many sources have entropy dropouts.  In
> one system I'm aware of, ... had a seed been grabbed right
> during a dropout, it would have been a cryptographic disaster.

"Doctor, it hurts when I do this." "Well, don't do that, then."

Do not grab seeds straight from the source; use an entropy
pool, stir in the source data, and generate output with a
cryptographically strong mixer. This is not foolproof, i.e.
not remarkably easy to get right, but there is hope. It is
safe if the total input entropy is adequate and the crypto
anywhere even close to its design goals.


From nobody Sat Jul 26 10:58:42 2014
Return-Path: <watsonbladd@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 D5EB11A00D7 for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 10:58:18 -0700 (PDT)
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=unavailable
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 qYcJepzS4f0g for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 10:58:12 -0700 (PDT)
Received: from mail-yh0-x22e.google.com (mail-yh0-x22e.google.com [IPv6:2607:f8b0:4002:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F41031A00B2 for <cfrg@irtf.org>; Sat, 26 Jul 2014 10:58:09 -0700 (PDT)
Received: by mail-yh0-f46.google.com with SMTP id a41so3845104yho.19 for <cfrg@irtf.org>; Sat, 26 Jul 2014 10:58:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:content-type; bh=ZK/giULQAqMkglhp45uZvxFOHe/uvKmqg8RLHV2G330=; b=Zm9uSwDUAw58aq2wYx0CoZ1ivkiQlVMz9dOUxOCEKMGy6v9O++qGpgESgI5hYGMRBI Kkd7AobRQOaGn+ESRZYLDKcDiM8gTau082ei3na4JIAKlwpwq4pE9Oli/edkM0gLSi7y ZZHghWDfaRVQDqDmk15g4uhXpkC8VSRnNDFutnplAXGwHXv2Ez/wPXpBgwj0sMoUl325 qfNeslwEPAfVExOFBjNMOVOp9DXbBOPMBctag1vEAQmpJ8r87qhgZhdbbnEp37iq3tyu oSQI5P3Ovqqh7SyFRcRKIpIoSApJzWFuuxsEB93bJ/w+2yuxAtYCQcabNAiXhv99jI2N JpDA==
MIME-Version: 1.0
X-Received: by 10.236.45.10 with SMTP id o10mr34702735yhb.49.1406397489299; Sat, 26 Jul 2014 10:58:09 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sat, 26 Jul 2014 10:58:09 -0700 (PDT)
Date: Sat, 26 Jul 2014 10:58:09 -0700
Message-ID: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "tls@ietf.org" <tls@ietf.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/1mWAxY-jXXW2VyLkRusJgxGKYes
Subject: [Cfrg] Unwarrented change to point formats
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: Sat, 26 Jul 2014 17:58:20 -0000

Dear all,
Curve25519 was a draft. Curve25519 came back with good reviews from
the CFRG. End of story? No: the TLS WG leadership has decided to ask
for the choice of curves, on nebulous criteria, ignoring existing
drafts, on the basis that the curves must be applicable "IETF wide".

I don't see the reason for this, especially given that OpenSSH has
implemented and deployed Curve25519 and Ed25519, complete with
Montgomery form on the wire.  Arguing that we need twisted Edwards
point formats everywhere for consistency with existing libraries
ignores what has already been deployed and widely adopted.

Sincerely,
Watson Ladd


From nobody Sat Jul 26 10:59:41 2014
Return-Path: <watsonbladd@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 CDDFF1A00FE for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 10:59:33 -0700 (PDT)
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 VvUd8W_VVdnv for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 10:59:30 -0700 (PDT)
Received: from mail-yh0-x230.google.com (mail-yh0-x230.google.com [IPv6:2607:f8b0:4002:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 63B6B1A00BE for <cfrg@irtf.org>; Sat, 26 Jul 2014 10:59:30 -0700 (PDT)
Received: by mail-yh0-f48.google.com with SMTP id i57so3813241yha.21 for <cfrg@irtf.org>; Sat, 26 Jul 2014 10:59:29 -0700 (PDT)
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:content-transfer-encoding; bh=cJj3Y5Ls76HUONr/syfA5ez6jT2qlHv3twBN58QUdag=; b=KE/Gsw/UAWPYzlgyNLouykwjzf/ih/HXWKsRxJ1ZdgaGJbjqpngi4BouY/7bFblvzK urxuR16Hd9pc3p7IAV+6a28R5NUJu44VB3No5e6e7TDqISEjA3XiPV3oIOs8B+NOZYIX ZmxpFAl+fp2idK7w8+IENY3yGcPGwgaDBOSdH8Su7dT0H+dii1Y9zVTGHG0aptTOepMF MjdbZvUYq9+cmKbAN3xbumJNzLuYKHj9mQoxlq+6p77nfu0mKpjYTdnXNekX6So9gamd U0KWw9BYzf56DKnQi14KysBLFZ1HEeYZ50575aCiuum2reFz2NRpV+7C2eit0rC4EwaO ngig==
MIME-Version: 1.0
X-Received: by 10.236.17.194 with SMTP id j42mr35760602yhj.138.1406397569649;  Sat, 26 Jul 2014 10:59:29 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sat, 26 Jul 2014 10:59:29 -0700 (PDT)
In-Reply-To: <CABqy+spNJYWyBHLY5YL3kh6PcDm_tTbqyN0tpDNs-Bme7de1hg@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <CACsn0ck-nmwtKVmoC=qTuWwJWDZPE6SwKreeJjjdyew+mAcfYw@mail.gmail.com> <CABqy+spNJYWyBHLY5YL3kh6PcDm_tTbqyN0tpDNs-Bme7de1hg@mail.gmail.com>
Date: Sat, 26 Jul 2014 10:59:29 -0700
Message-ID: <CACsn0cm7_d0XBz-E7trOgH_J0RcpyLJLm-uy6AmE2rL0peQ=bQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Robert Ransom <rransom.8774@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/EvNVlCSDjucpfIGzcUxI3Oa2qRY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 17:59:34 -0000

<choping irrelevent stuff>

>
> =E2=80=9CEasy=E2=80=9D does not mean =E2=80=9Clow-cost=E2=80=9D.  Adding =
support for Edwards-form
> input points to a Montgomery-ladder implementation is easy, but has a
> high performance cost (1I per scalarmult).  Adding support for
> Montgomery-form input points to an implementation which operates on
> Edwards form is easy, and has much smaller performance cost.

By "easy" I meant that as the field arithmetic is already done, which
is the vast
bulk of the difficulty, the additional code is smaller. Adding the
Montgomery ladder
as a routine on top of the arithmetic is not hard: it's 10 function
calls and a loop more or less.
>
>
>> (there is an additional question of small parameters: a Montgomery
>> curve with small
>> parameter is birationally equivalent to a twisted Edwards curve of
>> small parameter, but
>> the converse is not (obviously) true. Most generated curves seem to be
>> in Edwards form
>> however.)
>
> Curve25519 chose (A+2)/4 to be a small integer because Edwards curves
> had not been published yet.  All new curves should be chosen to have
> Edwards d be a small integer, because that makes the Edwards-form
> unified addition formulas faster at no cost to the Montgomery ladder
> on the isomorphic Montgomery curve.  (I've mentioned this to CFRG
> before; I wish more people had listened to me.)

Doesn't A become a ratio of small integers rather than a small integer? Alt=
hough
this is still pretty fast.

>
>>>> one caches ephemeral DH
>>>> parameters so the cost of fixed-base exponentiation is amortized
>>>> across connections. OpenSSL does this anyway, and this affects
>>>> technique
>>>> slightly.
>>>
>>> This is good for performance even if you use a table to optimize
>>> fixed-base scalar multiplications.
>>
>> Very true: the NUMS performance results are thus dead wrong in ECDHE cos=
ts,
>> which are two variable-base multiplications plus a very amortized
>> fixed-base multiplication, not
>> the fixed+variable base they used.
>
> I don't see anything wrong with what MSR states as the cost of ECDHE
> -- they're consistent across the implementations, and not reusing
> ephemeral keys is the simplest implementation strategy.  (If they did
> change their figures to take key reuse into account, though, the cost
> would be only one variable-base scalar multiplication, not two.)

The numbers are right, but the conclusions are thus wrong since a
common optimization
is neglected. In particular, the absence of Montgomery form from the
proposal is based on
performance measures including a fixed based exponentiation.

Sincerely,
Watson Ladd

>
>
> Robert Ransom



--=20
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sat Jul 26 14:42:16 2014
Return-Path: <crypto@brainhub.org>
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 929CE1A040C for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 14:42:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 WeGnxo4L6oTo for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 14:42:12 -0700 (PDT)
Received: from qmta11.emeryville.ca.mail.comcast.net (qmta11.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:211]) by ietfa.amsl.com (Postfix) with ESMTP id 91E6F1A03FF for <cfrg@irtf.org>; Sat, 26 Jul 2014 14:42:12 -0700 (PDT)
Received: from omta21.emeryville.ca.mail.comcast.net ([76.96.30.88]) by qmta11.emeryville.ca.mail.comcast.net with comcast id X9bX1o0011u4NiLAB9iCKQ; Sat, 26 Jul 2014 21:42:12 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta21.emeryville.ca.mail.comcast.net with comcast id X9iB1o0044uhcbK8h9iBK3; Sat, 26 Jul 2014 21:42:12 +0000
Message-ID: <53D420B3.10707@brainhub.org>
Date: Sat, 26 Jul 2014 14:42:11 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
In-Reply-To: <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406410932; bh=wp94k3uUfafgOTR/Pz0KziS8XfLFBJaWelWe4SKukJQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=vAJMwCTZUQBayVmgwKmWswknNPpKlPBghgKyq2wmCog7KGxwujE5YOHvzQ7q4Gih7 qo8jmZaT8w0es7ClGchJozx5Uqb1o+JNGjNo/j3rhE8xb0sK54EudHLI6b41x5XKdH yV9DU885PdW8GesqBxw5xnk+Hez4Oq6XraN+9Ei5O1eIUZDBBOVs1eoUguFyzpmgBe IYey/TlbnEEb3qbj3WvvpZSJD3Je9D/SzxSv37QbxalPA4q28EMVVgdNF5Q5pep8cx TjsVoe31y3kexKcQ4f+O0cYEwIGQgxfw6E5/93ySAH9a1jvp0Ff2gFch3ddeTRfFK+ Q9C50eTPJzwLQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/JYqu4L6Ksnh8Xs4AI_9yTfOwUOc
Subject: Re: [Cfrg] Curve selection revisited
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: Sat, 26 Jul 2014 21:42:14 -0000

On 07/25/2014 07:25 PM, Robert Ransom wrote:
> The exact value of c determines whether a portable or vectorized
> implementation can delay carries until after reduction.  For example,
> after curve25519-donna performs a multiply or squaring, each of 19
> 64-bit limbs has absolute value less than 14*2^54.  When
> freduce_degree reduces a field element to 10 limbs without carrying,
> the result has absolute value less than (c+1)*14*2^54  = 280*2^54, or a
> bit more than 2^62.  In the Microsoft field 2^255  - 765, or even 2^256
> - 189, this would not be possible.
>
> Carries between limbs can be performed more efficiently than in
> curve25519-donna -- curve25519-donna goes to extra effort to keep
> limbs signed.  In the Montgomery ladder, this optimization does not
> add any extra carry steps, because the Montgomery-ladder formulas
> never perform more than two add/subtract operations between a
> multiply/square operation.  With Edwards-curve operations, this
> optimization may require an additional carry step in the doubling
> formula.
>
> The exact value of s determines whether carries can be vectorized
> within a coordinate-field element.  For example, 2^251  - 9 can be
> represented using one 26-bit limb (in the least significant position)
> and 9 25-bit limbs, but this interferes with the vectorization
> strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
> Since c=9 is so small, this can be worked around by representing
> coordinates modulo 2^252  - 18 instead, but this trick is rarely
> possible without running into the bound on c.

On 07/25/2014 07:25 PM, Robert Ransom wrote:
 > The exact value of c determines whether a portable or vectorized
 > implementation can delay carries until after reduction.  For example,
 > after curve25519-donna performs a multiply or squaring, each of 19
 > 64-bit limbs has absolute value less than 14*2^54.  When
 > freduce_degree reduces a field element to 10 limbs without carrying,
 > the result has absolute value less than (c+1)*14*2^54  = 280*2^54, or a
 > bit more than 2^62.  In the Microsoft field 2^255  - 765, or even 2^256
 > - 189, this would not be possible.
 >
 > Carries between limbs can be performed more efficiently than in
 > curve25519-donna -- curve25519-donna goes to extra effort to keep
 > limbs signed.  In the Montgomery ladder, this optimization does not
 > add any extra carry steps, because the Montgomery-ladder formulas
 > never perform more than two add/subtract operations between a
 > multiply/square operation.  With Edwards-curve operations, this
 > optimization may require an additional carry step in the doubling
 > formula.
 >
 > The exact value of s determines whether carries can be vectorized
 > within a coordinate-field element.  For example, 2^251  - 9 can be
 > represented using one 26-bit limb (in the least significant position)
 > and 9 25-bit limbs, but this interferes with the vectorization
 > strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
 > Since c=9 is so small, this can be worked around by representing
 > coordinates modulo 2^252  - 18 instead, but this trick is rarely
 > possible without running into the bound on c.

The main argument for p = 2^255-19 v.s. p = 1^256-189 is that the C=19 
is smaller than C=189 and this helps to "manage" the carries.

Let's assume that an F(p) integer is represented as n limbs (words).

256 bit Montgomery curve will have on the order of (5 mul + 4 squares) 
and about the same number F(p) additions per one scalar bit.

Therefore, we can talk about one unreduced F(p) multiplication + F(p) 
reduction (where C plays its role) + F(p) addition. With this in mind 
the contribution of C can be estimated within this group.

F(p) multiplications (counting squares here as well) dominate the 
performance of EC operations:
* the result of the multiplication is 2*n limbs and the complexity of 
this operation is n^2 limb multiplications and O(n^2) additions.
* the 2*n limbs must be reduced (mod p) to n limbs immediately after 
multiplication
* there is on average ~1 addition/subtraction of n limbs per each 
multiplication due to EC formula

Each multiplication needs degree reduction and settling of accumulated 
carries before the next multiplication. One can only postpone settling 
of carries while he does additions (prior to the next multiplciation).

We have about n^2 limb additions, plus n limb additions due to EC 
formular, plus we must perform n additions of the form <some_limb>*C 
(for modp reduction).

Assuming n=10 limbs, the entire contribution of n <some_limb>*C is bound 
by ~10% of all the additions.

We are not talking about C=0, however, but rather about |C|=4 bits v.s. 
|C| = 8 bits difference.

A rough estimate here is 5% penalty.

One reason why I think this is a good estimate is that there may be a 
benefit of more fine-tuned control of carries. The highest accumulation 
of the carries happens in the inner limbs of the 2*n integer (imagine 
paper-and-pencil multiplication of two n-limb numbers: the stack is the 
highest in the middle). Therefore, if we have the need to control 
overflow within, say, multiplication, perhaps it's possible to 
accomplish this within a subset of n limbs.


( BTW, I don't see a clear argument why can't any F(p) be vectorized 
(some more efficiently than others). The vectorization using x86 SSE2 is 
known to speeds up RSA operations for generic F(p)s. )


From nobody Sat Jul 26 22:22:25 2014
Return-Path: <ilari.liusvaara@elisanet.fi>
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 2018B1A0067 for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 22:22:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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 qbLY_HsAk248 for <cfrg@ietfa.amsl.com>; Sat, 26 Jul 2014 22:22:21 -0700 (PDT)
Received: from emh03.mail.saunalahti.fi (emh03.mail.saunalahti.fi [62.142.5.109]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE2731A0022 for <cfrg@irtf.org>; Sat, 26 Jul 2014 22:22:19 -0700 (PDT)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 091C618876D; Sun, 27 Jul 2014 08:22:16 +0300 (EEST)
Date: Sun, 27 Jul 2014 08:22:16 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Robert Ransom <rransom.8774@gmail.com>
Message-ID: <20140727052216.GA15012@LK-Perkele-VII>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/U0MgnSTq5ZNo138Infidzx2vEMY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sun, 27 Jul 2014 05:22:24 -0000

On Fri, Jul 25, 2014 at 07:25:54PM -0700, Robert Ransom wrote:
> On 7/25/14, Watson Ladd <watsonbladd@gmail.com> wrote:
> 
> Affine Montgomery-form points can be unpacked to and packed from
> projective (optionally twisted) Edwards-form points at a trivial extra
> cost over unpacking from or packing to a compressed affine
> Edwards-form point. 

Do you mean Montgomery_x-only, or that (Montgomery_x, Edwards_x_sign)
representation?

If the latter, it is not at all obvious how to get both in just
one inversion (either can obviously be gotten in just one inversion,
as can full edwards affine form).

Also, looks like the representation hits special case if Edwards-x is
0 (both points map into Montgomery_x=0, and sign bit needs to tell
apart Edwards_y values, instead of Edwards_x values as usual).

So yes, easy conversion to Montgomery form is useful for DH, but
is it useful for when the other side will do things like additions?

> Variable-base scalar-multiplication operations
> which use Edwards form internally are not slowed significantly by
> having a projective rather than affine input (if any operations rely
> on their input being affine, they must occur during table setup), and
> they are not slowed at all if they double and/or apply isogenies to
> clear the cofactor group before operating on an â€˜incompleteâ€™ curve
> (e.g. a=-1 in a field in which -1 is a non-square).

At least some protocols that do seem to cope with h>1 (as in having
checks for low-order points and no direct coupling between subgroups)
don't clear cofactors in points sent by the peer, but proceed to
directly calculate with those.


-Ilari


From nobody Sun Jul 27 07:21:35 2014
Return-Path: <Jeff.Hodges@kingsmountain.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 1B2F11A0280 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 07:21:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.066
X-Spam-Level: 
X-Spam-Status: No, score=-1.066 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, J_CHICKENPOX_31=0.6, LOTS_OF_MONEY=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 pEAQQEeP0vz1 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 07:21:31 -0700 (PDT)
Received: from gproxy6-pub.mail.unifiedlayer.com (gproxy6-pub.mail.unifiedlayer.com [67.222.39.168]) by ietfa.amsl.com (Postfix) with SMTP id 9F1C71A0276 for <cfrg@irtf.org>; Sun, 27 Jul 2014 07:21:30 -0700 (PDT)
Received: (qmail 2868 invoked by uid 0); 27 Jul 2014 14:21:30 -0000
Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy6.mail.unifiedlayer.com with SMTP; 27 Jul 2014 14:21:30 -0000
Received: from box514.bluehost.com ([74.220.219.114]) by cmgw4 with  id XYMF1o00L2UhLwi01YMJlV; Sun, 27 Jul 2014 14:21:28 -0600
X-Authority-Analysis: v=2.1 cv=OcELUHjY c=1 sm=1 tr=0 a=9W6Fsu4pMcyimqnCr1W0/w==:117 a=9W6Fsu4pMcyimqnCr1W0/w==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=ekOJvlQLSnQA:10 a=NDtjRgbWLu4A:10 a=3NT3xRclEPMA:10 a=8nJEP1OIZ-IA:10 a=ieNpE_y6AAAA:8 a=XYUc-DgfXtMA:10 a=aQyOShshic0A:10 a=A_MYNcKfAAAA:8 a=WOIJDy4HAAAA:8 a=dEDnwm5mAAAA:8 a=VvWRDUFFAAAA:8 a=FP58Ms26AAAA:8 a=RcrKDrMYAAAA:20 a=yMTatn1YAAAA:8 a=s90BdVvJAAAA:8 a=rxypbISzv3UYxv2DE7wA:9 a=pgQiit2yM-kAejvf:21 a=lskClPdghSBjhIJz:21 a=wPNLvfGTeEIA:10 a=2MUaMXdx0lEA:10 a=XuD5i-D3J3cA:10 a=gz4j-12ivIwA:10 a=hU4wx-L-dZAA:10 a=sj9yjA9kNZIA:10 a=uy88i352CyQA:10 a=nS7hf6rJOiYA:10
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kingsmountain.com; s=default;  h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=sQZPAwuRvJukNbj96mzEevwdL8uLhnFRutde4hTbPJs=;  b=AGuZcWeFofhDXhQd2oLXU2HVTr0e7oQEsgFXoQNKxsmEpEnxpdw9EobiDT25syMEIWC2CC5LVmY/RQb5sLflfBK7sjhPCoAska/XKP+HNngRjoWaRFO8YmoyrVEVHOOJ;
Received: from [98.248.231.21] (port=49506 helo=[192.168.11.14]) by box514.bluehost.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1XBPK8-0004X3-KA for cfrg@irtf.org; Sun, 27 Jul 2014 08:21:16 -0600
Message-ID: <53D50ADA.20901@KingsMountain.com>
Date: Sun, 27 Jul 2014 07:21:14 -0700
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: IRTF Crypto Forum Research Group <cfrg@irtf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 98.248.231.21 authed with jeff.hodges+kingsmountain.com}
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Ytg5JLtZxbUE20VXLJAQ_mgm1IA
Subject: [Cfrg] fwd: Re: [Cryptography] IETF discussion on new 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: Sun, 27 Jul 2014 14:21:33 -0000

[ discussions wrt CFRG curve selection process seems to be spread over a 
variety of lists. fwd'g fyi/fwiw/ftr/ymmv.. ]


Subject: Re: [Cryptography] IETF discussion on new ECC curves.
From: Trevor Perrin <trevp@trevp.net>
Date: Sat, 26 Jul 2014 22:16:06 -0700
To: Phillip Hallam-Baker <phill@hallambaker.com>
Cc: "cryptography@metzdowd.com" <cryptography@metzdowd.com>

On Sat, Jul 26, 2014 at 11:32 AM, Phillip Hallam-Baker
<phill@hallambaker.com> wrote:
 > There was much discussion on new curves for ECC. The discussion looks
 > like it is down to choosing curves that are close to powers of 2 which
 > can be computed twice as fast as the traditional random curves in a
 > constant time implementation.
 >
 > The choices on the table right now are the NUMS curves proposed by
 > Brian LaMacchia and co at Microsoft and Dan Bernstein's Curve 25519
 > (2^255-19).

There should be more on the table.  Curve4417 (DJB et al) and
Ed448-Goldilocks (Mike Hamburg) are also good curves, at ~207 and ~224
bits of security.

https://eprint.iacr.org/2014/526.pdf
http://sourceforge.net/projects/ed448goldilocks/


 > One point of comparison of course is performance but it is actually
 > quite difficult to compare like with like. There does not seem to be
 > more than a 15% difference between any of them.

Here are some efficiency scores based on extrapolating performance vs
security for Microsoft NUMS (w-*-mers and ed-*mers), Curve25519,
Goldilocks, and others:

https://docs.google.com/a/trevp.net/spreadsheet/ccc?key=0Aiexaz_YjIpddFJuWlNZaDBvVTRFSjVYZDdjakxoRkE&usp=sharing#gid=0

The differences are larger than 15%.  For example, Microsoft's fastest
512-bit curve takes close to twice the time of 448-bit Goldilocks.
But you would expect a 512-bit curve to be only ~40% slower than a
448-bit curve.


 > Most of the other
 > differences fall away when the point compression patent expires which
 > I am told is a matter of weeks.

US 6141420 expires Tuesday.


 > Another point that is important for me is consistency. I want as few
 > choices as possible. Given that the CA industry is going from RSA2048
 > with a putative work factor of 2^120 and all of these alternatives are
 > much faster and with much shorter keys, I can't see why I would go for
 > a 2^128 work factor. So I am only really looking for 2^256 work
 > factor.

It's reasonable to ask for a work factor significantly greater than
2^128 as a hedge against cryptanalysis.  But people like Adam Langley,
myself, and Mike Hamburg have argued that demanding the work factor
match a precise number (like 2^256) is over-prescriptive.

https://www.imperialviolet.org/2014/05/25/strengthmatching.html
https://moderncrypto.org/mail-archive/curves/2014/000140.html

Curve size has a significant effect on efficiency due to availability
of primes and options for dividing field elements into processor
words.

(Dan Bernstein has a great discussion of this:
https://moderncrypto.org/mail-archive/curves/2014/000237.html
)

So instead of fixing an exact security level (and thus curve size) in
advance, it makes more sense to consider a range of acceptable
security levels, and then choose a particularly efficient curve within
that range, as Curve4147, Goldilocks, and the 2^521-1 curves have
done.

 > What do folks think here? I see a bunch of possibilities
 >
 > 1) We choose the NUMS curve for the 2^256 work factor curve and Curve
 > 25519 for 2^128
 >
 > 2) We choose NUMS for both
 >
 > 3) We choose Curve25519 and E521
 >
 > 4) We spend several years arguing to no point

I think the world should move towards Curve25519 for a fast
"regular-strength" curve, and choose one efficient "extra-strength"
curve in the 384-512ish range.  Curve41417, Goldilocks, and E-521 seem
like prime contenders.

FWIW, there's a "curves" list where this and other topics in elliptic
curve crypto are discussed:

https://moderncrypto.org


Trevor
_______________________________________________
The cryptography mailing list
cryptography@metzdowd.com
http://www.metzdowd.com/mailman/listinfo/cryptography



From nobody Sun Jul 27 11:03:18 2014
Return-Path: <rransom.8774@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 4E0921A0AEC for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 11:03:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 hs7VzdKajLrM for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 11:03:12 -0700 (PDT)
Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 79EE61A0AF0 for <cfrg@irtf.org>; Sun, 27 Jul 2014 11:02:35 -0700 (PDT)
Received: by mail-qg0-f43.google.com with SMTP id a108so7403859qge.16 for <cfrg@irtf.org>; Sun, 27 Jul 2014 11:02:35 -0700 (PDT)
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:content-transfer-encoding; bh=BJ329Nyoan63KueDgBBncoKPf7NwXTnPOKPcWrR22uM=; b=GfRJBKcwmIU99xjZfhmReawEgmFQuXvmvS0/C+PG4EFBXZvKEMOFWFu11bwV/PeG6Q VtVL4eiCYoD7HeFo8JNTImSUaTufqAThMgJcMBBgoe4ARNzbeanh8n+AnQDqAdSrrWPN RZUAsKMxGjyR6PCWGt9uR4m5Uu29zySAH075+Cls+83sczrR71aFUGUvCQnsUypiVulJ tMmwxrBMVU7qTNlIZSLYLuiwDPF7BzH1RCfcaE1WDqJR8Z9tFOK98fKTpcItYkY8D+p3 aLz/82ejW2e2uwBCR9ueBPcVRHi572zTZCTUK/3X0nX/mEuSk6xNln2PYOV00vmdo17n BADg==
MIME-Version: 1.0
X-Received: by 10.140.87.75 with SMTP id q69mr50371292qgd.94.1406484155117; Sun, 27 Jul 2014 11:02:35 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Sun, 27 Jul 2014 11:02:34 -0700 (PDT)
In-Reply-To: <CACsn0cm7_d0XBz-E7trOgH_J0RcpyLJLm-uy6AmE2rL0peQ=bQ@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <CACsn0ck-nmwtKVmoC=qTuWwJWDZPE6SwKreeJjjdyew+mAcfYw@mail.gmail.com> <CABqy+spNJYWyBHLY5YL3kh6PcDm_tTbqyN0tpDNs-Bme7de1hg@mail.gmail.com> <CACsn0cm7_d0XBz-E7trOgH_J0RcpyLJLm-uy6AmE2rL0peQ=bQ@mail.gmail.com>
Date: Sun, 27 Jul 2014 11:02:34 -0700
Message-ID: <CABqy+sr2Ys-c=GjZwkQtKjU0_BhZrX-+=aV_a_5Ymk8RsiR7xg@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kBtQ_rHlv-DSj4dRBZTB4Wvbo1g
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Sun, 27 Jul 2014 18:03:14 -0000

On 7/26/14, Watson Ladd <watsonbladd@gmail.com> wrote:
> <choping irrelevent stuff>
>
>>
>> =E2=80=9CEasy=E2=80=9D does not mean =E2=80=9Clow-cost=E2=80=9D.  Adding=
 support for Edwards-form
>> input points to a Montgomery-ladder implementation is easy, but has a
>> high performance cost (1I per scalarmult).  Adding support for
>> Montgomery-form input points to an implementation which operates on
>> Edwards form is easy, and has much smaller performance cost.
>
> By "easy" I meant that as the field arithmetic is already done, which
> is the vast
> bulk of the difficulty, the additional code is smaller. Adding the
> Montgomery ladder
> as a routine on top of the arithmetic is not hard: it's 10 function
> calls and a loop more or less.

As I said, =E2=80=9Ceasy=E2=80=9D has nothing to do with =E2=80=9Clow-cost=
=E2=80=9D.


>>> (there is an additional question of small parameters: a Montgomery
>>> curve with small
>>> parameter is birationally equivalent to a twisted Edwards curve of
>>> small parameter, but
>>> the converse is not (obviously) true. Most generated curves seem to be
>>> in Edwards form
>>> however.)
>>
>> Curve25519 chose (A+2)/4 to be a small integer because Edwards curves
>> had not been published yet.  All new curves should be chosen to have
>> Edwards d be a small integer, because that makes the Edwards-form
>> unified addition formulas faster at no cost to the Montgomery ladder
>> on the isomorphic Montgomery curve.  (I've mentioned this to CFRG
>> before; I wish more people had listened to me.)
>
> Doesn't A become a ratio of small integers rather than a small integer?
> Although
> this is still pretty fast.

A is irrelevant.  (A+2)/4, which is actually used in the formulas,
becomes the reciprocal of a small integer rather than a small integer,
which does not harm the performance of the Montgomery-ladder formulas.
(See
e.g. <http://www.ietf.org/mail-archive/web/cfrg/current/msg04077.html>.
You were part of that discussion; I'm a bit surprised that you've
forgotten this.)


>>>>> one caches ephemeral DH
>>>>> parameters so the cost of fixed-base exponentiation is amortized
>>>>> across connections. OpenSSL does this anyway, and this affects
>>>>> technique
>>>>> slightly.
>>>>
>>>> This is good for performance even if you use a table to optimize
>>>> fixed-base scalar multiplications.
>>>
>>> Very true: the NUMS performance results are thus dead wrong in ECDHE
>>> costs,
>>> which are two variable-base multiplications plus a very amortized
>>> fixed-base multiplication, not
>>> the fixed+variable base they used.
>>
>> I don't see anything wrong with what MSR states as the cost of ECDHE
>> -- they're consistent across the implementations, and not reusing
>> ephemeral keys is the simplest implementation strategy.  (If they did
>> change their figures to take key reuse into account, though, the cost
>> would be only one variable-base scalar multiplication, not two.)
>
> The numbers are right, but the conclusions are thus wrong since a
> common optimization
> is neglected. In particular, the absence of Montgomery form from the
> proposal is based on
> performance measures including a fixed based exponentiation.

Remember that MSR used a =E2=80=98hybrid=E2=80=99 implementation for ECDHE,=
 which
performed the fixed-base multiplication in Edwards form and the
variable-base multiplication in Montgomery form.  They would have
drawn the same conclusions if they had looked only at their
variable-base multiplication performance figures, because they report
that their Montgomery-ladder implementation is slower than their
Edwards-form variable-base scalar multiplication implementation on
every curve they considered.

However, MSR's performance numbers may be wrong: they used an
unnecessarily long scalar for the Montgomery ladder (and threw away
twist security in the process), because they believed the (false)
conventional wisdom that the Montgomery ladder must start with the
most significant non-zero bit of the scalar.  They need to redo their
Montgomery-ladder implementation and publish corrected performance
figures before we can trust their algorithm recommendations on any
curve.


My bigger problem with MSR is that they seem to view Curve25519, and
the community of cryptography experts and users which made it the
de-facto standard for fast ECDH(E) in groups of near-256-bit order, as
their enemy.  It's not just that they showed up with their pile of
curves just in time to ask the TLS WG to not issue the protocol
numbers that people who want to use Curve25519 would need in order to
use it in TLS; they're also having to rediscover things that anyone
who has tried to optimize Montgomery and/or Edwards curves should know
by now (or worse, not rediscovering them).  If their goal is to find
the fastest ECC curves and algorithms, they're hurting themselves by
not listening to the people who have investigated these curves for
months or years already.


Robert Ransom


From nobody Sun Jul 27 11:26:03 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 9A14F1A0B0E for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 11:26:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable
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 iuvvwK9jSBHh for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 11:25:58 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0079.outbound.protection.outlook.com [213.199.154.79]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E94D51A0350 for <cfrg@irtf.org>; Sun, 27 Jul 2014 11:25:57 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) with Microsoft SMTP Server (TLS) id 15.0.995.14; Sun, 27 Jul 2014 18:25:55 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0995.014; Sun, 27 Jul 2014 18:25:55 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Watson Ladd <watsonbladd@gmail.com>
Thread-Topic: [TLS] Unwarrented change to point formats
Thread-Index: AQHPqPtIfxZu0QqDV0qbT2QAUQQVkpu0PnH4
Date: Sun, 27 Jul 2014 18:25:54 +0000
Message-ID: <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com>
In-Reply-To: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [78.146.58.177]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 0285201563
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(189002)(199002)(24454002)(51704005)(74502001)(4396001)(74662001)(74482001)(83716003)(36756003)(77982001)(31966008)(15975445006)(76482001)(79102001)(82746002)(21056001)(46102001)(1411001)(101416001)(110136001)(2656002)(105586002)(107046002)(87936001)(86362001)(33656002)(95666004)(85306003)(99396002)(92726001)(92566001)(76176999)(83072002)(85852003)(54356999)(81542001)(50986999)(83322001)(80022001)(66066001)(106356001)(81342001)(64706001)(20776003)(19580395003)(19580405001)(106116001)(104396001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/n4iIopfEZeatOp5caEJdBl9rpus
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 18:26:00 -0000

Watson,

There was certainly support for Curve25519 at the CFRG interim phone confer=
ence, from my reading of the transcript.=20

I don't think the reasons for the TLS WG to ask for our input are nebulous,=
 as you put it. I'd say they were taking a responsible approach, charging u=
s as experts to explore the alternatives carefully and make recommendations=
. This choice will affect the future security of TLS for years - or decades=
 - to come. So we have to get it right.=20

That request to us does not mean anyone is ignoring existing drafts, as you=
 write. I am also not aware of this IETF-wide requirement that you mention.=
 I believe it's a "nice to have", but not a hard requirement. Can you point=
 to something more solid that is demonstrably a consensus view?

You will note from my previous emails summarising the meeting in Toronto th=
at backwards compatibility with the existing wire format is regarded as bei=
ng desirable but not essential by the TLS WG leadership. If it can be done,=
 it will make adoption easier; if not, we can change it, but it will need s=
ome careful drafting to make sure it's crystal clear.=20

The fact that the small group who run OpenSSH has adopted a couple of schem=
es based on a particular curve does not necessarily make that curve the rig=
ht choice for TLS. I also don't regard that as wide adoption, as you put it=
. I'm not aware of a public, requirements-driven process behind their choic=
e. That's what we are attempting here. =20

Your continued inputs to the process are most welcome.=20

Regards

Kenny=20

> On 26 Jul 2014, at 18:59, "Watson Ladd" <watsonbladd@gmail.com> wrote:
>=20
> Dear all,
> Curve25519 was a draft. Curve25519 came back with good reviews from
> the CFRG. End of story? No: the TLS WG leadership has decided to ask
> for the choice of curves, on nebulous criteria, ignoring existing
> drafts, on the basis that the curves must be applicable "IETF wide".
>=20
> I don't see the reason for this, especially given that OpenSSH has
> implemented and deployed Curve25519 and Ed25519, complete with
> Montgomery form on the wire.  Arguing that we need twisted Edwards
> point formats everywhere for consistency with existing libraries
> ignores what has already been deployed and widely adopted.
>=20
> Sincerely,
> Watson Ladd
>=20
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>=20


From nobody Sun Jul 27 11:45:45 2014
Return-Path: <stephen.farrell@cs.tcd.ie>
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 34C661A007A for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 11:45:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001] autolearn=unavailable
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 iYjECr1zq-6Q for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 11:45:41 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id 914FD1A006C for <cfrg@irtf.org>; Sun, 27 Jul 2014 11:45:41 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id CAA87BE7D; Sun, 27 Jul 2014 19:45:40 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TlR3uCUYVUVE; Sun, 27 Jul 2014 19:45:39 +0100 (IST)
Received: from [10.87.48.11] (unknown [86.44.77.221]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 5F8BDBE7B; Sun, 27 Jul 2014 19:45:39 +0100 (IST)
Message-ID: <53D548D3.8030007@cs.tcd.ie>
Date: Sun, 27 Jul 2014 19:45:39 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>,  Watson Ladd <watsonbladd@gmail.com>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com> <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
In-Reply-To: <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YNC1WiN2qqYg3p1vLhygjstwQE8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 18:45:43 -0000

To clarify this bit...

On 27/07/14 19:25, Paterson, Kenny wrote:
> The fact that the small group who run OpenSSH has adopted a couple of
> schemes based on a particular curve does not necessarily make that
> curve the right choice for TLS.

We provisionally allocated a code point for SSH use of Ed25519
to help with interop for their current running code.

I'm AD sponsoring the draft for that [1] and awaiting a few
changes from the author as a result of the IETF LC. A few of
those comments made the point that the hash input format was
not defined in the draft. I'm not sure if SM (the author) will
be able to fix all that now, which could raise the possibility
that we'll need another code-point when we have a standard
format for representing Ed25519 public keys as input to the
hash function here. But that's ok and none of IMO it impinges
on the ask from TLS, nor on how CFRG should process that,
except that if Ed25519 is one of the things CFRG do recommend,
then it'd be nice if you could check whether or not the
preferred and current SSH s/w public key formats are or are
not commensurate. If they are, that's fine. If not, then we
can allocate a new code point, which is also easy.

So bottom line is there's no problem here I think.

Cheers,
S.

[1] https://datatracker.ietf.org/doc/draft-moonesamy-sshfp-ed25519/


From nobody Sun Jul 27 12:24:05 2014
Return-Path: <watsonbladd@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 778901A0104 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 12:24:01 -0700 (PDT)
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 fBp5qCRd8Ck4 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 12:23:59 -0700 (PDT)
Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3EDEF1A00DA for <cfrg@irtf.org>; Sun, 27 Jul 2014 12:23:59 -0700 (PDT)
Received: by mail-yh0-f50.google.com with SMTP id v1so4370291yhn.9 for <cfrg@irtf.org>; Sun, 27 Jul 2014 12:23:58 -0700 (PDT)
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:content-transfer-encoding; bh=T8UYV/aBjkG/RHym4eBdsVyp3s/oeGK5LrTVUotDISw=; b=kT//FZoTgY17M9aqt+1y/ObW8HqbcWfcy/ai3REEQxLqXKCpWlJ+gJ21N56d8Pu9wE uE/jym0AIIIZ70zR3+gs0diVWaTWDs1DGpJKkWjTTp9cznFDh2+NjChO6PWDMWuPerzb eFqghuaNHLzffPWXfR6nWtjbN/IMub4h2oHqaKp57TDjf1NoNqLs8lESmJlslqsHhJva W88URmm1WovfebMbLeDMTtGOPFce3ALNynW0Pq1Gb037W7iHxd/SxK4s0sZ7sMSMsi3+ d7xPSlx2rwUgYFzOcYiElHWoR04uB60XnWa8fzyaITREu49oiVSoCHoyVIxYIG6syqz+ eDgw==
MIME-Version: 1.0
X-Received: by 10.236.25.105 with SMTP id y69mr44829808yhy.33.1406489038458; Sun, 27 Jul 2014 12:23:58 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 27 Jul 2014 12:23:58 -0700 (PDT)
In-Reply-To: <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com> <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
Date: Sun, 27 Jul 2014 12:23:58 -0700
Message-ID: <CACsn0ckWwn_hyCbvoaycQNNrCUAjyYReyJ1dZ=yRxZB6dUyM_g@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/aisPQrQYFKeUMWtqwma1c1UtN-c
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 19:24:01 -0000

On Sun, Jul 27, 2014 at 11:25 AM, Paterson, Kenny
<Kenny.Paterson@rhul.ac.uk> wrote:
> Watson,
>
> There was certainly support for Curve25519 at the CFRG interim phone conf=
erence, from my reading of the transcript.
>
> I don't think the reasons for the TLS WG to ask for our input are nebulou=
s, as you put it. I'd say they were taking a responsible approach, charging=
 us as experts to explore the alternatives carefully and make recommendatio=
ns. This choice will affect the future security of TLS for years - or decad=
es - to come. So we have to get it right.

No one has indicated any weakness in any of the options: to a
first-order approximation the choice will not impact security. (There
is a second-order effect where the performance of 512-x vs
448-Goldilocks will influence choices about which security level to
use, but it's second order, and
I think we're sensitive enough to performance to minimize it) At the
128 level there is really nothing to get excited about. We're going to
get it right: we can't get it wrong. (Assuming we've checked the
curves independently)

At the higher security levels the debate become slightly more
interesting: we need E-521 as it's the most efficient curve above
2^512 (I'm ignoring the constant on Pollard rho, which everyone seems
to do nowadays). The question becomes Ed448 vs Curve41417, where
whichever
is faster wins out. (Or the NUMS curve of intermediate size).

(There is one question of point format: for odd reasons people seem to
think ECDH and ECDSA keys should be interchangeable, and so want
twisted Edwards everywhere. But we don't know anything about ECDSA
that would let us do the analysis to say that is okay!)

>
> That request to us does not mean anyone is ignoring existing drafts, as y=
ou write. I am also not aware of this IETF-wide requirement that you mentio=
n. I believe it's a "nice to have", but not a hard requirement. Can you poi=
nt to something more solid that is demonstrably a consensus view?

I may have read too much into emails indicating possible wider adoption.

>
> You will note from my previous emails summarising the meeting in Toronto =
that backwards compatibility with the existing wire format is regarded as b=
eing desirable but not essential by the TLS WG leadership. If it can be don=
e, it will make adoption easier; if not, we can change it, but it will need=
 some careful drafting to make sure it's crystal clear.

This is (partially a) nonissue: RFC 4492 defines points as opaque
bytevectors, and provides a set of point formats to describe their
formating, so there is no formatting requirement on the point. There
is one for signatures, but as we are not introducing new signatures we
don't need to worry about it.

>
> The fact that the small group who run OpenSSH has adopted a couple of sch=
emes based on a particular curve does not necessarily make that curve the r=
ight choice for TLS. I also don't regard that as wide adoption, as you put =
it. I'm not aware of a public, requirements-driven process behind their cho=
ice. That's what we are attempting here.

When is the last time you used SSH and it wasn't OpenSSH? Furthermore,
they are not alone: most public greenfield crypto projects I have seen
use Curve25519 or variants such as Curve41417.

On what criteria can we possibly pick a curve? All the criteria we've
mentioned are met by both sides. It will come down to narrow
performance differences, which turns into a compiler tickling
competition. (Automatic compiler ticklers are useful here).  Maybe
when we start measuring implementations there will be a clear set of
choices, but I predict we will end up basically flipping a coin: so
much for requirements-driven!

Sincerely,
Watson Ladd
>
> Your continued inputs to the process are most welcome.
>
> Regards
>
> Kenny
>
>> On 26 Jul 2014, at 18:59, "Watson Ladd" <watsonbladd@gmail.com> wrote:
>>
>> Dear all,
>> Curve25519 was a draft. Curve25519 came back with good reviews from
>> the CFRG. End of story? No: the TLS WG leadership has decided to ask
>> for the choice of curves, on nebulous criteria, ignoring existing
>> drafts, on the basis that the curves must be applicable "IETF wide".
>>
>> I don't see the reason for this, especially given that OpenSSH has
>> implemented and deployed Curve25519 and Ed25519, complete with
>> Montgomery form on the wire.  Arguing that we need twisted Edwards
>> point formats everywhere for consistency with existing libraries
>> ignores what has already been deployed and widely adopted.
>>
>> Sincerely,
>> Watson Ladd
>>
>> _______________________________________________
>> TLS mailing list
>> TLS@ietf.org
>> https://www.ietf.org/mailman/listinfo/tls
>>



--=20
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 27 13:04:54 2014
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 3B5F41A01D2 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 13:04:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 5iPVpOEfpztX for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 13:04:50 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lp0017.outbound.protection.outlook.com [213.199.154.17]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C94141A01A8 for <cfrg@irtf.org>; Sun, 27 Jul 2014 13:04:49 -0700 (PDT)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB381.eurprd03.prod.outlook.com (10.141.10.11) with Microsoft SMTP Server (TLS) id 15.0.995.14; Sun, 27 Jul 2014 20:04:46 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.00.0995.014; Sun, 27 Jul 2014 20:04:46 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Progress on curve recommendations for TLS WG
Thread-Index: AQHPqdYCFDDUD0tW0keHIpwhcB27wg==
Date: Sun, 27 Jul 2014 20:04:45 +0000
Message-ID: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [78.146.58.177]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 0285201563
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(189002)(199002)(74502001)(4396001)(74662001)(74482001)(36756003)(77982001)(76482001)(79102001)(31966008)(83506001)(21056001)(46102001)(101416001)(110136001)(2351001)(229853001)(2656002)(105586002)(107046002)(87936001)(86362001)(107886001)(95666004)(85306003)(99396002)(92726001)(92566001)(83072002)(85852003)(54356999)(81542001)(50986999)(83322001)(80022001)(106356001)(66066001)(81342001)(64706001)(20776003)(106116001); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <D9C5DCA9BDBECC4588AF4F445C298D26@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/-mB8twBjvaIY8bIFmLT25Zfzn9g
Subject: [Cfrg] Progress on curve recommendations for TLS WG
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: Sun, 27 Jul 2014 20:04:52 -0000

Dear CFRG,

We made good progress last week in Toronto and on the mailing list in
discussing requirements for curve selection, as well as getting into some
of the specifics of the different curve options.

The chairs have had requests to increase the time given to our discussion
of requirements in the light of the Toronto meeting, and we are happy to
accommodate that. We therefore plan to extend the previously announced
schedule so that this initial phase will run for another 2 weeks (until
Friday 8th August). We will then run the second phase (focussing on
concrete curve proposals) for 4 weeks, as previously planned.

Whilst it may be tempting to jump in and start discussing concrete
performance aspects of the different, specific curve proposals, or drift
off onto other topics entirely, the chairs would like to ask everyone to
try to focus on requirements for a bit longer. Here are a few questions to
help keep things on track and seed further discussion:


- What is the cost of keeping backwards compatibility with existing
defined point formats in RFC 4492, if any, for different curve shapes
(Edwards, twisted Edwards, Montgomery, Weierstrass-only form)?

- If ephemeral really means ephemeral, what are the implications for the
mix of fixed-base/variable-base computations in ECDHE and what, if any,
are the implications for the choice of curve type?

- Correspondingly, what are the implications for our choices if we accept
that ephemeral reuse is the expected behaviour?

- Do the current proposals (Curve25519 and friends, and the NUMS curves)
provide an adequate degree of rigidity that is likely to satisfy the
widest set of commentators? Or should we be thinking about generating
fresh curves using a public process having verifiably random inputs? What
would the likely impact be on performance?

- Would selecting curves that are not in Weierstrass form materially slow
down deployment?



Thanks for your considered inputs so far.

Regards,

Kenny (for the chairs)


From nobody Sun Jul 27 13:27:17 2014
Return-Path: <ekr@rtfm.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 D34171A0262 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 13:27:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable
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 D0Dk855_c04n for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 13:27:14 -0700 (PDT)
Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 608161A01DC for <cfrg@irtf.org>; Sun, 27 Jul 2014 13:27:14 -0700 (PDT)
Received: by mail-wi0-f177.google.com with SMTP id ho1so3402496wib.10 for <cfrg@irtf.org>; Sun, 27 Jul 2014 13:27:12 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=XlmZlu4kgD9eyimWgxiaXBVB4SY1ryNqv/kVESNtMis=; b=eilUi6UiE455fpKCr/XhwfRLmD6tl3ZqckA/W5jqeQhA5qPr+V3dwm5V6z0pBH39GI WtQLze1q47Oy/ixJM/oPMXmOCD2i7f1m83aj9esEzIj48yKSU1oANaajYU+gDs09J4nk ABYBLkTwzihK2pKdMR9SaLSaj1PEu27Zreeze0rXJ1e9TK+Zdl9klirSxsNbOZZ1flBw QaBiF3Hj1BXvPOlD+05FmPKIxCpg/N7DZ1J+Hn/XcIBt0y+DV6QT+PRcbsZMovjCPjAv oy//31It1J/kuKdOl5Pb0YJABEZHRf1XM+zxHhLcW/RQA/3aT7Bk4yK/3BSPgVcCDP6M honQ==
X-Gm-Message-State: ALoCoQkvYwncL+1a+5xhJIoRiFhnuFK5G+w+6/QZADDIlZOacCwHClkIcSxyG6uzNtaDkbi66aDM
X-Received: by 10.180.86.225 with SMTP id s1mr23773693wiz.36.1406492832417; Sun, 27 Jul 2014 13:27:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.217.128.12 with HTTP; Sun, 27 Jul 2014 13:26:32 -0700 (PDT)
X-Originating-IP: [74.95.2.168]
In-Reply-To: <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com> <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sun, 27 Jul 2014 13:26:32 -0700
Message-ID: <CABcZeBMUTZM1y+oxTAjemw=LSWTycJNDdKPUou+H+ML3LHWPqw@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: multipart/alternative; boundary=f46d04428610a7e8ae04ff32a141
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/HX5Weduyg4_wuOm2Z_eEDGi0E0Q
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 20:27:16 -0000

--f46d04428610a7e8ae04ff32a141
Content-Type: text/plain; charset=UTF-8

On Sun, Jul 27, 2014 at 11:25 AM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk
> wrote:

> Watson,
>
> There was certainly support for Curve25519 at the CFRG interim phone
> conference, from my reading of the transcript.
>
> I don't think the reasons for the TLS WG to ask for our input are
> nebulous, as you put it. I'd say they were taking a responsible approach,
> charging us as experts to explore the alternatives carefully and make
> recommendations. This choice will affect the future security of TLS for
> years - or decades - to come. So we have to get it right.
>

This reflects my understanding as well.



> That request to us does not mean anyone is ignoring existing drafts, as
> you write. I am also not aware of this IETF-wide requirement that you
> mention. I believe it's a "nice to have", but not a hard requirement.


Speaking only for myself, I don't think there's anything particularly
mysterious here. The TLS WG is not chartered to do this kind of analysis
so we've turned to the CFRG. It would clearly be most efficient if the IETF
had a common set of cryptographic primitives where possible. It's true
that TLS was the first WG to try to write down a specific request, but it
seems likely that our needs are mostly common with other protocols.

To take a specific set of cases. TLS has three major uses for public key
crypto of this type:

- Key establishment
- Digital signatures over handshake messages (ServerKeyExchange,
  CertificateVerify, etc.)
- Digital signatures over certificates.

It seems likely that key establishment shares common requirements for
multiple protocols. Similarly, it would be quite convenient if the
signatures
used in TLS were the same as those used for the certificates used for TLS,
even though the latter are not defined in TLS. So, when I say an IETF-wide
set of recommendations that's the kind of thing I mean.

I wasn't aware that any of this was particularly controversial.

-Ekr

--f46d04428610a7e8ae04ff32a141
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Sun, Jul 27, 2014 at 11:25 AM, Paterson, Kenny <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk" target=3D"_blank">Kenny.P=
aterson@rhul.ac.uk</a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">Watson,<br>
<br>
There was certainly support for Curve25519 at the CFRG interim phone confer=
ence, from my reading of the transcript.<br>
<br>
I don&#39;t think the reasons for the TLS WG to ask for our input are nebul=
ous, as you put it. I&#39;d say they were taking a responsible approach, ch=
arging us as experts to explore the alternatives carefully and make recomme=
ndations. This choice will affect the future security of TLS for years - or=
 decades - to come. So we have to get it right.<br>


</blockquote><div><br></div><div>This reflects my understanding as well.</d=
iv><div><br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex">



That request to us does not mean anyone is ignoring existing drafts, as you=
 write. I am also not aware of this IETF-wide requirement that you mention.=
 I believe it&#39;s a &quot;nice to have&quot;, but not a hard requirement.=
 </blockquote>


<div><br></div><div><div>Speaking only for myself, I don&#39;t think there&=
#39;s anything particularly</div><div>mysterious here. The TLS WG is not ch=
artered to do this kind of analysis</div><div>so we&#39;ve turned to the CF=
RG. It would clearly be most efficient if the IETF</div>


<div>had a common set of cryptographic primitives where possible. It&#39;s =
true</div><div>that TLS was the first WG to try to write down a specific re=
quest, but it</div><div>seems likely that our needs are mostly common with =
other protocols.</div>


<div><br></div><div>To take a specific set of cases. TLS has three major us=
es for public key</div><div>crypto of this type:</div><div><br></div><div>-=
 Key establishment</div><div>- Digital signatures over handshake messages (=
ServerKeyExchange,</div>


<div>=C2=A0 CertificateVerify, etc.)</div><div>- Digital signatures over ce=
rtificates.</div><div><br></div><div>It seems likely that key establishment=
 shares common requirements for</div><div>multiple protocols. Similarly, it=
 would be quite convenient if the signatures</div>


<div>used in TLS were the same as those used for the certificates used for =
TLS,</div><div>even though the latter are not defined in TLS. So, when I sa=
y an IETF-wide</div><div>set of recommendations that&#39;s the kind of thin=
g I mean.</div>

<div><br></div><div>I wasn&#39;t aware that any of this was particularly co=
ntroversial.</div>
<div><br></div><div>-Ekr</div></div><div><br></div><div><br></div><div>=C2=
=A0</div></div></div></div>

--f46d04428610a7e8ae04ff32a141--


From nobody Sun Jul 27 13:40:00 2014
Return-Path: <watsonbladd@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 2AA231A032F for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 13:39:58 -0700 (PDT)
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=unavailable
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 yV2ahZSWNm8m for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 13:39:56 -0700 (PDT)
Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88F3E1A032C for <cfrg@irtf.org>; Sun, 27 Jul 2014 13:39:56 -0700 (PDT)
Received: by mail-yh0-f52.google.com with SMTP id t59so4313448yho.39 for <cfrg@irtf.org>; Sun, 27 Jul 2014 13:39:55 -0700 (PDT)
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=uj/qtjEfpmVV17v2ZkjSKi0/IJjb0v9WA7Sq1KvOy0k=; b=uVTAKEwGhJLXbCJlC0P0cZZ5fv0A9XLRlbWcuTMw850JTM6VkL70xAKkC4T/eBKS4y 4METsbIQUi9KFUX3SkRaKBLW8QQFOtMf/75yNcvFYDNs2n4FRn/i6xUUA6UvL6dy2fn/ Gmq13YA7jW4yqtnRi8PhtNnB+epFO999X2EZeGRtUgBni3KKYy5tz41CTv5pTc124hJh 9DdsQoO8P67zb0208oLXHvu8La3FsdP8plZRfJpk01Z3ycSG5rxt1shTGGwxnsdyxiZB dmxlbRMH4M96N00OWhFGBSzmUKkxAX4dhf9xk0lAW950GRpm45M0qEeLG49zlJMTrkSg GEKA==
MIME-Version: 1.0
X-Received: by 10.236.85.208 with SMTP id u56mr45316861yhe.48.1406493595862; Sun, 27 Jul 2014 13:39:55 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 27 Jul 2014 13:39:55 -0700 (PDT)
In-Reply-To: <CABcZeBMUTZM1y+oxTAjemw=LSWTycJNDdKPUou+H+ML3LHWPqw@mail.gmail.com>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com> <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk> <CABcZeBMUTZM1y+oxTAjemw=LSWTycJNDdKPUou+H+ML3LHWPqw@mail.gmail.com>
Date: Sun, 27 Jul 2014 13:39:55 -0700
Message-ID: <CACsn0cnMcSp1G0j6_1ZGr9nZB8ncOyiUkJQS+dCkjeGByZUh6A@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/cqV0tzkFgrcPdakHuYY8G67A4jo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 20:39:58 -0000

On Sun, Jul 27, 2014 at 1:26 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>
>
>
> On Sun, Jul 27, 2014 at 11:25 AM, Paterson, Kenny
> <Kenny.Paterson@rhul.ac.uk> wrote:
>>
>> Watson,
>>
>> There was certainly support for Curve25519 at the CFRG interim phone
>> conference, from my reading of the transcript.
>>
>> I don't think the reasons for the TLS WG to ask for our input are
>> nebulous, as you put it. I'd say they were taking a responsible approach,
>> charging us as experts to explore the alternatives carefully and make
>> recommendations. This choice will affect the future security of TLS for
>> years - or decades - to come. So we have to get it right.
>
>
> This reflects my understanding as well.
>
>
>>
>> That request to us does not mean anyone is ignoring existing drafts, as
>> you write. I am also not aware of this IETF-wide requirement that you
>> mention. I believe it's a "nice to have", but not a hard requirement.
>
>
> Speaking only for myself, I don't think there's anything particularly
> mysterious here. The TLS WG is not chartered to do this kind of analysis
> so we've turned to the CFRG. It would clearly be most efficient if the IETF
> had a common set of cryptographic primitives where possible. It's true
> that TLS was the first WG to try to write down a specific request, but it
> seems likely that our needs are mostly common with other protocols.

This kind of analysis is much easier than the kind the TLS WG has to engage
in to ensure no more surprises. In particular since a lot of the
issues have to do
with performance and uptake, it's not clear the CFRG knows more about them then
the TLS WG.

>
> To take a specific set of cases. TLS has three major uses for public key
> crypto of this type:
>
> - Key establishment
> - Digital signatures over handshake messages (ServerKeyExchange,
>   CertificateVerify, etc.)
> - Digital signatures over certificates.
>
> It seems likely that key establishment shares common requirements for
> multiple protocols. Similarly, it would be quite convenient if the
> signatures
> used in TLS were the same as those used for the certificates used for TLS,
> even though the latter are not defined in TLS. So, when I say an IETF-wide
> set of recommendations that's the kind of thing I mean.
>
> I wasn't aware that any of this was particularly controversial.

You had a draft in hand, got a reply that "yeah, looks good", and then
went back to ask for
a completely different design process, for reasons never discussed.
It's the second round
that's confusing me.

What was wrong with the curve25519 draft?

Sincerely,
Watson Ladd

>
> -Ekr
>
>
>



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 27 14:22:14 2014
Return-Path: <crypto@brainhub.org>
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 00D0C1A0361 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 14:22:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 n2OlrrxhL3Cy for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 14:22:07 -0700 (PDT)
Received: from qmta14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:212]) by ietfa.amsl.com (Postfix) with ESMTP id A12F91A037A for <cfrg@irtf.org>; Sun, 27 Jul 2014 14:22:07 -0700 (PDT)
Received: from omta14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by qmta14.emeryville.ca.mail.comcast.net with comcast id XZ2o1o0031HpZEsAEZN7nY; Sun, 27 Jul 2014 21:22:07 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta14.emeryville.ca.mail.comcast.net with comcast id XZN61o0014uhcbK8aZN60a; Sun, 27 Jul 2014 21:22:07 +0000
Message-ID: <53D56D7E.9050306@brainhub.org>
Date: Sun, 27 Jul 2014 14:22:06 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cfrg@irtf.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406496127; bh=q0xQWuMpW9KyXI1PGr3uvSjCUUvkRDDweVkZg5hV+2U=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=Jhnp4JNjlQpRTOlDU5GekLKv6Axw8F/VFtayGk6dpqjw4Vj9w6bdEm6LoyjoCulHz 5ac4wPjhV3f+AMLo4PjboVG2lojpaZz+2mYHXTNtnCwT7PhVE3ycMf8kyB16fgAo3J skAZ6ACjJXklZNkxp6/ZQs1Yg0ylcnzMEzRdHA8+DT8uP3rLHMRLFH63qSnMlbVq3/ YHoUUiPleXn4hbVBwmNtfGtnWe8Zg5CtjvWHTiHb02ObME31iZSkvoWq5h42cl/bIT /j5uMHe3+wF2EjubIHGHIG11ap7rwsOcm9LBM4g3LchHvJtvTB5OHS+IXOgSVkeB+U foEuc9BBxOqMw==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Eo7a31hH5Qz1EqEzirnDmEzh7Ps
Subject: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Sun, 27 Jul 2014 21:22:10 -0000

Here is my understanding of the threats that apply to ECDH TLS. (I 
believe that the analysts equally applies to IKE of IPSEC.)

Assumptions: In DH we consider passive eavesdroppers. DH is a symmetric 
protocol, thus everything said here about one peer applies to either of 
them. While it's true that a TLS client connects to the server, allowing 
the TLS server be exploited as an oracle, TLS renegotiation allows the 
server to assume the role of a client after the initial handshake and 
exploit the original client as an oracle as well.

1. Assuming no reuse of ephemeral keys:
     * the point validation doesn't matter (neither does the curve's 
twist security)
     * the curve cofactor > 1 doesn't matter
     * an availability of side channel attacks doesn't matter.

First, consider the colluded peer+eavesdropper.

DH protocol has no protection against a peer colluded with an eavesdropper.
* trivially, either party can simply channel the plaintext stream 
somewhere else
* "short private key". Each party can collude with an eavesdropper in a 
way which is impossible to detect (in the computational security model), 
as follows:
     - the peer agrees on a pre-shared secret and a PRF(i), i=0,1,2,... 
with an eavesdropper
     - the colluded peer uses the PRF(i) to generate private scalars 
(this may even qualify as a FIPS 140-2 compliant method)
   A variation of this problem assumes to prior arrangement/exchange 
with an evesedropper: a peer randomly picks private scalars from the 
range of 2...16; the eavesdropper finds a private key by brute-forcing 
the public key found in the KE payload, or a lookup within pre-computed 
values.

Second, consider how a rogue participant might attack another peer.

* Invalid point attacks lead to:
   - An attack on another peer's key. This requires many runs of the DH 
protocol to recover another peer's static key. This concern doesn't 
apply to truly ephemeral keys
   - Predictable shared secret. A peer can force the use of a small 
subgroup, either by choosing a point in the small subgroup corresponding 
to the cofactor or using a point x,y on a different curve (presumably 
such a point has  a small order too). This allows an eavesdropper to 
force the shared secret to the one that's easy calculate for an 
eavesdropper. However, the described earlier "short private key" methods 
work equally well.

* side channel attacks by the peer require multiple runs of the DH 
protocol, thus they should not be relevant to the TLS ECDHE with fresh 
ephemeral keys.

( It looks like that breaking ECDH in this setting is equivalent to 
solving the ECDLP problem. )

2. Reused ephemeral keys = static ECDH keys (and all the published 
attacks apply)

In the remainder of this email DH1 stands for the generation of the 
peer's ephemeral key, DH2 -- for the final calculation of the shared key.

For reused ephemeral keys the following EC features matter:
* point validation
* twist security
* side channels

The following doesn't matter:
* performance (of a single scalar multiplication)

Let's look closer at the motives why implementers of client or server 
code might want to reuse ephemeral keys. In this description we assume a 
typical scenario of "server" acting as TLS server and "client" as TLS 
client.

It's easier to define the operating environment for the server:
* there is a long-lived process/service
* an implementation can count on availability of a global state (that 
can hold precomputed values, cached results)
* it cares about:
     - maximum number of connections it can handle per second on a 
sustained basis
     - low latency / the ability to quickly handle short burst of TLS 
handshakes.

The client environment is more diverse:
* a common use is a localized function "do TLS from scratch", without 
global state;
    this means that no reuse DH1 is possible and it's more challenging 
to take advantage of fixed-base algorithms; think about a short-lived 
process or a javascript
* long runs of back-to-back TLS handshakes are unlikely
* in some environment the performance is not an issue: fast CPU with 
slow network; very fast CPU regardless of network speed

In general, an end-device acting as a TLS client is not expected to 
perform a long sequence of handshakes back-to-back. It is often OK to 
perform fresh DH1 every time, for simplicity and security. In many other 
cases it is a reasonable assumption that a client should be able to 
generate its ephemeral key(s) in advance.

On the server side, however, requiring a fresh DH1 is a harder sell. As 
an extreme but practical example, consider a TLS terminator that serves 
a set of HTTP servers. One can expect the TLS traffic terminator to be, 
on average, saturated with handshake requests. It's too tempting to cut 
the ECC cost by half by not doing the DH1.

Let's look closer at how this sums regarding a likely DH strategy for 
the client and the server. The following description indicates where 
fixed-base v.s. variable base scalar multiplication applies (view the 
following as a 4-cell 2x2 table).

    client  (DH1/DH2): fixed-base, possibly done in advance (latency ~0) 
or reused (cost ~0) / variable base
    server (DH1/DH2): likely reused (cost ~0) / variable base

* Variable base calculation in DH2 is unavoidable for both a client and 
a server.
* Unless fixed-base calculation is (something like 5+ times) faster than 
variable-base, there is an incentive to reuse ephemeral keys on the server
* fixed-base EC on the client is nice to have, but is unclear if it is a 
universally beneficial feature
* fresh ephemeral keys boost security; example: a curve at 128 bit 
security level and fresh ephemeral keys may be a reasonable match with a 
P-384 X.509 certs



From nobody Sun Jul 27 14:37:53 2014
Return-Path: <ekr@rtfm.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 7CB221A036E for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 14:37:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable
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 LFhZ3AV2s2dy for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 14:37:50 -0700 (PDT)
Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E5911A0361 for <cfrg@irtf.org>; Sun, 27 Jul 2014 14:37:50 -0700 (PDT)
Received: by mail-wg0-f50.google.com with SMTP id n12so6404202wgh.33 for <cfrg@irtf.org>; Sun, 27 Jul 2014 14:37:49 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=iSMpBBtigSRmJ4yXOvwywgsThw4a9x8F7vuOAoVxD0o=; b=hr/eATsaY/QRCe4LlJPTCBCk1DzZOrW4SnI6OweTyRR0fNWtSI8B0j6jODk8g5gLOb tXNTYhPFYQ1LP3sOqmGw6XLyPA5XjF4fJLieg4WxbETXynVFUMV6d4WZXgo7sCCY3MJk 9afghH8hRD0xrW1nnNQPkED8l6LrPWA7U4Rk5y1fNF7ivbWjsxRENbqlgpZsIO6fF243 v6d+We0U+MVEJ7bRFe2ZnJQZp3sONPEt4peJXleB4u3Gw/4wZklCetgombG/M4qQocJu C53NTBgIEmj+quUtXJhnTDRGDItjJcHwZbiYEkN+M9iyg4zJEmS94gf4GHwAWOhqN7Uq 8ZPA==
X-Gm-Message-State: ALoCoQkTSU8qnIMxn0iQIDVBLLYy1WKtl9xXieX0U2SljxdlYQ31q7KKtOB5pmNBDsgCP3JRcQkG
X-Received: by 10.180.39.34 with SMTP id m2mr23580561wik.80.1406497069104; Sun, 27 Jul 2014 14:37:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.217.128.12 with HTTP; Sun, 27 Jul 2014 14:37:09 -0700 (PDT)
X-Originating-IP: [74.95.2.168]
In-Reply-To: <CACsn0cnMcSp1G0j6_1ZGr9nZB8ncOyiUkJQS+dCkjeGByZUh6A@mail.gmail.com>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com> <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk> <CABcZeBMUTZM1y+oxTAjemw=LSWTycJNDdKPUou+H+ML3LHWPqw@mail.gmail.com> <CACsn0cnMcSp1G0j6_1ZGr9nZB8ncOyiUkJQS+dCkjeGByZUh6A@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sun, 27 Jul 2014 14:37:09 -0700
Message-ID: <CABcZeBNKj2B2-sHAXegXYYEAqYN2GjwAVJL7LSUW6kQY-njoNw@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary=001a1134b5b82e9de804ff339e97
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sqnvwo6SFtj9UMRBcRU93BccfOs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 21:37:52 -0000

--001a1134b5b82e9de804ff339e97
Content-Type: text/plain; charset=UTF-8

On Sun, Jul 27, 2014 at 1:39 PM, Watson Ladd <watsonbladd@gmail.com> wrote:

> On Sun, Jul 27, 2014 at 1:26 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>


> > To take a specific set of cases. TLS has three major uses for public key
>  > crypto of this type:
> >
> > - Key establishment
> > - Digital signatures over handshake messages (ServerKeyExchange,
> >   CertificateVerify, etc.)
> > - Digital signatures over certificates.
> >
> > It seems likely that key establishment shares common requirements for
> > multiple protocols. Similarly, it would be quite convenient if the
> > signatures
> > used in TLS were the same as those used for the certificates used for
> TLS,
> > even though the latter are not defined in TLS. So, when I say an
> IETF-wide
> > set of recommendations that's the kind of thing I mean.
> >
> > I wasn't aware that any of this was particularly controversial.
>
> You had a draft in hand, got a reply that "yeah, looks good", and then
> went back to ask for
> a completely different design process, for reasons never discussed.
> It's the second round
> that's confusing me.
>

This does not match my understanding of the history.

Rather, here's my memory:

1. We asked the CFRG for a recommendation.

2. The CFRG held an interim discussion where a lot of good things
were said about Curve25519 but the CFRG never made a recommendation
to the TLS WG, but instead said it would come back and make
a recommendation.

3. The TLS Chairs sent the CFRG chairs a written request to make
such a recommendation (my memory is that they actually asked us
to write something down, but I don't immediately see it in my mail.)

Which brings us to the current process being run in CFRG.

-Ekr

--001a1134b5b82e9de804ff339e97
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On S=
un, Jul 27, 2014 at 1:39 PM, Watson Ladd <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:watsonbladd@gmail.com" target=3D"_blank">watsonbladd@gmail.com</a>&gt=
;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"">On Sun, Jul 27, 2014 at 1:26=
 PM, Eric Rescorla &lt;<a href=3D"mailto:ekr@rtfm.com">ekr@rtfm.com</a>&gt;=
 wrote:</div>

</blockquote><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"=
">&gt; To take a specific set of cases. TLS has three major uses for public=
 key<br>

</div><div class=3D"">
&gt; crypto of this type:<br>
&gt;<br>
&gt; - Key establishment<br>
&gt; - Digital signatures over handshake messages (ServerKeyExchange,<br>
&gt; =C2=A0 CertificateVerify, etc.)<br>
&gt; - Digital signatures over certificates.<br>
&gt;<br>
&gt; It seems likely that key establishment shares common requirements for<=
br>
&gt; multiple protocols. Similarly, it would be quite convenient if the<br>
&gt; signatures<br>
&gt; used in TLS were the same as those used for the certificates used for =
TLS,<br>
&gt; even though the latter are not defined in TLS. So, when I say an IETF-=
wide<br>
&gt; set of recommendations that&#39;s the kind of thing I mean.<br>
&gt;<br>
&gt; I wasn&#39;t aware that any of this was particularly controversial.<br=
>
<br>
</div>You had a draft in hand, got a reply that &quot;yeah, looks good&quot=
;, and then<br>
went back to ask for<br>
a completely different design process, for reasons never discussed.<br>
It&#39;s the second round<br>
that&#39;s confusing me.<br></blockquote><div><br></div><div>This does not =
match my understanding of the history.</div><div><br></div><div>Rather, her=
e&#39;s my memory:</div><div><br></div><div>1. We asked the CFRG for a reco=
mmendation.</div>

<div><br></div><div>2. The CFRG held an interim discussion where a lot of g=
ood things</div><div>were said about Curve25519 but the CFRG never made a r=
ecommendation</div><div>to the TLS WG, but instead said it would come back =
and make</div>

<div>a recommendation.</div><div><br></div><div>3. The TLS Chairs sent the =
CFRG chairs a written request to make</div><div>such a recommendation (my m=
emory is that they actually asked us</div><div>to write something down, but=
 I don&#39;t immediately see it in my mail.)</div>

<div><br></div><div>Which brings us to the current process being run in CFR=
G.</div><div><br></div><div>-Ekr</div><div><br></div><div><br></div></div><=
/div></div>

--001a1134b5b82e9de804ff339e97--


From nobody Sun Jul 27 15:33:20 2014
Return-Path: <watsonbladd@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 7FAB11A03FE for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 15:33:17 -0700 (PDT)
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=unavailable
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 WEkfHO3Cw5GA for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 15:33:16 -0700 (PDT)
Received: from mail-yh0-x231.google.com (mail-yh0-x231.google.com [IPv6:2607:f8b0:4002:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E4271A0451 for <cfrg@irtf.org>; Sun, 27 Jul 2014 15:33:15 -0700 (PDT)
Received: by mail-yh0-f49.google.com with SMTP id b6so4337700yha.8 for <cfrg@irtf.org>; Sun, 27 Jul 2014 15:33:14 -0700 (PDT)
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=vBh6iBeDgFgUBCPjQsRswp8fBVq0yJ+ou2ogJYpgINA=; b=kr3vVx4WYsYA4vZGxz+DMsK/4bvwfzeago5Vu6/iD4Skg/XdfHa8a1QDb8p6L2hyzd 8pLJ3UtZ1b2krHy90FWUBBxO+ehzZK6I4KIl1VU7ox2RVp+1Kymwc4yDiogfhguem/yS tmAlGN/Ufhcq9aC9e3bTDqKcrej4Fx4oxrx0Xf9J4RweErR9sPfckCfHCpw8bH+81wM4 W8B+U16QWNRgxAM2Wi/3GG8DAHNKU4LPhS930rlgtA0Dq1IRvaU0Ahp+qKVbzkvNeOLX S5XU2SV1T8G2ejQ3D0Gm1g6sgDFZ4xeOEyBKX+6EUxV7mGgSHFceXXc72hC5XS601/M7 JyBQ==
MIME-Version: 1.0
X-Received: by 10.236.51.228 with SMTP id b64mr46073920yhc.93.1406500394726; Sun, 27 Jul 2014 15:33:14 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 27 Jul 2014 15:33:14 -0700 (PDT)
In-Reply-To: <CABcZeBNKj2B2-sHAXegXYYEAqYN2GjwAVJL7LSUW6kQY-njoNw@mail.gmail.com>
References: <CACsn0cnf64Lj0om9hzvfZymo1KRG6FOiicfcDw3ysfGwaAby3g@mail.gmail.com> <ACA887E2-DFE3-41A3-9A75-BAA72843169A@rhul.ac.uk> <CABcZeBMUTZM1y+oxTAjemw=LSWTycJNDdKPUou+H+ML3LHWPqw@mail.gmail.com> <CACsn0cnMcSp1G0j6_1ZGr9nZB8ncOyiUkJQS+dCkjeGByZUh6A@mail.gmail.com> <CABcZeBNKj2B2-sHAXegXYYEAqYN2GjwAVJL7LSUW6kQY-njoNw@mail.gmail.com>
Date: Sun, 27 Jul 2014 15:33:14 -0700
Message-ID: <CACsn0cmoXxPj4iKYuKrvtPXJ8nRxG8rQaOY5WzJRiFA9rdj0pw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/i1tuU9QxsWkUVNLZBAqXGrV5Hv4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Unwarrented change to point formats
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: Sun, 27 Jul 2014 22:33:17 -0000

On Sun, Jul 27, 2014 at 2:37 PM, Eric Rescorla <ekr@rtfm.com> wrote:
> On Sun, Jul 27, 2014 at 1:39 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>>
>> On Sun, Jul 27, 2014 at 1:26 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>
>
>>
>> > To take a specific set of cases. TLS has three major uses for public key
>> > crypto of this type:
>> >
>> > - Key establishment
>> > - Digital signatures over handshake messages (ServerKeyExchange,
>> >   CertificateVerify, etc.)
>> > - Digital signatures over certificates.
>> >
>> > It seems likely that key establishment shares common requirements for
>> > multiple protocols. Similarly, it would be quite convenient if the
>> > signatures
>> > used in TLS were the same as those used for the certificates used for
>> > TLS,
>> > even though the latter are not defined in TLS. So, when I say an
>> > IETF-wide
>> > set of recommendations that's the kind of thing I mean.
>> >
>> > I wasn't aware that any of this was particularly controversial.
>>
>> You had a draft in hand, got a reply that "yeah, looks good", and then
>> went back to ask for
>> a completely different design process, for reasons never discussed.
>> It's the second round
>> that's confusing me.
>
>
> This does not match my understanding of the history.
>
> Rather, here's my memory:
>
> 1. We asked the CFRG for a recommendation.
>
> 2. The CFRG held an interim discussion where a lot of good things
> were said about Curve25519 but the CFRG never made a recommendation
> to the TLS WG, but instead said it would come back and make
> a recommendation.
>
> 3. The TLS Chairs sent the CFRG chairs a written request to make
> such a recommendation (my memory is that they actually asked us
> to write something down, but I don't immediately see it in my mail.)
>
> Which brings us to the current process being run in CFRG.

And that's exactly the problem: instead of asking "is this proposed
curve secure" or "are the arguments in favor of
Curve25519 largely correct" you want CFRG to evaluate things it really
can't. How do we know if uptake in TLS will
be slowed by being non-Weierstrass?  How do we evaluate if
implementors want to implement Montgomery and
twisted Edwards arithmetic vs. just one?

I don't see why this couldn't have ended in March with "well, no
security concerns were identified, so Curve25519
will be in TLS".

Sincerely,
Watson Ladd

>
> -Ekr
>
>



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 27 15:53:12 2014
Return-Path: <watsonbladd@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 2AAE91A0658 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 15:53:10 -0700 (PDT)
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 7DbAHLTy3HZ2 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 15:53:08 -0700 (PDT)
Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com [IPv6:2607:f8b0:4002:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C2FC61A045B for <cfrg@irtf.org>; Sun, 27 Jul 2014 15:53:07 -0700 (PDT)
Received: by mail-yh0-f53.google.com with SMTP id c41so4340100yho.40 for <cfrg@irtf.org>; Sun, 27 Jul 2014 15:53:07 -0700 (PDT)
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=XXRcdmHeDXr+IxKrbRL6o4jIi8wF9CAi+KH3XKi1EtU=; b=Uk6/68MclQOsDtmM59mHdPg1uF+cD3Auw/ktw2xdzGrWmE+jEzmgAT0C9LFhScNiey TatAav27342yYcvmIoBfabIrt43kLRsHewPqRBJgEn9L9VThFcjgRCUfL4Es4VqAmJPd YygZDbuwCWrB23IAi7fYnBwobvKb4sn4zNLt0hcSGmAnkh9yV8SaXQM1IZ7f73uQauCY eTpZ6e6EHuN/38KvGyhqYH7unj91rk9yiGLtFOiV0k22Q+sH4saaXJmWnIpLTfVAVvJH D2qyN/hGhu+vq9tdjTW1B1QZUHBAGjWnDx+UqLyEoniYpbZHsOUFyDk+gVL9w8kPIJMC U/VQ==
MIME-Version: 1.0
X-Received: by 10.236.74.101 with SMTP id w65mr7006678yhd.103.1406501587145; Sun, 27 Jul 2014 15:53:07 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 27 Jul 2014 15:53:07 -0700 (PDT)
In-Reply-To: <53D56D7E.9050306@brainhub.org>
References: <53D56D7E.9050306@brainhub.org>
Date: Sun, 27 Jul 2014 15:53:07 -0700
Message-ID: <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OG9ur3lKVVtjL8AA0lBr2SM2eGI
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Sun, 27 Jul 2014 22:53:10 -0000

On Sun, Jul 27, 2014 at 2:22 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> Here is my understanding of the threats that apply to ECDH TLS. (I believe
> that the analysts equally applies to IKE of IPSEC.)

It doesn't: IKE is much better designed than TLS.

>
> Assumptions: In DH we consider passive eavesdroppers. DH is a symmetric
> protocol, thus everything said here about one peer applies to either of
> them. While it's true that a TLS client connects to the server, allowing the
> TLS server be exploited as an oracle, TLS renegotiation allows the server to
> assume the role of a client after the initial handshake and exploit the
> original client as an oracle as well.
>
> 1. Assuming no reuse of ephemeral keys:
>     * the point validation doesn't matter (neither does the curve's twist
> security)
>     * the curve cofactor > 1 doesn't matter
>     * an availability of side channel attacks doesn't matter.

This is wrong, and I am finally allowed to say why publically.

If the point is not validated, a malicious server can carry out small
subgroup confinement attack, and do the same on a server.
If the resulting master secrets are the same, Triple Handshake
happens. This affects Bouncycastle 1.50, and is fixed in 1.51.
(There are other implications; static ECDH certs get private keys
spilled, ECIES does the same, etc.)

I mentioned this issue with non-contributory behavior on the TLS mailing list.

The rest of your email is (mostly) pointless: we do security proofs
that reduce a protocol like TLS to ECDH, then evaluate the security of
ECDH. The absence of such a reduction for TLS is the real problem here.

(If points are signed, small-subgroup confinement fails. However,
"channel binding" over anonymous channels requires care)
>
> First, consider the colluded peer+eavesdropper.

There is a standard set of models and definitions for key agreement security.

>
> Second, consider how a rogue participant might attack another peer.
>
> * Invalid point attacks lead to:
>   - An attack on another peer's key. This requires many runs of the DH
> protocol to recover another peer's static key. This concern doesn't apply to
> truly ephemeral keys
>   - Predictable shared secret. A peer can force the use of a small subgroup,
> either by choosing a point in the small subgroup corresponding to the
> cofactor or using a point x,y on a different curve (presumably such a point
> has  a small order too). This allows an eavesdropper to force the shared
> secret to the one that's easy calculate for an eavesdropper. However, the
> described earlier "short private key" methods work equally well.
>
> * side channel attacks by the peer require multiple runs of the DH protocol,
> thus they should not be relevant to the TLS ECDHE with fresh ephemeral keys.
>
> ( It looks like that breaking ECDH in this setting is equivalent to solving
> the ECDLP problem. )

Only loosely, and by taking advantage of pairings. Or one could use
the direct, common conjecture
on ECDH security.

>
> 2. Reused ephemeral keys = static ECDH keys (and all the published attacks
> apply)
>
> In the remainder of this email DH1 stands for the generation of the peer's
> ephemeral key, DH2 -- for the final calculation of the shared key.
>
> For reused ephemeral keys the following EC features matter:
> * point validation
> * twist security
> * side channels
>
> The following doesn't matter:
> * performance (of a single scalar multiplication)

<snip>

>
> On the server side, however, requiring a fresh DH1 is a harder sell. As an
> extreme but practical example, consider a TLS terminator that serves a set
> of HTTP servers. One can expect the TLS traffic terminator to be, on
> average, saturated with handshake requests. It's too tempting to cut the ECC
> cost by half by not doing the DH1.

So performance doesn't matter, until it does? Performance matters:
it's why traffic goes
unencrypted. There are no security costs with reuse of ephemeral connections.

>
> Let's look closer at how this sums regarding a likely DH strategy for the
> client and the server. The following description indicates where fixed-base
> v.s. variable base scalar multiplication applies (view the following as a
> 4-cell 2x2 table).
>
>    client  (DH1/DH2): fixed-base, possibly done in advance (latency ~0) or
> reused (cost ~0) / variable base
>    server (DH1/DH2): likely reused (cost ~0) / variable base
>
> * Variable base calculation in DH2 is unavoidable for both a client and a
> server.
> * Unless fixed-base calculation is (something like 5+ times) faster than
> variable-base, there is an incentive to reuse ephemeral keys on the server
> * fixed-base EC on the client is nice to have, but is unclear if it is a
> universally beneficial feature
> * fresh ephemeral keys boost security; example: a curve at 128 bit security
> level and fresh ephemeral keys may be a reasonable match with a P-384 X.509
> certs

This last conclusion is just wrong. An attacker who wants to intercept
the traffic does 0.866*2^128 calculations
to recover the discrete logarithm of an ephemeral value, and uses it
to read the traffic. Reuse of ephemeral keys
doesn't change this calculation: recovering even one connection is a
significant problem.

Sincerely,
Watson Ladd

>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 27 18:40:40 2014
Return-Path: <crypto@brainhub.org>
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 1797B1B27EB for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 18:40:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 blLHxr0_53st for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 18:40:36 -0700 (PDT)
Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:243]) by ietfa.amsl.com (Postfix) with ESMTP id 26A651B27EA for <cfrg@irtf.org>; Sun, 27 Jul 2014 18:40:36 -0700 (PDT)
Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta13.emeryville.ca.mail.comcast.net with comcast id XdPy1o0041smiN4ADdgbgL; Mon, 28 Jul 2014 01:40:35 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta20.emeryville.ca.mail.comcast.net with comcast id Xdga1o0084uhcbK8gdgaRT; Mon, 28 Jul 2014 01:40:35 +0000
Message-ID: <53D5AA12.7020002@brainhub.org>
Date: Sun, 27 Jul 2014 18:40:34 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>
References: <53D56D7E.9050306@brainhub.org> <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com>
In-Reply-To: <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406511635; bh=Yu1JFWEU2zLebso+ZWyEtSZhO20jFRuLcmege0lCjGc=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=R0ooF5fquOHt6V3KSWoPKqwJp5PssHBKkSp3ST/hBQu4t8KU0P4XLl86OS7dOuV1i 0/UcYNXhKUtwcAcQ73YDLPUrKlapg/Fqa7DZt/nbbaRa85+Yts0z1cUe2FVIlWbw78 2dr9hTCWloFHDKzhGStMyPn1GWzScc9moRtt91NDOYefDPdRSBS/6mn9bAsTgIJ4kN FcQIKrKOOnPmo93k3/Dd6SSRMB9DJWgTDwgZYOsgHNl/PQl/VIT4A7ymYnfZX+I60F Jk98mso0lh1T47cUUMlNd1ZnBwwXL8rH7fTQxwDXu7GO6qj5DLG6rWq6LNyXKtcj1f FRIndrpZIp2YQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r2tLRk6V9UObKLEmW8MetSd9PcQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Mon, 28 Jul 2014 01:40:39 -0000

On 07/27/2014 03:53 PM, Watson Ladd wrote:
> On Sun, Jul 27, 2014 at 2:22 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>> Here is my understanding of the threats that apply to ECDH TLS. (I believe
>> that the analysts equally applies to IKE of IPSEC.)
>
> It doesn't: IKE is much better designed than TLS.
>
>>
>> Assumptions: In DH we consider passive eavesdroppers. DH is a symmetric
>> protocol, thus everything said here about one peer applies to either of
>> them. While it's true that a TLS client connects to the server, allowing the
>> TLS server be exploited as an oracle, TLS renegotiation allows the server to
>> assume the role of a client after the initial handshake and exploit the
>> original client as an oracle as well.
>>
>> 1. Assuming no reuse of ephemeral keys:
>>      * the point validation doesn't matter (neither does the curve's twist
>> security)
>>      * the curve cofactor > 1 doesn't matter
>>      * an availability of side channel attacks doesn't matter.
>
> This is wrong, and I am finally allowed to say why publically.
>
> If the point is not validated, a malicious server can carry out small
> subgroup confinement attack, and do the same on a server.
> If the resulting master secrets are the same, Triple Handshake
> happens. This affects Bouncycastle 1.50, and is fixed in 1.51.

Interesting. Good point.

However, was the ECDHE intended as a solution to channel binding? It is 
great that it helps, but this looks accidental.

> (There are other implications; static ECDH certs get private keys
> spilled, ECIES does the same, etc.)

The comment in brackets is in the wrong section. It applies to my 
section #2 (reused ephemeral keys). I agree with this in reference to 
reused ephemeral keys.

>
> I mentioned this issue with non-contributory behavior on the TLS mailing list.
>
> The rest of your email is (mostly) pointless: we do security proofs
> that reduce a protocol like TLS to ECDH, then evaluate the security of
> ECDH. The absence of such a reduction for TLS is the real problem here.
>
> (If points are signed, small-subgroup confinement fails. However,
> "channel binding" over anonymous channels requires care)
>>
>> First, consider the colluded peer+eavesdropper.
>
> There is a standard set of models and definitions for key agreement security.
>
>>
>> Second, consider how a rogue participant might attack another peer.
>>
>> * Invalid point attacks lead to:
>>    - An attack on another peer's key. This requires many runs of the DH
>> protocol to recover another peer's static key. This concern doesn't apply to
>> truly ephemeral keys
>>    - Predictable shared secret. A peer can force the use of a small subgroup,
>> either by choosing a point in the small subgroup corresponding to the
>> cofactor or using a point x,y on a different curve (presumably such a point
>> has  a small order too). This allows an eavesdropper to force the shared
>> secret to the one that's easy calculate for an eavesdropper. However, the
>> described earlier "short private key" methods work equally well.
>>
>> * side channel attacks by the peer require multiple runs of the DH protocol,
>> thus they should not be relevant to the TLS ECDHE with fresh ephemeral keys.
>>
>> ( It looks like that breaking ECDH in this setting is equivalent to solving
>> the ECDLP problem. )
>
> Only loosely, and by taking advantage of pairings. Or one could use
> the direct, common conjecture
> on ECDH security.
>
>>
>> 2. Reused ephemeral keys = static ECDH keys (and all the published attacks
>> apply)
>>
>> In the remainder of this email DH1 stands for the generation of the peer's
>> ephemeral key, DH2 -- for the final calculation of the shared key.
>>
>> For reused ephemeral keys the following EC features matter:
>> * point validation
>> * twist security
>> * side channels
>>
>> The following doesn't matter:
>> * performance (of a single scalar multiplication)
>
> <snip>
>
>>
>> On the server side, however, requiring a fresh DH1 is a harder sell. As an
>> extreme but practical example, consider a TLS terminator that serves a set
>> of HTTP servers. One can expect the TLS traffic terminator to be, on
>> average, saturated with handshake requests. It's too tempting to cut the ECC
>> cost by half by not doing the DH1.
>
> So performance doesn't matter, until it does? Performance matters:
> it's why traffic goes
> unencrypted. There are no security costs with reuse of ephemeral connections.

My point is that fresh ephemeral keys, with the exception of the lack of 
channel binding that you noted, which is to be fixed in TLS, seem to be 
very forgiving regarding the properties of curves and quality of 
implementations.

Reuse of ephemeral keys makes them static and this brings all the 
well-known troubles. Assuming channel binding is fixed, fresh ephemeral 
keys appear to be beneficial for security of ECDHE in TLS.

The use of fresh ephemeral keys has cost resulting in lower performance. 
You can't beat (amortized) zero-time DH1.

>
>>
>> Let's look closer at how this sums regarding a likely DH strategy for the
>> client and the server. The following description indicates where fixed-base
>> v.s. variable base scalar multiplication applies (view the following as a
>> 4-cell 2x2 table).
>>
>>     client  (DH1/DH2): fixed-base, possibly done in advance (latency ~0) or
>> reused (cost ~0) / variable base
>>     server (DH1/DH2): likely reused (cost ~0) / variable base
>>
>> * Variable base calculation in DH2 is unavoidable for both a client and a
>> server.
>> * Unless fixed-base calculation is (something like 5+ times) faster than
>> variable-base, there is an incentive to reuse ephemeral keys on the server
>> * fixed-base EC on the client is nice to have, but is unclear if it is a
>> universally beneficial feature
>> * fresh ephemeral keys boost security; example: a curve at 128 bit security
>> level and fresh ephemeral keys may be a reasonable match with a P-384 X.509
>> certs
>
> This last conclusion is just wrong. An attacker who wants to intercept
> the traffic does 0.866*2^128 calculations
> to recover the discrete logarithm of an ephemeral value, and uses it
> to read the traffic. Reuse of ephemeral keys
> doesn't change this calculation: recovering even one connection is a
> significant problem.

I wasn't stating that this should be done, but compare two cases:

* an attacker can only recover one connection and must do so by doing 
ECDLP on two Ps (one is peer's k*G, another is k*his_PK) v.s.

* an attacker may have a signing oracle, exploiting all the possible 
bugs and side channels
* once he gets the private key, he can forge the signatures



From nobody Sun Jul 27 19:11:16 2014
Return-Path: <rransom.8774@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 C7A0E1B27FF for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 19:11:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 lIVzm81N5f7z for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 19:11:10 -0700 (PDT)
Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5EB5C1B27FD for <cfrg@irtf.org>; Sun, 27 Jul 2014 19:11:10 -0700 (PDT)
Received: by mail-qg0-f50.google.com with SMTP id q108so7729277qgd.23 for <cfrg@irtf.org>; Sun, 27 Jul 2014 19:11:09 -0700 (PDT)
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=8QjhnhV+fg2PB6R0OZ32eexLAotNJf5ROEYtJNLCNAc=; b=nCgLMGAGDq1Lhw8FbmWEaojsKUI4PQpbBTCvYyek/xD+aF6vPqeJAEPab3JW8L2PdW SehR9lIqHq1a9jFg9zplufur71+Yd+YpLk8Bh181vSh2Knjv/fqktswSoArtkPUmdUnC gzKAuWRGvCU4gKF0WmePhvSsJOSI91mrlVHSFnuzP3vZlTuQ+UdaRU+m7Fe/hKubzJeY t5q7prLW3ePyJjzUFaMp4PBBB6+NjRl1ZXhHi9ydIb0Kq0fkOlffn5k/OZs2GhM77fQj h/O5JqN7Ae4qYAmSBqtXryTCA8DT7pRUa7Asia/M8J0cwOWpocPV+e0uRbt+3CaKL7eN DDxQ==
MIME-Version: 1.0
X-Received: by 10.140.26.110 with SMTP id 101mr40782391qgu.1.1406513469580; Sun, 27 Jul 2014 19:11:09 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Sun, 27 Jul 2014 19:11:09 -0700 (PDT)
In-Reply-To: <53D5AA12.7020002@brainhub.org>
References: <53D56D7E.9050306@brainhub.org> <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com> <53D5AA12.7020002@brainhub.org>
Date: Sun, 27 Jul 2014 19:11:09 -0700
Message-ID: <CABqy+sryxUHMTTJAGHKqFDE_TWXp1KH3uYr+PQkJ9bHeFGasjw@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/3f3s4qLQ7uBSvv9upFd0GyfLxXA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Mon, 28 Jul 2014 02:11:15 -0000

On 7/27/14, Andrey Jivsov <crypto@brainhub.org> wrote:

> * an attacker can only recover one connection and must do so by doing
> ECDLP on two Ps (one is peer's k*G, another is k*his_PK) v.s.

An attacker only needs to learn the secret key of one of the keypairs
in order to recover an ECDH(E) shared secret.


Robert Ransom


From nobody Sun Jul 27 20:19:18 2014
Return-Path: <watsonbladd@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 A607E1A004A for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 20:19:16 -0700 (PDT)
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 OHZP1EXo5yTB for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 20:19:14 -0700 (PDT)
Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 221761A0019 for <cfrg@irtf.org>; Sun, 27 Jul 2014 20:19:14 -0700 (PDT)
Received: by mail-yh0-f50.google.com with SMTP id v1so4474048yhn.23 for <cfrg@irtf.org>; Sun, 27 Jul 2014 20:19:13 -0700 (PDT)
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=GSKPQeI+XZECt762x7JAST/kKkT2aPK4UxUIAtlNkV0=; b=XP+SvFdoPfpx+124ZNm7T+rfEautAe3+l588oXRUguGdPUJZrD3iZGlYdRHmRTnTFs VN3DN+QRrTnrv05gWYu+lO3lWOcd6DWFldOrlGMYjvG/S3M5JSUwAR8eIxImSxhN/jbZ JD3oHkRP0TxhfOSKBwMP0gaP+wnmukBJOT86UBbf4jfdmhfD+f03r4iEGW14cbaXUHXN dif47WbR8oOr5sJ01vZDLskrCRwmgSonbzssO2gfOsTrWG9i/GvF7WNIMHbVQhMdy/kX bU64zUeGO0/CS1pGmH9gvdrgvcy0WyS4a/H9I2Z5+J+CoZFdbZ/SDB3wvArcXd6bIwfv IP2A==
MIME-Version: 1.0
X-Received: by 10.236.129.3 with SMTP id g3mr46272363yhi.67.1406517553478; Sun, 27 Jul 2014 20:19:13 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 27 Jul 2014 20:19:13 -0700 (PDT)
In-Reply-To: <53D5AA12.7020002@brainhub.org>
References: <53D56D7E.9050306@brainhub.org> <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com> <53D5AA12.7020002@brainhub.org>
Date: Sun, 27 Jul 2014 20:19:13 -0700
Message-ID: <CACsn0ckeORqNyM3G017k_8EOq8rE_xzdZ9USSr1Xy1WbdR0=fA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sjQb7esU72uQnADFuDqHoE3oKM4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Mon, 28 Jul 2014 03:19:16 -0000

On Sun, Jul 27, 2014 at 6:40 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 07/27/2014 03:53 PM, Watson Ladd wrote:
>>
>> On Sun, Jul 27, 2014 at 2:22 PM, Andrey Jivsov <crypto@brainhub.org>
>> wrote:
>>>
>>> Here is my understanding of the threats that apply to ECDH TLS. (I
>>> believe
>>> that the analysts equally applies to IKE of IPSEC.)
>>
>>
>> It doesn't: IKE is much better designed than TLS.
>>
>>>
>>> Assumptions: In DH we consider passive eavesdroppers. DH is a symmetric
>>> protocol, thus everything said here about one peer applies to either of
>>> them. While it's true that a TLS client connects to the server, allowing
>>> the
>>> TLS server be exploited as an oracle, TLS renegotiation allows the server
>>> to
>>> assume the role of a client after the initial handshake and exploit the
>>> original client as an oracle as well.
>>>
>>> 1. Assuming no reuse of ephemeral keys:
>>>      * the point validation doesn't matter (neither does the curve's
>>> twist
>>> security)
>>>      * the curve cofactor > 1 doesn't matter
>>>      * an availability of side channel attacks doesn't matter.
>>
>>
>> This is wrong, and I am finally allowed to say why publically.
>>
>> If the point is not validated, a malicious server can carry out small
>> subgroup confinement attack, and do the same on a server.
>> If the resulting master secrets are the same, Triple Handshake
>> happens. This affects Bouncycastle 1.50, and is fixed in 1.51.
>
>
> Interesting. Good point.
>
> However, was the ECDHE intended as a solution to channel binding? It is
> great that it helps, but this looks accidental.

The security of TLS is accidental: it was originally designed by a
summer intern. At the
core of the security is
>
>
>> (There are other implications; static ECDH certs get private keys
>> spilled, ECIES does the same, etc.)
>
>
> The comment in brackets is in the wrong section. It applies to my section #2
> (reused ephemeral keys). I agree with this in reference to reused ephemeral
> keys.
>
>
>>
>> I mentioned this issue with non-contributory behavior on the TLS mailing
>> list.
>>
>> The rest of your email is (mostly) pointless: we do security proofs
>> that reduce a protocol like TLS to ECDH, then evaluate the security of
>> ECDH. The absence of such a reduction for TLS is the real problem here.
>>
>> (If points are signed, small-subgroup confinement fails. However,
>> "channel binding" over anonymous channels requires care)
>>>
>>>
>>> First, consider the colluded peer+eavesdropper.
>>
>>
>> There is a standard set of models and definitions for key agreement
>> security.
>>
>>>
>>> Second, consider how a rogue participant might attack another peer.
>>>
>>> * Invalid point attacks lead to:
>>>    - An attack on another peer's key. This requires many runs of the DH
>>> protocol to recover another peer's static key. This concern doesn't apply
>>> to
>>> truly ephemeral keys
>>>    - Predictable shared secret. A peer can force the use of a small
>>> subgroup,
>>> either by choosing a point in the small subgroup corresponding to the
>>> cofactor or using a point x,y on a different curve (presumably such a
>>> point
>>> has  a small order too). This allows an eavesdropper to force the shared
>>> secret to the one that's easy calculate for an eavesdropper. However, the
>>> described earlier "short private key" methods work equally well.
>>>
>>> * side channel attacks by the peer require multiple runs of the DH
>>> protocol,
>>> thus they should not be relevant to the TLS ECDHE with fresh ephemeral
>>> keys.
>>>
>>> ( It looks like that breaking ECDH in this setting is equivalent to
>>> solving
>>> the ECDLP problem. )
>>
>>
>> Only loosely, and by taking advantage of pairings. Or one could use
>> the direct, common conjecture
>> on ECDH security.
>>
>>>
>>> 2. Reused ephemeral keys = static ECDH keys (and all the published
>>> attacks
>>> apply)
>>>
>>> In the remainder of this email DH1 stands for the generation of the
>>> peer's
>>> ephemeral key, DH2 -- for the final calculation of the shared key.
>>>
>>> For reused ephemeral keys the following EC features matter:
>>> * point validation
>>> * twist security
>>> * side channels
>>>
>>> The following doesn't matter:
>>> * performance (of a single scalar multiplication)
>>
>>
>> <snip>
>>
>>>
>>> On the server side, however, requiring a fresh DH1 is a harder sell. As
>>> an
>>> extreme but practical example, consider a TLS terminator that serves a
>>> set
>>> of HTTP servers. One can expect the TLS traffic terminator to be, on
>>> average, saturated with handshake requests. It's too tempting to cut the
>>> ECC
>>> cost by half by not doing the DH1.
>>
>>
>> So performance doesn't matter, until it does? Performance matters:
>> it's why traffic goes
>> unencrypted. There are no security costs with reuse of ephemeral
>> connections.
>
>
> My point is that fresh ephemeral keys, with the exception of the lack of
> channel binding that you noted, which is to be fixed in TLS, seem to be very
> forgiving regarding the properties of curves and quality of implementations.
>
> Reuse of ephemeral keys makes them static and this brings all the well-known
> troubles. Assuming channel binding is fixed, fresh ephemeral keys appear to
> be beneficial for security of ECDHE in TLS.
>
> The use of fresh ephemeral keys has cost resulting in lower performance. You
> can't beat (amortized) zero-time DH1.
>
>
>>
>>>
>>> Let's look closer at how this sums regarding a likely DH strategy for the
>>> client and the server. The following description indicates where
>>> fixed-base
>>> v.s. variable base scalar multiplication applies (view the following as a
>>> 4-cell 2x2 table).
>>>
>>>     client  (DH1/DH2): fixed-base, possibly done in advance (latency ~0)
>>> or
>>> reused (cost ~0) / variable base
>>>     server (DH1/DH2): likely reused (cost ~0) / variable base
>>>
>>> * Variable base calculation in DH2 is unavoidable for both a client and a
>>> server.
>>> * Unless fixed-base calculation is (something like 5+ times) faster than
>>> variable-base, there is an incentive to reuse ephemeral keys on the
>>> server
>>> * fixed-base EC on the client is nice to have, but is unclear if it is a
>>> universally beneficial feature
>>> * fresh ephemeral keys boost security; example: a curve at 128 bit
>>> security
>>> level and fresh ephemeral keys may be a reasonable match with a P-384
>>> X.509
>>> certs
>>
>>
>> This last conclusion is just wrong. An attacker who wants to intercept
>> the traffic does 0.866*2^128 calculations
>> to recover the discrete logarithm of an ephemeral value, and uses it
>> to read the traffic. Reuse of ephemeral keys
>> doesn't change this calculation: recovering even one connection is a
>> significant problem.
>
>
> I wasn't stating that this should be done, but compare two cases:
>
> * an attacker can only recover one connection and must do so by doing ECDLP
> on two Ps (one is peer's k*G, another is k*his_PK) v.s.
>
> * an attacker may have a signing oracle, exploiting all the possible bugs
> and side channels
> * once he gets the private key, he can forge the signatures
>
>



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 27 20:23:00 2014
Return-Path: <watsonbladd@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 607BC1A004A for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 20:22:58 -0700 (PDT)
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 DzXvdydLd2ow for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 20:22:56 -0700 (PDT)
Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com [IPv6:2607:f8b0:4002:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 060391A0019 for <cfrg@irtf.org>; Sun, 27 Jul 2014 20:22:55 -0700 (PDT)
Received: by mail-yh0-f53.google.com with SMTP id c41so4442988yho.26 for <cfrg@irtf.org>; Sun, 27 Jul 2014 20:22:55 -0700 (PDT)
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=5t6aIz1cH8Vaqr8U332oDYVHqoZsYHe5ZEfA/1+gfB8=; b=KW7bcxWDv6EP9daOnFDqyLRc9eUjZKHiLFvNX5j0ZHYGu003+rAtYD+u47yDTR1Kw4 Y4JHN4An2IkFDI7RMCDom67Bxw/5DtB02QI4uYvg6gHgnup0rgb11WmQ2wnGB9o8vGnq zQTjh23p7KP1dq9nkR984IVDNOXe4sewoAfTSj/GZ4nhaGPIIhMAtkF40gYNDvlzyZLz QFcfoUWuYS8ssUP3HtedFvBG5FFOCoG8X6Ei7ObmhXPH0gN7o+pfTLgFMVmY7fMbnXWx avDB2mhWUgYdzV7o+x4HLnkyO35hSolNFGGr29jKJSfaZWHHrbV7C8uGCxV/mSyaNpkk +upA==
MIME-Version: 1.0
X-Received: by 10.236.19.78 with SMTP id m54mr101456yhm.134.1406517775364; Sun, 27 Jul 2014 20:22:55 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Sun, 27 Jul 2014 20:22:55 -0700 (PDT)
In-Reply-To: <CACsn0ckeORqNyM3G017k_8EOq8rE_xzdZ9USSr1Xy1WbdR0=fA@mail.gmail.com>
References: <53D56D7E.9050306@brainhub.org> <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com> <53D5AA12.7020002@brainhub.org> <CACsn0ckeORqNyM3G017k_8EOq8rE_xzdZ9USSr1Xy1WbdR0=fA@mail.gmail.com>
Date: Sun, 27 Jul 2014 20:22:55 -0700
Message-ID: <CACsn0cn3=22yspvbw3vqzfOyVBijaEMtPQxBfz15YwdDeHpm4Q@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/8lG4eImex5oIpCqeXvnH8rQTiqE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Mon, 28 Jul 2014 03:22:58 -0000

Sorry, I hit send instead of cancel while editing the message.

On Sun, Jul 27, 2014 at 8:19 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> On Sun, Jul 27, 2014 at 6:40 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>> On 07/27/2014 03:53 PM, Watson Ladd wrote:
>>>
>>> On Sun, Jul 27, 2014 at 2:22 PM, Andrey Jivsov <crypto@brainhub.org>
>>> wrote:
>>>>
>>>> Here is my understanding of the threats that apply to ECDH TLS. (I
>>>> believe
>>>> that the analysts equally applies to IKE of IPSEC.)
>>>
>>>
>>> It doesn't: IKE is much better designed than TLS.
>>>
>>>>
>>>> Assumptions: In DH we consider passive eavesdroppers. DH is a symmetric
>>>> protocol, thus everything said here about one peer applies to either of
>>>> them. While it's true that a TLS client connects to the server, allowing
>>>> the
>>>> TLS server be exploited as an oracle, TLS renegotiation allows the server
>>>> to
>>>> assume the role of a client after the initial handshake and exploit the
>>>> original client as an oracle as well.
>>>>
>>>> 1. Assuming no reuse of ephemeral keys:
>>>>      * the point validation doesn't matter (neither does the curve's
>>>> twist
>>>> security)
>>>>      * the curve cofactor > 1 doesn't matter
>>>>      * an availability of side channel attacks doesn't matter.
>>>
>>>
>>> This is wrong, and I am finally allowed to say why publically.
>>>
>>> If the point is not validated, a malicious server can carry out small
>>> subgroup confinement attack, and do the same on a server.
>>> If the resulting master secrets are the same, Triple Handshake
>>> happens. This affects Bouncycastle 1.50, and is fixed in 1.51.
>>
>>
>> Interesting. Good point.
>>
>> However, was the ECDHE intended as a solution to channel binding? It is
>> great that it helps, but this looks accidental.
>

 The security of TLS is accidental: it was originally designed by a
summer intern. At the core of the security is contributory behavior,
which it doesn't possess.

>>
>>
>>> (There are other implications; static ECDH certs get private keys
>>> spilled, ECIES does the same, etc.)
>>
>>
>> The comment in brackets is in the wrong section. It applies to my section #2
>> (reused ephemeral keys). I agree with this in reference to reused ephemeral
>> keys.
>>
>>
>>>
>>> I mentioned this issue with non-contributory behavior on the TLS mailing
>>> list.
>>>
>>> The rest of your email is (mostly) pointless: we do security proofs
>>> that reduce a protocol like TLS to ECDH, then evaluate the security of
>>> ECDH. The absence of such a reduction for TLS is the real problem here.
>>>
>>> (If points are signed, small-subgroup confinement fails. However,
>>> "channel binding" over anonymous channels requires care)
>>>>
>>>>
>>>> First, consider the colluded peer+eavesdropper.
>>>
>>>
>>> There is a standard set of models and definitions for key agreement
>>> security.
>>>
>>>>
>>>> Second, consider how a rogue participant might attack another peer.
>>>>
>>>> * Invalid point attacks lead to:
>>>>    - An attack on another peer's key. This requires many runs of the DH
>>>> protocol to recover another peer's static key. This concern doesn't apply
>>>> to
>>>> truly ephemeral keys
>>>>    - Predictable shared secret. A peer can force the use of a small
>>>> subgroup,
>>>> either by choosing a point in the small subgroup corresponding to the
>>>> cofactor or using a point x,y on a different curve (presumably such a
>>>> point
>>>> has  a small order too). This allows an eavesdropper to force the shared
>>>> secret to the one that's easy calculate for an eavesdropper. However, the
>>>> described earlier "short private key" methods work equally well.
>>>>
>>>> * side channel attacks by the peer require multiple runs of the DH
>>>> protocol,
>>>> thus they should not be relevant to the TLS ECDHE with fresh ephemeral
>>>> keys.
>>>>
>>>> ( It looks like that breaking ECDH in this setting is equivalent to
>>>> solving
>>>> the ECDLP problem. )
>>>
>>>
>>> Only loosely, and by taking advantage of pairings. Or one could use
>>> the direct, common conjecture
>>> on ECDH security.
>>>
>>>>
>>>> 2. Reused ephemeral keys = static ECDH keys (and all the published
>>>> attacks
>>>> apply)
>>>>
>>>> In the remainder of this email DH1 stands for the generation of the
>>>> peer's
>>>> ephemeral key, DH2 -- for the final calculation of the shared key.
>>>>
>>>> For reused ephemeral keys the following EC features matter:
>>>> * point validation
>>>> * twist security
>>>> * side channels
>>>>
>>>> The following doesn't matter:
>>>> * performance (of a single scalar multiplication)
>>>
>>>
>>> <snip>
>>>
>>>>
>>>> On the server side, however, requiring a fresh DH1 is a harder sell. As
>>>> an
>>>> extreme but practical example, consider a TLS terminator that serves a
>>>> set
>>>> of HTTP servers. One can expect the TLS traffic terminator to be, on
>>>> average, saturated with handshake requests. It's too tempting to cut the
>>>> ECC
>>>> cost by half by not doing the DH1.
>>>
>>>
>>> So performance doesn't matter, until it does? Performance matters:
>>> it's why traffic goes
>>> unencrypted. There are no security costs with reuse of ephemeral
>>> connections.
>>
>>
>> My point is that fresh ephemeral keys, with the exception of the lack of
>> channel binding that you noted, which is to be fixed in TLS, seem to be very
>> forgiving regarding the properties of curves and quality of implementations.
>>
>> Reuse of ephemeral keys makes them static and this brings all the well-known
>> troubles. Assuming channel binding is fixed, fresh ephemeral keys appear to
>> be beneficial for security of ECDHE in TLS.
>>
>> The use of fresh ephemeral keys has cost resulting in lower performance. You
>> can't beat (amortized) zero-time DH1.

This is true. But why waste time making bad curves when we can make
good ones? The
argument that side channels don't matter for signatures and ECDH
ignores quite a few practical
issues:
-determinism in signatures lets you reuse a side channel by getting
repeated signatures on the same message.
-side-channels are not bounded: I could leak almost all the bits from
a side channel, leaving a very small number
to guess.

>>
>>
>>>
>>>>
>>>> Let's look closer at how this sums regarding a likely DH strategy for the
>>>> client and the server. The following description indicates where
>>>> fixed-base
>>>> v.s. variable base scalar multiplication applies (view the following as a
>>>> 4-cell 2x2 table).
>>>>
>>>>     client  (DH1/DH2): fixed-base, possibly done in advance (latency ~0)
>>>> or
>>>> reused (cost ~0) / variable base
>>>>     server (DH1/DH2): likely reused (cost ~0) / variable base
>>>>
>>>> * Variable base calculation in DH2 is unavoidable for both a client and a
>>>> server.
>>>> * Unless fixed-base calculation is (something like 5+ times) faster than
>>>> variable-base, there is an incentive to reuse ephemeral keys on the
>>>> server
>>>> * fixed-base EC on the client is nice to have, but is unclear if it is a
>>>> universally beneficial feature
>>>> * fresh ephemeral keys boost security; example: a curve at 128 bit
>>>> security
>>>> level and fresh ephemeral keys may be a reasonable match with a P-384
>>>> X.509
>>>> certs
>>>
>>>
>>> This last conclusion is just wrong. An attacker who wants to intercept
>>> the traffic does 0.866*2^128 calculations
>>> to recover the discrete logarithm of an ephemeral value, and uses it
>>> to read the traffic. Reuse of ephemeral keys
>>> doesn't change this calculation: recovering even one connection is a
>>> significant problem.
>>
>>
>> I wasn't stating that this should be done, but compare two cases:
>>
>> * an attacker can only recover one connection and must do so by doing ECDLP
>> on two Ps (one is peer's k*G, another is k*his_PK) v.s.
>>
>> * an attacker may have a signing oracle, exploiting all the possible bugs
>> and side channels
>> * once he gets the private key, he can forge the signatures
>>
>>
>
>
>
> --
> "Those who would give up Essential Liberty to purchase a little
> Temporary Safety deserve neither  Liberty nor Safety."
> -- Benjamin Franklin



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Sun Jul 27 22:25:28 2014
Return-Path: <crypto@brainhub.org>
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 4FF5C1A01F7 for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 22:25:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 mKlu1h3kRroJ for <cfrg@ietfa.amsl.com>; Sun, 27 Jul 2014 22:25:14 -0700 (PDT)
Received: from qmta08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:80]) by ietfa.amsl.com (Postfix) with ESMTP id B90091A0217 for <cfrg@irtf.org>; Sun, 27 Jul 2014 22:25:13 -0700 (PDT)
Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta08.emeryville.ca.mail.comcast.net with comcast id XhRD1o0011smiN4A8hRDSy; Mon, 28 Jul 2014 05:25:13 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta20.emeryville.ca.mail.comcast.net with comcast id XhRC1o00H4uhcbK8ghRCbe; Mon, 28 Jul 2014 05:25:13 +0000
Message-ID: <53D5DEB8.5000903@brainhub.org>
Date: Sun, 27 Jul 2014 22:25:12 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>
References: <53D56D7E.9050306@brainhub.org> <CACsn0cnT_H7aqaBc-wEDjxAUNYoNW71uKNUdLsAC_Tuqeob+rA@mail.gmail.com> <53D5AA12.7020002@brainhub.org> <CACsn0ckeORqNyM3G017k_8EOq8rE_xzdZ9USSr1Xy1WbdR0=fA@mail.gmail.com> <CACsn0cn3=22yspvbw3vqzfOyVBijaEMtPQxBfz15YwdDeHpm4Q@mail.gmail.com>
In-Reply-To: <CACsn0cn3=22yspvbw3vqzfOyVBijaEMtPQxBfz15YwdDeHpm4Q@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406525113; bh=0bew71UuQFeNEAWEZsg6Vw9mgV829nkZWpYOcG3q/uw=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=YHQx6QHL5tMO0lYiyztobUawYcSyIyZJWrkxgvuuC6o6YLX5xkfeAm+6tP8yLQd9w s1FBOin9Wt1/UwB2cpVG1/rBxlKaFYFmqzknQu/DO1epr39hAcAk3x99Hj9pZJYYRc XYHdWaklGArNewY8Z3uDLN7sMSoJvVFKDo84nlq30ADqUjeLg/MYrIfSWYwJsni088 WiU8RTMCWc0C0XGpajmL1VB+soxFnP4NInR202JOonDcM9WYdlvvZEM4zgHf7prcru okv+vvYihxYEYqQ0UguzfkhQMH8hwCjHfTJIh8XOjQ9bi/V/t8RJdQ5XtFPpIgGOaM fLF9G7y7ga8PQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/agrmJE1Xv2XVf1xwkJy1en-NIDQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Practical summary of ECDH in TLS regarding the curve features
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: Mon, 28 Jul 2014 05:25:17 -0000

On 07/27/2014 08:22 PM, Watson Ladd wrote:
> This is true. But why waste time making bad curves when we can make
> good ones?

Certainly. My 4-cell table of likely ephemeral key strategies for client 
and servers meant to show that the reuse of ephemeral DH is expected at 
least for TLS servers. Some TLS clients are actually (computer) servers 
connecting to many TLS servers, and so I am against prohibiting the 
reuse for TLS clients too.

This means that curves must be capable to handle static DH (i.e. reused 
ephemeral DH) and therefore good curves are beneficial for TLS.

The
> argument that side channels don't matter for signatures and ECDH
> ignores quite a few practical
> issues:
> -determinism in signatures lets you reuse a side channel by getting
> repeated signatures on the same message.
> -side-channels are not bounded: I could leak almost all the bits from
> a side channel, leaving a very small number
> to guess.

I wasn't looking at signatures, which use static keys.

I should clarify my comment about the side channel. I was thinking about 
a sidechannel in a network device sense (either a timing channel or an 
error channel).

It's true that if an ECDH scalar multiplication leaks reliably whether 
or not it does double or add, a single ECDH operation implemented that 
way might be hypothetically sufficient to recover the scalar. Would it 
end up in the same feasibility bucket as the 0.866*2^128 ECDLP attack?





From nobody Mon Jul 28 07:58:46 2014
Return-Path: <rgm-sec@htt-consult.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 5E9F41B2873 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 07:58:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.799
X-Spam-Level: 
X-Spam-Status: No, score=0.799 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RP_MATCHES_RCVD=-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 7ObYH7Pgs5ef for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 07:58:42 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 2B1D61B2866 for <cfrg@irtf.org>; Mon, 28 Jul 2014 07:58:42 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 1093662AD6 for <cfrg@irtf.org>; Mon, 28 Jul 2014 14:58:41 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Azy-O5KRBY+G for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:58:30 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id 034C862A95 for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:58:29 -0400 (EDT)
Message-ID: <53D66506.4080809@htt-consult.com>
Date: Mon, 28 Jul 2014 10:58:14 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
In-Reply-To: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/i27avMV9rWSR8S2gR_rATBxL-Xg
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 14:58:44 -0000

The whole world is NOT TLS.  For example I am working in IEEE 1609 which 
is Vehicle-to-vehicle safety communications and their need is for signed 
data objects that are quickly generated and verified (you have ~100ms 
from the braking event to all the cars being able to act on that 
information).  I also work in IEEE 802.15.4 highly constrained devices 
(some much smaller than what many IETF groups accept as their lower limit).

8 bit processors are the norm, and NO, Dr. Moore is NOT going to change 
that.  Lower energy demand is much higher on the design plan than faster 
processing.  Also whatever is done will be running on fielded devices 
for the next 10 - 20 years.  Hardware acceleration is acceptable, but 
that could make in-field corrections impossible. Over-the-air firmware 
updates may also be impossible (802.15.4k is 40kb/s) or only done in the 
dealership (yes!  another recall!).

So getting on to my thoughts of curve selection requirements for the 
world of small:

1) Low over-the-air demands.  Every BIT counts.  We have to live with 32 
bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own 
'certificate' and signature format as even the standard asn.1 is too 
wasteful of the very limited channel.  This applies also in 802.15.4 
where adding another MAC frame might mean that the whole thing fails 
because now it is more likely that one frame got lost.

2) Easy/size of implementation.  There has been lots of chatter here 
about how NIST p256 can be implemented wrongly.  Here it is of greater 
concern, as it might require a physical swap-out to correct an 
implementation error.  Manufacturers look at the cost of a programmer to 
save 5K code cheaper than that extra 5K footprint.  So little code and 
easy to code.  This world is extremely price sensitive.

3) Performance on an 8 bit  processor.  Performance is measured in time 
and energy.  In-vehicle devices tend to have a ready source of electrons 
(except for tire gauges!), but some devices have limited battery (your 
front door lock) or NO battery (MEMEs energy harvesters on bridge stress 
sensors).  So low energy is as important as quickly done.  Here 10% 
faster IS 10% faster; and it could make a life-or-death difference. (In 
Positive Train Control, the automatics MUST take over if the human can 
no longer respond in time and bullet trains can take 7Km to stop safely)

4) preserving ECDSA and ECDHE.  This is what is currently in use, and in 
some cases written into regulations (urgh), so we have to still keep 
them working.  But if something 'new' and provably good makes a big 
difference in one of the previous needs I suspect there will be an 
attentive audience.

I have tried to keep things general so as not too much to limit 
choices.  I never claimed to be a crytographer or to have the math 
skills to evaluate the various contenders.  Others working in this area 
might have their own reading on the needs of constrained 
devices/communications.

But please just don't solve this for TLS on octo-core 64-bit systems.


On 07/25/2014 01:10 AM, Benjamin Black wrote:
> Inspired by some comments from other and in hopes of returning to a 
> more productive debate rather than the pointed back and forth, of 
> which I am absolutely guilty, I'm suggesting a few constraints. These 
> are not priority ordered and none of them deal with the math, instead 
> focusing on process and practice.
>
> 1) As we are discussing this in the context of TLS, the performance of 
> various kx options must be evaluated for ECDHE as typically deployed. 
> ECDH is neither common nor recommended in the TLS BCP draft. In 
> addition, I hope there will be discussion of benchmarking methodology, 
> with the understanding the ultimate choice is for the CFRG chairs.
>
> 2) Performance must be measured using "production-quality" 
> implementations. By this I mean implementations which employ the sort 
> of techniques/optimizations appropriate for large scale deployment. 
> This is specifically intended to exclude discussion of how simple or 
> fast an implementation _could_ be, in favor of what they actually are 
> in practice. However, the goal is to select curves which strike the 
> best balance between various requirements, not simply the fastest.
>
> 3) The timeframe for a decision constrains the scope of this process. 
> If a decision is desired within a few months, then it is difficult to 
> include options beyond new curves. If a decision can take a year, new 
> algorithms could be considered. Given the importance, impact, and 
> contentiousness of new algorithms, I believe it would be difficult to 
> complete a thorough, careful algorithm and curve selection process in 
> a short amount of time.
>
> 4) The precise set of security levels needed should be specified in 
> advance (whether by TLS or CFRG) and curve recommendations delivered 
> together for all levels. A stated goal is to use these curves in new 
> drafts, and it minimizes work to specify all security levels for a 
> proposal in the same draft. This is strictly a practical matter 
> recognizing the chairs and area directors have limited bandwidth and 
> implementors can get everything done in a single go.
>
> 5) Selections must efficiently support TLS 1.2. Adoption of new 
> curves, and potentially new algorithms, can't be gated on completion 
> and widespread deployment of TLS 1.3.
>
> 6) Drop-in replacement for the NIST curves is _not_ a requirement in 
> this process.
>
> 7) I don't think the chairs are signing up for a full-on, NIST-style 
> selection competition and we should aim to keep things are lightweight 
> as possible while still achieving the required level of rigor. I hope 
> they will address this point soon.


From nobody Mon Jul 28 10:05:28 2014
Return-Path: <mike@shiftleft.org>
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 48A241A03BC for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:05:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 lO2Jm1snxD7k for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:05:25 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9BBBA1A02FB for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:05:25 -0700 (PDT)
Received: from [192.168.1.124] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id B02193AA27; Mon, 28 Jul 2014 10:05:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406567115; bh=lYEdXT+OJyc7zu1lXzzZx9rQ0Z2KYdz1B+yUhNY2T8s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=a/GPvyxtPBbKJnEBYTypxcIcSfk0MU4PAPVEZn/s4oC3EagZJPrLm6GZHrLWxRQYt ua4qSzkyUPAzRzFPNb1bl1LfvzRM3QSCYbRL6ZyaZBoUGtGZeiFYI2frxU/GoJb8c/ ytGY4MU6JpaSXZAL2W2nys5xvUJ86d+QQHKK+acE=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53D66506.4080809@htt-consult.com>
Date: Mon, 28 Jul 2014 10:05:23 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/l_zKYMbWtb63CHPUdWrDBWIVn5Y
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 17:05:27 -0000

You=92re going to need a hardware accelerator for some of these small =
things.  Eg for v2v safety, the real ask has to be =93fast and small and =
easy in hardware=94.  The best solution to this is binary curves, though =
they are considered slightly edgy right now.

But yeah, 8-bit processor performance is important too.

Cheers,
=97 Mike

On Jul 28, 2014, at 7:58 AM, Robert Moskowitz <rgm-sec@htt-consult.com> =
wrote:

> The whole world is NOT TLS.  For example I am working in IEEE 1609 =
which is Vehicle-to-vehicle safety communications and their need is for =
signed data objects that are quickly generated and verified (you have =
~100ms from the braking event to all the cars being able to act on that =
information).  I also work in IEEE 802.15.4 highly constrained devices =
(some much smaller than what many IETF groups accept as their lower =
limit).
>=20
> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to =
change that.  Lower energy demand is much higher on the design plan than =
faster processing.  Also whatever is done will be running on fielded =
devices for the next 10 - 20 years.  Hardware acceleration is =
acceptable, but that could make in-field corrections impossible. =
Over-the-air firmware updates may also be impossible (802.15.4k is =
40kb/s) or only done in the dealership (yes!  another recall!).
>=20
> So getting on to my thoughts of curve selection requirements for the =
world of small:
>=20
> 1) Low over-the-air demands.  Every BIT counts.  We have to live with =
32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own =
'certificate' and signature format as even the standard asn.1 is too =
wasteful of the very limited channel.  This applies also in 802.15.4 =
where adding another MAC frame might mean that the whole thing fails =
because now it is more likely that one frame got lost.
>=20
> 2) Easy/size of implementation.  There has been lots of chatter here =
about how NIST p256 can be implemented wrongly.  Here it is of greater =
concern, as it might require a physical swap-out to correct an =
implementation error.  Manufacturers look at the cost of a programmer to =
save 5K code cheaper than that extra 5K footprint.  So little code and =
easy to code.  This world is extremely price sensitive.
>=20
> 3) Performance on an 8 bit  processor.  Performance is measured in =
time and energy.  In-vehicle devices tend to have a ready source of =
electrons (except for tire gauges!), but some devices have limited =
battery (your front door lock) or NO battery (MEMEs energy harvesters on =
bridge stress sensors).  So low energy is as important as quickly done.  =
Here 10% faster IS 10% faster; and it could make a life-or-death =
difference. (In Positive Train Control, the automatics MUST take over if =
the human can no longer respond in time and bullet trains can take 7Km =
to stop safely)
>=20
> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and =
in some cases written into regulations (urgh), so we have to still keep =
them working.  But if something 'new' and provably good makes a big =
difference in one of the previous needs I suspect there will be an =
attentive audience.
>=20
> I have tried to keep things general so as not too much to limit =
choices.  I never claimed to be a crytographer or to have the math =
skills to evaluate the various contenders.  Others working in this area =
might have their own reading on the needs of constrained =
devices/communications.
>=20
> But please just don't solve this for TLS on octo-core 64-bit systems.
>=20
>=20
> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>> Inspired by some comments from other and in hopes of returning to a =
more productive debate rather than the pointed back and forth, of which =
I am absolutely guilty, I'm suggesting a few constraints. These are not =
priority ordered and none of them deal with the math, instead focusing =
on process and practice.
>>=20
>> 1) As we are discussing this in the context of TLS, the performance =
of various kx options must be evaluated for ECDHE as typically deployed. =
ECDH is neither common nor recommended in the TLS BCP draft. In =
addition, I hope there will be discussion of benchmarking methodology, =
with the understanding the ultimate choice is for the CFRG chairs.
>>=20
>> 2) Performance must be measured using "production-quality" =
implementations. By this I mean implementations which employ the sort of =
techniques/optimizations appropriate for large scale deployment. This is =
specifically intended to exclude discussion of how simple or fast an =
implementation _could_ be, in favor of what they actually are in =
practice. However, the goal is to select curves which strike the best =
balance between various requirements, not simply the fastest.
>>=20
>> 3) The timeframe for a decision constrains the scope of this process. =
If a decision is desired within a few months, then it is difficult to =
include options beyond new curves. If a decision can take a year, new =
algorithms could be considered. Given the importance, impact, and =
contentiousness of new algorithms, I believe it would be difficult to =
complete a thorough, careful algorithm and curve selection process in a =
short amount of time.
>>=20
>> 4) The precise set of security levels needed should be specified in =
advance (whether by TLS or CFRG) and curve recommendations delivered =
together for all levels. A stated goal is to use these curves in new =
drafts, and it minimizes work to specify all security levels for a =
proposal in the same draft. This is strictly a practical matter =
recognizing the chairs and area directors have limited bandwidth and =
implementors can get everything done in a single go.
>>=20
>> 5) Selections must efficiently support TLS 1.2. Adoption of new =
curves, and potentially new algorithms, can't be gated on completion and =
widespread deployment of TLS 1.3.
>>=20
>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in =
this process.
>>=20
>> 7) I don't think the chairs are signing up for a full-on, NIST-style =
selection competition and we should aim to keep things are lightweight =
as possible while still achieving the required level of rigor. I hope =
they will address this point soon.
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jul 28 10:17:30 2014
Return-Path: <m.jenkins.364706@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 EF6501A0326 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:17:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.749
X-Spam-Level: 
X-Spam-Status: No, score=-1.749 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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 ZHOypYLounuQ for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:17:26 -0700 (PDT)
Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [IPv6:2607:f8b0:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C62B01A01AA for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:17:25 -0700 (PDT)
Received: by mail-vc0-f172.google.com with SMTP id im17so11771483vcb.17 for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:17:25 -0700 (PDT)
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=/31hY6scY2C9wVRQ3A5WWP96JsgFQvl7IJfG4yugFwY=; b=lCECI3B6RA3+yTno9txs0PG2pIFQ41B0oaJCkpsGx5jIPK3nP3xwaKTQVDkArgiA3t g2cG1mR+Wh/7JA/vExp4tEXoxg2fLQrkyc+GDAAsTMHOowIOe5n2D2nUUUfv0/nVZ6EB 2pz/4REzKsyESWykJMcRvwC3oSL7zVkF08KS36BuvNfLPBbXe0y4QhbxgQXgcxsTSCrJ rTi9CUC4yL6sJfkwFUwlr9GH27uDb0E3TD1+uOB/706tadmGtpSxRJQg10wpTED3/8K4 VZBmnrLobKlbdPq0fTocLxGPXvFQTwrhQIrQ9VhCKvvudkJ24Js6BtrIwkeXRLR1C91B 73YQ==
MIME-Version: 1.0
X-Received: by 10.221.42.135 with SMTP id ty7mr10319010vcb.14.1406567844965; Mon, 28 Jul 2014 10:17:24 -0700 (PDT)
Received: by 10.58.6.228 with HTTP; Mon, 28 Jul 2014 10:17:24 -0700 (PDT)
In-Reply-To: <53D66506.4080809@htt-consult.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com>
Date: Mon, 28 Jul 2014 13:17:24 -0400
Message-ID: <CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com>
From: Michael Jenkins <m.jenkins.364706@gmail.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Content-Type: multipart/alternative; boundary=001a11339974c0702504ff441884
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lIl3DpRB4G86uVzF4xwhWcT3Fo8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 17:17:28 -0000

--001a11339974c0702504ff441884
Content-Type: text/plain; charset=UTF-8

Bob,

I'm really glad to hear someone saying the whole world isn't TLS, and
IOT/constrained environments seems to be getting a lot of air-time, which
is good too. But while I was reading your email, I kept thinking, where's
the big-I Internet in this? If this is a high-speed, low-power, limited
range communication, what's the need for an Internet protocol?


On Mon, Jul 28, 2014 at 10:58 AM, Robert Moskowitz <rgm-sec@htt-consult.com>
wrote:

> The whole world is NOT TLS.  For example I am working in IEEE 1609 which
> is Vehicle-to-vehicle safety communications and their need is for signed
> data objects that are quickly generated and verified (you have ~100ms from
> the braking event to all the cars being able to act on that information).
>  I also work in IEEE 802.15.4 highly constrained devices (some much smaller
> than what many IETF groups accept as their lower limit).
>
> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to change
> that.  Lower energy demand is much higher on the design plan than faster
> processing.  Also whatever is done will be running on fielded devices for
> the next 10 - 20 years.  Hardware acceleration is acceptable, but that
> could make in-field corrections impossible. Over-the-air firmware updates
> may also be impossible (802.15.4k is 40kb/s) or only done in the dealership
> (yes!  another recall!).
>
> So getting on to my thoughts of curve selection requirements for the world
> of small:
>
> 1) Low over-the-air demands.  Every BIT counts.  We have to live with 32
> bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own
> 'certificate' and signature format as even the standard asn.1 is too
> wasteful of the very limited channel.  This applies also in 802.15.4 where
> adding another MAC frame might mean that the whole thing fails because now
> it is more likely that one frame got lost.
>
> 2) Easy/size of implementation.  There has been lots of chatter here about
> how NIST p256 can be implemented wrongly.  Here it is of greater concern,
> as it might require a physical swap-out to correct an implementation error.
>  Manufacturers look at the cost of a programmer to save 5K code cheaper
> than that extra 5K footprint.  So little code and easy to code.  This world
> is extremely price sensitive.
>
> 3) Performance on an 8 bit  processor.  Performance is measured in time
> and energy.  In-vehicle devices tend to have a ready source of electrons
> (except for tire gauges!), but some devices have limited battery (your
> front door lock) or NO battery (MEMEs energy harvesters on bridge stress
> sensors).  So low energy is as important as quickly done.  Here 10% faster
> IS 10% faster; and it could make a life-or-death difference. (In Positive
> Train Control, the automatics MUST take over if the human can no longer
> respond in time and bullet trains can take 7Km to stop safely)
>
> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and in
> some cases written into regulations (urgh), so we have to still keep them
> working.  But if something 'new' and provably good makes a big difference
> in one of the previous needs I suspect there will be an attentive audience.
>
> I have tried to keep things general so as not too much to limit choices.
>  I never claimed to be a crytographer or to have the math skills to
> evaluate the various contenders.  Others working in this area might have
> their own reading on the needs of constrained devices/communications.
>
> But please just don't solve this for TLS on octo-core 64-bit systems.
>
>
>
> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>
>> Inspired by some comments from other and in hopes of returning to a more
>> productive debate rather than the pointed back and forth, of which I am
>> absolutely guilty, I'm suggesting a few constraints. These are not priority
>> ordered and none of them deal with the math, instead focusing on process
>> and practice.
>>
>> 1) As we are discussing this in the context of TLS, the performance of
>> various kx options must be evaluated for ECDHE as typically deployed. ECDH
>> is neither common nor recommended in the TLS BCP draft. In addition, I hope
>> there will be discussion of benchmarking methodology, with the
>> understanding the ultimate choice is for the CFRG chairs.
>>
>> 2) Performance must be measured using "production-quality"
>> implementations. By this I mean implementations which employ the sort of
>> techniques/optimizations appropriate for large scale deployment. This is
>> specifically intended to exclude discussion of how simple or fast an
>> implementation _could_ be, in favor of what they actually are in practice.
>> However, the goal is to select curves which strike the best balance between
>> various requirements, not simply the fastest.
>>
>> 3) The timeframe for a decision constrains the scope of this process. If
>> a decision is desired within a few months, then it is difficult to include
>> options beyond new curves. If a decision can take a year, new algorithms
>> could be considered. Given the importance, impact, and contentiousness of
>> new algorithms, I believe it would be difficult to complete a thorough,
>> careful algorithm and curve selection process in a short amount of time.
>>
>> 4) The precise set of security levels needed should be specified in
>> advance (whether by TLS or CFRG) and curve recommendations delivered
>> together for all levels. A stated goal is to use these curves in new
>> drafts, and it minimizes work to specify all security levels for a proposal
>> in the same draft. This is strictly a practical matter recognizing the
>> chairs and area directors have limited bandwidth and implementors can get
>> everything done in a single go.
>>
>> 5) Selections must efficiently support TLS 1.2. Adoption of new curves,
>> and potentially new algorithms, can't be gated on completion and widespread
>> deployment of TLS 1.3.
>>
>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in this
>> process.
>>
>> 7) I don't think the chairs are signing up for a full-on, NIST-style
>> selection competition and we should aim to keep things are lightweight as
>> possible while still achieving the required level of rigor. I hope they
>> will address this point soon.
>>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--001a11339974c0702504ff441884
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Bob,<br><br></div>I&#39;m really glad to hear so=
meone saying the whole world isn&#39;t TLS, and IOT/constrained environment=
s seems to be getting a lot of air-time, which is good too. But while I was=
 reading your email, I kept thinking, where&#39;s the big-I Internet in thi=
s? If this is a high-speed, low-power, limited range communication, what&#3=
9;s the need for an Internet protocol?<br>
</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">O=
n Mon, Jul 28, 2014 at 10:58 AM, Robert Moskowitz <span dir=3D"ltr">&lt;<a =
href=3D"mailto:rgm-sec@htt-consult.com" target=3D"_blank">rgm-sec@htt-consu=
lt.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">The whole world is NOT TLS. =C2=A0For exampl=
e I am working in IEEE 1609 which is Vehicle-to-vehicle safety communicatio=
ns and their need is for signed data objects that are quickly generated and=
 verified (you have ~100ms from the braking event to all the cars being abl=
e to act on that information). =C2=A0I also work in IEEE 802.15.4 highly co=
nstrained devices (some much smaller than what many IETF groups accept as t=
heir lower limit).<br>

<br>
8 bit processors are the norm, and NO, Dr. Moore is NOT going to change tha=
t. =C2=A0Lower energy demand is much higher on the design plan than faster =
processing. =C2=A0Also whatever is done will be running on fielded devices =
for the next 10 - 20 years. =C2=A0Hardware acceleration is acceptable, but =
that could make in-field corrections impossible. Over-the-air firmware upda=
tes may also be impossible (802.15.4k is 40kb/s) or only done in the dealer=
ship (yes! =C2=A0another recall!).<br>

<br>
So getting on to my thoughts of curve selection requirements for the world =
of small:<br>
<br>
1) Low over-the-air demands. =C2=A0Every BIT counts. =C2=A0We have to live =
with 32 bytes; but 64 bytes may be too much. =C2=A0Oh, IEEE 1609.2 has its =
own &#39;certificate&#39; and signature format as even the standard asn.1 i=
s too wasteful of the very limited channel. =C2=A0This applies also in 802.=
15.4 where adding another MAC frame might mean that the whole thing fails b=
ecause now it is more likely that one frame got lost.<br>

<br>
2) Easy/size of implementation. =C2=A0There has been lots of chatter here a=
bout how NIST p256 can be implemented wrongly. =C2=A0Here it is of greater =
concern, as it might require a physical swap-out to correct an implementati=
on error. =C2=A0Manufacturers look at the cost of a programmer to save 5K c=
ode cheaper than that extra 5K footprint. =C2=A0So little code and easy to =
code. =C2=A0This world is extremely price sensitive.<br>

<br>
3) Performance on an 8 bit =C2=A0processor. =C2=A0Performance is measured i=
n time and energy. =C2=A0In-vehicle devices tend to have a ready source of =
electrons (except for tire gauges!), but some devices have limited battery =
(your front door lock) or NO battery (MEMEs energy harvesters on bridge str=
ess sensors). =C2=A0So low energy is as important as quickly done. =C2=A0He=
re 10% faster IS 10% faster; and it could make a life-or-death difference. =
(In Positive Train Control, the automatics MUST take over if the human can =
no longer respond in time and bullet trains can take 7Km to stop safely)<br=
>

<br>
4) preserving ECDSA and ECDHE. =C2=A0This is what is currently in use, and =
in some cases written into regulations (urgh), so we have to still keep the=
m working. =C2=A0But if something &#39;new&#39; and provably good makes a b=
ig difference in one of the previous needs I suspect there will be an atten=
tive audience.<br>

<br>
I have tried to keep things general so as not too much to limit choices. =
=C2=A0I never claimed to be a crytographer or to have the math skills to ev=
aluate the various contenders. =C2=A0Others working in this area might have=
 their own reading on the needs of constrained devices/communications.<br>

<br>
But please just don&#39;t solve this for TLS on octo-core 64-bit systems.<d=
iv class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
<br>
On 07/25/2014 01:10 AM, Benjamin Black wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Inspired by some comments from other and in hopes of returning to a more pr=
oductive debate rather than the pointed back and forth, of which I am absol=
utely guilty, I&#39;m suggesting a few constraints. These are not priority =
ordered and none of them deal with the math, instead focusing on process an=
d practice.<br>

<br>
1) As we are discussing this in the context of TLS, the performance of vari=
ous kx options must be evaluated for ECDHE as typically deployed. ECDH is n=
either common nor recommended in the TLS BCP draft. In addition, I hope the=
re will be discussion of benchmarking methodology, with the understanding t=
he ultimate choice is for the CFRG chairs.<br>

<br>
2) Performance must be measured using &quot;production-quality&quot; implem=
entations. By this I mean implementations which employ the sort of techniqu=
es/optimizations appropriate for large scale deployment. This is specifical=
ly intended to exclude discussion of how simple or fast an implementation _=
could_ be, in favor of what they actually are in practice. However, the goa=
l is to select curves which strike the best balance between various require=
ments, not simply the fastest.<br>

<br>
3) The timeframe for a decision constrains the scope of this process. If a =
decision is desired within a few months, then it is difficult to include op=
tions beyond new curves. If a decision can take a year, new algorithms coul=
d be considered. Given the importance, impact, and contentiousness of new a=
lgorithms, I believe it would be difficult to complete a thorough, careful =
algorithm and curve selection process in a short amount of time.<br>

<br>
4) The precise set of security levels needed should be specified in advance=
 (whether by TLS or CFRG) and curve recommendations delivered together for =
all levels. A stated goal is to use these curves in new drafts, and it mini=
mizes work to specify all security levels for a proposal in the same draft.=
 This is strictly a practical matter recognizing the chairs and area direct=
ors have limited bandwidth and implementors can get everything done in a si=
ngle go.<br>

<br>
5) Selections must efficiently support TLS 1.2. Adoption of new curves, and=
 potentially new algorithms, can&#39;t be gated on completion and widesprea=
d deployment of TLS 1.3.<br>
<br>
6) Drop-in replacement for the NIST curves is _not_ a requirement in this p=
rocess.<br>
<br>
7) I don&#39;t think the chairs are signing up for a full-on, NIST-style se=
lection competition and we should aim to keep things are lightweight as pos=
sible while still achieving the required level of rigor. I hope they will a=
ddress this point soon.<br>

</blockquote>
<br></div></div><div class=3D"HOEnZb"><div class=3D"h5">
______________________________<u></u>_________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/<u></u>listinfo/cfrg</a><br>
</div></div></blockquote></div><br></div>

--001a11339974c0702504ff441884--


From nobody Mon Jul 28 10:57:33 2014
Return-Path: <mike@shiftleft.org>
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 EDF431A0552 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:57:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 bX9AtgR13P8v for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:57:23 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C849B1A08EC for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:57:10 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id EDCFB3AA27; Mon, 28 Jul 2014 10:57:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406570222; bh=UW/hkQnGpIYHoptnDXyAh2Oz6KInFOKYa9VHhAMXz84=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Yo8FiW/FCNJkS6dvEDlyBJsX+ZAlHRw2DEsiYzfGsbTH7BLziZTSf+OHZp3eeLYO/ 1lCx6Oj6q3IAMEZTZkpMpnvHhclQpDie1zFnR8Q9mwZuTOyBDnM8JV0ZKadncu0nDP RyMaAMVS+HudeoTZ1SLTGv1JD3Ikut0Zs5uUXyp4=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
Date: Mon, 28 Jul 2014 10:57:10 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <419B47D0-2779-4463-A071-DA40F22C370F@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/MWMDRPi7Jd06QrJ9qFHhDiZZYWo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 17:57:25 -0000

Actually, one more thing: in constrained environments, you really want =
Schnorr instead of ECDSA.  That extra inversion mod r is a giant pain.  =
It=92s slow and often doesn=92t share code with anything.  Plus Schnorr =
can go down to 3/4 the size if necessary.

Cheers,
=97 Mike

On Jul 28, 2014, at 10:05 AM, Michael Hamburg <mike@shiftleft.org> =
wrote:

> You=92re going to need a hardware accelerator for some of these small =
things.  Eg for v2v safety, the real ask has to be =93fast and small and =
easy in hardware=94.  The best solution to this is binary curves, though =
they are considered slightly edgy right now.
>=20
> But yeah, 8-bit processor performance is important too.
>=20
> Cheers,
> =97 Mike
>=20
> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz =
<rgm-sec@htt-consult.com> wrote:
>=20
>> The whole world is NOT TLS.  For example I am working in IEEE 1609 =
which is Vehicle-to-vehicle safety communications and their need is for =
signed data objects that are quickly generated and verified (you have =
~100ms from the braking event to all the cars being able to act on that =
information).  I also work in IEEE 802.15.4 highly constrained devices =
(some much smaller than what many IETF groups accept as their lower =
limit).
>>=20
>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to =
change that.  Lower energy demand is much higher on the design plan than =
faster processing.  Also whatever is done will be running on fielded =
devices for the next 10 - 20 years.  Hardware acceleration is =
acceptable, but that could make in-field corrections impossible. =
Over-the-air firmware updates may also be impossible (802.15.4k is =
40kb/s) or only done in the dealership (yes!  another recall!).
>>=20
>> So getting on to my thoughts of curve selection requirements for the =
world of small:
>>=20
>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with =
32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own =
'certificate' and signature format as even the standard asn.1 is too =
wasteful of the very limited channel.  This applies also in 802.15.4 =
where adding another MAC frame might mean that the whole thing fails =
because now it is more likely that one frame got lost.
>>=20
>> 2) Easy/size of implementation.  There has been lots of chatter here =
about how NIST p256 can be implemented wrongly.  Here it is of greater =
concern, as it might require a physical swap-out to correct an =
implementation error.  Manufacturers look at the cost of a programmer to =
save 5K code cheaper than that extra 5K footprint.  So little code and =
easy to code.  This world is extremely price sensitive.
>>=20
>> 3) Performance on an 8 bit  processor.  Performance is measured in =
time and energy.  In-vehicle devices tend to have a ready source of =
electrons (except for tire gauges!), but some devices have limited =
battery (your front door lock) or NO battery (MEMEs energy harvesters on =
bridge stress sensors).  So low energy is as important as quickly done.  =
Here 10% faster IS 10% faster; and it could make a life-or-death =
difference. (In Positive Train Control, the automatics MUST take over if =
the human can no longer respond in time and bullet trains can take 7Km =
to stop safely)
>>=20
>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and =
in some cases written into regulations (urgh), so we have to still keep =
them working.  But if something 'new' and provably good makes a big =
difference in one of the previous needs I suspect there will be an =
attentive audience.
>>=20
>> I have tried to keep things general so as not too much to limit =
choices.  I never claimed to be a crytographer or to have the math =
skills to evaluate the various contenders.  Others working in this area =
might have their own reading on the needs of constrained =
devices/communications.
>>=20
>> But please just don't solve this for TLS on octo-core 64-bit systems.
>>=20
>>=20
>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>> Inspired by some comments from other and in hopes of returning to a =
more productive debate rather than the pointed back and forth, of which =
I am absolutely guilty, I'm suggesting a few constraints. These are not =
priority ordered and none of them deal with the math, instead focusing =
on process and practice.
>>>=20
>>> 1) As we are discussing this in the context of TLS, the performance =
of various kx options must be evaluated for ECDHE as typically deployed. =
ECDH is neither common nor recommended in the TLS BCP draft. In =
addition, I hope there will be discussion of benchmarking methodology, =
with the understanding the ultimate choice is for the CFRG chairs.
>>>=20
>>> 2) Performance must be measured using "production-quality" =
implementations. By this I mean implementations which employ the sort of =
techniques/optimizations appropriate for large scale deployment. This is =
specifically intended to exclude discussion of how simple or fast an =
implementation _could_ be, in favor of what they actually are in =
practice. However, the goal is to select curves which strike the best =
balance between various requirements, not simply the fastest.
>>>=20
>>> 3) The timeframe for a decision constrains the scope of this =
process. If a decision is desired within a few months, then it is =
difficult to include options beyond new curves. If a decision can take a =
year, new algorithms could be considered. Given the importance, impact, =
and contentiousness of new algorithms, I believe it would be difficult =
to complete a thorough, careful algorithm and curve selection process in =
a short amount of time.
>>>=20
>>> 4) The precise set of security levels needed should be specified in =
advance (whether by TLS or CFRG) and curve recommendations delivered =
together for all levels. A stated goal is to use these curves in new =
drafts, and it minimizes work to specify all security levels for a =
proposal in the same draft. This is strictly a practical matter =
recognizing the chairs and area directors have limited bandwidth and =
implementors can get everything done in a single go.
>>>=20
>>> 5) Selections must efficiently support TLS 1.2. Adoption of new =
curves, and potentially new algorithms, can't be gated on completion and =
widespread deployment of TLS 1.3.
>>>=20
>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in =
this process.
>>>=20
>>> 7) I don't think the chairs are signing up for a full-on, NIST-style =
selection competition and we should aim to keep things are lightweight =
as possible while still achieving the required level of rigor. I hope =
they will address this point soon.
>>=20
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Jul 28 10:59:01 2014
Return-Path: <hannes.tschofenig@gmx.net>
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 210111A0A81 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:58:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 t-FoUaqjnW54 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 10:58:53 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D32A11A0A8F for <cfrg@irtf.org>; Mon, 28 Jul 2014 10:58:13 -0700 (PDT)
Received: from [172.16.254.119] ([80.92.116.212]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MTjMy-1X381T3Z3o-00QPBG; Mon, 28 Jul 2014 19:58:12 +0200
Message-ID: <53D68F33.3010802@gmx.net>
Date: Mon, 28 Jul 2014 19:58:11 +0200
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>,  Robert Moskowitz <rgm-sec@htt-consult.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
In-Reply-To: <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
OpenPGP: id=4D776BC9
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KDuxmG8S6e1iRCJIcDOmdfDQnM8Ge6EB7"
X-Provags-ID: V03:K0:OubpG2Vzb7SFs/ZkvDuQfMiPiroUuGK/gbL+8aJIubIXXQbtXJH D4XwiVXQ/rtp7Uewl5AEfD3L+4btjPzcKrR8tSdDs6jfTAZxQrzc+8NQKPSamW8Gpxi2H5G vwrUeyUfEqscpMcXXT9wwZne2o/HmCRLBenN5UmPKFrFZVqq3ECsrIbIWHEIDEDYIZzCmUU 7dZZbifIStakB49WduSfw==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/14M7PEUI3m-K6mQDuTkpQvI4LXs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 17:58:58 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--KDuxmG8S6e1iRCJIcDOmdfDQnM8Ge6EB7
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Mike, Hi Bob,

Saying that you need hardware acceleration because of performance, RAM
and ROM size supported by some boards running 8-bit microcontrollers is
a bit lying to ourselves. The hardware acceleration might in fact
involve a chip with 32-bit.

8-bit microcontrollers have been great for devices that are not
connected to the Internet. For example, many early Arduino boards have
used a 8-bit microcontroller and their RAM/ROM configuration does not
make the use of crypto feasible to any realistic extend.

Now, we are past that point and it turns out that you get a Bluetooth
Smart chip that happens to have (internally to the chip) an 80kb stack
just for the actual link layer. New Arduino boards also run on 32-bit
processors and so do most of the IoT gear that gets brought to market
these days.

Also, the cost of 32-bit microcontrollers is sufficiently low that it
makes no sense to focus development effort on a 8-bit microcontroller
anymore. Just think about the software development cost here as well
(and not only on the pure hardware cost). While the world is indeed cost
sensitive real product managers look beyond the pure hardware cost and
also take other factors into account. Of course, everything depends on
the volume.

32-bit processors can also be energy efficient as the widespread
deployment shows. It is also important to note that energy consumption
does not only depend on the processor - it is the result of the entire
system. So, just focusing on the processor makes it a bit difficult to
have a useful discussion about energy efficiency. Since the IETF does
not focus on products / entire systems  I fear it will be very difficult
to have a meaningful conversation about this topic.

Since we have these discussions regularly in ACE I am planning to
schedule a Webex conference call to have one of my co-worker (who works
on hardware many years already) to explain what the industry trends are.

Having said that I am happy to take the results that come out of this
group and let them run on ARM processors to see what the performance is.

Ciao
Hannes

PS: Regarding the ASN.1 format I am wondering whether the IEEE has done
some more detailed analysis of the over-the-wire and the software
implementation cost. This would be useful for us in the ACE working group=
=2E



On 07/28/2014 07:05 PM, Michael Hamburg wrote:
> You=92re going to need a hardware accelerator for some of these small
> things.  Eg for v2v safety, the real ask has to be =93fast and small
> and easy in hardware=94.  The best solution to this is binary curves,
> though they are considered slightly edgy right now.
>=20
> But yeah, 8-bit processor performance is important too.
>=20
> Cheers, =97 Mike
>=20
> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz
> <rgm-sec@htt-consult.com> wrote:
>=20
>> The whole world is NOT TLS.  For example I am working in IEEE 1609
>> which is Vehicle-to-vehicle safety communications and their need is
>> for signed data objects that are quickly generated and verified
>> (you have ~100ms from the braking event to all the cars being able
>> to act on that information).  I also work in IEEE 802.15.4 highly
>> constrained devices (some much smaller than what many IETF groups
>> accept as their lower limit).
>>=20
>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to
>> change that.  Lower energy demand is much higher on the design plan
>> than faster processing.  Also whatever is done will be running on
>> fielded devices for the next 10 - 20 years.  Hardware acceleration
>> is acceptable, but that could make in-field corrections impossible.
>> Over-the-air firmware updates may also be impossible (802.15.4k is
>> 40kb/s) or only done in the dealership (yes!  another recall!).
>>=20
>> So getting on to my thoughts of curve selection requirements for
>> the world of small:
>>=20
>> 1) Low over-the-air demands.  Every BIT counts.  We have to live
>> with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has
>> its own 'certificate' and signature format as even the standard
>> asn.1 is too wasteful of the very limited channel.  This applies
>> also in 802.15.4 where adding another MAC frame might mean that the
>> whole thing fails because now it is more likely that one frame got
>> lost.
>>=20
>> 2) Easy/size of implementation.  There has been lots of chatter
>> here about how NIST p256 can be implemented wrongly.  Here it is of
>> greater concern, as it might require a physical swap-out to correct
>> an implementation error.  Manufacturers look at the cost of a
>> programmer to save 5K code cheaper than that extra 5K footprint.
>> So little code and easy to code.  This world is extremely price
>> sensitive.
>>=20
>> 3) Performance on an 8 bit  processor.  Performance is measured in
>> time and energy.  In-vehicle devices tend to have a ready source of
>> electrons (except for tire gauges!), but some devices have limited
>> battery (your front door lock) or NO battery (MEMEs energy
>> harvesters on bridge stress sensors).  So low energy is as
>> important as quickly done.  Here 10% faster IS 10% faster; and it
>> could make a life-or-death difference. (In Positive Train Control,
>> the automatics MUST take over if the human can no longer respond in
>> time and bullet trains can take 7Km to stop safely)
>>=20
>> 4) preserving ECDSA and ECDHE.  This is what is currently in use,
>> and in some cases written into regulations (urgh), so we have to
>> still keep them working.  But if something 'new' and provably good
>> makes a big difference in one of the previous needs I suspect there
>> will be an attentive audience.
>>=20
>> I have tried to keep things general so as not too much to limit
>> choices.  I never claimed to be a crytographer or to have the math
>> skills to evaluate the various contenders.  Others working in this
>> area might have their own reading on the needs of constrained
>> devices/communications.
>>=20
>> But please just don't solve this for TLS on octo-core 64-bit
>> systems.
>>=20
>>=20
>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>> Inspired by some comments from other and in hopes of returning to
>>> a more productive debate rather than the pointed back and forth,
>>> of which I am absolutely guilty, I'm suggesting a few
>>> constraints. These are not priority ordered and none of them deal
>>> with the math, instead focusing on process and practice.
>>>=20
>>> 1) As we are discussing this in the context of TLS, the
>>> performance of various kx options must be evaluated for ECDHE as
>>> typically deployed. ECDH is neither common nor recommended in the
>>> TLS BCP draft. In addition, I hope there will be discussion of
>>> benchmarking methodology, with the understanding the ultimate
>>> choice is for the CFRG chairs.
>>>=20
>>> 2) Performance must be measured using "production-quality"
>>> implementations. By this I mean implementations which employ the
>>> sort of techniques/optimizations appropriate for large scale
>>> deployment. This is specifically intended to exclude discussion
>>> of how simple or fast an implementation _could_ be, in favor of
>>> what they actually are in practice. However, the goal is to
>>> select curves which strike the best balance between various
>>> requirements, not simply the fastest.
>>>=20
>>> 3) The timeframe for a decision constrains the scope of this
>>> process. If a decision is desired within a few months, then it is
>>> difficult to include options beyond new curves. If a decision can
>>> take a year, new algorithms could be considered. Given the
>>> importance, impact, and contentiousness of new algorithms, I
>>> believe it would be difficult to complete a thorough, careful
>>> algorithm and curve selection process in a short amount of time.
>>>=20
>>> 4) The precise set of security levels needed should be specified
>>> in advance (whether by TLS or CFRG) and curve recommendations
>>> delivered together for all levels. A stated goal is to use these
>>> curves in new drafts, and it minimizes work to specify all
>>> security levels for a proposal in the same draft. This is
>>> strictly a practical matter recognizing the chairs and area
>>> directors have limited bandwidth and implementors can get
>>> everything done in a single go.
>>>=20
>>> 5) Selections must efficiently support TLS 1.2. Adoption of new
>>> curves, and potentially new algorithms, can't be gated on
>>> completion and widespread deployment of TLS 1.3.
>>>=20
>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement
>>> in this process.
>>>=20
>>> 7) I don't think the chairs are signing up for a full-on,
>>> NIST-style selection competition and we should aim to keep things
>>> are lightweight as possible while still achieving the required
>>> level of rigor. I hope they will address this point soon.
>>=20
>> _______________________________________________ Cfrg mailing list=20
>> Cfrg@irtf.org http://www.irtf.org/mailman/listinfo/cfrg
>=20
> _______________________________________________ Cfrg mailing list=20
> Cfrg@irtf.org http://www.irtf.org/mailman/listinfo/cfrg
>=20


--KDuxmG8S6e1iRCJIcDOmdfDQnM8Ge6EB7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQEcBAEBCgAGBQJT1o8zAAoJEGhJURNOOiAt26gIAJoQFx7QeMytVSDC1vDPGSsS
rokqcf4Rxjb1GsqfYiJcEgGv43tispNvx/B501o0qN+n+TisB6yaNNX06R2RgJG3
CdcssjN9MIGeEwS4fSfuaZWtcESG7+vpkN89wkS5f2gUcK2EurBvAyXZUCJT5T2M
nkIj5F4snDT1VKX69MJHWAE6A0MiUax2ixSsqyXzOgdBmOHFHSb4J3bUdF4O5pFe
g9IMWJ7yHWa4Gz752x7yD+pG7RVQ1hZrz6s4USik0BfXjIch8E5xnM+6Xe5o2x1S
9m3N25sg8AdXSnn5IiKyqjsWJNPX0fLEEhPsk1xt1A+Y2cMsmsH51FiylEca97U=
=bvG5
-----END PGP SIGNATURE-----

--KDuxmG8S6e1iRCJIcDOmdfDQnM8Ge6EB7--


From nobody Mon Jul 28 11:12:38 2014
Return-Path: <hannes.tschofenig@gmx.net>
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 D17DE1A0643 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 11:12:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 hhHSTLEMVkeR for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 11:12:24 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F19AF1A0646 for <cfrg@irtf.org>; Mon, 28 Jul 2014 11:12:23 -0700 (PDT)
Received: from [172.16.254.119] ([80.92.116.212]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MbOoG-1WtCcu0Dw4-00IkqA; Mon, 28 Jul 2014 20:12:16 +0200
Message-ID: <53D69280.2090208@gmx.net>
Date: Mon, 28 Jul 2014 20:12:16 +0200
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>,  Robert Moskowitz <rgm-sec@htt-consult.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <419B47D0-2779-4463-A071-DA40F22C370F@shiftleft.org>
In-Reply-To: <419B47D0-2779-4463-A071-DA40F22C370F@shiftleft.org>
OpenPGP: id=4D776BC9
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pSx6i7mUxEIg3STSLIDDj2JkT2x2i8i5S"
X-Provags-ID: V03:K0:VJ19fVeUL0P7i38Rf3VngiifHA8lb09xqvvUw+/81YPOcasPPEY h6bjwuoWBxauIr0xjPtx4l8fvXGr8wzeLVEEX4fhYKNvfKujhem6Ne03fCpbu6DPAMr3fh6 T5A2n+0/OLO2oQ4+CSI7hY1izHRJ1CfCDLITHUYUq4sxaV8LW/buMCgKwco39fneAIT4mQ1 nyBQUPrKmsNkDewsZrAyw==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/efE1Z-2FlUz7ma2g3zI6n9LHOr0
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 18:12:33 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--pSx6i7mUxEIg3STSLIDDj2JkT2x2i8i5S
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Mike, do you have data that supports your remark?

Ciao
Hannes


On 07/28/2014 07:57 PM, Michael Hamburg wrote:
> Actually, one more thing: in constrained environments, you really want =
Schnorr instead of ECDSA.  That extra inversion mod r is a giant pain.  I=
t=92s slow and often doesn=92t share code with anything.  Plus Schnorr ca=
n go down to 3/4 the size if necessary.
>=20
> Cheers,
> =97 Mike
>=20
> On Jul 28, 2014, at 10:05 AM, Michael Hamburg <mike@shiftleft.org> wrot=
e:
>=20
>> You=92re going to need a hardware accelerator for some of these small =
things.  Eg for v2v safety, the real ask has to be =93fast and small and =
easy in hardware=94.  The best solution to this is binary curves, though =
they are considered slightly edgy right now.
>>
>> But yeah, 8-bit processor performance is important too.
>>
>> Cheers,
>> =97 Mike
>>
>> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz <rgm-sec@htt-consult.com=
> wrote:
>>
>>> The whole world is NOT TLS.  For example I am working in IEEE 1609 wh=
ich is Vehicle-to-vehicle safety communications and their need is for sig=
ned data objects that are quickly generated and verified (you have ~100ms=
 from the braking event to all the cars being able to act on that informa=
tion).  I also work in IEEE 802.15.4 highly constrained devices (some muc=
h smaller than what many IETF groups accept as their lower limit).
>>>
>>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to chan=
ge that.  Lower energy demand is much higher on the design plan than fast=
er processing.  Also whatever is done will be running on fielded devices =
for the next 10 - 20 years.  Hardware acceleration is acceptable, but tha=
t could make in-field corrections impossible. Over-the-air firmware updat=
es may also be impossible (802.15.4k is 40kb/s) or only done in the deale=
rship (yes!  another recall!).
>>>
>>> So getting on to my thoughts of curve selection requirements for the =
world of small:
>>>
>>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with=
 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own 'ce=
rtificate' and signature format as even the standard asn.1 is too wastefu=
l of the very limited channel.  This applies also in 802.15.4 where addin=
g another MAC frame might mean that the whole thing fails because now it =
is more likely that one frame got lost.
>>>
>>> 2) Easy/size of implementation.  There has been lots of chatter here =
about how NIST p256 can be implemented wrongly.  Here it is of greater co=
ncern, as it might require a physical swap-out to correct an implementati=
on error.  Manufacturers look at the cost of a programmer to save 5K code=
 cheaper than that extra 5K footprint.  So little code and easy to code. =
 This world is extremely price sensitive.
>>>
>>> 3) Performance on an 8 bit  processor.  Performance is measured in ti=
me and energy.  In-vehicle devices tend to have a ready source of electro=
ns (except for tire gauges!), but some devices have limited battery (your=
 front door lock) or NO battery (MEMEs energy harvesters on bridge stress=
 sensors).  So low energy is as important as quickly done.  Here 10% fast=
er IS 10% faster; and it could make a life-or-death difference. (In Posit=
ive Train Control, the automatics MUST take over if the human can no long=
er respond in time and bullet trains can take 7Km to stop safely)
>>>
>>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and=
 in some cases written into regulations (urgh), so we have to still keep =
them working.  But if something 'new' and provably good makes a big diffe=
rence in one of the previous needs I suspect there will be an attentive a=
udience.
>>>
>>> I have tried to keep things general so as not too much to limit choic=
es.  I never claimed to be a crytographer or to have the math skills to e=
valuate the various contenders.  Others working in this area might have t=
heir own reading on the needs of constrained devices/communications.
>>>
>>> But please just don't solve this for TLS on octo-core 64-bit systems.=

>>>
>>>
>>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>>> Inspired by some comments from other and in hopes of returning to a =
more productive debate rather than the pointed back and forth, of which I=
 am absolutely guilty, I'm suggesting a few constraints. These are not pr=
iority ordered and none of them deal with the math, instead focusing on p=
rocess and practice.
>>>>
>>>> 1) As we are discussing this in the context of TLS, the performance =
of various kx options must be evaluated for ECDHE as typically deployed. =
ECDH is neither common nor recommended in the TLS BCP draft. In addition,=
 I hope there will be discussion of benchmarking methodology, with the un=
derstanding the ultimate choice is for the CFRG chairs.
>>>>
>>>> 2) Performance must be measured using "production-quality" implement=
ations. By this I mean implementations which employ the sort of technique=
s/optimizations appropriate for large scale deployment. This is specifica=
lly intended to exclude discussion of how simple or fast an implementatio=
n _could_ be, in favor of what they actually are in practice. However, th=
e goal is to select curves which strike the best balance between various =
requirements, not simply the fastest.
>>>>
>>>> 3) The timeframe for a decision constrains the scope of this process=
=2E If a decision is desired within a few months, then it is difficult to=
 include options beyond new curves. If a decision can take a year, new al=
gorithms could be considered. Given the importance, impact, and contentio=
usness of new algorithms, I believe it would be difficult to complete a t=
horough, careful algorithm and curve selection process in a short amount =
of time.
>>>>
>>>> 4) The precise set of security levels needed should be specified in =
advance (whether by TLS or CFRG) and curve recommendations delivered toge=
ther for all levels. A stated goal is to use these curves in new drafts, =
and it minimizes work to specify all security levels for a proposal in th=
e same draft. This is strictly a practical matter recognizing the chairs =
and area directors have limited bandwidth and implementors can get everyt=
hing done in a single go.
>>>>
>>>> 5) Selections must efficiently support TLS 1.2. Adoption of new curv=
es, and potentially new algorithms, can't be gated on completion and wide=
spread deployment of TLS 1.3.
>>>>
>>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in=
 this process.
>>>>
>>>> 7) I don't think the chairs are signing up for a full-on, NIST-style=
 selection competition and we should aim to keep things are lightweight a=
s possible while still achieving the required level of rigor. I hope they=
 will address this point soon.
>>>
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> http://www.irtf.org/mailman/listinfo/cfrg
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>=20


--pSx6i7mUxEIg3STSLIDDj2JkT2x2i8i5S
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQEcBAEBCgAGBQJT1pKAAAoJEGhJURNOOiAtQ6AH/3ZtslVD3fgZIm0w6hp/EsBy
48So75vWI79lBWJPpMTugIXPJNvNXH28t7Nu12wyVVD32lf0ZzydIuKJk3fKFuPd
v1UU2y0RFkKJQt9Qul/Q3s/P8rpnoPG5xHh3Hd9uUnAMTHr+v2c6k0+YEAkKqkR5
RoKHvPayh/sf2HgQj6zfab3EZ88m9DGK4IMEMg8nFfhVO6UFk/bGY4JpMKiG8+cJ
ZS2l9lFWaQP2kAp68zXoV7+eVYXB34rQHBMvhbxCOApKcoZPAWNkRdwP/MmnsEbZ
8OJNKKOitexwOCSBboTYqByWhvkQn3STORSduftDPTwb4Odk7ncJQz1durIkLAU=
=j2H7
-----END PGP SIGNATURE-----

--pSx6i7mUxEIg3STSLIDDj2JkT2x2i8i5S--


From nobody Mon Jul 28 11:13:35 2014
Return-Path: <rgm-sec@htt-consult.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 515191A0646 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 11:13:24 -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, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-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 2S-D8Q3cRqQ9 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 11:13:20 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 97CEE1A0A97 for <cfrg@irtf.org>; Mon, 28 Jul 2014 11:13:09 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 241ED62A80; Mon, 28 Jul 2014 18:13:09 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epsROajajR75; Mon, 28 Jul 2014 14:12:57 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id EC61062A7D; Mon, 28 Jul 2014 14:12:56 -0400 (EDT)
Message-ID: <53D692A8.6040105@htt-consult.com>
Date: Mon, 28 Jul 2014 14:12:56 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Michael Jenkins <m.jenkins.364706@gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com>
In-Reply-To: <CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------010709040701060703050205"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/FAFk7PYI0A-5KLutpvdM6HoQI4M
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 18:13:24 -0000

This is a multi-part message in MIME format.
--------------010709040701060703050205
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


On 07/28/2014 01:17 PM, Michael Jenkins wrote:
> Bob,
>
> I'm really glad to hear someone saying the whole world isn't TLS, and 
> IOT/constrained environments seems to be getting a lot of air-time, 
> which is good too. But while I was reading your email, I kept 
> thinking, where's the big-I Internet in this? If this is a high-speed, 
> low-power, limited range communication, what's the need for an 
> Internet protocol?

Some of it is NOT internet protocols.  IEEE 1609.4 WSMP is a MAC direct 
protocol.  In 1609, it is all about broadcast messages, as every car 
needs to receive it and there is NO time for any setup. Sign the 
message, get your channel allocation and send.  There is IP for some 
stuff, but most of that is V2R (roadside).  If we tackle a proper CANbus 
(now there is an interesting non-protocol) replacement, most of it will 
be a MAC message format.  And then there is SMS.  I can keep coming up 
with cases where there is no IP (IEEE 11073), or IP only occurs at the 
gateway (pacemaker (IEEE 802.15.6) to hospital).

The lack of an Internet layer, and maybe even a transport layer with 
only a message (session) layer or just MACsec, does not mean no 
security.  Security happens at many layers other than IP (IPsec) or 
Transport (TLS, DTLS, SRTP (or is that session)).

>
>
> On Mon, Jul 28, 2014 at 10:58 AM, Robert Moskowitz 
> <rgm-sec@htt-consult.com <mailto:rgm-sec@htt-consult.com>> wrote:
>
>     The whole world is NOT TLS.  For example I am working in IEEE 1609
>     which is Vehicle-to-vehicle safety communications and their need
>     is for signed data objects that are quickly generated and verified
>     (you have ~100ms from the braking event to all the cars being able
>     to act on that information).  I also work in IEEE 802.15.4 highly
>     constrained devices (some much smaller than what many IETF groups
>     accept as their lower limit).
>
>     8 bit processors are the norm, and NO, Dr. Moore is NOT going to
>     change that.  Lower energy demand is much higher on the design
>     plan than faster processing.  Also whatever is done will be
>     running on fielded devices for the next 10 - 20 years.  Hardware
>     acceleration is acceptable, but that could make in-field
>     corrections impossible. Over-the-air firmware updates may also be
>     impossible (802.15.4k is 40kb/s) or only done in the dealership
>     (yes!  another recall!).
>
>     So getting on to my thoughts of curve selection requirements for
>     the world of small:
>
>     1) Low over-the-air demands.  Every BIT counts.  We have to live
>     with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has
>     its own 'certificate' and signature format as even the standard
>     asn.1 is too wasteful of the very limited channel.  This applies
>     also in 802.15.4 where adding another MAC frame might mean that
>     the whole thing fails because now it is more likely that one frame
>     got lost.
>
>     2) Easy/size of implementation.  There has been lots of chatter
>     here about how NIST p256 can be implemented wrongly.  Here it is
>     of greater concern, as it might require a physical swap-out to
>     correct an implementation error.  Manufacturers look at the cost
>     of a programmer to save 5K code cheaper than that extra 5K
>     footprint.  So little code and easy to code.  This world is
>     extremely price sensitive.
>
>     3) Performance on an 8 bit  processor.  Performance is measured in
>     time and energy.  In-vehicle devices tend to have a ready source
>     of electrons (except for tire gauges!), but some devices have
>     limited battery (your front door lock) or NO battery (MEMEs energy
>     harvesters on bridge stress sensors).  So low energy is as
>     important as quickly done.  Here 10% faster IS 10% faster; and it
>     could make a life-or-death difference. (In Positive Train Control,
>     the automatics MUST take over if the human can no longer respond
>     in time and bullet trains can take 7Km to stop safely)
>
>     4) preserving ECDSA and ECDHE.  This is what is currently in use,
>     and in some cases written into regulations (urgh), so we have to
>     still keep them working.  But if something 'new' and provably good
>     makes a big difference in one of the previous needs I suspect
>     there will be an attentive audience.
>
>     I have tried to keep things general so as not too much to limit
>     choices.  I never claimed to be a crytographer or to have the math
>     skills to evaluate the various contenders.  Others working in this
>     area might have their own reading on the needs of constrained
>     devices/communications.
>
>     But please just don't solve this for TLS on octo-core 64-bit systems.
>
>
>
>     On 07/25/2014 01:10 AM, Benjamin Black wrote:
>
>         Inspired by some comments from other and in hopes of returning
>         to a more productive debate rather than the pointed back and
>         forth, of which I am absolutely guilty, I'm suggesting a few
>         constraints. These are not priority ordered and none of them
>         deal with the math, instead focusing on process and practice.
>
>         1) As we are discussing this in the context of TLS, the
>         performance of various kx options must be evaluated for ECDHE
>         as typically deployed. ECDH is neither common nor recommended
>         in the TLS BCP draft. In addition, I hope there will be
>         discussion of benchmarking methodology, with the understanding
>         the ultimate choice is for the CFRG chairs.
>
>         2) Performance must be measured using "production-quality"
>         implementations. By this I mean implementations which employ
>         the sort of techniques/optimizations appropriate for large
>         scale deployment. This is specifically intended to exclude
>         discussion of how simple or fast an implementation _could_ be,
>         in favor of what they actually are in practice. However, the
>         goal is to select curves which strike the best balance between
>         various requirements, not simply the fastest.
>
>         3) The timeframe for a decision constrains the scope of this
>         process. If a decision is desired within a few months, then it
>         is difficult to include options beyond new curves. If a
>         decision can take a year, new algorithms could be considered.
>         Given the importance, impact, and contentiousness of new
>         algorithms, I believe it would be difficult to complete a
>         thorough, careful algorithm and curve selection process in a
>         short amount of time.
>
>         4) The precise set of security levels needed should be
>         specified in advance (whether by TLS or CFRG) and curve
>         recommendations delivered together for all levels. A stated
>         goal is to use these curves in new drafts, and it minimizes
>         work to specify all security levels for a proposal in the same
>         draft. This is strictly a practical matter recognizing the
>         chairs and area directors have limited bandwidth and
>         implementors can get everything done in a single go.
>
>         5) Selections must efficiently support TLS 1.2. Adoption of
>         new curves, and potentially new algorithms, can't be gated on
>         completion and widespread deployment of TLS 1.3.
>
>         6) Drop-in replacement for the NIST curves is _not_ a
>         requirement in this process.
>
>         7) I don't think the chairs are signing up for a full-on,
>         NIST-style selection competition and we should aim to keep
>         things are lightweight as possible while still achieving the
>         required level of rigor. I hope they will address this point soon.
>
>
>     _______________________________________________
>     Cfrg mailing list
>     Cfrg@irtf.org <mailto:Cfrg@irtf.org>
>     http://www.irtf.org/mailman/listinfo/cfrg
>
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--------------010709040701060703050205
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 07/28/2014 01:17 PM, Michael Jenkins
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Bob,<br>
            <br>
          </div>
          I'm really glad to hear someone saying the whole world isn't
          TLS, and IOT/constrained environments seems to be getting a
          lot of air-time, which is good too. But while I was reading
          your email, I kept thinking, where's the big-I Internet in
          this? If this is a high-speed, low-power, limited range
          communication, what's the need for an Internet protocol?<br>
        </div>
      </div>
    </blockquote>
    <br>
    Some of it is NOT internet protocols.&nbsp; IEEE 1609.4 WSMP is a MAC
    direct protocol.&nbsp; In 1609, it is all about broadcast messages, as
    every car needs to receive it and there is NO time for any setup.&nbsp;
    Sign the message, get your channel allocation and send.&nbsp; There is IP
    for some stuff, but most of that is V2R (roadside).&nbsp; If we tackle a
    proper CANbus (now there is an interesting non-protocol)
    replacement, most of it will be a MAC message format.&nbsp; And then
    there is SMS.&nbsp; I can keep coming up with cases where there is no IP
    (IEEE 11073), or IP only occurs at the gateway (pacemaker (IEEE
    802.15.6) to hospital).<br>
    <br>
    The lack of an Internet layer, and maybe even a transport layer with
    only a message (session) layer or just MACsec, does not mean no
    security.&nbsp; Security happens at many layers other than IP (IPsec) or
    Transport (TLS, DTLS, SRTP (or is that session)).<br>
    <br>
    <blockquote
cite="mid:CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Jul 28, 2014 at 10:58 AM,
          Robert Moskowitz <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:rgm-sec@htt-consult.com" target="_blank">rgm-sec@htt-consult.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">The whole
            world is NOT TLS. &nbsp;For example I am working in IEEE 1609
            which is Vehicle-to-vehicle safety communications and their
            need is for signed data objects that are quickly generated
            and verified (you have ~100ms from the braking event to all
            the cars being able to act on that information). &nbsp;I also
            work in IEEE 802.15.4 highly constrained devices (some much
            smaller than what many IETF groups accept as their lower
            limit).<br>
            <br>
            8 bit processors are the norm, and NO, Dr. Moore is NOT
            going to change that. &nbsp;Lower energy demand is much higher on
            the design plan than faster processing. &nbsp;Also whatever is
            done will be running on fielded devices for the next 10 - 20
            years. &nbsp;Hardware acceleration is acceptable, but that could
            make in-field corrections impossible. Over-the-air firmware
            updates may also be impossible (802.15.4k is 40kb/s) or only
            done in the dealership (yes! &nbsp;another recall!).<br>
            <br>
            So getting on to my thoughts of curve selection requirements
            for the world of small:<br>
            <br>
            1) Low over-the-air demands. &nbsp;Every BIT counts. &nbsp;We have to
            live with 32 bytes; but 64 bytes may be too much. &nbsp;Oh, IEEE
            1609.2 has its own 'certificate' and signature format as
            even the standard asn.1 is too wasteful of the very limited
            channel. &nbsp;This applies also in 802.15.4 where adding another
            MAC frame might mean that the whole thing fails because now
            it is more likely that one frame got lost.<br>
            <br>
            2) Easy/size of implementation. &nbsp;There has been lots of
            chatter here about how NIST p256 can be implemented wrongly.
            &nbsp;Here it is of greater concern, as it might require a
            physical swap-out to correct an implementation error.
            &nbsp;Manufacturers look at the cost of a programmer to save 5K
            code cheaper than that extra 5K footprint. &nbsp;So little code
            and easy to code. &nbsp;This world is extremely price sensitive.<br>
            <br>
            3) Performance on an 8 bit &nbsp;processor. &nbsp;Performance is
            measured in time and energy. &nbsp;In-vehicle devices tend to
            have a ready source of electrons (except for tire gauges!),
            but some devices have limited battery (your front door lock)
            or NO battery (MEMEs energy harvesters on bridge stress
            sensors). &nbsp;So low energy is as important as quickly done.
            &nbsp;Here 10% faster IS 10% faster; and it could make a
            life-or-death difference. (In Positive Train Control, the
            automatics MUST take over if the human can no longer respond
            in time and bullet trains can take 7Km to stop safely)<br>
            <br>
            4) preserving ECDSA and ECDHE. &nbsp;This is what is currently in
            use, and in some cases written into regulations (urgh), so
            we have to still keep them working. &nbsp;But if something 'new'
            and provably good makes a big difference in one of the
            previous needs I suspect there will be an attentive
            audience.<br>
            <br>
            I have tried to keep things general so as not too much to
            limit choices. &nbsp;I never claimed to be a crytographer or to
            have the math skills to evaluate the various contenders.
            &nbsp;Others working in this area might have their own reading on
            the needs of constrained devices/communications.<br>
            <br>
            But please just don't solve this for TLS on octo-core 64-bit
            systems.
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                <br>
                On 07/25/2014 01:10 AM, Benjamin Black wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Inspired by some comments from other and in hopes of
                  returning to a more productive debate rather than the
                  pointed back and forth, of which I am absolutely
                  guilty, I'm suggesting a few constraints. These are
                  not priority ordered and none of them deal with the
                  math, instead focusing on process and practice.<br>
                  <br>
                  1) As we are discussing this in the context of TLS,
                  the performance of various kx options must be
                  evaluated for ECDHE as typically deployed. ECDH is
                  neither common nor recommended in the TLS BCP draft.
                  In addition, I hope there will be discussion of
                  benchmarking methodology, with the understanding the
                  ultimate choice is for the CFRG chairs.<br>
                  <br>
                  2) Performance must be measured using
                  "production-quality" implementations. By this I mean
                  implementations which employ the sort of
                  techniques/optimizations appropriate for large scale
                  deployment. This is specifically intended to exclude
                  discussion of how simple or fast an implementation
                  _could_ be, in favor of what they actually are in
                  practice. However, the goal is to select curves which
                  strike the best balance between various requirements,
                  not simply the fastest.<br>
                  <br>
                  3) The timeframe for a decision constrains the scope
                  of this process. If a decision is desired within a few
                  months, then it is difficult to include options beyond
                  new curves. If a decision can take a year, new
                  algorithms could be considered. Given the importance,
                  impact, and contentiousness of new algorithms, I
                  believe it would be difficult to complete a thorough,
                  careful algorithm and curve selection process in a
                  short amount of time.<br>
                  <br>
                  4) The precise set of security levels needed should be
                  specified in advance (whether by TLS or CFRG) and
                  curve recommendations delivered together for all
                  levels. A stated goal is to use these curves in new
                  drafts, and it minimizes work to specify all security
                  levels for a proposal in the same draft. This is
                  strictly a practical matter recognizing the chairs and
                  area directors have limited bandwidth and implementors
                  can get everything done in a single go.<br>
                  <br>
                  5) Selections must efficiently support TLS 1.2.
                  Adoption of new curves, and potentially new
                  algorithms, can't be gated on completion and
                  widespread deployment of TLS 1.3.<br>
                  <br>
                  6) Drop-in replacement for the NIST curves is _not_ a
                  requirement in this process.<br>
                  <br>
                  7) I don't think the chairs are signing up for a
                  full-on, NIST-style selection competition and we
                  should aim to keep things are lightweight as possible
                  while still achieving the required level of rigor. I
                  hope they will address this point soon.<br>
                </blockquote>
                <br>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                _______________________________________________<br>
                Cfrg mailing list<br>
                <a moz-do-not-send="true" href="mailto:Cfrg@irtf.org"
                  target="_blank">Cfrg@irtf.org</a><br>
                <a moz-do-not-send="true"
                  href="http://www.irtf.org/mailman/listinfo/cfrg"
                  target="_blank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------010709040701060703050205--


From nobody Mon Jul 28 11:52:10 2014
Return-Path: <stephen.farrell@cs.tcd.ie>
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 CB17E1A0A6D for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 11:52:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 JJt8uU3zO98l for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 11:52:07 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id 809DB1A083D for <cfrg@irtf.org>; Mon, 28 Jul 2014 11:52:07 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 8F639BE01; Mon, 28 Jul 2014 19:52:06 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wUBQrwG5xcP9; Mon, 28 Jul 2014 19:52:05 +0100 (IST)
Received: from [10.87.48.11] (unknown [86.44.64.225]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 433EABE4D; Mon, 28 Jul 2014 19:52:05 +0100 (IST)
Message-ID: <53D69BD5.1040904@cs.tcd.ie>
Date: Mon, 28 Jul 2014 19:52:05 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Robert Moskowitz <rgm-sec@htt-consult.com>,  Michael Jenkins <m.jenkins.364706@gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com> <53D692A8.6040105@htt-consult.com>
In-Reply-To: <53D692A8.6040105@htt-consult.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/IFWvLdo9EW8VAkfJz3HLsaQHbDM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 18:52:09 -0000

Hi Bob,

On 28/07/14 19:12, Robert Moskowitz wrote:
>>
> 
> Some of it is NOT internet protocols.  IEEE 1609.4 WSMP is a MAC direct
> protocol.  In 1609, it is all about broadcast messages, as every car
> needs to receive it and there is NO time for any setup. Sign the
> message, get your channel allocation and send.  There is IP for some
> stuff, but most of that is V2R (roadside).  If we tackle a proper CANbus
> (now there is an interesting non-protocol) replacement, most of it will
> be a MAC message format.  And then there is SMS.  I can keep coming up
> with cases where there is no IP (IEEE 11073), or IP only occurs at the
> gateway (pacemaker (IEEE 802.15.6) to hospital).
> 
> The lack of an Internet layer, and maybe even a transport layer with
> only a message (session) layer or just MACsec, does not mean no
> security.  Security happens at many layers other than IP (IPsec) or
> Transport (TLS, DTLS, SRTP (or is that session)).

I think it'll be interesting to see if the work done on new curves
here maps well or badly to lower layers. I do not think that's a
reason to hold up this work though - most lower layer ECC is afaik
done in h/w that is not amenable to change and for which I don't
know of any desire for change. If someone doing 1609 in h/w really
wanted some new curves that'd be interesting for sure, but again
I do not think we should hold up this work for that purpose. Given
the relative timing and differing modus operandi of the various
SDOs involved, trying to incorporate such requirements could easily
add 6 months or more of nothing but delay.

S.



From nobody Mon Jul 28 12:34:25 2014
Return-Path: <mike@shiftleft.org>
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 79ABD1A0460 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:34:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 pHo0vhF6ziTu for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:34:21 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BF57B1B2907 for <cfrg@irtf.org>; Mon, 28 Jul 2014 12:34:21 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 19B603AA27; Mon, 28 Jul 2014 12:34:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406576052; bh=fBOMNrGNJGOtEsjMTPmyn2ilTR9UYudwU9I2k4N0ZWY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ad99w+B+Teb0FWIVehRZY+NY1hH6EyepUrNyzth7c2WDlYtWQXYFTFZuaInR3Dipr OlX/xXeww5AmqF3dqsq1+liPUH0G0Vi0pcVjArwBNN+WcVf8uQW8tLlkDchlpNZNqS 11Q3xSrucYzZjpOkmsvXrx2UuZJ27G3pZxDEgV8g=
Content-Type: multipart/alternative; boundary="Apple-Mail=_582E39FD-2E53-43AE-9177-9880A0DF7B08"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53D69280.2090208@gmx.net>
Date: Mon, 28 Jul 2014 12:34:20 -0700
Message-Id: <6AA56990-224C-4742-9BD0-A68808B1C944@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <419B47D0-2779-4463-A071-DA40F22C370F@shiftleft.org> <53D69280.2090208@gmx.net>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/dHmbiK7eE23sKRHoqtlVRI8OniU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 19:34:24 -0000

--Apple-Mail=_582E39FD-2E53-43AE-9177-9880A0DF7B08
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Which remark?

Schnorr signatures are well-known to scale down to 3/4 the size, because =
they do not rely on collision resistance of the hash function.  See for =
example, http://www.neven.org/papers/schnorr.pdf.

That you need a hardware accelerator for v2v: well, partly =
company-confidential reasons.  But back of the envelope, an Edwards =
Schnorr sig verify is likely to cost around 3000 field multiplies at the =
256-bit level, give or take.  Maybe more if you=92re memory-constrained. =
 Weierstrass is slower.  ECDSA is slower.  Each 256-bit field multiply, =
implemented naively, costs 1024 MACs on an 8-bit machine.  That=92s 3 =
million MACs, and each one is going to cost multiple cycles because of =
load / store.  Call it 12 million cycles minimum, and you need a few =
milliseconds latency / inverse throughput tops.  Even a 16-bit micro =
isn=92t enough, since you=92re not running at a GHz.

That binary curves are smaller and faster in hardware: see any paper or =
spec sheet on them.  For example, =
http://www.ipcores.com/elliptic_curve_crypto_ip_core.htm



About inversion mod r, I=92ve implemented it.  A Schnorr verification =
routine does not need any math mod r, except that it may want to compute =
or check reduction mod r for speed / malleability reasons.  Depending on =
the exact form of Schnorr, it may not even need to reserialize points =
(just to check equality), so it may not need an inversion routine.  If =
it uses point compression, it will need a square root routine mod p, =
which can be overloaded into inversion mod p for almost no cost.  If the =
implementation uses inversion mod p, exponentiation is usually fast =
enough to be better than extra code for EGCD.

An ECDSA verify needs to invert and multiply mod r.  The inversion can =
be EGCD, but you would not have needed EGCD otherwise; or it can be a =
powering ladder.  The powering ladder would take 6% of the time if =
multiplication mod r is as fast as mod p.  But r isn=92t a special form =
prime, so actually it will take at least twice as long, at least 12%.  =
Also, the powering ladder will be a different subroutine from the one =
mod p for the inverse/square root, and r isn=92t sparse/special so it=92s =
a longer routine.

In hardware, you have to choose between implementing reasonably fast =
multiplication mod r and a powering ladder, or implementing EGCD.  Both =
of these add significant complexity, which is the hardware architect=92s =
enemy.  If you=92re using a binary curve, you could have verified with =
no integer math at all, but now you can=92t.

In at least two implementations of =93ECDSA=94, I've had the signer =
tweak the signature by inverting s, since there isn=92t any reason that =
the verifier should do it and it doesn=92t even cost the signer =
anything.  Obviously this doesn=92t change the security, but it breaks =
standard point formats.

Likewise Schnorr signing does not need an inversion routine mod r, just =
multiply and add/sub mod r.  The multiply is used only once, so it can =
be very slow.  But in ECDSA, an inversion is required.  It needs DPA =
protection, which will make it slower.  Signatures are in principle =
faster than verifies, taking perhaps under 1000 multiplies, so the =
powering ladder starts at about 20% if multiply mod r and mod p are the =
same, but actually it creeps up toward 35% because it=92s not a =
special-form prime, and perhaps even more because of DPA protection.  =
Again EGCD is an option, and it=92s not required otherwise, and now it =
has to be blinded for DPA protection as well.

All of this would be fine if ECDSA added security vs Schnorr.  In fact =
it adds nothing but complexity.

Cheers,
=97 Mike

On Jul 28, 2014, at 11:12 AM, Hannes Tschofenig =
<hannes.tschofenig@gmx.net> wrote:

> Mike, do you have data that supports your remark?
>=20
> Ciao
> Hannes
>=20
>=20
> On 07/28/2014 07:57 PM, Michael Hamburg wrote:
>> Actually, one more thing: in constrained environments, you really =
want Schnorr instead of ECDSA.  That extra inversion mod r is a giant =
pain.  It=92s slow and often doesn=92t share code with anything.  Plus =
Schnorr can go down to 3/4 the size if necessary.
>>=20
>> Cheers,
>> =97 Mike
>>=20
>> On Jul 28, 2014, at 10:05 AM, Michael Hamburg <mike@shiftleft.org> =
wrote:
>>=20
>>> You=92re going to need a hardware accelerator for some of these =
small things.  Eg for v2v safety, the real ask has to be =93fast and =
small and easy in hardware=94.  The best solution to this is binary =
curves, though they are considered slightly edgy right now.
>>>=20
>>> But yeah, 8-bit processor performance is important too.
>>>=20
>>> Cheers,
>>> =97 Mike
>>>=20
>>> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz =
<rgm-sec@htt-consult.com> wrote:
>>>=20
>>>> The whole world is NOT TLS.  For example I am working in IEEE 1609 =
which is Vehicle-to-vehicle safety communications and their need is for =
signed data objects that are quickly generated and verified (you have =
~100ms from the braking event to all the cars being able to act on that =
information).  I also work in IEEE 802.15.4 highly constrained devices =
(some much smaller than what many IETF groups accept as their lower =
limit).
>>>>=20
>>>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to =
change that.  Lower energy demand is much higher on the design plan than =
faster processing.  Also whatever is done will be running on fielded =
devices for the next 10 - 20 years.  Hardware acceleration is =
acceptable, but that could make in-field corrections impossible. =
Over-the-air firmware updates may also be impossible (802.15.4k is =
40kb/s) or only done in the dealership (yes!  another recall!).
>>>>=20
>>>> So getting on to my thoughts of curve selection requirements for =
the world of small:
>>>>=20
>>>> 1) Low over-the-air demands.  Every BIT counts.  We have to live =
with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its =
own 'certificate' and signature format as even the standard asn.1 is too =
wasteful of the very limited channel.  This applies also in 802.15.4 =
where adding another MAC frame might mean that the whole thing fails =
because now it is more likely that one frame got lost.
>>>>=20
>>>> 2) Easy/size of implementation.  There has been lots of chatter =
here about how NIST p256 can be implemented wrongly.  Here it is of =
greater concern, as it might require a physical swap-out to correct an =
implementation error.  Manufacturers look at the cost of a programmer to =
save 5K code cheaper than that extra 5K footprint.  So little code and =
easy to code.  This world is extremely price sensitive.
>>>>=20
>>>> 3) Performance on an 8 bit  processor.  Performance is measured in =
time and energy.  In-vehicle devices tend to have a ready source of =
electrons (except for tire gauges!), but some devices have limited =
battery (your front door lock) or NO battery (MEMEs energy harvesters on =
bridge stress sensors).  So low energy is as important as quickly done.  =
Here 10% faster IS 10% faster; and it could make a life-or-death =
difference. (In Positive Train Control, the automatics MUST take over if =
the human can no longer respond in time and bullet trains can take 7Km =
to stop safely)
>>>>=20
>>>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, =
and in some cases written into regulations (urgh), so we have to still =
keep them working.  But if something 'new' and provably good makes a big =
difference in one of the previous needs I suspect there will be an =
attentive audience.
>>>>=20
>>>> I have tried to keep things general so as not too much to limit =
choices.  I never claimed to be a crytographer or to have the math =
skills to evaluate the various contenders.  Others working in this area =
might have their own reading on the needs of constrained =
devices/communications.
>>>>=20
>>>> But please just don't solve this for TLS on octo-core 64-bit =
systems.
>>>>=20
>>>>=20
>>>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>>>> Inspired by some comments from other and in hopes of returning to =
a more productive debate rather than the pointed back and forth, of =
which I am absolutely guilty, I'm suggesting a few constraints. These =
are not priority ordered and none of them deal with the math, instead =
focusing on process and practice.
>>>>>=20
>>>>> 1) As we are discussing this in the context of TLS, the =
performance of various kx options must be evaluated for ECDHE as =
typically deployed. ECDH is neither common nor recommended in the TLS =
BCP draft. In addition, I hope there will be discussion of benchmarking =
methodology, with the understanding the ultimate choice is for the CFRG =
chairs.
>>>>>=20
>>>>> 2) Performance must be measured using "production-quality" =
implementations. By this I mean implementations which employ the sort of =
techniques/optimizations appropriate for large scale deployment. This is =
specifically intended to exclude discussion of how simple or fast an =
implementation _could_ be, in favor of what they actually are in =
practice. However, the goal is to select curves which strike the best =
balance between various requirements, not simply the fastest.
>>>>>=20
>>>>> 3) The timeframe for a decision constrains the scope of this =
process. If a decision is desired within a few months, then it is =
difficult to include options beyond new curves. If a decision can take a =
year, new algorithms could be considered. Given the importance, impact, =
and contentiousness of new algorithms, I believe it would be difficult =
to complete a thorough, careful algorithm and curve selection process in =
a short amount of time.
>>>>>=20
>>>>> 4) The precise set of security levels needed should be specified =
in advance (whether by TLS or CFRG) and curve recommendations delivered =
together for all levels. A stated goal is to use these curves in new =
drafts, and it minimizes work to specify all security levels for a =
proposal in the same draft. This is strictly a practical matter =
recognizing the chairs and area directors have limited bandwidth and =
implementors can get everything done in a single go.
>>>>>=20
>>>>> 5) Selections must efficiently support TLS 1.2. Adoption of new =
curves, and potentially new algorithms, can't be gated on completion and =
widespread deployment of TLS 1.3.
>>>>>=20
>>>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement =
in this process.
>>>>>=20
>>>>> 7) I don't think the chairs are signing up for a full-on, =
NIST-style selection competition and we should aim to keep things are =
lightweight as possible while still achieving the required level of =
rigor. I hope they will address this point soon.
>>>>=20
>>>> _______________________________________________
>>>> Cfrg mailing list
>>>> Cfrg@irtf.org
>>>> http://www.irtf.org/mailman/listinfo/cfrg
>>>=20
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> http://www.irtf.org/mailman/listinfo/cfrg
>>=20
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>>=20
>=20


--Apple-Mail=_582E39FD-2E53-43AE-9177-9880A0DF7B08
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>Which remark?</div><div><br></div><div>Schnorr =
signatures are well-known to scale down to 3/4 the size, because they do =
not rely on collision resistance of the hash function. &nbsp;See for =
example,&nbsp;<a =
href=3D"http://www.neven.org/papers/schnorr.pdf">http://www.neven.org/pape=
rs/schnorr.pdf</a>.</div><div><br></div><div>That you need a hardware =
accelerator for v2v: well, partly company-confidential reasons. =
&nbsp;But back of the envelope, an Edwards Schnorr sig verify is likely =
to cost around 3000 field multiplies at the 256-bit level, give or take. =
&nbsp;Maybe more if you=92re memory-constrained. &nbsp;Weierstrass is =
slower. &nbsp;ECDSA is slower. &nbsp;Each 256-bit field multiply, =
implemented naively, costs 1024 MACs on an 8-bit machine. &nbsp;That=92s =
3 million MACs, and each one is going to cost multiple cycles because of =
load / store. &nbsp;Call it 12 million cycles minimum, and you need a =
few milliseconds latency / inverse throughput tops. &nbsp;Even a 16-bit =
micro isn=92t enough, since you=92re not running at a =
GHz.</div><div><br></div><div>That binary curves are smaller and faster =
in hardware: see any paper or spec sheet on them. &nbsp;For =
example,&nbsp;<a =
href=3D"http://www.ipcores.com/elliptic_curve_crypto_ip_core.htm">http://w=
ww.ipcores.com/elliptic_curve_crypto_ip_core.htm</a></div><div><br></div><=
div><br></div><div><br></div><div>About inversion mod r, I=92ve =
implemented it. &nbsp;A Schnorr verification routine does not need any =
math mod r, except that it may want to compute or check reduction mod r =
for speed / malleability reasons. &nbsp;Depending on the exact form of =
Schnorr, it may not even need to reserialize points (just to check =
equality), so it may not need an inversion routine. &nbsp;If it uses =
point compression, it will need a square root routine mod p, which can =
be overloaded into inversion mod p for almost no cost. &nbsp;If the =
implementation uses inversion mod p, exponentiation is usually fast =
enough to be better than extra code for =
EGCD.</div><div><br></div><div>An ECDSA verify needs to invert and =
multiply mod r. &nbsp;The inversion can be EGCD, but you would not have =
needed EGCD otherwise; or it can be a powering ladder. &nbsp;The =
powering ladder would take 6% of the time if multiplication mod r is as =
fast as mod p. &nbsp;But r isn=92t a special form prime, so actually it =
will take at least twice as long, at least 12%. &nbsp;Also, the powering =
ladder will be a different subroutine from the one mod p for the =
inverse/square root, and r isn=92t sparse/special so it=92s a longer =
routine.</div><div><br></div><div>In hardware, you have to choose =
between implementing reasonably fast multiplication mod r and a powering =
ladder, or implementing EGCD. &nbsp;Both of these add significant =
complexity, which is the hardware architect=92s enemy. &nbsp;If you=92re =
using a binary curve, you could have verified with no integer math at =
all, but now you can=92t.</div><div><br></div><div>In at least two =
implementations of =93ECDSA=94, I've had the signer tweak the signature =
by inverting s, since there isn=92t any reason that the verifier should =
do it and it doesn=92t even cost the signer anything. &nbsp;Obviously =
this doesn=92t change the security, but it breaks standard point =
formats.</div><div><br></div><div>Likewise Schnorr signing does not need =
an inversion routine mod r, just multiply and add/sub mod r. &nbsp;The =
multiply is used only once, so it can be very slow. &nbsp;But in ECDSA, =
an inversion is required. &nbsp;It needs DPA protection, which will make =
it slower. &nbsp;Signatures are in principle faster than verifies, =
taking perhaps under 1000 multiplies, so the powering ladder starts at =
about 20% if multiply mod r and mod p are the same, but actually it =
creeps up toward 35% because it=92s not a special-form prime, and =
perhaps even more because of DPA protection. &nbsp;Again EGCD is an =
option, and it=92s not required otherwise, and now it has to be blinded =
for DPA protection as well.</div><div><br></div><div>All of this would =
be fine if ECDSA added security vs Schnorr. &nbsp;In fact it adds =
nothing but complexity.</div><div><br></div><div>Cheers,</div><div>=97 =
Mike</div><div><br></div><div><div>On Jul 28, 2014, at 11:12 AM, Hannes =
Tschofenig &lt;<a =
href=3D"mailto:hannes.tschofenig@gmx.net">hannes.tschofenig@gmx.net</a>&gt=
; wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">Mike, do you have data that supports your =
remark?<br><br>Ciao<br>Hannes<br><br><br>On 07/28/2014 07:57 PM, Michael =
Hamburg wrote:<br><blockquote type=3D"cite">Actually, one more thing: in =
constrained environments, you really want Schnorr instead of ECDSA. =
&nbsp;That extra inversion mod r is a giant pain. &nbsp;It=92s slow and =
often doesn=92t share code with anything. &nbsp;Plus Schnorr can go down =
to 3/4 the size if necessary.<br><br>Cheers,<br>=97 Mike<br><br>On Jul =
28, 2014, at 10:05 AM, Michael Hamburg &lt;<a =
href=3D"mailto:mike@shiftleft.org">mike@shiftleft.org</a>&gt; =
wrote:<br><br><blockquote type=3D"cite">You=92re going to need a =
hardware accelerator for some of these small things. &nbsp;Eg for v2v =
safety, the real ask has to be =93fast and small and easy in hardware=94. =
&nbsp;The best solution to this is binary curves, though they are =
considered slightly edgy right now.<br><br>But yeah, 8-bit processor =
performance is important too.<br><br>Cheers,<br>=97 Mike<br><br>On Jul =
28, 2014, at 7:58 AM, Robert Moskowitz &lt;<a =
href=3D"mailto:rgm-sec@htt-consult.com">rgm-sec@htt-consult.com</a>&gt; =
wrote:<br><br><blockquote type=3D"cite">The whole world is NOT TLS. =
&nbsp;For example I am working in IEEE 1609 which is Vehicle-to-vehicle =
safety communications and their need is for signed data objects that are =
quickly generated and verified (you have ~100ms from the braking event =
to all the cars being able to act on that information). &nbsp;I also =
work in IEEE 802.15.4 highly constrained devices (some much smaller than =
what many IETF groups accept as their lower limit).<br><br>8 bit =
processors are the norm, and NO, Dr. Moore is NOT going to change that. =
&nbsp;Lower energy demand is much higher on the design plan than faster =
processing. &nbsp;Also whatever is done will be running on fielded =
devices for the next 10 - 20 years. &nbsp;Hardware acceleration is =
acceptable, but that could make in-field corrections impossible. =
Over-the-air firmware updates may also be impossible (802.15.4k is =
40kb/s) or only done in the dealership (yes! &nbsp;another =
recall!).<br><br>So getting on to my thoughts of curve selection =
requirements for the world of small:<br><br>1) Low over-the-air demands. =
&nbsp;Every BIT counts. &nbsp;We have to live with 32 bytes; but 64 =
bytes may be too much. &nbsp;Oh, IEEE 1609.2 has its own 'certificate' =
and signature format as even the standard asn.1 is too wasteful of the =
very limited channel. &nbsp;This applies also in 802.15.4 where adding =
another MAC frame might mean that the whole thing fails because now it =
is more likely that one frame got lost.<br><br>2) Easy/size of =
implementation. &nbsp;There has been lots of chatter here about how NIST =
p256 can be implemented wrongly. &nbsp;Here it is of greater concern, as =
it might require a physical swap-out to correct an implementation error. =
&nbsp;Manufacturers look at the cost of a programmer to save 5K code =
cheaper than that extra 5K footprint. &nbsp;So little code and easy to =
code. &nbsp;This world is extremely price sensitive.<br><br>3) =
Performance on an 8 bit &nbsp;processor. &nbsp;Performance is measured =
in time and energy. &nbsp;In-vehicle devices tend to have a ready source =
of electrons (except for tire gauges!), but some devices have limited =
battery (your front door lock) or NO battery (MEMEs energy harvesters on =
bridge stress sensors). &nbsp;So low energy is as important as quickly =
done. &nbsp;Here 10% faster IS 10% faster; and it could make a =
life-or-death difference. (In Positive Train Control, the automatics =
MUST take over if the human can no longer respond in time and bullet =
trains can take 7Km to stop safely)<br><br>4) preserving ECDSA and =
ECDHE. &nbsp;This is what is currently in use, and in some cases written =
into regulations (urgh), so we have to still keep them working. =
&nbsp;But if something 'new' and provably good makes a big difference in =
one of the previous needs I suspect there will be an attentive =
audience.<br><br>I have tried to keep things general so as not too much =
to limit choices. &nbsp;I never claimed to be a crytographer or to have =
the math skills to evaluate the various contenders. &nbsp;Others working =
in this area might have their own reading on the needs of constrained =
devices/communications.<br><br>But please just don't solve this for TLS =
on octo-core 64-bit systems.<br><br><br>On 07/25/2014 01:10 AM, Benjamin =
Black wrote:<br><blockquote type=3D"cite">Inspired by some comments from =
other and in hopes of returning to a more productive debate rather than =
the pointed back and forth, of which I am absolutely guilty, I'm =
suggesting a few constraints. These are not priority ordered and none of =
them deal with the math, instead focusing on process and =
practice.<br><br>1) As we are discussing this in the context of TLS, the =
performance of various kx options must be evaluated for ECDHE as =
typically deployed. ECDH is neither common nor recommended in the TLS =
BCP draft. In addition, I hope there will be discussion of benchmarking =
methodology, with the understanding the ultimate choice is for the CFRG =
chairs.<br><br>2) Performance must be measured using =
"production-quality" implementations. By this I mean implementations =
which employ the sort of techniques/optimizations appropriate for large =
scale deployment. This is specifically intended to exclude discussion of =
how simple or fast an implementation _could_ be, in favor of what they =
actually are in practice. However, the goal is to select curves which =
strike the best balance between various requirements, not simply the =
fastest.<br><br>3) The timeframe for a decision constrains the scope of =
this process. If a decision is desired within a few months, then it is =
difficult to include options beyond new curves. If a decision can take a =
year, new algorithms could be considered. Given the importance, impact, =
and contentiousness of new algorithms, I believe it would be difficult =
to complete a thorough, careful algorithm and curve selection process in =
a short amount of time.<br><br>4) The precise set of security levels =
needed should be specified in advance (whether by TLS or CFRG) and curve =
recommendations delivered together for all levels. A stated goal is to =
use these curves in new drafts, and it minimizes work to specify all =
security levels for a proposal in the same draft. This is strictly a =
practical matter recognizing the chairs and area directors have limited =
bandwidth and implementors can get everything done in a single =
go.<br><br>5) Selections must efficiently support TLS 1.2. Adoption of =
new curves, and potentially new algorithms, can't be gated on completion =
and widespread deployment of TLS 1.3.<br><br>6) Drop-in replacement for =
the NIST curves is _not_ a requirement in this process.<br><br>7) I =
don't think the chairs are signing up for a full-on, NIST-style =
selection competition and we should aim to keep things are lightweight =
as possible while still achieving the required level of rigor. I hope =
they will address this point =
soon.<br></blockquote><br>_______________________________________________<=
br>Cfrg mailing list<br><a =
href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>http://www.irtf.org/mai=
lman/listinfo/cfrg<br></blockquote><br>___________________________________=
____________<br>Cfrg mailing list<br><a =
href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>http://www.irtf.org/mai=
lman/listinfo/cfrg<br></blockquote><br>___________________________________=
____________<br>Cfrg mailing list<br><a =
href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>http://www.irtf.org/mai=
lman/listinfo/cfrg<br><br></blockquote><br></blockquote></div><br></body><=
/html>=

--Apple-Mail=_582E39FD-2E53-43AE-9177-9880A0DF7B08--


From nobody Mon Jul 28 12:36:42 2014
Return-Path: <rgm-sec@htt-consult.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 5FC071A0409 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:36:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 HTCoPOSK0o2n for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:36:37 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 6B0E61A03E8 for <cfrg@irtf.org>; Mon, 28 Jul 2014 12:36:37 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id F3E6062A82; Mon, 28 Jul 2014 19:36:36 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7qGj0mZVGztv; Mon, 28 Jul 2014 15:36:26 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id 83C3162A80; Mon, 28 Jul 2014 15:36:26 -0400 (EDT)
Message-ID: <53D6A63A.4050106@htt-consult.com>
Date: Mon, 28 Jul 2014 15:36:26 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>,  Michael Hamburg <mike@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <53D68F33.3010802@gmx.net>
In-Reply-To: <53D68F33.3010802@gmx.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/VuRVhRGv--6HUrS6pj-JgBjyaKA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 19:36:39 -0000

On 07/28/2014 01:58 PM, Hannes Tschofenig wrote:
> Ciao
> Hannes
>
> PS: Regarding the ASN.1 format I am wondering whether the IEEE has done
> some more detailed analysis of the over-the-wire and the software
> implementation cost. This would be useful for us in the ACE working group.

Actually, I mispoke a bit on this.  ASN.1 can be a syntax to describe 
data.  It is the BER that defines what is really in the object.  So 1609 
as developing a task to create an ASN.1 discription of their format and 
the specific BER to create it.  ETSI will be much happier once this is done.



From nobody Mon Jul 28 12:42:05 2014
Return-Path: <rgm-sec@htt-consult.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 97FB81A0B17 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:42:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 dkxvxZAgdrlC for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:41:58 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 765C51A036B for <cfrg@irtf.org>; Mon, 28 Jul 2014 12:41:58 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 0BE5262ADD; Mon, 28 Jul 2014 19:41:58 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2yZyK1QgOcks; Mon, 28 Jul 2014 15:41:46 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id C48DD62B85; Mon, 28 Jul 2014 15:41:45 -0400 (EDT)
Message-ID: <53D6A779.1050005@htt-consult.com>
Date: Mon, 28 Jul 2014 15:41:45 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>,  Michael Hamburg <mike@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <53D68F33.3010802@gmx.net>
In-Reply-To: <53D68F33.3010802@gmx.net>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/5gyWnmOaZhI5PW98i2d2n1e_kfg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 19:42:02 -0000

On 07/28/2014 01:58 PM, Hannes Tschofenig wrote:
> Hi Mike, Hi Bob,
>
> Saying that you need hardware acceleration because of performance, RAM
> and ROM size supported by some boards running 8-bit microcontrollers is
> a bit lying to ourselves. The hardware acceleration might in fact
> involve a chip with 32-bit.

It is nice to state this and your following items. Yet 8 bit devices are 
being shipped at a greater rate and beind designed in smaller 
footprints. These have network connections; not necessary IP. I am 
seeing new designs limited to 32K memory. I had one vendor just last 
fall state that was a stretch for them (MEMEs powered).

The thing I have learned about things on the internet is they come and 
will continue to come in all sorts of sizes and still be considered things.

And yes, specialized hardware might deviate from a nice clean 8 bit 
architecture. I saw one design that just addressed the large addition 
item. But everywhere else it was 8 bits.

>
> 8-bit microcontrollers have been great for devices that are not
> connected to the Internet. For example, many early Arduino boards have
> used a 8-bit microcontroller and their RAM/ROM configuration does not
> make the use of crypto feasible to any realistic extend.
>
> Now, we are past that point and it turns out that you get a Bluetooth
> Smart chip that happens to have (internally to the chip) an 80kb stack
> just for the actual link layer. New Arduino boards also run on 32-bit
> processors and so do most of the IoT gear that gets brought to market
> these days.
>
> Also, the cost of 32-bit microcontrollers is sufficiently low that it
> makes no sense to focus development effort on a 8-bit microcontroller
> anymore. Just think about the software development cost here as well
> (and not only on the pure hardware cost). While the world is indeed cost
> sensitive real product managers look beyond the pure hardware cost and
> also take other factors into account. Of course, everything depends on
> the volume.
>
> 32-bit processors can also be energy efficient as the widespread
> deployment shows. It is also important to note that energy consumption
> does not only depend on the processor - it is the result of the entire
> system. So, just focusing on the processor makes it a bit difficult to
> have a useful discussion about energy efficiency. Since the IETF does
> not focus on products / entire systems  I fear it will be very difficult
> to have a meaningful conversation about this topic.
>
> Since we have these discussions regularly in ACE I am planning to
> schedule a Webex conference call to have one of my co-worker (who works
> on hardware many years already) to explain what the industry trends are.
>
> Having said that I am happy to take the results that come out of this
> group and let them run on ARM processors to see what the performance is.
>
> Ciao
> Hannes
>
> PS: Regarding the ASN.1 format I am wondering whether the IEEE has done
> some more detailed analysis of the over-the-wire and the software
> implementation cost. This would be useful for us in the ACE working group.
>
>
>
> On 07/28/2014 07:05 PM, Michael Hamburg wrote:
>> You’re going to need a hardware accelerator for some of these small
>> things.  Eg for v2v safety, the real ask has to be “fast and small
>> and easy in hardware”.  The best solution to this is binary curves,
>> though they are considered slightly edgy right now.
>>
>> But yeah, 8-bit processor performance is important too.
>>
>> Cheers, — Mike
>>
>> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz
>> <rgm-sec@htt-consult.com> wrote:
>>
>>> The whole world is NOT TLS.  For example I am working in IEEE 1609
>>> which is Vehicle-to-vehicle safety communications and their need is
>>> for signed data objects that are quickly generated and verified
>>> (you have ~100ms from the braking event to all the cars being able
>>> to act on that information).  I also work in IEEE 802.15.4 highly
>>> constrained devices (some much smaller than what many IETF groups
>>> accept as their lower limit).
>>>
>>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to
>>> change that.  Lower energy demand is much higher on the design plan
>>> than faster processing.  Also whatever is done will be running on
>>> fielded devices for the next 10 - 20 years.  Hardware acceleration
>>> is acceptable, but that could make in-field corrections impossible.
>>> Over-the-air firmware updates may also be impossible (802.15.4k is
>>> 40kb/s) or only done in the dealership (yes!  another recall!).
>>>
>>> So getting on to my thoughts of curve selection requirements for
>>> the world of small:
>>>
>>> 1) Low over-the-air demands.  Every BIT counts.  We have to live
>>> with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has
>>> its own 'certificate' and signature format as even the standard
>>> asn.1 is too wasteful of the very limited channel.  This applies
>>> also in 802.15.4 where adding another MAC frame might mean that the
>>> whole thing fails because now it is more likely that one frame got
>>> lost.
>>>
>>> 2) Easy/size of implementation.  There has been lots of chatter
>>> here about how NIST p256 can be implemented wrongly.  Here it is of
>>> greater concern, as it might require a physical swap-out to correct
>>> an implementation error.  Manufacturers look at the cost of a
>>> programmer to save 5K code cheaper than that extra 5K footprint.
>>> So little code and easy to code.  This world is extremely price
>>> sensitive.
>>>
>>> 3) Performance on an 8 bit  processor.  Performance is measured in
>>> time and energy.  In-vehicle devices tend to have a ready source of
>>> electrons (except for tire gauges!), but some devices have limited
>>> battery (your front door lock) or NO battery (MEMEs energy
>>> harvesters on bridge stress sensors).  So low energy is as
>>> important as quickly done.  Here 10% faster IS 10% faster; and it
>>> could make a life-or-death difference. (In Positive Train Control,
>>> the automatics MUST take over if the human can no longer respond in
>>> time and bullet trains can take 7Km to stop safely)
>>>
>>> 4) preserving ECDSA and ECDHE.  This is what is currently in use,
>>> and in some cases written into regulations (urgh), so we have to
>>> still keep them working.  But if something 'new' and provably good
>>> makes a big difference in one of the previous needs I suspect there
>>> will be an attentive audience.
>>>
>>> I have tried to keep things general so as not too much to limit
>>> choices.  I never claimed to be a crytographer or to have the math
>>> skills to evaluate the various contenders.  Others working in this
>>> area might have their own reading on the needs of constrained
>>> devices/communications.
>>>
>>> But please just don't solve this for TLS on octo-core 64-bit
>>> systems.
>>>
>>>
>>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>>> Inspired by some comments from other and in hopes of returning to
>>>> a more productive debate rather than the pointed back and forth,
>>>> of which I am absolutely guilty, I'm suggesting a few
>>>> constraints. These are not priority ordered and none of them deal
>>>> with the math, instead focusing on process and practice.
>>>>
>>>> 1) As we are discussing this in the context of TLS, the
>>>> performance of various kx options must be evaluated for ECDHE as
>>>> typically deployed. ECDH is neither common nor recommended in the
>>>> TLS BCP draft. In addition, I hope there will be discussion of
>>>> benchmarking methodology, with the understanding the ultimate
>>>> choice is for the CFRG chairs.
>>>>
>>>> 2) Performance must be measured using "production-quality"
>>>> implementations. By this I mean implementations which employ the
>>>> sort of techniques/optimizations appropriate for large scale
>>>> deployment. This is specifically intended to exclude discussion
>>>> of how simple or fast an implementation _could_ be, in favor of
>>>> what they actually are in practice. However, the goal is to
>>>> select curves which strike the best balance between various
>>>> requirements, not simply the fastest.
>>>>
>>>> 3) The timeframe for a decision constrains the scope of this
>>>> process. If a decision is desired within a few months, then it is
>>>> difficult to include options beyond new curves. If a decision can
>>>> take a year, new algorithms could be considered. Given the
>>>> importance, impact, and contentiousness of new algorithms, I
>>>> believe it would be difficult to complete a thorough, careful
>>>> algorithm and curve selection process in a short amount of time.
>>>>
>>>> 4) The precise set of security levels needed should be specified
>>>> in advance (whether by TLS or CFRG) and curve recommendations
>>>> delivered together for all levels. A stated goal is to use these
>>>> curves in new drafts, and it minimizes work to specify all
>>>> security levels for a proposal in the same draft. This is
>>>> strictly a practical matter recognizing the chairs and area
>>>> directors have limited bandwidth and implementors can get
>>>> everything done in a single go.
>>>>
>>>> 5) Selections must efficiently support TLS 1.2. Adoption of new
>>>> curves, and potentially new algorithms, can't be gated on
>>>> completion and widespread deployment of TLS 1.3.
>>>>
>>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement
>>>> in this process.
>>>>
>>>> 7) I don't think the chairs are signing up for a full-on,
>>>> NIST-style selection competition and we should aim to keep things
>>>> are lightweight as possible while still achieving the required
>>>> level of rigor. I hope they will address this point soon.
>>> _______________________________________________ Cfrg mailing list
>>> Cfrg@irtf.org http://www.irtf.org/mailman/listinfo/cfrg
>> _______________________________________________ Cfrg mailing list
>> Cfrg@irtf.org http://www.irtf.org/mailman/listinfo/cfrg
>>


From nobody Mon Jul 28 12:44:55 2014
Return-Path: <rgm-sec@htt-consult.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 4D41C1A854B for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:44:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 B8QdrbaYHGcP for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 12:44:50 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 007E71A034F for <cfrg@irtf.org>; Mon, 28 Jul 2014 12:44:50 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 8F6DC62A9F; Mon, 28 Jul 2014 19:44:49 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2BfSRX-iRoxC; Mon, 28 Jul 2014 15:44:38 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id 6035A62A84; Mon, 28 Jul 2014 15:44:38 -0400 (EDT)
Message-ID: <53D6A825.3080307@htt-consult.com>
Date: Mon, 28 Jul 2014 15:44:37 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
In-Reply-To: <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ggNrazGI-RsPkpID2-d1k6cix8w
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 19:44:53 -0000

On 07/28/2014 01:05 PM, Michael Hamburg wrote:
> You’re going to need a hardware accelerator for some of these small things.  Eg for v2v safety, the real ask has to be “fast and small and easy in hardware”.  The best solution to this is binary curves, though they are considered slightly edgy right now.

I cannot parse 'edgy right now'.  Is there a technical definition of this?



>
> But yeah, 8-bit processor performance is important too.
>
> Cheers,
> — Mike
>
> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz <rgm-sec@htt-consult.com> wrote:
>
>> The whole world is NOT TLS.  For example I am working in IEEE 1609 which is Vehicle-to-vehicle safety communications and their need is for signed data objects that are quickly generated and verified (you have ~100ms from the braking event to all the cars being able to act on that information).  I also work in IEEE 802.15.4 highly constrained devices (some much smaller than what many IETF groups accept as their lower limit).
>>
>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to change that.  Lower energy demand is much higher on the design plan than faster processing.  Also whatever is done will be running on fielded devices for the next 10 - 20 years.  Hardware acceleration is acceptable, but that could make in-field corrections impossible. Over-the-air firmware updates may also be impossible (802.15.4k is 40kb/s) or only done in the dealership (yes!  another recall!).
>>
>> So getting on to my thoughts of curve selection requirements for the world of small:
>>
>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own 'certificate' and signature format as even the standard asn.1 is too wasteful of the very limited channel.  This applies also in 802.15.4 where adding another MAC frame might mean that the whole thing fails because now it is more likely that one frame got lost.
>>
>> 2) Easy/size of implementation.  There has been lots of chatter here about how NIST p256 can be implemented wrongly.  Here it is of greater concern, as it might require a physical swap-out to correct an implementation error.  Manufacturers look at the cost of a programmer to save 5K code cheaper than that extra 5K footprint.  So little code and easy to code.  This world is extremely price sensitive.
>>
>> 3) Performance on an 8 bit  processor.  Performance is measured in time and energy.  In-vehicle devices tend to have a ready source of electrons (except for tire gauges!), but some devices have limited battery (your front door lock) or NO battery (MEMEs energy harvesters on bridge stress sensors).  So low energy is as important as quickly done.  Here 10% faster IS 10% faster; and it could make a life-or-death difference. (In Positive Train Control, the automatics MUST take over if the human can no longer respond in time and bullet trains can take 7Km to stop safely)
>>
>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and in some cases written into regulations (urgh), so we have to still keep them working.  But if something 'new' and provably good makes a big difference in one of the previous needs I suspect there will be an attentive audience.
>>
>> I have tried to keep things general so as not too much to limit choices.  I never claimed to be a crytographer or to have the math skills to evaluate the various contenders.  Others working in this area might have their own reading on the needs of constrained devices/communications.
>>
>> But please just don't solve this for TLS on octo-core 64-bit systems.
>>
>>
>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>> Inspired by some comments from other and in hopes of returning to a more productive debate rather than the pointed back and forth, of which I am absolutely guilty, I'm suggesting a few constraints. These are not priority ordered and none of them deal with the math, instead focusing on process and practice.
>>>
>>> 1) As we are discussing this in the context of TLS, the performance of various kx options must be evaluated for ECDHE as typically deployed. ECDH is neither common nor recommended in the TLS BCP draft. In addition, I hope there will be discussion of benchmarking methodology, with the understanding the ultimate choice is for the CFRG chairs.
>>>
>>> 2) Performance must be measured using "production-quality" implementations. By this I mean implementations which employ the sort of techniques/optimizations appropriate for large scale deployment. This is specifically intended to exclude discussion of how simple or fast an implementation _could_ be, in favor of what they actually are in practice. However, the goal is to select curves which strike the best balance between various requirements, not simply the fastest.
>>>
>>> 3) The timeframe for a decision constrains the scope of this process. If a decision is desired within a few months, then it is difficult to include options beyond new curves. If a decision can take a year, new algorithms could be considered. Given the importance, impact, and contentiousness of new algorithms, I believe it would be difficult to complete a thorough, careful algorithm and curve selection process in a short amount of time.
>>>
>>> 4) The precise set of security levels needed should be specified in advance (whether by TLS or CFRG) and curve recommendations delivered together for all levels. A stated goal is to use these curves in new drafts, and it minimizes work to specify all security levels for a proposal in the same draft. This is strictly a practical matter recognizing the chairs and area directors have limited bandwidth and implementors can get everything done in a single go.
>>>
>>> 5) Selections must efficiently support TLS 1.2. Adoption of new curves, and potentially new algorithms, can't be gated on completion and widespread deployment of TLS 1.3.
>>>
>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in this process.
>>>
>>> 7) I don't think the chairs are signing up for a full-on, NIST-style selection competition and we should aim to keep things are lightweight as possible while still achieving the required level of rigor. I hope they will address this point soon.
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Mon Jul 28 13:05:33 2014
Return-Path: <rgm-sec@htt-consult.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 1DB721A016C for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 13:05:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 toPHHVI4pmv1 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 13:05:28 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 5025B1A0126 for <cfrg@irtf.org>; Mon, 28 Jul 2014 13:05:28 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id DFF5462A9F; Mon, 28 Jul 2014 20:05:25 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GSvPbuArrFcn; Mon, 28 Jul 2014 16:05:15 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id 3A18D62A76; Mon, 28 Jul 2014 16:05:15 -0400 (EDT)
Message-ID: <53D6ACFA.20002@htt-consult.com>
Date: Mon, 28 Jul 2014 16:05:14 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>,  Michael Jenkins <m.jenkins.364706@gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <CAC2=hnfsZHAmnzmVAkQeKN3P1rrO+CfrJSjjWjKCb9awsrUGYA@mail.gmail.com> <53D692A8.6040105@htt-consult.com> <53D69BD5.1040904@cs.tcd.ie>
In-Reply-To: <53D69BD5.1040904@cs.tcd.ie>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PEPXZg9fmOggjagJruDzopAGcRo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 20:05:30 -0000

On 07/28/2014 02:52 PM, Stephen Farrell wrote:
> Hi Bob,
>
> On 28/07/14 19:12, Robert Moskowitz wrote:
>> Some of it is NOT internet protocols.  IEEE 1609.4 WSMP is a MAC direct
>> protocol.  In 1609, it is all about broadcast messages, as every car
>> needs to receive it and there is NO time for any setup. Sign the
>> message, get your channel allocation and send.  There is IP for some
>> stuff, but most of that is V2R (roadside).  If we tackle a proper CANbus
>> (now there is an interesting non-protocol) replacement, most of it will
>> be a MAC message format.  And then there is SMS.  I can keep coming up
>> with cases where there is no IP (IEEE 11073), or IP only occurs at the
>> gateway (pacemaker (IEEE 802.15.6) to hospital).
>>
>> The lack of an Internet layer, and maybe even a transport layer with
>> only a message (session) layer or just MACsec, does not mean no
>> security.  Security happens at many layers other than IP (IPsec) or
>> Transport (TLS, DTLS, SRTP (or is that session)).
> I think it'll be interesting to see if the work done on new curves
> here maps well or badly to lower layers. I do not think that's a
> reason to hold up this work though - most lower layer ECC is afaik
> done in h/w that is not amenable to change and for which I don't
> know of any desire for change. If someone doing 1609 in h/w really
> wanted some new curves that'd be interesting for sure, but again
> I do not think we should hold up this work for that purpose. Given
> the relative timing and differing modus operandi of the various
> SDOs involved, trying to incorporate such requirements could easily
> add 6 months or more of nothing but delay.

Well some in ETSI wanted the inclusion of Brainpool curves in 1609, but 
so far that has not gained any significant push.

I get your concern about timing, but If a tie-breaker is needed, 
consider these points.



From nobody Mon Jul 28 13:26:07 2014
Return-Path: <mike@shiftleft.org>
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 8F67A1B28E6 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 13:26:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 RZTkz-IcNJ44 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 13:26:04 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D45891A00EB for <cfrg@irtf.org>; Mon, 28 Jul 2014 13:26:03 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 86DDD3AA27; Mon, 28 Jul 2014 13:25:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406579155; bh=PUtMWvUokG6gWrq3vLKR6u8BjyYHMoSlNbG37Gg/qhc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=E+G27tsb7ZTYTfActtWnldxF28ufjzKRU/IJctGKSFtvLPESXjo76UMb+M3d+Dw8S v0mXS0EmPryhqN1lDAAdcUyVhtMyE2wycVufoMSEH47/t1lFpy24SSOSuNPuhVmk6Y l0IPnYUzQDW2nzYUE4TkVz356dumtqktzTavu8TI=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53D6A825.3080307@htt-consult.com>
Date: Mon, 28 Jul 2014 13:25:58 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <7A122797-95CE-4505-A82D-4CCC59FE6CF5@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <53D6A825.3080307@htt-consult.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/VtQoc3yJ-KBUpGimyJ37ISAfBxY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 20:26:05 -0000

Binary curves less popular due to patent encumberment but also due to =
progress in cryptanalysis, though there is not a known break.  The =
Microsoft NUMS paper, for example, says:

=93=94=94
These curves are either defined over prime fields or binary extension =
fields; on the internet, however, the deployed elliptic curves are =
mostly defined over prime fields. This can be partially explained by the =
increasing skepticism towards the security of elliptic curves defined =
over binary extension fields (justified by recent progress on solving =
the discrete logarithm problem on such curves [citation]). Therefore, in =
this work, we only consider elliptic curves defined over prime fields.
=93=94"

The citation is to Faug=E8re, Perret, Petit, Renault, "Improving the =
complexity of index calculus algorithms in elliptic curves over binary =
fields."

http://hal.inria.fr/docs/00/77/60/66/PDF/MAYA2-UPMCINRIA-aaec_1.0.pdf
slides at http://www.cs.bris.ac.uk/eurocrypt2012/Program/Mon/Renault.pdf

Their improved performance and small hardware footprint can make it =
worthwhile to implement binary curves anyway, but the trends are showing =
a preference for prime fields.

=97 Mike


On Jul 28, 2014, at 12:44 PM, Robert Moskowitz <rgm-sec@htt-consult.com> =
wrote:

>=20
> On 07/28/2014 01:05 PM, Michael Hamburg wrote:
>> You=92re going to need a hardware accelerator for some of these small =
things.  Eg for v2v safety, the real ask has to be =93fast and small and =
easy in hardware=94.  The best solution to this is binary curves, though =
they are considered slightly edgy right now.
>=20
> I cannot parse 'edgy right now'.  Is there a technical definition of =
this?
>=20
>=20
>=20
>>=20
>> But yeah, 8-bit processor performance is important too.
>>=20
>> Cheers,
>> =97 Mike
>>=20
>> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz =
<rgm-sec@htt-consult.com> wrote:
>>=20
>>> The whole world is NOT TLS.  For example I am working in IEEE 1609 =
which is Vehicle-to-vehicle safety communications and their need is for =
signed data objects that are quickly generated and verified (you have =
~100ms from the braking event to all the cars being able to act on that =
information).  I also work in IEEE 802.15.4 highly constrained devices =
(some much smaller than what many IETF groups accept as their lower =
limit).
>>>=20
>>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to =
change that.  Lower energy demand is much higher on the design plan than =
faster processing.  Also whatever is done will be running on fielded =
devices for the next 10 - 20 years.  Hardware acceleration is =
acceptable, but that could make in-field corrections impossible. =
Over-the-air firmware updates may also be impossible (802.15.4k is =
40kb/s) or only done in the dealership (yes!  another recall!).
>>>=20
>>> So getting on to my thoughts of curve selection requirements for the =
world of small:
>>>=20
>>> 1) Low over-the-air demands.  Every BIT counts.  We have to live =
with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its =
own 'certificate' and signature format as even the standard asn.1 is too =
wasteful of the very limited channel.  This applies also in 802.15.4 =
where adding another MAC frame might mean that the whole thing fails =
because now it is more likely that one frame got lost.
>>>=20
>>> 2) Easy/size of implementation.  There has been lots of chatter here =
about how NIST p256 can be implemented wrongly.  Here it is of greater =
concern, as it might require a physical swap-out to correct an =
implementation error.  Manufacturers look at the cost of a programmer to =
save 5K code cheaper than that extra 5K footprint.  So little code and =
easy to code.  This world is extremely price sensitive.
>>>=20
>>> 3) Performance on an 8 bit  processor.  Performance is measured in =
time and energy.  In-vehicle devices tend to have a ready source of =
electrons (except for tire gauges!), but some devices have limited =
battery (your front door lock) or NO battery (MEMEs energy harvesters on =
bridge stress sensors).  So low energy is as important as quickly done.  =
Here 10% faster IS 10% faster; and it could make a life-or-death =
difference. (In Positive Train Control, the automatics MUST take over if =
the human can no longer respond in time and bullet trains can take 7Km =
to stop safely)
>>>=20
>>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, =
and in some cases written into regulations (urgh), so we have to still =
keep them working.  But if something 'new' and provably good makes a big =
difference in one of the previous needs I suspect there will be an =
attentive audience.
>>>=20
>>> I have tried to keep things general so as not too much to limit =
choices.  I never claimed to be a crytographer or to have the math =
skills to evaluate the various contenders.  Others working in this area =
might have their own reading on the needs of constrained =
devices/communications.
>>>=20
>>> But please just don't solve this for TLS on octo-core 64-bit =
systems.
>>>=20
>>>=20
>>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>>> Inspired by some comments from other and in hopes of returning to a =
more productive debate rather than the pointed back and forth, of which =
I am absolutely guilty, I'm suggesting a few constraints. These are not =
priority ordered and none of them deal with the math, instead focusing =
on process and practice.
>>>>=20
>>>> 1) As we are discussing this in the context of TLS, the performance =
of various kx options must be evaluated for ECDHE as typically deployed. =
ECDH is neither common nor recommended in the TLS BCP draft. In =
addition, I hope there will be discussion of benchmarking methodology, =
with the understanding the ultimate choice is for the CFRG chairs.
>>>>=20
>>>> 2) Performance must be measured using "production-quality" =
implementations. By this I mean implementations which employ the sort of =
techniques/optimizations appropriate for large scale deployment. This is =
specifically intended to exclude discussion of how simple or fast an =
implementation _could_ be, in favor of what they actually are in =
practice. However, the goal is to select curves which strike the best =
balance between various requirements, not simply the fastest.
>>>>=20
>>>> 3) The timeframe for a decision constrains the scope of this =
process. If a decision is desired within a few months, then it is =
difficult to include options beyond new curves. If a decision can take a =
year, new algorithms could be considered. Given the importance, impact, =
and contentiousness of new algorithms, I believe it would be difficult =
to complete a thorough, careful algorithm and curve selection process in =
a short amount of time.
>>>>=20
>>>> 4) The precise set of security levels needed should be specified in =
advance (whether by TLS or CFRG) and curve recommendations delivered =
together for all levels. A stated goal is to use these curves in new =
drafts, and it minimizes work to specify all security levels for a =
proposal in the same draft. This is strictly a practical matter =
recognizing the chairs and area directors have limited bandwidth and =
implementors can get everything done in a single go.
>>>>=20
>>>> 5) Selections must efficiently support TLS 1.2. Adoption of new =
curves, and potentially new algorithms, can't be gated on completion and =
widespread deployment of TLS 1.3.
>>>>=20
>>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement =
in this process.
>>>>=20
>>>> 7) I don't think the chairs are signing up for a full-on, =
NIST-style selection competition and we should aim to keep things are =
lightweight as possible while still achieving the required level of =
rigor. I hope they will address this point soon.
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> http://www.irtf.org/mailman/listinfo/cfrg
>>=20


From nobody Mon Jul 28 13:40:52 2014
Return-Path: <rgm-sec@htt-consult.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 0C65B1A0240 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 13:40:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 cI-gu88DV44d for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 13:40:49 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 4CD9E1A0080 for <cfrg@irtf.org>; Mon, 28 Jul 2014 13:40:49 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 8C76662A8E; Mon, 28 Jul 2014 20:40:48 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xilEz3qmZiAX; Mon, 28 Jul 2014 16:40:37 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id 1D79A62A7D; Mon, 28 Jul 2014 16:40:37 -0400 (EDT)
Message-ID: <53D6B544.6060503@htt-consult.com>
Date: Mon, 28 Jul 2014 16:40:36 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <53D6A825.3080307@htt-consult.com> <7A122797-95CE-4505-A82D-4CCC59FE6CF5@shiftleft.org>
In-Reply-To: <7A122797-95CE-4505-A82D-4CCC59FE6CF5@shiftleft.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/L1NgTXhrQ2YGP0U3ve4ba3UYFxA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Mon, 28 Jul 2014 20:40:52 -0000

Thank you for this!

On 07/28/2014 04:25 PM, Michael Hamburg wrote:
> Binary curves less popular due to patent encumberment but also due to progress in cryptanalysis, though there is not a known break.  The Microsoft NUMS paper, for example, says:
>
> “””
> These curves are either defined over prime fields or binary extension fields; on the internet, however, the deployed elliptic curves are mostly defined over prime fields. This can be partially explained by the increasing skepticism towards the security of elliptic curves defined over binary extension fields (justified by recent progress on solving the discrete logarithm problem on such curves [citation]). Therefore, in this work, we only consider elliptic curves defined over prime fields.
> “”"
>
> The citation is to Faugère, Perret, Petit, Renault, "Improving the complexity of index calculus algorithms in elliptic curves over binary fields."
>
> http://hal.inria.fr/docs/00/77/60/66/PDF/MAYA2-UPMCINRIA-aaec_1.0.pdf
> slides at http://www.cs.bris.ac.uk/eurocrypt2012/Program/Mon/Renault.pdf
>
> Their improved performance and small hardware footprint can make it worthwhile to implement binary curves anyway, but the trends are showing a preference for prime fields.
>
> — Mike
>
>
> On Jul 28, 2014, at 12:44 PM, Robert Moskowitz <rgm-sec@htt-consult.com> wrote:
>
>> On 07/28/2014 01:05 PM, Michael Hamburg wrote:
>>> You’re going to need a hardware accelerator for some of these small things.  Eg for v2v safety, the real ask has to be “fast and small and easy in hardware”.  The best solution to this is binary curves, though they are considered slightly edgy right now.
>> I cannot parse 'edgy right now'.  Is there a technical definition of this?
>>
>>
>>
>>> But yeah, 8-bit processor performance is important too.
>>>
>>> Cheers,
>>> — Mike
>>>
>>> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz <rgm-sec@htt-consult.com> wrote:
>>>
>>>> The whole world is NOT TLS.  For example I am working in IEEE 1609 which is Vehicle-to-vehicle safety communications and their need is for signed data objects that are quickly generated and verified (you have ~100ms from the braking event to all the cars being able to act on that information).  I also work in IEEE 802.15.4 highly constrained devices (some much smaller than what many IETF groups accept as their lower limit).
>>>>
>>>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to change that.  Lower energy demand is much higher on the design plan than faster processing.  Also whatever is done will be running on fielded devices for the next 10 - 20 years.  Hardware acceleration is acceptable, but that could make in-field corrections impossible. Over-the-air firmware updates may also be impossible (802.15.4k is 40kb/s) or only done in the dealership (yes!  another recall!).
>>>>
>>>> So getting on to my thoughts of curve selection requirements for the world of small:
>>>>
>>>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own 'certificate' and signature format as even the standard asn.1 is too wasteful of the very limited channel.  This applies also in 802.15.4 where adding another MAC frame might mean that the whole thing fails because now it is more likely that one frame got lost.
>>>>
>>>> 2) Easy/size of implementation.  There has been lots of chatter here about how NIST p256 can be implemented wrongly.  Here it is of greater concern, as it might require a physical swap-out to correct an implementation error.  Manufacturers look at the cost of a programmer to save 5K code cheaper than that extra 5K footprint.  So little code and easy to code.  This world is extremely price sensitive.
>>>>
>>>> 3) Performance on an 8 bit  processor.  Performance is measured in time and energy.  In-vehicle devices tend to have a ready source of electrons (except for tire gauges!), but some devices have limited battery (your front door lock) or NO battery (MEMEs energy harvesters on bridge stress sensors).  So low energy is as important as quickly done.  Here 10% faster IS 10% faster; and it could make a life-or-death difference. (In Positive Train Control, the automatics MUST take over if the human can no longer respond in time and bullet trains can take 7Km to stop safely)
>>>>
>>>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and in some cases written into regulations (urgh), so we have to still keep them working.  But if something 'new' and provably good makes a big difference in one of the previous needs I suspect there will be an attentive audience.
>>>>
>>>> I have tried to keep things general so as not too much to limit choices.  I never claimed to be a crytographer or to have the math skills to evaluate the various contenders.  Others working in this area might have their own reading on the needs of constrained devices/communications.
>>>>
>>>> But please just don't solve this for TLS on octo-core 64-bit systems.
>>>>
>>>>
>>>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
>>>>> Inspired by some comments from other and in hopes of returning to a more productive debate rather than the pointed back and forth, of which I am absolutely guilty, I'm suggesting a few constraints. These are not priority ordered and none of them deal with the math, instead focusing on process and practice.
>>>>>
>>>>> 1) As we are discussing this in the context of TLS, the performance of various kx options must be evaluated for ECDHE as typically deployed. ECDH is neither common nor recommended in the TLS BCP draft. In addition, I hope there will be discussion of benchmarking methodology, with the understanding the ultimate choice is for the CFRG chairs.
>>>>>
>>>>> 2) Performance must be measured using "production-quality" implementations. By this I mean implementations which employ the sort of techniques/optimizations appropriate for large scale deployment. This is specifically intended to exclude discussion of how simple or fast an implementation _could_ be, in favor of what they actually are in practice. However, the goal is to select curves which strike the best balance between various requirements, not simply the fastest.
>>>>>
>>>>> 3) The timeframe for a decision constrains the scope of this process. If a decision is desired within a few months, then it is difficult to include options beyond new curves. If a decision can take a year, new algorithms could be considered. Given the importance, impact, and contentiousness of new algorithms, I believe it would be difficult to complete a thorough, careful algorithm and curve selection process in a short amount of time.
>>>>>
>>>>> 4) The precise set of security levels needed should be specified in advance (whether by TLS or CFRG) and curve recommendations delivered together for all levels. A stated goal is to use these curves in new drafts, and it minimizes work to specify all security levels for a proposal in the same draft. This is strictly a practical matter recognizing the chairs and area directors have limited bandwidth and implementors can get everything done in a single go.
>>>>>
>>>>> 5) Selections must efficiently support TLS 1.2. Adoption of new curves, and potentially new algorithms, can't be gated on completion and widespread deployment of TLS 1.3.
>>>>>
>>>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in this process.
>>>>>
>>>>> 7) I don't think the chairs are signing up for a full-on, NIST-style selection competition and we should aim to keep things are lightweight as possible while still achieving the required level of rigor. I hope they will address this point soon.
>>>> _______________________________________________
>>>> Cfrg mailing list
>>>> Cfrg@irtf.org
>>>> http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Mon Jul 28 17:17:27 2014
Return-Path: <watsonbladd@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 C286C1A03A2 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 17:17:25 -0700 (PDT)
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 Id5H3YEmNemB for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 17:17:24 -0700 (PDT)
Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CC30A1A02C1 for <cfrg@irtf.org>; Mon, 28 Jul 2014 17:17:23 -0700 (PDT)
Received: by mail-yh0-f50.google.com with SMTP id v1so5357352yhn.37 for <cfrg@irtf.org>; Mon, 28 Jul 2014 17:17:22 -0700 (PDT)
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=W/mJipu8VeqySwBqzHHjjApYKXtcBsBtk/F6Lm6MgN0=; b=U5Y2RmCzinSKy5Fa31hNOzq4u11TlXJc/BYYosvAQMAPO1wwaq8RUPS1JgLE9WVrom QIqwGiLtnVcbwUMV042PQ05aNhLBYoWQgVMXV4qHgB8otoSpRGSJYxv4xL2h65CvtK2O b0Vg12BtJjn2sMvzP6K0OrRry9FBvMGF9ZAT3lvup9VZqsMZbCaRs9e9kLYubOPw0gKf YSEQnqzNVsq3+7DEzNY2QLaAPqa4IB8ZjkHA2z9/POp8wDopVcDbTTeHbccAgLuhj58b 1YlEz1jXUJquxi97GfNYD9BB9hgGOXN/iIvosgHrSymtyHGaGI6ykfwfixutSyVxX430 3f/g==
MIME-Version: 1.0
X-Received: by 10.236.178.36 with SMTP id e24mr47391275yhm.78.1406593042914; Mon, 28 Jul 2014 17:17:22 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Mon, 28 Jul 2014 17:17:22 -0700 (PDT)
In-Reply-To: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
Date: Mon, 28 Jul 2014 17:17:22 -0700
Message-ID: <CACsn0cn0E6PGTcOw+dTpQo=AEkivV7eCKCPOFhF=U1=2BiAMxg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/MplnWk_AgZoafsRpU7saRymQXcw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Progress on curve recommendations for TLS WG
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: Tue, 29 Jul 2014 00:17:25 -0000

On Sun, Jul 27, 2014 at 1:04 PM, Paterson, Kenny
<Kenny.Paterson@rhul.ac.uk> wrote:
> Dear CFRG,
>
> We made good progress last week in Toronto and on the mailing list in
> discussing requirements for curve selection, as well as getting into some
> of the specifics of the different curve options.
>
> The chairs have had requests to increase the time given to our discussion
> of requirements in the light of the Toronto meeting, and we are happy to
> accommodate that. We therefore plan to extend the previously announced
> schedule so that this initial phase will run for another 2 weeks (until
> Friday 8th August). We will then run the second phase (focussing on
> concrete curve proposals) for 4 weeks, as previously planned.
>
> Whilst it may be tempting to jump in and start discussing concrete
> performance aspects of the different, specific curve proposals, or drift
> off onto other topics entirely, the chairs would like to ask everyone to
> try to focus on requirements for a bit longer. Here are a few questions to
> help keep things on track and seed further discussion:
>
>
> - What is the cost of keeping backwards compatibility with existing
> defined point formats in RFC 4492, if any, for different curve shapes
> (Edwards, twisted Edwards, Montgomery, Weierstrass-only form)?

The cost is the cost of the isogeny in and out. It should be possible
to make a table of isogenies between each format
and when they exist: the information is out there but scattered.

However, RFC 4492 treats point formats as opaque, and while crypto
libraries may assume all curves use a particular
format, this hasn't stopped them from adding Curve25519 support
through different API paths.

>
> - If ephemeral really means ephemeral, what are the implications for the
> mix of fixed-base/variable-base computations in ECDHE and what, if any,
> are the implications for the choice of curve type?

If ephemeral means ephemeral, then we have 1 fixed+1 variable
multiplication. Variable multiplication alone no longer is as
important.

>
> - Correspondingly, what are the implications for our choices if we accept
> that ephemeral reuse is the expected behaviour?

If all multiplications are variable base for ECDHE, Montgomery is the
clear winner here. (Actually, Gaudry genus 2, but
people seem less excited by it)

>
> - Do the current proposals (Curve25519 and friends, and the NUMS curves)
> provide an adequate degree of rigidity that is likely to satisfy the
> widest set of commentators? Or should we be thinking about generating
> fresh curves using a public process having verifiably random inputs? What
> would the likely impact be on performance?

I think minimal parameter is enough rigidity. Random inputs would have
to be the closing price and daily trade volumes of all S&P 500
constituents on some day in the fall: no one can manipulate that
because it is in the future. The impact of random primes would be
pretty bad:
the best reduction algorithms take quadratic time in the number of digits.
>
> - Would selecting curves that are not in Weierstrass form materially slow
> down deployment?

I don't know the answer to this question.

Sincerely,
Watson Ladd
>
>
>
> Thanks for your considered inputs so far.
>
> Regards,
>
> Kenny (for the chairs)
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Mon Jul 28 17:33:42 2014
Return-Path: <paul@marvell.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 CDB371A046A for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 17:33:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, 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 PpXFddvBK99y for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 17:33:39 -0700 (PDT)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1BD611A03C6 for <cfrg@irtf.org>; Mon, 28 Jul 2014 17:33:39 -0700 (PDT)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id s6T0XYj7023660; Mon, 28 Jul 2014 17:33:34 -0700
Received: from sc-owa01.marvell.com ([199.233.58.136]) by mx0b-0016f401.pphosted.com with ESMTP id 1ndran1n3r-1 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Mon, 28 Jul 2014 17:33:33 -0700
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA01.marvell.com ([10.93.76.21]) with mapi; Mon, 28 Jul 2014 17:33:32 -0700
From: Paul Lambert <paul@marvell.com>
To: Michael Hamburg <mike@shiftleft.org>, Hannes Tschofenig <hannes.tschofenig@gmx.net>
Date: Mon, 28 Jul 2014 17:33:29 -0700
Thread-Topic: [Cfrg] Curve selection revisited
Thread-Index: Ac+qmvTfP812NuNSQDuekjZ0sp3JRAAKUmIw
Message-ID: <7BAC95F5A7E67643AAFB2C31BEE662D01EE48963E2@SC-VEXCH2.marvell.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <419B47D0-2779-4463-A071-DA40F22C370F@shiftleft.org> <53D69280.2090208@gmx.net> <6AA56990-224C-4742-9BD0-A68808B1C944@shiftleft.org>
In-Reply-To: <6AA56990-224C-4742-9BD0-A68808B1C944@shiftleft.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-28_04:2014-07-28,2014-07-28,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407290005
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hLWCqZbbniqcX-oltCuYWyY77Vw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] Curve selection revisited
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: Tue, 29 Jul 2014 00:33:42 -0000

Thank you for the details below.  One question on a comment you made:
> Depending on the exact form of Schnorr, .

So, what form of Schnorr signatures would you recommend?

Paul


From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Michael Hamburg
Sent: Monday, July 28, 2014 12:34 PM
To: Hannes Tschofenig
Cc: cfrg@irtf.org; Robert Moskowitz
Subject: Re: [Cfrg] Curve selection revisited

Which remark?

Schnorr signatures are well-known to scale down to 3/4 the size, because th=
ey do not rely on collision resistance of the hash function. =A0See for exa=
mple,=A0http://www.neven.org/papers/schnorr.pdf.

That you need a hardware accelerator for v2v: well, partly company-confiden=
tial reasons. =A0But back of the envelope, an Edwards Schnorr sig verify is=
 likely to cost around 3000 field multiplies at the 256-bit level, give or =
take. =A0Maybe more if you're memory-constrained. =A0Weierstrass is slower.=
 =A0ECDSA is slower. =A0Each 256-bit field multiply, implemented naively, c=
osts 1024 MACs on an 8-bit machine. =A0That's 3 million MACs, and each one =
is going to cost multiple cycles because of load / store. =A0Call it 12 mil=
lion cycles minimum, and you need a few milliseconds latency / inverse thro=
ughput tops. =A0Even a 16-bit micro isn't enough, since you're not running =
at a GHz.

That binary curves are smaller and faster in hardware: see any paper or spe=
c sheet on them. =A0For example,=A0http://www.ipcores.com/elliptic_curve_cr=
ypto_ip_core.htm



About inversion mod r, I've implemented it. =A0A Schnorr verification routi=
ne does not need any math mod r, except that it may want to compute or chec=
k reduction mod r for speed / malleability reasons. =A0Depending on the exa=
ct form of Schnorr, it may not even need to reserialize points (just to che=
ck equality), so it may not need an inversion routine. =A0If it uses point =
compression, it will need a square root routine mod p, which can be overloa=
ded into inversion mod p for almost no cost. =A0If the implementation uses =
inversion mod p, exponentiation is usually fast enough to be better than ex=
tra code for EGCD.

An ECDSA verify needs to invert and multiply mod r. =A0The inversion can be=
 EGCD, but you would not have needed EGCD otherwise; or it can be a powerin=
g ladder. =A0The powering ladder would take 6% of the time if multiplicatio=
n mod r is as fast as mod p. =A0But r isn't a special form prime, so actual=
ly it will take at least twice as long, at least 12%. =A0Also, the powering=
 ladder will be a different subroutine from the one mod p for the inverse/s=
quare root, and r isn't sparse/special so it's a longer routine.

In hardware, you have to choose between implementing reasonably fast multip=
lication mod r and a powering ladder, or implementing EGCD. =A0Both of thes=
e add significant complexity, which is the hardware architect's enemy. =A0I=
f you're using a binary curve, you could have verified with no integer math=
 at all, but now you can't.

In at least two implementations of "ECDSA", I've had the signer tweak the s=
ignature by inverting s, since there isn't any reason that the verifier sho=
uld do it and it doesn't even cost the signer anything. =A0Obviously this d=
oesn't change the security, but it breaks standard point formats.

Likewise Schnorr signing does not need an inversion routine mod r, just mul=
tiply and add/sub mod r. =A0The multiply is used only once, so it can be ve=
ry slow. =A0But in ECDSA, an inversion is required. =A0It needs DPA protect=
ion, which will make it slower. =A0Signatures are in principle faster than =
verifies, taking perhaps under 1000 multiplies, so the powering ladder star=
ts at about 20% if multiply mod r and mod p are the same, but actually it c=
reeps up toward 35% because it's not a special-form prime, and perhaps even=
 more because of DPA protection. =A0Again EGCD is an option, and it's not r=
equired otherwise, and now it has to be blinded for DPA protection as well.

All of this would be fine if ECDSA added security vs Schnorr. =A0In fact it=
 adds nothing but complexity.

Cheers,
- Mike

On Jul 28, 2014, at 11:12 AM, Hannes Tschofenig <hannes.tschofenig@gmx.net>=
 wrote:


Mike, do you have data that supports your remark?

Ciao
Hannes


On 07/28/2014 07:57 PM, Michael Hamburg wrote:

Actually, one more thing: in constrained environments, you really want Schn=
orr instead of ECDSA. =A0That extra inversion mod r is a giant pain. =A0It'=
s slow and often doesn't share code with anything. =A0Plus Schnorr can go d=
own to 3/4 the size if necessary.

Cheers,
- Mike

On Jul 28, 2014, at 10:05 AM, Michael Hamburg <mike@shiftleft.org> wrote:


You're going to need a hardware accelerator for some of these small things.=
 =A0Eg for v2v safety, the real ask has to be "fast and small and easy in h=
ardware". =A0The best solution to this is binary curves, though they are co=
nsidered slightly edgy right now.

But yeah, 8-bit processor performance is important too.

Cheers,
- Mike

On Jul 28, 2014, at 7:58 AM, Robert Moskowitz <rgm-sec@htt-consult.com> wro=
te:


The whole world is NOT TLS. =A0For example I am working in IEEE 1609 which =
is Vehicle-to-vehicle safety communications and their need is for signed da=
ta objects that are quickly generated and verified (you have ~100ms from th=
e braking event to all the cars being able to act on that information). =A0=
I also work in IEEE 802.15.4 highly constrained devices (some much smaller =
than what many IETF groups accept as their lower limit).

8 bit processors are the norm, and NO, Dr. Moore is NOT going to change tha=
t. =A0Lower energy demand is much higher on the design plan than faster pro=
cessing. =A0Also whatever is done will be running on fielded devices for th=
e next 10 - 20 years. =A0Hardware acceleration is acceptable, but that coul=
d make in-field corrections impossible. Over-the-air firmware updates may a=
lso be impossible (802.15.4k is 40kb/s) or only done in the dealership (yes=
! =A0another recall!).

So getting on to my thoughts of curve selection requirements for the world =
of small:

1) Low over-the-air demands. =A0Every BIT counts. =A0We have to live with 3=
2 bytes; but 64 bytes may be too much. =A0Oh, IEEE 1609.2 has its own 'cert=
ificate' and signature format as even the standard asn.1 is too wasteful of=
 the very limited channel. =A0This applies also in 802.15.4 where adding an=
other MAC frame might mean that the whole thing fails because now it is mor=
e likely that one frame got lost.

2) Easy/size of implementation. =A0There has been lots of chatter here abou=
t how NIST p256 can be implemented wrongly. =A0Here it is of greater concer=
n, as it might require a physical swap-out to correct an implementation err=
or. =A0Manufacturers look at the cost of a programmer to save 5K code cheap=
er than that extra 5K footprint. =A0So little code and easy to code. =A0Thi=
s world is extremely price sensitive.

3) Performance on an 8 bit =A0processor. =A0Performance is measured in time=
 and energy. =A0In-vehicle devices tend to have a ready source of electrons=
 (except for tire gauges!), but some devices have limited battery (your fro=
nt door lock) or NO battery (MEMEs energy harvesters on bridge stress senso=
rs). =A0So low energy is as important as quickly done. =A0Here 10% faster I=
S 10% faster; and it could make a life-or-death difference. (In Positive Tr=
ain Control, the automatics MUST take over if the human can no longer respo=
nd in time and bullet trains can take 7Km to stop safely)

4) preserving ECDSA and ECDHE. =A0This is what is currently in use, and in =
some cases written into regulations (urgh), so we have to still keep them w=
orking. =A0But if something 'new' and provably good makes a big difference =
in one of the previous needs I suspect there will be an attentive audience.

I have tried to keep things general so as not too much to limit choices. =
=A0I never claimed to be a crytographer or to have the math skills to evalu=
ate the various contenders. =A0Others working in this area might have their=
 own reading on the needs of constrained devices/communications.

But please just don't solve this for TLS on octo-core 64-bit systems.


On 07/25/2014 01:10 AM, Benjamin Black wrote:

Inspired by some comments from other and in hopes of returning to a more pr=
oductive debate rather than the pointed back and forth, of which I am absol=
utely guilty, I'm suggesting a few constraints. These are not priority orde=
red and none of them deal with the math, instead focusing on process and pr=
actice.

1) As we are discussing this in the context of TLS, the performance of vari=
ous kx options must be evaluated for ECDHE as typically deployed. ECDH is n=
either common nor recommended in the TLS BCP draft. In addition, I hope the=
re will be discussion of benchmarking methodology, with the understanding t=
he ultimate choice is for the CFRG chairs.

2) Performance must be measured using "production-quality" implementations.=
 By this I mean implementations which employ the sort of techniques/optimiz=
ations appropriate for large scale deployment. This is specifically intende=
d to exclude discussion of how simple or fast an implementation _could_ be,=
 in favor of what they actually are in practice. However, the goal is to se=
lect curves which strike the best balance between various requirements, not=
 simply the fastest.

3) The timeframe for a decision constrains the scope of this process. If a =
decision is desired within a few months, then it is difficult to include op=
tions beyond new curves. If a decision can take a year, new algorithms coul=
d be considered. Given the importance, impact, and contentiousness of new a=
lgorithms, I believe it would be difficult to complete a thorough, careful =
algorithm and curve selection process in a short amount of time.

4) The precise set of security levels needed should be specified in advance=
 (whether by TLS or CFRG) and curve recommendations delivered together for =
all levels. A stated goal is to use these curves in new drafts, and it mini=
mizes work to specify all security levels for a proposal in the same draft.=
 This is strictly a practical matter recognizing the chairs and area direct=
ors have limited bandwidth and implementors can get everything done in a si=
ngle go.

5) Selections must efficiently support TLS 1.2. Adoption of new curves, and=
 potentially new algorithms, can't be gated on completion and widespread de=
ployment of TLS 1.3.

6) Drop-in replacement for the NIST curves is _not_ a requirement in this p=
rocess.

7) I don't think the chairs are signing up for a full-on, NIST-style select=
ion competition and we should aim to keep things are lightweight as possibl=
e while still achieving the required level of rigor. I hope they will addre=
ss this point soon.

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
http://www.irtf.org/mailman/listinfo/cfrg

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
http://www.irtf.org/mailman/listinfo/cfrg

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
http://www.irtf.org/mailman/listinfo/cfrg



From nobody Mon Jul 28 18:18:14 2014
Return-Path: <paul@marvell.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 D844C1A0375 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 18:18:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, 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 U6QIJ6jdH5FA for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 18:18:11 -0700 (PDT)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C369F1A031F for <cfrg@irtf.org>; Mon, 28 Jul 2014 18:18:10 -0700 (PDT)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id s6T1I5oq027181; Mon, 28 Jul 2014 18:18:05 -0700
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0b-0016f401.pphosted.com with ESMTP id 1ndran1r9y-13 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 28 Jul 2014 18:18:05 -0700
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([fe80::e56e:83a7:9eef:b5a1%16]) with mapi; Mon, 28 Jul 2014 18:18:02 -0700
From: Paul Lambert <paul@marvell.com>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>, Michael Hamburg <mike@shiftleft.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Date: Mon, 28 Jul 2014 18:18:00 -0700
Thread-Topic: [Cfrg] Curve selection revisited
Thread-Index: Ac+qjaBszSri18kSTT+f7xU0/QiRYAAPPxyQ
Message-ID: <7BAC95F5A7E67643AAFB2C31BEE662D01EE48963F1@SC-VEXCH2.marvell.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <53D68F33.3010802@gmx.net>
In-Reply-To: <53D68F33.3010802@gmx.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-28_04:2014-07-28,2014-07-28,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407290016
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Os9TaF_DddYKSduoCcPQpp2amig
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Tue, 29 Jul 2014 01:18:13 -0000

]PS: Regarding the ASN.1 format I am wondering whether the IEEE has done
]some more detailed analysis of the over-the-wire and the software
]implementation cost. This would be useful for us in the ACE working
]group.
I know of one IEEE group that is working on raw representation of a point
for Curve25519.
In another - X.509/PKIX formats are proposed largely because they exist.

I'm partial to opaque non-ASN.1 myself.



Paul


]
]
]
]On 07/28/2014 07:05 PM, Michael Hamburg wrote:
]> You're going to need a hardware accelerator for some of these small
]> things.  Eg for v2v safety, the real ask has to be "fast and small and
]> easy in hardware".  The best solution to this is binary curves, though
]> they are considered slightly edgy right now.
]>
]> But yeah, 8-bit processor performance is important too.
]>
]> Cheers, - Mike
]>
]> On Jul 28, 2014, at 7:58 AM, Robert Moskowitz
]> <rgm-sec@htt-consult.com> wrote:
]>
]>> The whole world is NOT TLS.  For example I am working in IEEE 1609
]>> which is Vehicle-to-vehicle safety communications and their need is
]>> for signed data objects that are quickly generated and verified (you
]>> have ~100ms from the braking event to all the cars being able to act
]>> on that information).  I also work in IEEE 802.15.4 highly
]>> constrained devices (some much smaller than what many IETF groups
]>> accept as their lower limit).
]>>
]>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to
]>> change that.  Lower energy demand is much higher on the design plan
]>> than faster processing.  Also whatever is done will be running on
]>> fielded devices for the next 10 - 20 years.  Hardware acceleration is
]>> acceptable, but that could make in-field corrections impossible.
]>> Over-the-air firmware updates may also be impossible (802.15.4k is
]>> 40kb/s) or only done in the dealership (yes!  another recall!).
]>>
]>> So getting on to my thoughts of curve selection requirements for the
]>> world of small:
]>>
]>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with
]>> 32 bytes; but 64 bytes may be too much.  Oh, IEEE 1609.2 has its own
]>> 'certificate' and signature format as even the standard
]>> asn.1 is too wasteful of the very limited channel.  This applies also
]>> in 802.15.4 where adding another MAC frame might mean that the whole
]>> thing fails because now it is more likely that one frame got lost.
]>>
]>> 2) Easy/size of implementation.  There has been lots of chatter here
]>> about how NIST p256 can be implemented wrongly.  Here it is of
]>> greater concern, as it might require a physical swap-out to correct
]>> an implementation error.  Manufacturers look at the cost of a
]>> programmer to save 5K code cheaper than that extra 5K footprint.
]>> So little code and easy to code.  This world is extremely price
]>> sensitive.
]>>
]>> 3) Performance on an 8 bit  processor.  Performance is measured in
]>> time and energy.  In-vehicle devices tend to have a ready source of
]>> electrons (except for tire gauges!), but some devices have limited
]>> battery (your front door lock) or NO battery (MEMEs energy harvesters
]>> on bridge stress sensors).  So low energy is as important as quickly
]>> done.  Here 10% faster IS 10% faster; and it could make a
]>> life-or-death difference. (In Positive Train Control, the automatics
]>> MUST take over if the human can no longer respond in time and bullet
]>> trains can take 7Km to stop safely)
]>>
]>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and
]>> in some cases written into regulations (urgh), so we have to still
]>> keep them working.  But if something 'new' and provably good makes a
]>> big difference in one of the previous needs I suspect there will be
]>> an attentive audience.
]>>
]>> I have tried to keep things general so as not too much to limit
]>> choices.  I never claimed to be a crytographer or to have the math
]>> skills to evaluate the various contenders.  Others working in this
]>> area might have their own reading on the needs of constrained
]>> devices/communications.
]>>
]>> But please just don't solve this for TLS on octo-core 64-bit systems.
]>>
]>>
]>> On 07/25/2014 01:10 AM, Benjamin Black wrote:
]>>> Inspired by some comments from other and in hopes of returning to a
]>>> more productive debate rather than the pointed back and forth, of
]>>> which I am absolutely guilty, I'm suggesting a few constraints.
]>>> These are not priority ordered and none of them deal with the math,
]>>> instead focusing on process and practice.
]>>>
]>>> 1) As we are discussing this in the context of TLS, the performance
]>>> of various kx options must be evaluated for ECDHE as typically
]>>> deployed. ECDH is neither common nor recommended in the TLS BCP
]>>> draft. In addition, I hope there will be discussion of benchmarking
]>>> methodology, with the understanding the ultimate choice is for the
]>>> CFRG chairs.
]>>>
]>>> 2) Performance must be measured using "production-quality"
]>>> implementations. By this I mean implementations which employ the
]>>> sort of techniques/optimizations appropriate for large scale
]>>> deployment. This is specifically intended to exclude discussion of
]>>> how simple or fast an implementation _could_ be, in favor of what
]>>> they actually are in practice. However, the goal is to select curves
]>>> which strike the best balance between various requirements, not
]>>> simply the fastest.
]>>>
]>>> 3) The timeframe for a decision constrains the scope of this
]>>> process. If a decision is desired within a few months, then it is
]>>> difficult to include options beyond new curves. If a decision can
]>>> take a year, new algorithms could be considered. Given the
]>>> importance, impact, and contentiousness of new algorithms, I believe
]>>> it would be difficult to complete a thorough, careful algorithm and
]>>> curve selection process in a short amount of time.
]>>>
]>>> 4) The precise set of security levels needed should be specified in
]>>> advance (whether by TLS or CFRG) and curve recommendations delivered
]>>> together for all levels. A stated goal is to use these curves in new
]>>> drafts, and it minimizes work to specify all security levels for a
]>>> proposal in the same draft. This is strictly a practical matter
]>>> recognizing the chairs and area directors have limited bandwidth and
]>>> implementors can get everything done in a single go.
]>>>
]>>> 5) Selections must efficiently support TLS 1.2. Adoption of new
]>>> curves, and potentially new algorithms, can't be gated on completion
]>>> and widespread deployment of TLS 1.3.
]>>>
]>>> 6) Drop-in replacement for the NIST curves is _not_ a requirement in
]>>> this process.
]>>>
]>>> 7) I don't think the chairs are signing up for a full-on, NIST-style
]>>> selection competition and we should aim to keep things are
]>>> lightweight as possible while still achieving the required level of
]>>> rigor. I hope they will address this point soon.
]>>
]>> _______________________________________________ Cfrg mailing list
]>> Cfrg@irtf.org http://www.irtf.org/mailman/listinfo/cfrg
]>
]> _______________________________________________ Cfrg mailing list
]> Cfrg@irtf.org http://www.irtf.org/mailman/listinfo/cfrg
]>


From nobody Mon Jul 28 20:38:34 2014
Return-Path: <wwhyte@securityinnovation.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 7E2171A0294 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 20:38:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level: 
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, 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 qH-tHcKrEqPh for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 20:38:29 -0700 (PDT)
Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [IPv6:2607:f8b0:400d:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2AE991A0242 for <cfrg@irtf.org>; Mon, 28 Jul 2014 20:38:28 -0700 (PDT)
Received: by mail-qg0-f48.google.com with SMTP id i50so9686546qgf.21 for <cfrg@irtf.org>; Mon, 28 Jul 2014 20:38:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=securityinnovation.com; s=google; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=G9TUZGO9SWx2nJ1bPs/ZbFd4Ie3HMf5iZZWdjgTbCVk=; b=A2XF/c2ovYlo7J5CKqcp6Qpep33mFM4kTzqrXql3QUIKdXToWxZWBAGnRyW/WEynhA osIhUH5cgnyOygHCbEs/XhZw91ozlzwHXw+d6SfGweW0cWS04fMhQLo2vXFGvRFA9kul qv+Ci+Q2Iy8z33ZAgKSsn+3bmFRnV7tThpL9I=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=G9TUZGO9SWx2nJ1bPs/ZbFd4Ie3HMf5iZZWdjgTbCVk=; b=gIlOfujBKFGzvc675qkTAJYUoPXl0zUUjtb62jyD13T0gNiFYNh2Yq1ArhLqvOd+1O YBrbog8sKRycM9+f5yWbqHBeUOD83bdTaGH5pUlTbOoNjCiaVievauaxKE75P9nP1JKM tMZno1WG7qAQpHj7mvEbQ4Oengyz4u99SyYJJ/+fkEfz8Hri92GLNWXyUkExN69R3Uy+ eHJvL0r7c5eXdo4AYjAsdx8Cf5ZzigKVmKrD0W3HqT5FhoJ/fjlSGrBSjUO+e/3bxEma v637J24VeX2REojTh09F2qvRS9QuEVXzO1WBjIBRHdvF4xrs8a52JKQP8lx43j1GqyQr 12Zg==
X-Gm-Message-State: ALoCoQnQ83jWZyIkjax2EtsGlmHKHGz9+2faA2OOr2J/5x0OquwZqwA8rVB67hPaHgvrpaJGlwS1
MIME-Version: 1.0
X-Received: by 10.224.88.129 with SMTP id a1mr67645668qam.23.1406605107375; Mon, 28 Jul 2014 20:38:27 -0700 (PDT)
Received: by 10.96.172.194 with HTTP; Mon, 28 Jul 2014 20:38:27 -0700 (PDT)
Date: Mon, 28 Jul 2014 23:38:27 -0400
Message-ID: <CACz1E9rUhwErnP_eG_=UC2EpT7M6z89ZdNr7ijNJxnaBA+RJAQ@mail.gmail.com>
From: William Whyte <wwhyte@securityinnovation.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_o5KgZPeXas1vmK1BO9cNsbFkf4
Cc: Hannes Tschofenig <hannes.tschofenig@gmx.net>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] ASN.1 in IEEE 1609.2 (was Re:  Curve selection revisited)
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: Tue, 29 Jul 2014 03:38:30 -0000

Hi all,

> [Hannes Tschofenig]
>> PS: Regarding the ASN.1 format I am wondering whether the IEEE has done
>> some more detailed analysis of the over-the-wire and the software
>> implementation cost. This would be useful for us in the ACE working group.
>
> [Bob Moskowitz]
> Actually, I mispoke a bit on this.  ASN.1 can be a syntax to describe data.
> It is the BER that defines what is really in the object.  So 1609 as
> developing a task to create an ASN.1 discription of their format and the
> specific BER to create it.  ETSI will be much happier once this is done.

I'm the editor of 1609.2, which currently describes the data
structures in a TLS-like notation and is considering moving to ASN.1.
We've analysed both relative packet size and relative encoding speeds
with ASN.1 (with various different encoding rules) and with the
current encoding. The results are still a bit rough so I can't
distribute them publicly, but we anticipate that they'll be
publishable in a month or so. (I don't know if they're relevant to
this list -- let me know where else I should send them if this list
isn't the place). The high-level outcome, though, is that if you pick
a good set of encoding rules (Octet Encoding Rules, or OER, rather
than the BER/DER that's used in X.509 certs and bloats nested
structures by putting tag and length at every level), then encoding
speed and encoded size are competitive with the current 1609.2 custom
format -- slightly larger and very competitive in speed -- and we
understand ASN.1 has advantages in tool availability, maintainability,
extensibility, and completeness, as well as being preferred for ETSI
standards and for standards sponsored by USDOT.

I would put Bob's statements slighltly differently:
> ASN.1 can be a syntax to describe data.
ASN.1 is a language used to define data structures.
> It is the BER that defines what is really in the object.
The encoding rules (which there are many of, including BER but also
other more compact ones) describe the encoding and decoding for
transmission.
> So 1609 as
> developing a task to create an ASN.1 discription of their format and the
> specific BER to create it.
Yes -- we're creating an ASN.1 description of our structures, and
we're looking at which set of encoding rules it makes sense to specify
for use.

Hope this helps.

Cheers,

William


From nobody Mon Jul 28 21:00:08 2014
Return-Path: <wwhyte@securityinnovation.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 50CAD1A002A for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 21:00:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level: 
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, 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 JE48Tfl4oDdr for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 21:00:01 -0700 (PDT)
Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CAD351A0020 for <cfrg@irtf.org>; Mon, 28 Jul 2014 21:00:00 -0700 (PDT)
Received: by mail-qg0-f49.google.com with SMTP id j107so9838565qga.36 for <cfrg@irtf.org>; Mon, 28 Jul 2014 21:00:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=securityinnovation.com; s=google; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=ZhTMjzogwLlRHZO7qYbFfMPJcOq/j/MsPpP9H709eis=; b=LytqWTYZ63fgsQLEUedZ84aBnbhntDHacOIdgwcMLox5rBy8XOY3H4wd4q28XbK41j ibF1dJcZAGdMesaSI3AVflr+xRKdw920SmicLpYuUit1VCH6cXzP8uR4Fbm/D7rT28vg XqN8qV/pliY3scbQWxSqPYVdi1Qfar/eo2Z58=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=ZhTMjzogwLlRHZO7qYbFfMPJcOq/j/MsPpP9H709eis=; b=cgfvHqpK1DO1n0EseJPUGBVE63cVmc9glKvVONDaJFo0EWjQ1Zetd9tibpQX338IX5 rn+LABOmLOxCuuWSzBB8EJ71jL55E7cBNiZodYZwOWulf+JQqoo+gNG/vNfpolmujjmq yy+mTICO9sEGNtPfgYwZnTgkAOCsoByWDdBAIZB2ya3kxjTJ7wlr8ZuADly52A3a8XA0 ZQ1md05pH/VLJijxILNOKkX5g7oMLrn9UIALJUrxSH8uZLWpIcfWuttpFhwXnenonnYM 6Od1lejmt12ZHmliXzSG2qd9qywQRMdXHjXuPFKSp7EjobXqpV+TE6PvqmeQEnnZOgJ9 OE9A==
X-Gm-Message-State: ALoCoQmUfukydlfxOMQ6XCoktnTF9ylZXtsKpnq9vHzk+dwCBhACUtgm8s5y+EEPt16Kq1ciyy2v
MIME-Version: 1.0
X-Received: by 10.224.123.8 with SMTP id n8mr66780465qar.40.1406606400007; Mon, 28 Jul 2014 21:00:00 -0700 (PDT)
Received: by 10.96.172.194 with HTTP; Mon, 28 Jul 2014 20:59:59 -0700 (PDT)
Date: Mon, 28 Jul 2014 23:59:59 -0400
Message-ID: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com>
From: William Whyte <wwhyte@securityinnovation.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BiOOLMo0FmH070dHNItcpDifs_Y
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] IEEE 1609 requirements (was Re: Curve selection revisited)
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: Tue, 29 Jul 2014 04:00:04 -0000

Hi all,

Some notes on Bob's comments in the context of vehicle-to-vehicle
communications. He's on point in general but I have a few corrections,
below.

One thing to say in general about the V2V safety communications: these
are devices that, as Bob says, have a very long lifetime and may be
hard to upgrade in the field. They also need to be produced in
reasonable volumes and be durable. These all push the groups working
on V2X communications in the direction of using crypto technology
that's already widespread, so both the US and the EU groups working on
this are currently using NIST p256 and it would be difficult to
persuade them to change at this point (with some exceptions, see
below).

Personally, I regret that we're using the NIST curves, given the poor
quality of their generation process, but I don't see the marketplace
as yet having picked a winner from the alternatives.

> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to change
> that.

It's not clear that this is the case for V2V safety communications.
Collision prediction is fairly processor-intensive. All the prototypes
I know of have been on 32-bit processors. I don't see an ability to
support 8-bit processors as particularly important.

> Hardware acceleration is acceptable, but that could
> make in-field corrections impossible.

One potential bottleneck bottleneck is verification of incoming
messages. There may be 1000 incoming messages per second. Verifying
all of these requires hardware acceleration on any realistic
automotive device and for any choice of curve that I'm aware of.
Another alternative is to only verify certain messages, for example
from cars that might potentially cause a hazard. Hardware acceleration
is possible, but raises costs and risks locking in a particular crypto
solution. Europe and the US are taking different approaches to this:
in the European system, the intent is that every message is verified,
while in the US the emphasis is more on verify on demand.

> 1) Low over-the-air demands.  Every BIT counts.  We have to live with 32
> bytes; but 64 bytes may be too much.

Spectrum is another very constrained resource. If we could potentially
shave 16 bytes off every signature that's something we could be very
interested in.

> 3) Performance on an 8 bit  processor.  Performance is measured in time and
> energy.

As above, I don't think 8-bit performance is huge for V2V communications.

> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and in
> some cases written into regulations (urgh), so we have to still keep them
> working.  But if something 'new' and provably good makes a big difference in
> one of the previous needs I suspect there will be an attentive audience.

If the expert judgement of the technical working groups is that a
different algorithm than ECDSA is better, we don't believe there would
be a regulatory barrier to using that other algorithm.

> But please just don't solve this for TLS on octo-core 64-bit systems.

Yes! In particular, whatever choice is made by CFRG is likely to be
more widely supported in hardware than any alternative, so CFRG's
choice will be the strongest candidate to replace ECDSA if it has
sufficient advantages.

Cheers,

William


From nobody Mon Jul 28 21:14:25 2014
Return-Path: <watsonbladd@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 574CC1A01E6 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 21:14:20 -0700 (PDT)
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 r05cqtyoiod0 for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 21:14:18 -0700 (PDT)
Received: from mail-yh0-x231.google.com (mail-yh0-x231.google.com [IPv6:2607:f8b0:4002:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4EC271A0020 for <cfrg@irtf.org>; Mon, 28 Jul 2014 21:14:18 -0700 (PDT)
Received: by mail-yh0-f49.google.com with SMTP id b6so5393382yha.22 for <cfrg@irtf.org>; Mon, 28 Jul 2014 21:14:17 -0700 (PDT)
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=IMKKf4ogNR4ik4LQJGEEsd/4m6QljCCMWgqCJ1+6iwI=; b=LMSEEitupsoDjMeaDsW7sSZ+GOoYlDhg/lKzru5tGemHPIvqWg0ygsqu3FzS/Ic5Ek 8bCqt980jPRZEhvi+hzGNTQkkkCv8cruPDJdZSgrylW3Mirj3Nlvc+ToM9F91hrib6UP 4vtpQBBRSIcBh2boYPuS6HAYJnOup/SDa6sOuQOmzOuAgRLv1HTyKmtnGIaPh3HU9h34 bEAUg+WFrtwpS8rZsfPwf0tPXASzvK/PRjvhiX+0p6A2/gdm2Ncw+2/J57Q2cSC8bG16 q4HFg2nuugN1QRtvbxUFFNPJ2wEfH3nTzDflQsNPdG8jOJsHCwyh9b1iyXQiHrXn+UeQ zV0g==
MIME-Version: 1.0
X-Received: by 10.236.202.141 with SMTP id d13mr10048402yho.133.1406607257598;  Mon, 28 Jul 2014 21:14:17 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Mon, 28 Jul 2014 21:14:17 -0700 (PDT)
In-Reply-To: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com>
References: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com>
Date: Mon, 28 Jul 2014 21:14:17 -0700
Message-ID: <CACsn0ckeUWdbAHmfh7bE1vo1BydReHX+XhT4d8wQPVGbW7eSDA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: William Whyte <wwhyte@securityinnovation.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/VSBzfV_BDDcRsizkN-jnHTv9KGo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] IEEE 1609 requirements (was Re: Curve selection revisited)
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: Tue, 29 Jul 2014 04:14:20 -0000

On Mon, Jul 28, 2014 at 8:59 PM, William Whyte
<wwhyte@securityinnovation.com> wrote:
> Hi all,
>
> Some notes on Bob's comments in the context of vehicle-to-vehicle
> communications. He's on point in general but I have a few corrections,
> below.
>
> One thing to say in general about the V2V safety communications: these
> are devices that, as Bob says, have a very long lifetime and may be
> hard to upgrade in the field. They also need to be produced in
> reasonable volumes and be durable. These all push the groups working
> on V2X communications in the direction of using crypto technology
> that's already widespread, so both the US and the EU groups working on
> this are currently using NIST p256 and it would be difficult to
> persuade them to change at this point (with some exceptions, see
> below).
>
> Personally, I regret that we're using the NIST curves, given the poor
> quality of their generation process, but I don't see the marketplace
> as yet having picked a winner from the alternatives.
>
>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to change
>> that.
>
> It's not clear that this is the case for V2V safety communications.
> Collision prediction is fairly processor-intensive. All the prototypes
> I know of have been on 32-bit processors. I don't see an ability to
> support 8-bit processors as particularly important.
>
>> Hardware acceleration is acceptable, but that could
>> make in-field corrections impossible.
>
> One potential bottleneck bottleneck is verification of incoming
> messages. There may be 1000 incoming messages per second. Verifying
> all of these requires hardware acceleration on any realistic
> automotive device and for any choice of curve that I'm aware of.
> Another alternative is to only verify certain messages, for example
> from cars that might potentially cause a hazard. Hardware acceleration
> is possible, but raises costs and risks locking in a particular crypto
> solution. Europe and the US are taking different approaches to this:
> in the European system, the intent is that every message is verified,
> while in the US the emphasis is more on verify on demand.

Batch verification of some variants of Schnorr is extremely efficient,
thus reducing
per-signature costs. I assume this has been considered.

>
>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with 32
>> bytes; but 64 bytes may be too much.
>
> Spectrum is another very constrained resource. If we could potentially
> shave 16 bytes off every signature that's something we could be very
> interested in.
>
>> 3) Performance on an 8 bit  processor.  Performance is measured in time and
>> energy.
>
> As above, I don't think 8-bit performance is huge for V2V communications.
>
>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and in
>> some cases written into regulations (urgh), so we have to still keep them
>> working.  But if something 'new' and provably good makes a big difference in
>> one of the previous needs I suspect there will be an attentive audience.
>
> If the expert judgement of the technical working groups is that a
> different algorithm than ECDSA is better, we don't believe there would
> be a regulatory barrier to using that other algorithm.
>
>> But please just don't solve this for TLS on octo-core 64-bit systems.
>
> Yes! In particular, whatever choice is made by CFRG is likely to be
> more widely supported in hardware than any alternative, so CFRG's
> choice will be the strongest candidate to replace ECDSA if it has
> sufficient advantages.

Well, unfortunately we are not adopting Schnorr signatures at this
time. (We probably should).
I also don't see us working on binary curves, which are natural
candidates for hardware due to easier
arithmetic (no carries). But fundamentally we're here with a very
specific request: do your own homework
if that request ignores you.

(Adoption in hardware is likely to be slow)

Sincerely,
Watson Ladd
>
> Cheers,
>
> William
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Mon Jul 28 23:38:14 2014
Return-Path: <mike@shiftleft.org>
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 D205F1ABB1D for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 23:38:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 A907Vel1cFyA for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 23:38:11 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 38CA11A009C for <cfrg@irtf.org>; Mon, 28 Jul 2014 23:38:11 -0700 (PDT)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 9693E3AA27; Mon, 28 Jul 2014 23:38:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406615880; bh=lqPOpVi05ybU0AHZFqMsHJkN55ETEgqAWHLszSeh5Bg=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=KN3NfE2Kd7/X1R2tv+MkdPcBWhMAYHnRWgv9nOs0YoiLenOUzsiFmymgu+cAWkIO1 tzix5Z4y/V6EZejiNZVVOaydV29k28ApMhgLJoBeWP8XEPqncYhtbXhGsunfDcjxTw xa0yZAQ2ZUU0wJvrcWjvtCbO1nZbDetrsk82Pq4w=
Message-ID: <53D7414E.6070401@shiftleft.org>
Date: Mon, 28 Jul 2014 23:38:06 -0700
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>,  William Whyte <wwhyte@securityinnovation.com>
References: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com> <CACsn0ckeUWdbAHmfh7bE1vo1BydReHX+XhT4d8wQPVGbW7eSDA@mail.gmail.com>
In-Reply-To: <CACsn0ckeUWdbAHmfh7bE1vo1BydReHX+XhT4d8wQPVGbW7eSDA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/18HVomuEGOxNXk3ylFIPTYKOJlo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] IEEE 1609 requirements (was Re: Curve selection revisited)
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: Tue, 29 Jul 2014 06:38:13 -0000

On 7/28/2014 9:14 PM, Watson Ladd wrote:
> On Mon, Jul 28, 2014 at 8:59 PM, William Whyte
> <wwhyte@securityinnovation.com> wrote:
>> One potential bottleneck bottleneck is verification of incoming
>> messages. There may be 1000 incoming messages per second. Verifying
>> all of these requires hardware acceleration on any realistic
>> automotive device and for any choice of curve that I'm aware of.
>> Another alternative is to only verify certain messages, for example
>> from cars that might potentially cause a hazard. Hardware acceleration
>> is possible, but raises costs and risks locking in a particular crypto
>> solution. Europe and the US are taking different approaches to this:
>> in the European system, the intent is that every message is verified,
>> while in the US the emphasis is more on verify on demand.
A crypto math offload engine would be a good option.  You might not have 
to lock in a particular curve or algorithm.
> Batch verification of some variants of Schnorr is extremely efficient,
> thus reducing
> per-signature costs. I assume this has been considered.
Batch verification cuts signature verify times by up to 50%, but costs 
latency and complexity.  It's definitely an engineering tradeoff worth 
considering.  But I don't think batching is compatible with short 
signatures.

If you can dedicate the RAM and processing time -- which maybe you can't 
in a car system, but who knows -- there is also the option of 
precomputation.  Make a big comb table for g (a few kB in ROM) and a 
little comb table (maybe 256 bytes) for each car y you've seen more than 
n times.  Signature verification is g^x y^e with e short, and you can 
use the comb tables.

Cheers,
-- Mike


From nobody Mon Jul 28 23:48:42 2014
Return-Path: <mike@shiftleft.org>
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 A9AAA1ABB1D for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 23:48:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 o-y801t1NXPZ for <cfrg@ietfa.amsl.com>; Mon, 28 Jul 2014 23:48:39 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 09ADE1A00BA for <cfrg@irtf.org>; Mon, 28 Jul 2014 23:48:39 -0700 (PDT)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id A25B53AA27; Mon, 28 Jul 2014 23:48:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406616507; bh=34tfT/Yk1Wgyvhop5IF819KbEi2joAn9kv/sMlcD75c=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=gDW2lM9b4LUkuP+7f6TPY7I7UqYcF3iyZMVL9Lw1X/kM8IGSqQCleEE2l2swqhEFk frwrordQpEBxSqXIuSBfUt5+azNogz0CGiRXVmuFm+RyT5uV7K6+a5HvR9xyUlox+T NPaivaC5f7AcFtUNOrNENysxoOmBbt1UUL4L3q4c=
Message-ID: <53D743C1.1010401@shiftleft.org>
Date: Mon, 28 Jul 2014 23:48:33 -0700
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Paul Lambert <paul@marvell.com>,  Hannes Tschofenig <hannes.tschofenig@gmx.net>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <419B47D0-2779-4463-A071-DA40F22C370F@shiftleft.org> <53D69280.2090208@gmx.net> <6AA56990-224C-4742-9BD0-A68808B1C944@shiftleft.org> <7BAC95F5A7E67643AAFB2C31BEE662D01EE48963E2@SC-VEXCH2.marvell.com>
In-Reply-To: <7BAC95F5A7E67643AAFB2C31BEE662D01EE48963E2@SC-VEXCH2.marvell.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/vwrHrmBazlLeR0OJUdE67fmsAX4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] Curve selection revisited
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: Tue, 29 Jul 2014 06:48:39 -0000

On 7/28/2014 5:33 PM, Paul Lambert wrote:
> Thank you for the details below.  One question on a comment you made:
>> Depending on the exact form of Schnorr, .
> So, what form of Schnorr signatures would you recommend?
>
> Paul
Let x be the secret key, g^k the nonce, e = H(stuff) the challenge and s 
= k - xe the response.

If you want short signatures it has to be (e,s).  Otherwise, (g^k,s) is 
slightly faster and batchable.    The hash should be H(pubkey||g^k||m) 
to prevent collision attacks, because you can and there's little downside.

I don't think there's a good case for setting s = ke - x.  It may resist 
some power attacks more easily, but it increases the attack surface and 
prevents optimizations.

-- Mike


From nobody Tue Jul 29 00:06:30 2014
Return-Path: <cabo@tzi.org>
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 E8FCB1ABD19 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 00:06:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, SPF_HELO_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 BXcGapCs4_fq for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 00:06:26 -0700 (PDT)
Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 02CD51ABD17 for <cfrg@irtf.org>; Tue, 29 Jul 2014 00:06:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id s6T76I3g027345 for <cfrg@irtf.org>; Tue, 29 Jul 2014 09:06:18 +0200 (CEST)
Received: from [172.20.10.6] (ip-2-203-149-66.web.vodafone.de [2.203.149.66]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 6CAB04B5; Tue, 29 Jul 2014 09:06:16 +0200 (CEST)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CACz1E9rUhwErnP_eG_=UC2EpT7M6z89ZdNr7ijNJxnaBA+RJAQ@mail.gmail.com>
Date: Tue, 29 Jul 2014 09:06:05 +0200
X-Mao-Original-Outgoing-Id: 428310365.563093-646eca5baa9889c3cd65c3f347435436
Content-Transfer-Encoding: quoted-printable
Message-Id: <5984C963-58D0-414E-AA5C-E02F749B5410@tzi.org>
References: <CACz1E9rUhwErnP_eG_=UC2EpT7M6z89ZdNr7ijNJxnaBA+RJAQ@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/h79pFCJw_hg3FsFy57gw0ySI8mg
Subject: [Cfrg] OER (Re: ASN.1 in IEEE 1609.2 (was Re: Curve selection revisited))
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: Tue, 29 Jul 2014 07:06:28 -0000

On 29 Jul 2014, at 05:38, William Whyte <wwhyte@securityinnovation.com> =
wrote:

> Octet Encoding Rules, or OER

Many people here may not be familiar with this newest member of the =
growing family of ASN.1 encoding rules.  Until recently, OER was =
strictly domain-specific.  Now, it has been submitted to ITU-T and =
surfaced as X.696 (ISO/IEC 8825-7).

The original NTCIP document specifying OES has this to say:

> Annex A Justification for OER
>=20
> (Informative)
>=20
> During the development of the NTCIP, in 1995, the NEMA 3-TS Technical =
Committee began to learn about the Simple Network Management Protocol =
(SNMP) and Abstract Syntax Notation One (ASN.1). The committee liked the =
design of both SNMP and ASN.1, but was concerned about the massive =
bandwidth requirements that the SNMP solution imposed. As such, the =
committee set forth to establish a new protocol, called the Simple =
Transportation Management Protocol (STMP), which would meet the =
bandwidth requirements of intelligent transportation systems.
>=20
> The STMP was designed around the concept of configuring message =
content at run-time, but prior to actual message use, and using more =
compact encoding rules. Unfortunately, the NEMA committee was unaware of =
ISO's development of Packed Encoding Rules (ISO PER), ISO 8825-2. Thus, =
instead of using ISO PER, NEMA developed their own encoding rules, which =
were limited to the needs of STMP. To further complicate the matter, =
NEMA also named their encoding rules Packed Encoding Rules (NEMA PER).
>=20
> By 1998, several firms were implementing the STMP and the supporting =
encoding rules, and through this process, several ambiguities were =
noticed in the NEMA PER standard. Further, the Committee realized that =
some people were becoming confused by the two versions of PER. Finally, =
the committee was being asked to investigate an extension to STMP that =
would use fixed messages. Thus, the Committee conducted an investigation =
to determine whether the standard should be modified to use ISO PER, or =
if the existing standard (STMP) should simply be clarified.
>=20
> After a detailed review of the issue, the Committee, in association =
with various NTCIP Working Groups that had since been established, =
decided to clarify the original specification due to the inherent =
complexity of the ISO PER.
> It also agreed that the long-term solution was to develop a separate =
document that would formally define these new encoding rules for all =
ASN.1 Types. Finally, it was decided that the name of the encoding rules =
should be changed in order to minimize confusion, and the committee =
decided upon the name "Octet Encoding Rules=94 because of the =
octet-aligned nature of the encoding. [...]

Different from BER, OER focuses on generating fixed-size fields when =
that fixed size can be derived from the ASN.1 type constraints.  It also =
recognizes the importance of unsigned integers*).  With some care, =
something resembling a classic IETF packet format could be written down =
in ASN.1 assuming OER (at least as long as everything is =
byte-aligned)**).

While BER is structurally self-describing (you can decode the structure =
of an ASN.1 BER object even without having the data definition at hand), =
for an OER object you do need the data definition to make any sense of =
it.  Generic tools cannot be written: implementations are specific to =
the data definition or need an interpreter for the ASN.1 language in =
which it is written (i.e., the modern variant, not the older dialect =
used in the IETF). This reliance on information from the data definition =
is not different from TLS notation or box notation, but might be =
surprising for those who think about ASN.1 in terms of BER.

The companies that supply ASN.1 tools love OER.  The market for =
commercial ASN.1 tools had been drying up when open-source ASN.1 tools =
became better and better.  OER presents new opportunities for commercial =
tools.  I=92m sure they will know to avoid another =93PER disaster=94***).=


Gr=FC=DFe, Carsten

*) (A pet peeve many of us have with BER is that it only supports signed =
integers, which are less interesting in many embedded applications.)

**) Hand-crafted packet formats will almost always win over generated =
ones unless the complexity is so high that shortcuts have to be taken in =
the handcrafting.

***) (Little known outside that community, bugs in the pretty much =
single-sourced ASN.1 PER tools almost sunk H.323 in the mid-90s).


From nobody Tue Jul 29 03:06:00 2014
Return-Path: <gtprocter@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 ADC261A033E for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 03:05:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 5vsemQ4wK0pW for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 03:05:56 -0700 (PDT)
Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA83E1A0101 for <cfrg@irtf.org>; Tue, 29 Jul 2014 03:05:55 -0700 (PDT)
Received: by mail-qa0-f48.google.com with SMTP id m5so8932611qaj.7 for <cfrg@irtf.org>; Tue, 29 Jul 2014 03:05:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:from:date:message-id:subject:to:content-type; bh=dJSO43aMuSYVUyGW1UKvYspeoeg3qOXXWbe9ntlIlIc=; b=SbleYQ13Ojez/NcnW3S3Q283I5kLR5PTW1hglxGktbJJu5Cc3pyOBcfxsbDvRLkz4c ma/z3ITKn+m+oP/Rquo3bz/ZNs5d7IvYdsTOOUe9+BBqAfktGXqk/s5jJWngcF2xkzlz eYkTFyxX6/ItgyiA+YbNEcFXNCRKtS7xlBMKqP92lbGy/A1/ZBzgiJ0RtGKLnTAkWRR4 irpbaSSOxVAH+lvyfPjH6DKiS1wXMCiTQsSqcric3304ozVNu1ZV4RF1kE4bckX6nMFw IG1fdzCKNf5unIC9WZ/mj6crAMtn55EtjjcmCsfI+rHMFgkLHI4EySdg95P+XjBucR9I 29EA==
X-Received: by 10.140.94.197 with SMTP id g63mr1637015qge.90.1406628353965; Tue, 29 Jul 2014 03:05:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.102.19 with HTTP; Tue, 29 Jul 2014 03:05:33 -0700 (PDT)
From: Gordon Procter <gtprocter@gmail.com>
Date: Tue, 29 Jul 2014 11:05:33 +0100
Message-ID: <CAJgFzNejJktAUmagGD6hWcHxLJp=2nxyZ6axuENdTiw6kPtA5Q@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=001a113a22ba5e861604ff522f88
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/n1g5fqDup4KhzpAjml3gR96Y1dM
Subject: [Cfrg] FW: Request for review of ChaCha/Poly1305
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: Tue, 29 Jul 2014 10:05:58 -0000

--001a113a22ba5e861604ff522f88
Content-Type: text/plain; charset=UTF-8

On 25/07/2014 12:04, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk> wrote:

>Dear CFRG,
>
>We have been formally requested by the TLS WG to provide review on this
>document:
>
>https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/
>
>defining an AEAD construction using the ChaCha and Poly1305 algorithms.
>This scheme is being considered by the TLS WG for adoption in TLS.
>
>There are two aspects to the request:
>
>A) analysis of the individual algorithms;
>B) analysis of the composition (in Section 2.8 of the document).
>
>My sense is that novel analysis of the algorithms (A) is not likely to be
>forthcoming from this group within a realistic timeframe. We can instead
>hope that the adoption of ChaCha in TLS will spur further analysis of it
>by the research community in the longer term.
>
>On the other hand, analysis of the composition (B) should be within our
>collective reach within a realistic timeframe.
>
>Comments, please.
>
>Best wishes
>
>Kenny (for the chairs)
>

Hi Kenny,

I can spend some time looking at this (specifically the composition).


Gordon

--001a113a22ba5e861604ff522f88
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-family:arial,sans-serif;font-size:13px=
">On 25/07/2014 12:04, &quot;Paterson, Kenny&quot; &lt;</span><a href=3D"ma=
ilto:Kenny.Paterson@rhul.ac.uk" style=3D"font-family:arial,sans-serif;font-=
size:13px" target=3D"_blank">Kenny.Paterson@rhul.ac.uk</a><span style=3D"fo=
nt-family:arial,sans-serif;font-size:13px">&gt; wrote:</span><br style=3D"f=
ont-family:arial,sans-serif;font-size:13px">


<br style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"fo=
nt-family:arial,sans-serif;font-size:13px">&gt;Dear CFRG,</span><br style=
=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-family=
:arial,sans-serif;font-size:13px">&gt;</span><br style=3D"font-family:arial=
,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;We have bee=
n formally requested by the TLS WG to provide review on this</span><br styl=
e=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-famil=
y:arial,sans-serif;font-size:13px">&gt;document:</span><br style=3D"font-fa=
mily:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br =
style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-f=
amily:arial,sans-serif;font-size:13px">&gt;</span><a href=3D"https://datatr=
acker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/" style=3D"font-family=
:arial,sans-serif;font-size:13px" target=3D"_blank">https://datatracker.iet=
f.org/doc/draft-irtf-cfrg-chacha20-poly1305/</a><br style=3D"font-family:ar=
ial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br =
style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-f=
amily:arial,sans-serif;font-size:13px">&gt;defining an AEAD construction us=
ing the ChaCha and Poly1305 algorithms.</span><br style=3D"font-family:aria=
l,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;This scheme=
 is being considered by the TLS WG for adoption in TLS.</span><br style=3D"=
font-family:arial,sans-serif;font-size:13px"><span style=3D"font-family:ari=
al,sans-serif;font-size:13px">&gt;</span><br style=3D"font-family:arial,san=
s-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;There are t=
wo aspects to the request:</span><br style=3D"font-family:arial,sans-serif;=
font-size:13px"><span style=3D"font-family:arial,sans-serif;font-size:13px"=
>&gt;</span><br style=3D"font-family:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;A) analysis=
 of the individual algorithms;</span><br style=3D"font-family:arial,sans-se=
rif;font-size:13px"><span style=3D"font-family:arial,sans-serif;font-size:1=
3px">&gt;B) analysis of the composition (in Section 2.8 of the document).</=
span><br style=3D"font-family:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br =
style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-f=
amily:arial,sans-serif;font-size:13px">&gt;My sense is that novel analysis =
of the algorithms (A) is not likely to be</span><br style=3D"font-family:ar=
ial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;forthcoming=
 from this group within a realistic timeframe. We can instead</span><br sty=
le=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-fami=
ly:arial,sans-serif;font-size:13px">&gt;hope that the adoption of ChaCha in=
 TLS will spur further analysis of it</span><br style=3D"font-family:arial,=
sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;by the rese=
arch community in the longer term.</span><br style=3D"font-family:arial,san=
s-serif;font-size:13px"><span style=3D"font-family:arial,sans-serif;font-si=
ze:13px">&gt;</span><br style=3D"font-family:arial,sans-serif;font-size:13p=
x">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;On the othe=
r hand, analysis of the composition (B) should be within our</span><br styl=
e=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-famil=
y:arial,sans-serif;font-size:13px">&gt;collective reach within a realistic =
timeframe.</span><br style=3D"font-family:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br =
style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-f=
amily:arial,sans-serif;font-size:13px">&gt;Comments, please.</span><br styl=
e=3D"font-family:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br =
style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-f=
amily:arial,sans-serif;font-size:13px">&gt;Best wishes</span><br style=3D"f=
ont-family:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br =
style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"font-f=
amily:arial,sans-serif;font-size:13px">&gt;Kenny (for the chairs)</span><br=
 style=3D"font-family:arial,sans-serif;font-size:13px">


<span style=3D"font-family:arial,sans-serif;font-size:13px">&gt;</span><br>=
<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">Hi =
Kenny,</span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">I c=
an spend some time looking at this (specifically the composition).</span></=
div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><br></div><div><font face=3D"arial, sans-serif">Gordon</font></=
div></div>

--001a113a22ba5e861604ff522f88--


From nobody Tue Jul 29 04:14:26 2014
Return-Path: <rransom.8774@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 CDA981B27BC for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 04:14:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 j6be-UwNVrR3 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 04:14:17 -0700 (PDT)
Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E88A11B27BB for <cfrg@irtf.org>; Tue, 29 Jul 2014 04:14:16 -0700 (PDT)
Received: by mail-qa0-f48.google.com with SMTP id m5so9255513qaj.35 for <cfrg@irtf.org>; Tue, 29 Jul 2014 04:14:16 -0700 (PDT)
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:content-transfer-encoding; bh=ToAQxgq93EYAF2DBQuynz+VxfUHFQ+/Jn1ElbF4A13o=; b=KICrNCLeaeXROubf4KaaVLOSBqM2ASCRG/g83GTqtmxfrQePKtGNStCWMzklyYDH0h RoY13tswdMDswXexeR5LiIxIDBMw7gljYRfSojf8kEeYljwgM1FvduMinIRyalC2wpBV rSBxZKUrRC62suKy40muhJ6Q3ogDHSI3jRZHv+vkFgFdITDPGsyCXoJWqH9isBwtaySH EiCLpFi/+1jc2CU2BftkPsrK8xf7I5+LjJ4pfvO9ogTHY2RszroJ7nKElLOOTsXq8KiL cszQtKa+AtV6G42AzXkGhJUOKSeWC9rKBnGKFr5SUeI4biRw1lWNqWz1BYl8IG5gzmsA 9JaQ==
MIME-Version: 1.0
X-Received: by 10.229.231.74 with SMTP id jp10mr2286567qcb.29.1406632455890; Tue, 29 Jul 2014 04:14:15 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Tue, 29 Jul 2014 04:14:15 -0700 (PDT)
In-Reply-To: <53D420B3.10707@brainhub.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org>
Date: Tue, 29 Jul 2014 04:14:15 -0700
Message-ID: <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ineI42CtwjeMF8HbBdm0bz1iqno
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Curve selection revisited
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: Tue, 29 Jul 2014 11:14:22 -0000

On 7/26/14, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 07/25/2014 07:25 PM, Robert Ransom wrote:
>> The exact value of c determines whether a portable or vectorized
>> implementation can delay carries until after reduction.  For example,
>> after curve25519-donna performs a multiply or squaring, each of 19
>> 64-bit limbs has absolute value less than 14*2^54.  When
>> freduce_degree reduces a field element to 10 limbs without carrying,
>> the result has absolute value less than (c+1)*14*2^54  =3D 280*2^54, or =
a
>> bit more than 2^62.  In the Microsoft field 2^255  - 765, or even 2^256
>> - 189, this would not be possible.
>>
>> Carries between limbs can be performed more efficiently than in
>> curve25519-donna -- curve25519-donna goes to extra effort to keep
>> limbs signed.  In the Montgomery ladder, this optimization does not
>> add any extra carry steps, because the Montgomery-ladder formulas
>> never perform more than two add/subtract operations between a
>> multiply/square operation.  With Edwards-curve operations, this
>> optimization may require an additional carry step in the doubling
>> formula.
>>
>> The exact value of s determines whether carries can be vectorized
>> within a coordinate-field element.  For example, 2^251  - 9 can be
>> represented using one 26-bit limb (in the least significant position)
>> and 9 25-bit limbs, but this interferes with the vectorization
>> strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
>> Since c=3D9 is so small, this can be worked around by representing
>> coordinates modulo 2^252  - 18 instead, but this trick is rarely
>> possible without running into the bound on c.

> The main argument for p =3D 2^255-19 v.s. p =3D 1^256-189 is that the C=
=3D19
> is smaller than C=3D189 and this helps to "manage" the carries.

Actually, the main argument for p =3D 2^255 - 19 is that Curve25519 is
the de-facto standard curve for high-performance ECC in a group of
near-256-bit order.  Part of the reason for that is that implementers
have, in practice, been able to rely on the small value of what you
denote as =E2=80=9CC=E2=80=9D for that field in optimizing their software, =
so no one
has felt a need to switch to a different field of that form for
performance reasons.

(Mike Hamburg introduced =E2=80=98special Montgomery primes=E2=80=99 and sh=
owed
evidence that they can provide better performance in some
implementations than the Curve25519 coordinate field in
<https://eprint.iacr.org/2012/309.pdf>, but that's a different form of
prime.)


> Let's assume that an F(p) integer is represented as n limbs (words).
>
> 256 bit Montgomery curve will have on the order of (5 mul + 4 squares)
> and about the same number F(p) additions per one scalar bit.
>
> Therefore, we can talk about one unreduced F(p) multiplication + F(p)
> reduction (where C plays its role) + F(p) addition. With this in mind
> the contribution of C can be estimated within this group.
>
> F(p) multiplications (counting squares here as well) dominate the
> performance of EC operations:
> * the result of the multiplication is 2*n limbs and the complexity of
> this operation is n^2 limb multiplications and O(n^2) additions.
> * the 2*n limbs must be reduced (mod p) to n limbs immediately after
> multiplication
> * there is on average ~1 addition/subtraction of n limbs per each
> multiplication due to EC formula
>
> Each multiplication needs degree reduction and settling of accumulated
> carries before the next multiplication. One can only postpone settling
> of carries while he does additions (prior to the next multiplciation).
>
> We have about n^2 limb additions, plus n limb additions due to EC
> formular, plus we must perform n additions of the form <some_limb>*C
> (for modp reduction).
>
> Assuming n=3D10 limbs, the entire contribution of n <some_limb>*C is boun=
d
> by ~10% of all the additions.
>
> We are not talking about C=3D0, however, but rather about |C|=3D4 bits v.=
s.
> |C| =3D 8 bits difference.
>
> A rough estimate here is 5% penalty.

As Dr. Bernstein has pointed out, a larger value of C requires 3*n
carries instead of n carries (see
<https://moderncrypto.org/mail-archive/curves/2014/000237.html>), and
carries have high latency (see section 4, subsection =E2=80=98Reduction=E2=
=80=99 of
naclcrypto).


> One reason why I think this is a good estimate is that there may be a
> benefit of more fine-tuned control of carries. The highest accumulation
> of the carries happens in the inner limbs of the 2*n integer (imagine
> paper-and-pencil multiplication of two n-limb numbers: the stack is the
> highest in the middle). Therefore, if we have the need to control
> overflow within, say, multiplication, perhaps it's possible to
> accomplish this within a subset of n limbs.

So you expect greater implementation effort and complexity to reduce
the added cost, but not eliminate it?


> ( BTW, I don't see a clear argument why can't any F(p) be vectorized
> (some more efficiently than others). The vectorization using x86 SSE2 is
> known to speeds up RSA operations for generic F(p)s. )

As I said, the vectorization strategy used in the neoncrypto paper is
incompatible with 251-bit moduli.  That strategy requires pairing
together limbs of the same size, so that a vectorized shift operation
can be used to carry out of both limbs at the same time.

In RSA, where (in your notation) C is necessarily huge, there is no
performance penalty from making C a few bits larger, so it's easy to
lengthen the modulus and make every limb the same size, so it's easy
to vectorize carries across any pair of limbs.  But that's not very
relevant to the primes used for fast ECC.


Do you see any benefit of p =3D 2^256 - 189 over p =3D 2^255 - 19 that you
believe offsets the costs of switching to a different coordinate
field?


Robert Ransom


From nobody Tue Jul 29 05:39:48 2014
Return-Path: <rgm-sec@htt-consult.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 9DE9C1B2864 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 05:39:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 heTm2q6DEaJ3 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 05:39:31 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 788FB1B283E for <cfrg@irtf.org>; Tue, 29 Jul 2014 05:39:31 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id CF3A962BA1; Tue, 29 Jul 2014 12:39:29 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gfbou+2pWQSL; Tue, 29 Jul 2014 08:39:19 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id C4AD362B85; Tue, 29 Jul 2014 08:39:17 -0400 (EDT)
Message-ID: <53D795F5.2080700@htt-consult.com>
Date: Tue, 29 Jul 2014 08:39:17 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: William Whyte <wwhyte@securityinnovation.com>
References: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com>
In-Reply-To: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/vN2-pgZJqUvPPH_RkgDQn5SE0ho
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] IEEE 1609 requirements (was Re: Curve selection revisited)
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: Tue, 29 Jul 2014 12:39:37 -0000

I failed to be clear in that 8-bit processors were in the sensor 
segment.  DSRC (IEEE 1609) is not so constrained (real electrons and 
such) and 32 bit is the norm.  My bad.

On 07/28/2014 11:59 PM, William Whyte wrote:
> Hi all,
>
> Some notes on Bob's comments in the context of vehicle-to-vehicle
> communications. He's on point in general but I have a few corrections,
> below.
>
> One thing to say in general about the V2V safety communications: these
> are devices that, as Bob says, have a very long lifetime and may be
> hard to upgrade in the field. They also need to be produced in
> reasonable volumes and be durable. These all push the groups working
> on V2X communications in the direction of using crypto technology
> that's already widespread, so both the US and the EU groups working on
> this are currently using NIST p256 and it would be difficult to
> persuade them to change at this point (with some exceptions, see
> below).
>
> Personally, I regret that we're using the NIST curves, given the poor
> quality of their generation process, but I don't see the marketplace
> as yet having picked a winner from the alternatives.
>
>> 8 bit processors are the norm, and NO, Dr. Moore is NOT going to change
>> that.
> It's not clear that this is the case for V2V safety communications.
> Collision prediction is fairly processor-intensive. All the prototypes
> I know of have been on 32-bit processors. I don't see an ability to
> support 8-bit processors as particularly important.

V2X almost always has the wherewithall for 32bit.  Potentially some 
roadside sensors might be so constrained, but not likely once you factor 
in the cost of an 802.11p radio, you might as well pay the little extra 
for 32 bit processors.

>
>> Hardware acceleration is acceptable, but that could
>> make in-field corrections impossible.
> One potential bottleneck bottleneck is verification of incoming
> messages. There may be 1000 incoming messages per second. Verifying
> all of these requires hardware acceleration on any realistic
> automotive device and for any choice of curve that I'm aware of.
> Another alternative is to only verify certain messages, for example
> from cars that might potentially cause a hazard. Hardware acceleration
> is possible, but raises costs and risks locking in a particular crypto
> solution. Europe and the US are taking different approaches to this:
> in the European system, the intent is that every message is verified,
> while in the US the emphasis is more on verify on demand.

Imagine a congested roadway with every car screaming out what it is 
encountering and every car trying to validate those signed messages.  
Definitely more validations than signings.

>
>> 1) Low over-the-air demands.  Every BIT counts.  We have to live with 32
>> bytes; but 64 bytes may be too much.
> Spectrum is another very constrained resource. If we could potentially
> shave 16 bytes off every signature that's something we could be very
> interested in.

Kind of what I was saying without going into the details of needing low 
over-the-air demands.  Spectrum, PHY contention algorithms, LBT (listen 
before transmit, or some such acronym) all add up to needing to be brief 
in what you transmit.  So it is recongnized that 32 byte keys are called 
for; but what of the key is actually sent?  And as William says, how big 
is the signature of the packet.  Is the key sent with every signed 
message or only when a new car is 'heard from'?  There are a number of 
optimizations to conserve the vary limited airway.

>
>> 3) Performance on an 8 bit  processor.  Performance is measured in time and
>> energy.
> As above, I don't think 8-bit performance is huge for V2V communications.

No.  Elsewhere; and still potentially in cars.

>
>> 4) preserving ECDSA and ECDHE.  This is what is currently in use, and in
>> some cases written into regulations (urgh), so we have to still keep them
>> working.  But if something 'new' and provably good makes a big difference in
>> one of the previous needs I suspect there will be an attentive audience.
> If the expert judgement of the technical working groups is that a
> different algorithm than ECDSA is better, we don't believe there would
> be a regulatory barrier to using that other algorithm.

It was smartgrid related I saw the regulator reference.  The rule making 
is still a piece of work-in-progress for V2X.  But USDOT could come out 
with rules still this year.

>
>> But please just don't solve this for TLS on octo-core 64-bit systems.
> Yes! In particular, whatever choice is made by CFRG is likely to be
> more widely supported in hardware than any alternative, so CFRG's
> choice will be the strongest candidate to replace ECDSA if it has
> sufficient advantages.
>
> Cheers,
>
> William
>


From nobody Tue Jul 29 05:46:06 2014
Return-Path: <rgm-sec@htt-consult.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 58AFB1B283E for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 05:46:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 dXiPCNowisVa for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 05:46:02 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 2B4A71A039D for <cfrg@irtf.org>; Tue, 29 Jul 2014 05:46:02 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id ACF1B62B85; Tue, 29 Jul 2014 12:46:01 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dbJXHENa2uAi; Tue, 29 Jul 2014 08:45:51 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id B0BB662AAD; Tue, 29 Jul 2014 08:45:50 -0400 (EDT)
Message-ID: <53D7977E.6040204@htt-consult.com>
Date: Tue, 29 Jul 2014 08:45:50 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Mike Hamburg <mike@shiftleft.org>, Watson Ladd <watsonbladd@gmail.com>, William Whyte <wwhyte@securityinnovation.com>
References: <CACz1E9qP04tnXuCWtiGFrT3FGSR_9SrYpBQQe3F07k3+T2DBZw@mail.gmail.com> <CACsn0ckeUWdbAHmfh7bE1vo1BydReHX+XhT4d8wQPVGbW7eSDA@mail.gmail.com> <53D7414E.6070401@shiftleft.org>
In-Reply-To: <53D7414E.6070401@shiftleft.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6sejGc8gsFLciWPWLlYoYtpfW3g
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] IEEE 1609 requirements (was Re: Curve selection revisited)
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: Tue, 29 Jul 2014 12:46:04 -0000

On 07/29/2014 02:38 AM, Mike Hamburg wrote:
>
> On 7/28/2014 9:14 PM, Watson Ladd wrote:
>> On Mon, Jul 28, 2014 at 8:59 PM, William Whyte
>> <wwhyte@securityinnovation.com> wrote:
>>> One potential bottleneck bottleneck is verification of incoming
>>> messages. There may be 1000 incoming messages per second. Verifying
>>> all of these requires hardware acceleration on any realistic
>>> automotive device and for any choice of curve that I'm aware of.
>>> Another alternative is to only verify certain messages, for example
>>> from cars that might potentially cause a hazard. Hardware acceleration
>>> is possible, but raises costs and risks locking in a particular crypto
>>> solution. Europe and the US are taking different approaches to this:
>>> in the European system, the intent is that every message is verified,
>>> while in the US the emphasis is more on verify on demand.
> A crypto math offload engine would be a good option.  You might not 
> have to lock in a particular curve or algorithm.
>> Batch verification of some variants of Schnorr is extremely efficient,
>> thus reducing
>> per-signature costs. I assume this has been considered.
> Batch verification cuts signature verify times by up to 50%, but costs 
> latency and complexity.  It's definitely an engineering tradeoff worth 
> considering.  But I don't think batching is compatible with short 
> signatures.
>
> If you can dedicate the RAM and processing time -- which maybe you 
> can't in a car system, but who knows -- there is also the option of 
> precomputation.  Make a big comb table for g (a few kB in ROM) and a 
> little comb table (maybe 256 bytes) for each car y you've seen more 
> than n times.

During a traffic mess, you might see 100+ cars for an hour. Probably 
more.  The radio range is 1Km; it will be interesting how it will 
actually work in a congested roadway.   Everything is simulations so far 
(at least congestion areas) that I have seen.  A 20,000 vehicle pilot is 
suppose to be coming soon and perhaps they can stage some congestion 
testing.



> Signature verification is g^x y^e with e short, and you can use the 
> comb tables.
>
> Cheers,
> -- Mike
>


From nobody Tue Jul 29 06:52:39 2014
Return-Path: <rransom.8774@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 48D6A1B2793 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 06:52:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.55
X-Spam-Level: 
X-Spam-Status: No, score=-0.55 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, J_CHICKENPOX_14=0.6, J_CHICKENPOX_15=0.6, 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 ZDFiHfXskmng for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 06:52:34 -0700 (PDT)
Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 027541B2884 for <cfrg@irtf.org>; Tue, 29 Jul 2014 06:52:33 -0700 (PDT)
Received: by mail-qg0-f51.google.com with SMTP id a108so10535806qge.10 for <cfrg@irtf.org>; Tue, 29 Jul 2014 06:52:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bBpJDa1V6YxeNCUIX/SeMst3ueeeZsHsemWoQhNCIJg=; b=PxP80vBVimaMLigLK5LdrvoN8zb4SVMlNFwLbIruog8+CS1dkvToRA/r/BMfpEXwWa jhIJSnnK/hZzf1h9l6o9TMSChSCI6wn5+uL5H3hQK3QLRuZTqB9RJAP+TRwS4sPRVx05 5ONc/YU/4sNFzP9Pc+wECDY6wKxRY3VsYdNI4PNJlTD2LujtBbbJSE1szS52vNoXuFYD b/jm0J/A8IGMQB2+LmX8DvtRxgGEoIlES2nkHJHWf05fSREguSP8fX0Id9p8q6LzR5WM oFEWDonfihs70gHTbi/yMK3T5z1s37Dnf3V6ywBWCj1djuJmuNzZ6LUdPrUGUdNDTZQC oYaA==
MIME-Version: 1.0
X-Received: by 10.229.67.69 with SMTP id q5mr3727051qci.25.1406641953227; Tue, 29 Jul 2014 06:52:33 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Tue, 29 Jul 2014 06:52:33 -0700 (PDT)
Date: Tue, 29 Jul 2014 06:52:33 -0700
Message-ID: <CABqy+sqKg=9UTYZdZM+Ac9wznUHUGzV1zB+RUrrjRU1+e3VJKg@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Cko4mRR94X0IrqpmYLG9jLAkVGM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] Montgomery-form point formats for Edwards-form software
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: Tue, 29 Jul 2014 13:52:38 -0000

On 7/26/14, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:
> On Fri, Jul 25, 2014 at 07:25:54PM -0700, Robert Ransom wrote:
>> On 7/25/14, Watson Ladd <watsonbladd@gmail.com> wrote:
>>
>> Affine Montgomery-form points can be unpacked to and packed from
>> projective (optionally twisted) Edwards-form points at a trivial extra
>> cost over unpacking from or packing to a compressed affine
>> Edwards-form point.
>
> Do you mean Montgomery_x-only, or that (Montgomery_x, Edwards_x_sign)
> representation?

Yes.  (Either representation -- one can trivially interpret the former
as the latter and convert the latter to the former.)

> If the latter, it is not at all obvious how to get both in just
> one inversion (either can obviously be gotten in just one inversion,
> as can full edwards affine form).

First:

* I'm going to state the unpacking and packing routines in terms of
  the P^1 * P^1 form of Edwards coordinates, in which Edwards x is
  represented as (X : Z) and Edwards y is represented as (Y : T).

  NOTE that the Hisil et al. =E2=80=98extended=E2=80=99 coordinates used in=
 fast
  implementations use the same variable names with different meanings;
  those extended coordinates are what mathematicians call the =E2=80=98Segr=
e
  embedding=E2=80=99 of the P^1 * P^1 form.

  Converting from P^1 * P^1 to Segre coordinates when one of X, Z and
  one of Y, T are each known to equal 1 costs 1M; converting to Segre
  when only one of X, Z, Y, T is known to be 1 costs 2M.  Converting
  from P^1 * P^1 to Segre coordinates in general costs 3M, and this
  routine can be reused internally by the addition and doubling
  formulas.

* I'm assuming a square-root-of-fraction routine (as described in the
  Ed25519 paper and used in Edwards-form point decompression) as a
  primitive, as well as a simultaneous-inversion routine (which
  computes the reciprocals of two coordinates at once, using
  =E2=80=98Montgomery's trick=E2=80=99).  I assume that, as happens natural=
ly in
  practice, both routines produce zero as their output(s) when either
  of their inputs is zero.

  If you haven't seen it before, Montgomery's simultaneous-inversion
  trick to invert e.g. a and b, assuming they are both non-zero, is as
  follows:

    ab :=3D a*b
    abinv :=3D 1/ab
    ainv :=3D b*abinv
    binv :=3D a*abinv

* I'm assuming that points are encoded on a =E2=80=98complete=E2=80=99 Edwa=
rds curve,
  i.e. one which has no points at infinity over the base field (so
  that Z and T are non-zero when packing a point, and when unpacking a
  valid point).  This is a good idea, for multiple reasons, even if
  the most efficient implementations will map points onto an
  incomplete Edwards curve internally before operating on them.


Now, the routines:

* Unpacking affine Montgomery form to projective Edwards form:

  u :=3D Montgomery_x
  sx :=3D Edwards_x_sign

  Y :=3D u - 1
  T :=3D u + 1

  f :=3D T^2 - Y^2
  g :=3D a*T^2 - d*Y^2
  X' :=3D sqrt(f/g)
  if (X')^2*g !=3D f, abort

    (Note: In practice, some Edwards-form implementations must
           decompress and operate on points on the twist as well; I'll
           post more details soon-ish.)

  X :=3D adjust_sign(X', sx)

  Z :=3D 1

* Packing projective Edwards form to affine Montgomery form:

  U :=3D T + Y
  W :=3D T - Y

  Winv, Zinv :=3D 1/W, 1/Z

  u :=3D U*Winv

  x :=3D X*Zinv
  sx :=3D sign(x)

  Montgomery_x :=3D u
  Edwards_x_sign :=3D sx


Some notes:

* If the input to the packing routine is =E2=80=98undefined=E2=80=99 (i.e. =
X =3D Z =3D 0
  or Y =3D T =3D 0), then W or Z will be zero, so Winv =3D Zinv =3D 0, so u=
 =3D
  x =3D 0 and sx =3D sign(0); this is the same output as is used to
  represent the identity element.

  Note that packing an undefined point to Edwards form in the natural
  way results in either a distinct undefined-point encoding or a point
  with y=3D0, of order 4.  This routine handles the undefined point in a
  safer way, when used as part of an algorithm which can produce it
  under controlled, predictable conditions.

  So, assume that the point being packed is not undefined.

* Since the Edwards curve is assumed to be complete, in any valid
  input to the packing routine, Z !=3D 0.  Thus, the only way that Winv
  or Zinv can be set to zero is if W =3D 0.

  If W =3D 0, then T =3D Y, so y =3D 1, so the input is the identity
  element.

* As with implementations which use Montgomery form internally, the
  Montgomery_x=3D0 input is unpacked to the point of order 2, even
  though it was most likely packed from the identity element.

  This issue could be avoided (as suggested by Mike Hamburg) by using
  the reciprocal of Montgomery_x instead of Montgomery_x itself as the
  point format's main coordinate, so that the zero encoding would
  naturally be unpacked to the identity element.  However, the
  standard point format for Curve25519 uses Montgomery_x, and I don't
  think avoiding the benefit of this change is important enough to
  outweigh the cost of changing (or discarding) every current
  Curve25519 implementation.


> Also, looks like the representation hits special case if Edwards-x is
> 0 (both points map into Montgomery_x=3D0, and sign bit needs to tell
> apart Edwards_y values, instead of Edwards_x values as usual).

I don't see enough of a benefit to distinguishing the point of order 2
from the identity element, at least in protocols which should be
standardized, to justify requiring the added complexity of changing
the meaning of the sign bit when Montgomery_x =3D 0.


> So yes, easy conversion to Montgomery form is useful for DH, but
> is it useful for when the other side will do things like additions?

Yes.  Constrained implementations are likely to use the Montgomery
ladder for all scalar multiplications, and using a Montgomery-form
point format benefits those implementations greatly at very low cost
to implementations which use Edwards form internally.


>> Variable-base scalar-multiplication operations
>> which use Edwards form internally are not slowed significantly by
>> having a projective rather than affine input (if any operations rely
>> on their input being affine, they must occur during table setup), and
>> they are not slowed at all if they double and/or apply isogenies to
>> clear the cofactor group before operating on an =E2=80=98incomplete=E2=
=80=99 curve
>> (e.g. a=3D-1 in a field in which -1 is a non-square).
>
> At least some protocols that do seem to cope with h>1 (as in having
> checks for low-order points and no direct coupling between subgroups)
> don't clear cofactors in points sent by the peer, but proceed to
> directly calculate with those.

I know, but some scalar multiplication algorithms can't tolerate
points of even order internally.  For example, the variable-base
scalar multiplication algorithm for incomplete Edwards curves
specified by Microsoft Research assumes that its input has odd order,
and might otherwise trigger exceptional cases in formulas under
uncontrolled conditions on the curves they use, so that algorithm
doubles its input to clear the cofactor before performing any further
processing.


Robert Ransom


From nobody Tue Jul 29 08:03:30 2014
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 6F7341B281F for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 08:03:28 -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 TyPlc6sjC6wy for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 08:03:27 -0700 (PDT)
Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2992B1B295F for <cfrg@irtf.org>; Tue, 29 Jul 2014 08:03:20 -0700 (PDT)
Received: by mail-we0-f175.google.com with SMTP id t60so9037340wes.6 for <cfrg@irtf.org>; Tue, 29 Jul 2014 08:03:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:date:message-id:subject:from:to:content-type;  bh=OaWtDwQmsRR1bVuNUNwK1XcEofX8xtNlobhWkn4Q1t0=; b=W53UCStx1KuSXdIbHAVu7P+OGPlXvqibYIHf+LNTtTI9iyvqsHtsrbVb+hCItvBzSv /NV42ZLbeRGCdBB2bMRvc+drkKadYzGlPT5Uy2f5gB5vyqHuuHFCL2oppR869d1c7T2c KUIlCO2rkGZ24cptoFvWoPXxAgKqIiZE3jlGMi4M+yjITGSlc83xRHT1TT0bIl1utPs0 xnoc2QlaPJLP0h1DnkdJagDemtHtkrs///EHhG+qrKNmHmYGTsS7lG6G5GjeN5lT4Ec7 p7cn3FCxY4IYoZrEnfD/hH96/+isepwT3qvzHKunP3BJQdvrOSPsr1EvFCOKURzhoH6K yVlQ==
MIME-Version: 1.0
X-Received: by 10.180.98.196 with SMTP id ek4mr7084171wib.13.1406646199567; Tue, 29 Jul 2014 08:03:19 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.71.103 with HTTP; Tue, 29 Jul 2014 08:03:19 -0700 (PDT)
Date: Tue, 29 Jul 2014 11:03:19 -0400
X-Google-Sender-Auth: pvY3Vlg4Uz1QiYPtgo6KHSpRBZU
Message-ID: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/P1FRnfdt07bqmFCSNWpg3xQ5y7E
Subject: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 15:03:28 -0000

Choosing a curve is not all that we are going to need to make ECC crypto happen.

If we are going to use the new curves in PKIX (a major part of TLS) we
are going to need trustworthy HSMs. Which in turn means that we are
going to need some standard for approvals to be audited against and
possibly someone to run the process.


This might well mean that it is impractical to move away from some
form of DSA for signatures or at the very least mean that there is a
penalty for doing so. This is not likely to be as urgent a concern for
encryption as that is only an end entity issue and only a tiny
proportion of end entity applications require approved HSMs and those
that do are likely to require the NIST curves anyway.


So one consequence of this is that it would probably be advantageous
to the hardware vendors if they started taking notice of the
discussions as they are likely to see demand for new HSMs in the near
future.

Getting their participation and input would probably be useful to all concerned.


From nobody Tue Jul 29 08:35:59 2014
Return-Path: <paul.hoffman@vpnc.org>
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 A0CD41B2980 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 08:35:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] 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 vZfDRZaonYEz for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 08:35:56 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 644281B2874 for <cfrg@irtf.org>; Tue, 29 Jul 2014 08:34:39 -0700 (PDT)
Received: from [10.20.30.90] (50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60]) (authenticated bits=0) by hoffman.proper.com (8.14.8/8.14.7) with ESMTP id s6TFYXut006588 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 29 Jul 2014 08:34:35 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host 50-1-51-60.dsl.dynamic.fusionbroadband.com [50.1.51.60] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
Date: Tue, 29 Jul 2014 08:34:31 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <B66338D8-9674-449A-8907-CDA59988D2CD@vpnc.org>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sOTqo5-MF8A6RboJiUpKacw7umA
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 15:35:56 -0000

On Jul 29, 2014, at 8:03 AM, Phillip Hallam-Baker =
<phill@hallambaker.com> wrote:

> Choosing a curve is not all that we are going to need to make ECC =
crypto happen.
>=20
> If we are going to use the new curves in PKIX (a major part of TLS) we
> are going to need trustworthy HSMs. Which in turn means that we are
> going to need some standard for approvals to be audited against and
> possibly someone to run the process.

What do you mean by "we" in that paragraph? CFRG does not need HSMs, and =
CFRG does not ned "some standard" for anything. I suspect you mean =
"implementers of IETF standards", which is not "we".

CFRG should do research and make recommendations for new cryptography to =
the IETF regardless of what it might cost for implementers to use what =
is proposed.

--Paul Hoffman=


From nobody Tue Jul 29 08:49:20 2014
Return-Path: <rsalz@akamai.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 7D7E61B29C1 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 08:49:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 mKyLydOaI3Sf for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 08:49:12 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (prod-mail-xrelay07.akamai.com [72.246.2.115]) by ietfa.amsl.com (Postfix) with ESMTP id EDB741B29E1 for <cfrg@irtf.org>; Tue, 29 Jul 2014 08:45:50 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 5C9C747508; Tue, 29 Jul 2014 15:45:50 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay07.akamai.com (Postfix) with ESMTP id 5017747436; Tue, 29 Jul 2014 15:45:50 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub7.kendall.corp.akamai.com [172.27.105.23]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id 4E12A80044; Tue, 29 Jul 2014 15:45:50 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by usma1ex-cashub7.kendall.corp.akamai.com ([172.27.105.23]) with mapi; Tue, 29 Jul 2014 11:45:50 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Tue, 29 Jul 2014 11:45:49 -0400
Thread-Topic: [Cfrg] FIPS or equivalent approvals
Thread-Index: Ac+rPk/YiOBODF0TQYK6XxOwm2e4JAABZtPg
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EDBA8@USMBX1.msg.corp.akamai.com>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
In-Reply-To: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/zj7R4NXNojFlLjb4UHSAvWXl64c
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 15:49:17 -0000

> If we are going to use the new curves in PKIX (a major part of TLS) we ar=
e
> going to need trustworthy HSMs.

I disagree with the idea that PKIX is a major part of TLS, the implication =
that RSA 2K certs need to be replaced quickly, and that HSM's are needed by=
 the CA's.

Other then that, the sentence is fine. :)

	/r$


From nobody Tue Jul 29 10:37:58 2014
Return-Path: <rgm-sec@htt-consult.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 C81D91B28E6 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 10:37:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 qQd1NNIRqfcI for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 10:37:49 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id 7D6851B2968 for <cfrg@irtf.org>; Tue, 29 Jul 2014 10:37:45 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 5840862AE4; Tue, 29 Jul 2014 17:37:43 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aGzZve90GJe0; Tue, 29 Jul 2014 13:37:33 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id CE2EE62ACB; Tue, 29 Jul 2014 13:37:32 -0400 (EDT)
Message-ID: <53D7DBDC.9040301@htt-consult.com>
Date: Tue, 29 Jul 2014 13:37:32 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Paul Hoffman <paul.hoffman@vpnc.org>,  Phillip Hallam-Baker <phill@hallambaker.com>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <B66338D8-9674-449A-8907-CDA59988D2CD@vpnc.org>
In-Reply-To: <B66338D8-9674-449A-8907-CDA59988D2CD@vpnc.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/7mb3dk17icQubUpiBefCITuFFoI
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 17:37:54 -0000

On 07/29/2014 11:34 AM, Paul Hoffman wrote:
> On Jul 29, 2014, at 8:03 AM, Phillip Hallam-Baker <phill@hallambaker.com> wrote:
>
>> Choosing a curve is not all that we are going to need to make ECC crypto happen.
>>
>> If we are going to use the new curves in PKIX (a major part of TLS) we
>> are going to need trustworthy HSMs. Which in turn means that we are
>> going to need some standard for approvals to be audited against and
>> possibly someone to run the process.
> What do you mean by "we" in that paragraph? CFRG does not need HSMs, and CFRG does not ned "some standard" for anything. I suspect you mean "implementers of IETF standards", which is not "we".
>
> CFRG should do research and make recommendations for new cryptography to the IETF regardless of what it might cost for implementers to use what is proposed.

In large measure I agree with Paul, to some definition of cost.

Cloud computing (for example) clouds the whole HSM discussion and really 
scares the bejeepers out of me (based on discussions I have had with 
cloud/nfv/onf people on this subject).

So let's keep our battlefields clearly delineated and not have one 
campaign spill over into another.



From nobody Tue Jul 29 11:00:07 2014
Return-Path: <akr@akr.io>
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 99E831B29FA for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 10:59:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-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 cPCpHpkH490a for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 10:59:56 -0700 (PDT)
Received: from entima.net (entima.net [78.129.143.175]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C04AA1A03DE for <cfrg@irtf.org>; Tue, 29 Jul 2014 10:59:56 -0700 (PDT)
Message-ID: <53D7E119.7040209@akr.io>
Date: Tue, 29 Jul 2014 18:59:53 +0100
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
In-Reply-To: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/l-hiUvxLLEB_SclsCAElE9SwEAA
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 17:59:59 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 29/07/2014 16:03, Phillip Hallam-Baker wrote:

> trustworthy HSMs

A mammoth problem, and not one I believe CFRG is really in a position
to solve.

Given EDGEHILL and BULLRUN and related concerns about the CESG/FIPS
validation processes, I feel a HSM/smartcard/token design actually
worthy of third-party trust would need:

â€¢ Open, transparent, public open-source design, from software down as
  far as practical - right down past the mask to the gate/process level
  if possible;

â€¢ To be publicly and independently tested, verified and verifiable;

â€¢ To be practically immune to all known or reasonably speculated
  attacks

No current vendor or product meets - or even comes close to meeting -
those criteria, as far as I am aware. [And if you think one does, or
intends to try, please let me know, as it is an area of interest!]

Since you'd be looking at a clean-slate design with a completely
different (dramatically open, nothing-up-my-sleeves) approach compared
to the (closed, black-box, relatively analysis-hostile) status quo of
current commercial crypto hardware, I see no good reason to be chained
to any particular legacy algorithm at all - let alone (EC)DSA.

In fact, I'd be tempted to suggest that one good approach might be to
make a (very) special-purpose, cut-down open-source CPU, with
verifiable design, well-defended (constant time & power; cacheless?
parity? Microcode-free?), and particularly good at the kind of
operations often used in crypto, pair it with a well-vetted NDRNG, and
then to write verifiable software for that base implementing the
actual algorithms. Minimises the trust base; maximises flexibility;
possibly could extend service life of the design. But I'm not sure it
falls within scope of this group.

Links which might be of some interest:
â€¢ https://cryptech.is/ - directly relevant; an attempt to do this
â€¢ https://sel4.systems/ - tangentially relevant; now open-source!
â€¢ http://www.cl.cam.ac.uk/research/security/ctsrd/cheri/ - perhaps
  irrelevant exactly, but I found it interesting research anyway

- -- 
/akr
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJT1+EZAAoJEOyEjtkWi2t6qbUQAK7jOqyoIq2tizyZ91raTsBG
cC46E7qsg0aR6o+WFmu8ZX9Hsl/A6GcqdyeS04j4wMn3q6fXXd2qKTrESYYO4tCM
22d9JsOReqqfBD6CodzYOZtAtrJXC5962Ae5XK+B6x5i59VLIbs6YHIBoBoHfwLd
q6aBHDnUH4SuyyEB14swpbdUFpw9VMcyEjLatdeF1Sfufaca2bPpGjXIdBZGzb3a
tyUUM3xKIvXfCrsUaIN3jeeh3vk2fOKzzeMioCntj+OVf8pnuCWbeCrQK13s4smH
wrYRWcN2o83fA0MbmhfN3ExnKFA/FlvqNlZ844roYh5OJAOAFJXQsSCDC5+2AOII
7yQCygXv00Zk1bEABHHV6jokcamRyts8EkoSYXfU3mFCTmPgtq674dKxl0O6jWtx
V7yydsi6dK/g2H+SWT7gXVKooxkJ5FHh4OaRZsY76sXxVx8rhc9c6tMl9TE5Ko/+
hB2yqCmZfrI4CwaLMsXHqOWq3gwYyqfUKM6UmTB+8/aeO9j37zSFjm4l9CcqJnXl
MOlPOO8ID8c3yMW4uOS+iGDOmM0RuMgNJ1LxC2rgZDLptJ4r7LiWaZA4fyEAQ8Zr
nM+EzVTtNwxP/Bh5oIRtUISUCznEU+B4nH9DXHJLOQXGd/0cisWDQLrqwnujaXib
BvS7ygZXI7XFmW3osnQs
=pbJf
-----END PGP SIGNATURE-----


From nobody Tue Jul 29 11:16:34 2014
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 AE1A21A0091 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 11:16:32 -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 48Of3xrRmjlW for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 11:16:29 -0700 (PDT)
Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 727221B2A0A for <cfrg@irtf.org>; Tue, 29 Jul 2014 11:16:29 -0700 (PDT)
Received: by mail-la0-f52.google.com with SMTP id e16so28859lan.39 for <cfrg@irtf.org>; Tue, 29 Jul 2014 11:16:27 -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=0hN2OZVdEiL7BJS/y3HGMwyRUkp+AQkbSSqz1urJg8Q=; b=PGeSXo0S74MNJUaEbY4VX2YbipipuNtVpurOLOS4VQ6Zjy660Jt4uvzvATP3LcUWt3 rThDKWsZqWkBAgPZPl1IO5KwrCBTgNjkBCDiMBm5EbLEJXc5jkLrCUFhwddEG+qFj/I4 32ZxeyS0Mrf9gEidTiAqOX3C5UGzIKmHLgvag45eD9mrFzZtuX9xi69VgU3kWwkQ50ir M82g6vvIj46CqGOb5kxDF9zU+GZ1gQjLCDaRYeYSs0jeU7DTQSlVvcLPgJ5sZP1kUeop t+3nOMXSyLRzt8hNqSLMunWZr8w1qPWfaKSGwmTXYvsSIbOAl1pOe0y7715EmO1YnUu5 lRkg==
MIME-Version: 1.0
X-Received: by 10.152.27.197 with SMTP id v5mr4253359lag.84.1406657787544; Tue, 29 Jul 2014 11:16:27 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Tue, 29 Jul 2014 11:16:27 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C718599EDBA8@USMBX1.msg.corp.akamai.com>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EDBA8@USMBX1.msg.corp.akamai.com>
Date: Tue, 29 Jul 2014 14:16:27 -0400
X-Google-Sender-Auth: T7MU6UVRp3Mb3tvvNyMSV3QNutY
Message-ID: <CAMm+Lwgu6XQAKUtdQo_J2LgFdgGidFGb9sLaqUy50A0c6M7CVg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "Salz, Rich" <rsalz@akamai.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/CFFdy3I_UV7DmzxKLaQuJ285Zw8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 18:16:32 -0000

On Tue, Jul 29, 2014 at 11:45 AM, Salz, Rich <rsalz@akamai.com> wrote:
>> If we are going to use the new curves in PKIX (a major part of TLS) we are
>> going to need trustworthy HSMs.
>
> I disagree with the idea that PKIX is a major part of TLS, the implication that RSA 2K certs need to be replaced quickly, and that HSM's are needed by the CA's.
>
> Other then that, the sentence is fine. :)

That depends on your definition of 'quickly'. I don't intend to do
this according to the 'waterfall' development model where anyone who
looks ahead more than one problem at a time gets told to wait for what
turns out to be three years for a decision. We have seen the result of
that approach in IPv6 and DNSSEC.

If this group wants to make the decision it is going to have to allow
for parallel processing of things that can be done in parallel. It
will take a little while for the hardware folk to take notice. And
some of those vendors have expertise that I think is rather useful,
they have been facing issues such as side channels for a long time.


Given that this is essentially a bikeshedding decision process, one of
the criteria is going to be which curve's supporters is willing to do
most to persuade people that they will win.

As for CAs not needing HSMs, I don't think any of the browser
providers is going to accept a root that is not protected by some
FIPS-140 equivalent validated HSM with multiple separation of duties
controls.


We will need the whole industry on board in the end. At least in
nCipher, Aladdin, Intel, AMD, ARM etc are asked early on they won't
have an excuse to complain later.

Making the approach is a signal to their people to think about
planning to put some of this stuff on their roadmaps.


From nobody Tue Jul 29 11:24:24 2014
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 E2A801B29AD for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 11:24:15 -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 EcCNwSRiEEwa for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 11:24:15 -0700 (PDT)
Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC1B01B2900 for <cfrg@irtf.org>; Tue, 29 Jul 2014 11:24:14 -0700 (PDT)
Received: by mail-lb0-f173.google.com with SMTP id p9so36850lbv.32 for <cfrg@irtf.org>; Tue, 29 Jul 2014 11:24:13 -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:content-transfer-encoding; bh=cNGdvvarQjFIuCBA2kRrG3YY6mx9pmGrmIHlGiudiqk=; b=mHF/KRMq6IBJl3dR2u8ombZWz+cFFYLcWHf2O9FFXtk/nmkUJwaFTpXWbOY1lQHywj GLGCuRLp6tHkRMbkzdwKqVsuXyM0ouVU/PVyMxJzztWu2Vi7xtlB/p+WGukerSeg2dpm Zn51Y849jKEnxxWeduDdCwThl3sSVp+PjgYkqlnJHY9VKiOxHvWuIv9CARozkdwrO4Df lS2gg/VqsXA4KKMqCdcIcyhb673fJXw1yFgBrs93XVUmsmRVAkE5f+dLMhHg5bE5E5/s 9Bh2OedhxwYsFtDDsv+Jy6jZ+nYrDntTEEFgGXst2Ooa0bwZRULQRzTVji1GgSN2Se6s EI2Q==
MIME-Version: 1.0
X-Received: by 10.152.116.73 with SMTP id ju9mr1273453lab.24.1406658252862; Tue, 29 Jul 2014 11:24:12 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Tue, 29 Jul 2014 11:24:12 -0700 (PDT)
In-Reply-To: <53D7E119.7040209@akr.io>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <53D7E119.7040209@akr.io>
Date: Tue, 29 Jul 2014 14:24:12 -0400
X-Google-Sender-Auth: hoM7lH3olkzuzvwEaw20e96uIp4
Message-ID: <CAMm+LwhUyHYD1h6Cj8L3s+N4t9rcszusycjGJ0RQXVxKdoG6sw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Alyssa Rowan <akr@akr.io>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kFoOejisv5ZTPoKTyt4Je6ftiBk
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 18:24:16 -0000

On Tue, Jul 29, 2014 at 1:59 PM, Alyssa Rowan <akr@akr.io> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 29/07/2014 16:03, Phillip Hallam-Baker wrote:
>
>> trustworthy HSMs
>
> A mammoth problem, and not one I believe CFRG is really in a position
> to solve.
>
> Given EDGEHILL and BULLRUN and related concerns about the CESG/FIPS
> validation processes, I feel a HSM/smartcard/token design actually
> worthy of third-party trust would need:
>
> =E2=80=A2 Open, transparent, public open-source design, from software dow=
n as
>   far as practical - right down past the mask to the gate/process level
>   if possible;
>
> =E2=80=A2 To be publicly and independently tested, verified and verifiabl=
e;
>
> =E2=80=A2 To be practically immune to all known or reasonably speculated
>   attacks


It isn't just the US up to these things.

Before the PRISM disclosures I spent a lot of time with some people
whose names would be familiar looking at the problem of stopping them
doing unto the US what we now know they were doing unto others
(including US companies).

Supply chain is a hard problem. But not being able to guarantee that
the crypto has not been bongoed by Fort Meade does not mean that I
want to accept the risk of being able to extract a valuable root key.
That would be a major personal safety risk.


From nobody Tue Jul 29 11:43:11 2014
Return-Path: <rsalz@akamai.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 B390D1A07AB for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 11:43:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 b73CBCtepkks for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 11:43:08 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (prod-mail-xrelay07.akamai.com [72.246.2.115]) by ietfa.amsl.com (Postfix) with ESMTP id 2FEE81A0649 for <cfrg@irtf.org>; Tue, 29 Jul 2014 11:43:08 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 76B524751D; Tue, 29 Jul 2014 18:43:07 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay07.akamai.com (Postfix) with ESMTP id 692CB474FF; Tue, 29 Jul 2014 18:43:07 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub4.kendall.corp.akamai.com [172.27.105.20]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id 639638003C; Tue, 29 Jul 2014 18:43:07 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB4.kendall.corp.akamai.com ([172.27.105.20]) with mapi; Tue, 29 Jul 2014 14:43:07 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Alyssa Rowan <akr@akr.io>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Tue, 29 Jul 2014 14:43:06 -0400
Thread-Topic: [Cfrg] FIPS or equivalent approvals
Thread-Index: Ac+rVvVImbYBfsTlRI6Ho547C5/QggABew4Q
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EDC92@USMBX1.msg.corp.akamai.com>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <53D7E119.7040209@akr.io>
In-Reply-To: <53D7E119.7040209@akr.io>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/akdI0UwDNQqWDWLkD4brwdJXFLQ
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Tue, 29 Jul 2014 18:43:09 -0000

PiBJIGZlZWwgYSBIU00vc21hcnRjYXJkL3Rva2VuIGRlc2lnbiBhY3R1YWxseSB3b3J0aHkgb2YN
Cj4gdGhpcmQtcGFydHkgdHJ1c3Qgd291bGQgbmVlZDoNCg0KQ2hlY2sgb3V0IGh0dHA6Ly9jcnlw
dGVjaC5pcw0KDQotLSAgDQpQcmluY2lwYWwgU2VjdXJpdHkgRW5naW5lZXINCkFrYW1haSBUZWNo
bm9sb2dpZXMsIENhbWJyaWRnZSBNQQ0KSU06IHJzYWx6QGphYmJlci5tZSBUd2l0dGVyOiBSaWNo
U2Fseg0KDQo=


From nobody Tue Jul 29 13:06:44 2014
Return-Path: <TurnerS@ieca.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 CF2841B28D0 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:06:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.567
X-Spam-Level: 
X-Spam-Status: No, score=-1.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001, 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 2wPcCoEhY6mc for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:06:41 -0700 (PDT)
Received: from gateway07.websitewelcome.com (gateway07.websitewelcome.com [69.56.216.30]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 824D41B28F6 for <cfrg@irtf.org>; Tue, 29 Jul 2014 13:06:41 -0700 (PDT)
Received: by gateway07.websitewelcome.com (Postfix, from userid 5007) id 1758A2245752F; Tue, 29 Jul 2014 15:05:23 -0500 (CDT)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway07.websitewelcome.com (Postfix) with ESMTP id B34F722445AA2 for <cfrg@irtf.org>; Tue, 29 Jul 2014 15:05:18 -0500 (CDT)
Received: from [96.231.227.95] (port=51156 helo=[192.168.1.18]) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <TurnerS@ieca.com>) id 1XCDe3-0001wQ-Lu for cfrg@irtf.org; Tue, 29 Jul 2014 15:05:11 -0500
From: Sean Turner <TurnerS@ieca.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Date: Tue, 29 Jul 2014 16:05:04 -0400
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com>
To: cfrg@irtf.org
Message-Id: <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - gator3286.hostgator.com
X-AntiAbuse: Original Domain - irtf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ieca.com
X-BWhitelist: no
X-Source-IP: 96.231.227.95
X-Exim-ID: 1XCDe3-0001wQ-Lu
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: ([192.168.1.18]) [96.231.227.95]:51156
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 3
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/KlFZ5VJdnFxTFUhfb2hrxqitnIw
Subject: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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: Tue, 29 Jul 2014 20:06:43 -0000

At the interim CFRG meeting, I agreed to publish a draft of the curve =
25519 function with some help from Rich, Watson, and Tanja.  That draft =
is now up.  Note there=92s also a github repo:

https://github.com/seanturner/draft-turner-thecurve25519function

Please review and provide comments if needed.

spt

Begin forwarded message:

> From: internet-drafts@ietf.org
> Subject: I-D Action: draft-turner-thecurve25519function-00.txt
> Date: July 29, 2014 at 15:59:26 EDT
> To: i-d-announce@ietf.org
> Reply-To: internet-drafts@ietf.org
>=20
>=20
> A New Internet-Draft is available from the on-line Internet-Drafts =
directories.
>=20
>=20
>        Title           : The Curve25519 Function
>        Authors         : Watson Ladd
>                          Rich Salz
>                          Sean Turner
> 	Filename        : draft-turner-thecurve25519function-00.txt
> 	Pages           : 7
> 	Date            : 2014-07-29
>=20
> Abstract:
>   This document specifies the Curve25519 function, an ECDH (Elliptic-
>   Curve Diffie-Hellman) key-agreement scheme for use in cryptographic
>   applications.  It was designed with performance and security in =
mind.
>   This document is based on information in the public domain.
>=20
>=20
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-turner-thecurve25519function/
>=20
> There's also a htmlized version available at:
> http://tools.ietf.org/html/draft-turner-thecurve25519function-00
>=20
>=20
> Please note that it may take a couple of minutes from the time of =
submission
> until the htmlized version and diff are available at tools.ietf.org.
>=20
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>=20
> _______________________________________________
> I-D-Announce mailing list
> I-D-Announce@ietf.org
> https://www.ietf.org/mailman/listinfo/i-d-announce
> Internet-Draft directories: http://www.ietf.org/shadow.html
> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


From nobody Tue Jul 29 13:18:43 2014
Return-Path: <paul@marvell.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 0E2481A0AF0 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:18:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, 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 5xmeI5dUo-mO for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:18:40 -0700 (PDT)
Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D6E161B2A20 for <cfrg@irtf.org>; Tue, 29 Jul 2014 13:17:01 -0700 (PDT)
Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id s6TKGxgi010836; Tue, 29 Jul 2014 13:16:59 -0700
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0a-0016f401.pphosted.com with ESMTP id 1ne7hut2p0-12 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 29 Jul 2014 13:16:58 -0700
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([fe80::e56e:83a7:9eef:b5a1%16]) with mapi; Tue, 29 Jul 2014 13:16:57 -0700
From: Paul Lambert <paul@marvell.com>
To: Watson Ladd <watsonbladd@gmail.com>, William Whyte <wwhyte@securityinnovation.com>
Date: Tue, 29 Jul 2014 13:16:55 -0700
Thread-Topic: Schnorr Recommendations -> was Re: [Cfrg] IEEE 1609 requirements (was Re: Curve selection revisited)
Thread-Index: Ac+ragvfEO9+xgVES7ic3PV6LwymyQ==
Message-ID: <CFFD4D8F.475E2%paul@marvell.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-29_05:2014-07-29,2014-07-29,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407290243
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ciiEyeQ8N3yXH4hLlTUcJwVdQuc
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: [Cfrg] Schnorr Recommendations -> was Re: IEEE 1609 requirements (was Re: Curve selection revisited)
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: Tue, 29 Jul 2014 20:18:42 -0000

On 7/28/14, 9:14 PM, "Watson Ladd" <watsonbladd@gmail.com> wrote:

>>Yes! In particular, whatever choice is made by CFRG is likely to be
>>more widely supported in hardware than any alternative, so CFRG's
>>choice will be the strongest candidate to replace ECDSA if it has
>>sufficient advantages.
>
>Well, unfortunately we are not adopting Schnorr signatures at this
>time. (We probably should).

Yes.  Do you have a recommendation for a specific Schnorr variant?

I=B9ve inserted 'new curves' in other entity based standards work
and it is the natural time to also update the signature algorithm.


Paul


From nobody Tue Jul 29 13:41:46 2014
Return-Path: <ilari.liusvaara@elisanet.fi>
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 64D501A0AF0 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:41:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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 7tEJIuca4riw for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:41:41 -0700 (PDT)
Received: from emh07.mail.saunalahti.fi (emh07.mail.saunalahti.fi [62.142.5.117]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6942B1A0AE6 for <cfrg@irtf.org>; Tue, 29 Jul 2014 13:41:41 -0700 (PDT)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id DBF373FDF; Tue, 29 Jul 2014 23:41:38 +0300 (EEST)
Date: Tue, 29 Jul 2014 23:41:38 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Sean Turner <TurnerS@ieca.com>
Message-ID: <20140729204138.GA20282@LK-Perkele-VII>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lSyVNJmeRoENfc1VsN0oULb9AEQ
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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: Tue, 29 Jul 2014 20:41:43 -0000

On Tue, Jul 29, 2014 at 04:05:04PM -0400, Sean Turner wrote:
> 
> Please review and provide comments if needed.
> 
> > 	Filename        : draft-turner-thecurve25519function-00.txt

  To compute the conditional swap in constant time (independent of s_t)
  use dummy = s_t*(x_2-x_3) x_2 = x_2 - dummy x_3 = x_3 + dummy where
  s_t is 1 or 0, or dummy = s_t & (x_2 XOR x_3) x_2 = x_2 XOR x_3 x_3 =
  x_3 XOR x_2 where s_t is regarded as the all-1 word of 255 bits.  The
  latter version is more efficient on most architectures.

The latter formulas: Where is the dummy used? And s_t can also be 0
(no swap)?

Should those formulas be:
dummy = s_t & (x_2 XOR x_3)
x_2 <- x_2 XOR dummy
x_3 <- x_3 XOR dummy

?

And that paragraph could perhaps use some reformatting.


-Ilari


From nobody Tue Jul 29 13:58:57 2014
Return-Path: <dbrown@certicom.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 7C41C1A011F for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:58:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=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 DwfY9MvASDn1 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:58:54 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 4FC3B1A024C for <cfrg@irtf.org>; Tue, 29 Jul 2014 13:58:51 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs212cnc.rim.net with ESMTP/TLS/AES128-SHA; 29 Jul 2014 16:58:49 -0400
Received: from XCT115CNC.rim.net (10.65.161.215) by XCT107CNC.rim.net (10.65.161.207) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 29 Jul 2014 16:58:48 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT115CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Tue, 29 Jul 2014 16:58:47 -0400
From: Dan Brown <dbrown@certicom.com>
To: IRTF Crypto Forum Research Group <cfrg@irtf.org>
Thread-Topic: A downside of deterministic DL signatures?
Thread-Index: Ac+rb+PUesNdwNFqRVehQhB5J3d3gQ==
Date: Tue, 29 Jul 2014 20:58:47 +0000
Message-ID: <20140729205846.6639765.71649.17355@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============1217738322=="
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/QhcyQyfWrtUveriQUR9LCMDZ8-w
Subject: [Cfrg] A downside of deterministic DL signatures?
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: Tue, 29 Jul 2014 20:58:55 -0000

--===============1217738322==
Content-Type: multipart/alternative; boundary="===============0848981811=="
MIME-Version: 1.0

--===============0848981811==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

4oCOSW4gRUNEU0Egb3IgU2Nobm9yciwgaWYgdGhlIGVwaGVtZXJhbCBwcml2YXRlIGtleSBrIGRl
cGVuZHMgb24gdGhlIG1lc3NhZ2UgYnJpbmcgc2lnbmVkLCBwcmVjb21wdXRhdGlvbiBvZiBrRywg
YW4gZWZmaWNpZW5jeSBhZHZhbnRhZ2UgKHJlZHVjZWQgbGF0ZW5jeT8pLCBhbmQgcG9zc2libHkg
ZWZmZWN0aXZlwqBzaWRlIGNoYW5uZWwgY291bnRlcm1lYXN1cmUgKGhhcmRlciB0byB0aW1lIHBy
ZWNvbXB1dGF0aW9uKSwgc2VlbXMgcHJlY2x1ZGVkLiBOb3QgYmVpbmcgYW4gZWZmaWNpZW5jeSBv
ciBzaWRlIGNoYW5uZWwgZXhwZXJ0LCBJIGFzazogRG9lcyB0aGlzIGRvd25zaWRlIHNvdW5kIHJp
Z2h0PwoKSWYgc28sIGRldGVybWluaXN0aWMgc2lnbmF0dXJlcyBvdWdodCB0byBiZSBhIFNIT1VM
RCBvciBNQVksIG5vdCBhIE1VU1QgKG9yIG5vbmUgb2YgdGhlIGFib3ZlLCBzaW5jZSB0aHVzIGlz
IG5vdCBhbiBpbnRlcm9wZXJhYmlsaXR5IGlzc3VlKS4KCkJlc3QgcmVnYXJkcywgCgotLSBEYW4=

--===============0848981811==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/plain;"><styl=
e> body {  font-family: "Calibri","Slate Pro","sans-serif"; color:#262626 }=
</style> </head> <body data-blackberry-caret-color=3D"#00a8df"><div>=E2=80=
=8EIn ECDSA or Schnorr, if the ephemeral private key k depends on the messa=
ge bring signed, precomputation of kG, an efficiency advantage (reduced lat=
ency?), and possibly effective&nbsp;<span style=3D"font-family: Calibri, 'S=
late Pro', sans-serif;">side channel countermeasure (harder to time precomp=
utation), seems precluded. Not being an efficiency or side channel expert, =
I ask: Does this downside sound right?</span></div><div><br name=3D"BB10" c=
aretmarkerset=3D"INVALID" class=3D"markedForCaretMarkerRemoval"></div><div>=
If so, deterministic signatures ought to be a SHOULD or MAY, not a MUST (or=
 none of the above, since thus is not an interoperability issue).</div><div=
><br name=3D"BB10" caretmarkerset=3D"INVALID" class=3D"markedForCaretMarker=
Removal"></div><div>Best regards, <br><br>-- Dan</div></body></html>
--===============0848981811==--

--===============1217738322==
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqM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WyIn9HRaMmsZ4YPw+YWH3hiIV3wDhRtthKTCVl1Tmr6mC8bJZ3Nn
p4oVgGHFpIz3xOrX91zF5KHRZDGLxHfqhY/HlL8W23EdXQaogRTTQ3CpQCp/6BJaf4iPy41BjBG/
rSXR7bbBhMb0M0ndc8JNVOnDop2A/NmNPMwOW89/JeWxNvqZZn19xEPLwimAPeabIBoN4bH359ed
LJqWOx3hDxkWYfb4JRn4tsJzKmP0IDvqrO/HajvwtW3t6rkFN1h0OmHGa9yT9UXO8o++iu4xggFf
MIIBWwIBATBeMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAi
BgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRgIKbandRwAEAAAFajAHBgUrDgMCGqBd
MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDcyOTIwNTg0NFow
IwYJKoZIhvcNAQkEMRYEFOWdxN+rgz52fXUqTj7B3V6GjSgZMAsGCSqGSIb3DQEBBQSBgCzK5Wwx
sn4skeEvLjT6MoWU3mTgWF30VA9ZSQSYnnCm8RxMYyZtigeKCHKR6BdbZRL3v0YJFDPcd5RWiKXi
QpR74QtG5+8yPbr8vwOf7QRjv9PaS0jXj2N08XpFZuQ/btdh6MPMwTyZ381rt/pw36tdpzB9naMH
2BLFG0U6GYVeAAAAAAAA

--===============1217738322==--


From nobody Tue Jul 29 14:19:05 2014
Return-Path: <mike@shiftleft.org>
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 61CDC1A0178 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 14:19:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 JqnKV9FJi3ia for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 14:19:03 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 306DF1A020B for <cfrg@irtf.org>; Tue, 29 Jul 2014 14:19:03 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 96DDE3AA27; Tue, 29 Jul 2014 14:18:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406668729; bh=qTWr2Gmqmmk0DrZJTfPLxe4+dNAQ5MNw/G/UneVFTT8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=BjwCnRbMblPSMZPb1d/OJZiBkr1nIG8XRXb9uqjrmmvEl8l+IJ8ZdxBIXOfzQH79k 0dq//SnaPVDG/+AypN4cfjCi1RDG8FNYpeu1cNJ+lwijlNyspf4RFAOWWlxtFNYJb0 kTPzSvuyfdfyS5F/gs/X/mRgpLIitJNFnPLbxyN8=
Content-Type: multipart/alternative; boundary="Apple-Mail=_3F0623B6-C005-416C-9047-EDE0EFCB1E5E"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <20140729205846.6639765.71649.17355@certicom.com>
Date: Tue, 29 Jul 2014 14:19:01 -0700
Message-Id: <A40B70DC-4916-42CD-A27B-A48699E91897@shiftleft.org>
References: <20140729205846.6639765.71649.17355@certicom.com>
To: Dan Brown <dbrown@certicom.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Xts2PR6DAG8IX97JLDERUNDMXxU
Cc: IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Tue, 29 Jul 2014 21:19:04 -0000

--Apple-Mail=_3F0623B6-C005-416C-9047-EDE0EFCB1E5E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On Jul 29, 2014, at 1:58 PM, Dan Brown <dbrown@certicom.com> wrote:

> =E2=80=8EIn ECDSA or Schnorr, if the ephemeral private key k depends =
on the message bring signed, precomputation of kG, an efficiency =
advantage (reduced latency?), and possibly effective side channel =
countermeasure (harder to time precomputation), seems precluded. Not =
being an efficiency or side channel expert, I ask: Does this downside =
sound right?
>=20
> If so, deterministic signatures ought to be a SHOULD or MAY, not a =
MUST (or none of the above, since thus is not an interoperability =
issue).
>=20
> Best regards,=20
>=20
> =E2=80=94 Dan

Sound right to me.

-- Mike=

--Apple-Mail=_3F0623B6-C005-416C-9047-EDE0EFCB1E5E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>On Jul 29, 2014, at 1:58 PM, Dan Brown &lt;<a =
href=3D"mailto:dbrown@certicom.com">dbrown@certicom.com</a>&gt; =
wrote:</div><div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div data-blackberry-caret-color=3D"#00a8df" =
style=3D"font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(38, =
38, 38); font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"><div>=E2=80=8EIn ECDSA or Schnorr, if =
the ephemeral private key k depends on the message bring signed, =
precomputation of kG, an efficiency advantage (reduced latency?), and =
possibly effective&nbsp;<span style=3D"font-family: Calibri, 'Slate =
Pro', sans-serif;">side channel countermeasure (harder to time =
precomputation), seems precluded. Not being an efficiency or side =
channel expert, I ask: Does this downside sound =
right?</span></div><div><br name=3D"BB10" caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>If so, deterministic =
signatures ought to be a SHOULD or MAY, not a MUST (or none of the =
above, since thus is not an interoperability issue).</div><div><br =
name=3D"BB10" caretmarkerset=3D"INVALID" =
class=3D"markedForCaretMarkerRemoval"></div><div>Best regards,<span =
class=3D"Apple-converted-space">&nbsp;</span><br><br>=E2=80=94 =
Dan</div></div></blockquote></div><br><div>Sound right to =
me.</div><div><br></div><div>-- Mike</div></body></html>=

--Apple-Mail=_3F0623B6-C005-416C-9047-EDE0EFCB1E5E--


From nobody Tue Jul 29 14:20:04 2014
Return-Path: <SRS0=Krkc=4Y=acm.org=bmoeller@srs.kundenserver.de>
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 E3B441A0178 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 14:20:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.929
X-Spam-Level: 
X-Spam-Status: No, score=-0.929 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HELO_EQ_DE=0.35, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 SnY1Xzn83mlm for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 14:19:59 -0700 (PDT)
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 860641A010C for <cfrg@irtf.org>; Tue, 29 Jul 2014 14:19:59 -0700 (PDT)
Received: from mail-yk0-f171.google.com (mail-yk0-f171.google.com [209.85.160.171]) by mrelayeu.kundenserver.de (node=mreue003) with ESMTP (Nemesis) id 0MCMOD-1XLLTw0q9Z-009BbO; Tue, 29 Jul 2014 23:19:57 +0200
Received: by mail-yk0-f171.google.com with SMTP id 19so172093ykq.16 for <cfrg@irtf.org>; Tue, 29 Jul 2014 14:19:56 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.236.148.5 with SMTP id u5mr6738356yhj.127.1406668795996; Tue, 29 Jul 2014 14:19:55 -0700 (PDT)
Received: by 10.170.129.17 with HTTP; Tue, 29 Jul 2014 14:19:55 -0700 (PDT)
In-Reply-To: <20140729205846.6639765.71649.17355@certicom.com>
References: <20140729205846.6639765.71649.17355@certicom.com>
Date: Tue, 29 Jul 2014 17:19:55 -0400
Message-ID: <CADMpkc+zvc18359W4WkpKNEpWRpQK4MnicxQq9=tcrSgxM3wyQ@mail.gmail.com>
From: Bodo Moeller <bmoeller@acm.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=20cf303b3cade6f4fa04ff5b994e
X-Provags-ID: V02:K0:qPIKwriTiRxEVfJIOD+6UlYKxLVMKTewFbHQzXOcoD1 va55BQB62p0lVbYxaz3RvW2plXlsgx0ukTMIKTn8Y658zfW49g aEQgE4UY0LOyPQxF6zOCa2Jya1uXIY/SdvFrIn47KneXipzNyo HDDjUwbqV0OSQQkohMhBLL597Vc/K+a7g1sgoHJx6D1xqjg9QP SMI9UFAdSWqwJwIyQoxF2kEjgWOE+PMoDyXNNXIY+D7YKkk6SU CeVvKYbo6k0UpVBCjm6QAIjxwmdt/1QvBR03/mJ3s806t6hUvy rvFUn+B30TB1/TWT/9opGheYyfiPiR//eiVWl3/tp6wFiyD29T aypqc1c+5jdqRd7iq4T1VmSc1FeipSrmXxv0sGiGtgO0JSeKCD mO6T8j5hw6g0B0eVrKM9G1GeuCoykrgfhzEiSyOV9XBjD9JZBQ vSUid
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/tifL_7EpmqpFtmzuIP-5XweKhYU
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Tue, 29 Jul 2014 21:20:01 -0000

--20cf303b3cade6f4fa04ff5b994e
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Right. I don't think that deterministic signatures should be required. I
think having the ephemeral scalar depend on the message is an (often
useful) implementation technique, but probably not something to be imposed
as a protocol variant in its own right.

Bodo



2014-07-29 16:58 GMT-04:00 Dan Brown <dbrown@certicom.com>:

> =E2=80=8EIn ECDSA or Schnorr, if the ephemeral private key k depends on t=
he
> message bring signed, precomputation of kG, an efficiency advantage
> (reduced latency?), and possibly effective side channel countermeasure
> (harder to time precomputation), seems precluded. Not being an efficiency
> or side channel expert, I ask: Does this downside sound right?
>
> If so, deterministic signatures ought to be a SHOULD or MAY, not a MUST
> (or none of the above, since thus is not an interoperability issue).
>
> Best regards,
>
> -- Dan
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>
>

--20cf303b3cade6f4fa04ff5b994e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Right. I don&#39;t think that deterministic signatures sho=
uld be required. I think having the ephemeral scalar depend on the message =
is an (often useful) implementation technique, but probably not something t=
o be imposed as a protocol variant in its own right.<div>
<br></div><div>Bodo</div><div><br></div></div><div class=3D"gmail_extra"><b=
r><br><div class=3D"gmail_quote">2014-07-29 16:58 GMT-04:00 Dan Brown <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:dbrown@certicom.com" target=3D"_blank">d=
brown@certicom.com</a>&gt;</span>:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">  <div><div>=E2=80=8EIn ECDSA or Schnorr, if=
 the ephemeral private key k depends on the message bring signed, precomput=
ation of kG, an efficiency advantage (reduced latency?), and possibly effec=
tive=C2=A0<span style=3D"font-family:Calibri,&#39;Slate Pro&#39;,sans-serif=
">side channel countermeasure (harder to time precomputation), seems preclu=
ded. Not being an efficiency or side channel expert, I ask: Does this downs=
ide sound right?</span></div>
<div><br name=3D"BB10"></div><div>If so, deterministic signatures ought to =
be a SHOULD or MAY, not a MUST (or none of the above, since thus is not an =
interoperability issue).</div><div><br name=3D"BB10"></div><div>Best regard=
s, <br>
<br>-- Dan</div></div><br>_______________________________________________<b=
r>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br></blockquote></div><br></div>

--20cf303b3cade6f4fa04ff5b994e--


From nobody Tue Jul 29 14:53:30 2014
Return-Path: <akr@akr.io>
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 C51211B286C for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 14:53:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-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 PzQRCPjWSq9F for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 14:53:23 -0700 (PDT)
Received: from entima.net (entima.net [78.129.143.175]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CFD611B281C for <cfrg@irtf.org>; Tue, 29 Jul 2014 14:53:22 -0700 (PDT)
User-Agent: K-9 Mail for Android
In-Reply-To: <20140729205846.6639765.71649.17355@certicom.com>
References: <20140729205846.6639765.71649.17355@certicom.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Tue, 29 Jul 2014 22:53:16 +0100
To: cfrg@irtf.org
Message-ID: <258124fc-3f8b-4ea3-9f61-20395e7916c9@email.android.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/4TPhndX17Y03QqcV7TFynddlK78
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Tue, 29 Jul 2014 21:53:25 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 29 July 2014 21:58:47 BST, Dan Brown <dbrown@certicom.com> wrote:
>â€ŽIn ECDSA or Schnorr, if the ephemeral private key k depends on the
>message bring signed, precomputation of kG, an efficiency advantage
>(reduced latency?), and possibly effectiveÂ side channel countermeasure
>(harder to time precomputation), seems precluded. Not being an
>efficiency or side channel expert, I ask: Does this downside sound
>right?

On the other hand, deterministic signatures can have test vectors - a big win - and they don't need an RNG. Less baggage, less worry about implementation fingerprinting or even potential kleptography (although obviously you should always avoid black boxes too where that last one could be a risk!).

You also obviously have to store precomputed values around if you choose that (of course you have to keep the key around too, but you're probably not writing that as frequently).

Conversely, you may need to be careful about leaking lengths in deterministic forms like RFC 6979. (Moot if they're visible anyway, but still worthy of mention.)

Deterministic is the most sensible implementation choice. In fact, it's how you SHOULD do it, I think. But having a perfect RNG also works, so I wouldn't on balance make deterministic a MUST: but random k is the most hazardous choice overall, as you're just 2-4 predictable bits away from the precipice of disaster. (...if anyone chooses that route, scrutinise it.)

There's also the hybrid approach chosen by BoringSSL (and current LibReSSL), which depends on RNG and the message. No test vectors possible, but still a hedge against RNG imperfection.

- --
/akr
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI3BAEBCgAhBQJT2BfMGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6EGgP/iyQhs8oVALu0FDCS3ygoIQ9esLybYjm6wwf6f7BE6/ZoOuFT/5f
ZOcqh8eeqEhbCV8j+3K8G1a7d5ubf3biN2QkZvq/u5Ka81uzJv48IvOY49LEmVKZ
gCpQhXmIUDKYO9mxMahjBAksWr95XVmOXzSDebD9AiYWXwboIAYZMaempnLsfKkZ
AjAMAnJHOM8aMo60N46LQe2Le2ujLNJVlUjTAt14D9HYfgOsEuZrhMS6y1yWvNQW
eoPcDl+09GiKnVpoxtGMhoOF+rnE83rIX/98tvQrn019o4atqfQ8UuHejKoQAZTE
4gtjXHWLKVoSb6z3L+yLxSdsTd6kFukYPcqsiJJZk4NctOQ7TPSA0iyKE7IM0Sbi
C+paPR/B4QXaFtGT9Y3p4Y6E5t/2bx5j7+gc5RXpc9V2c/3Rd7rfJjfoBAAAGM2E
kNlFgKgMIPSx+IGK/iVimTctbBYH2qmZyz7IoGTtUtMqB3CUbyWsNk80t6r+5HhE
kaDf1p12bGz6Fj156fBBqYgOgQJi+NwQVhz/OSu2EQhg4IGgR6FONIAWOGPbITR3
3tKdHnzaN4ZBF0IilpS2Z2CEpvy0kMrV3E136CCShsVMD5+eaUxaZiaSqRykecHC
uGRl+GFfholRtBZqbdGt4hBB0X5PRIqZZ5dZF6hQqE7qtsjyY2mLGVnU
=egg8
-----END PGP SIGNATURE-----


From djb-dsn2-1406671250.32404@cr.yp.to  Tue Jul 29 15:13:22 2014
Return-Path: <djb-dsn2-1406671250.32404@cr.yp.to>
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 2195F1B28FA for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 15:13:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.473
X-Spam-Level: *
X-Spam-Status: No, score=1.473 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, RCVD_IN_DNSWL_LOW=-0.7, TO_NO_BRKTS_PCNT=2.173, UNPARSEABLE_RELAY=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 F1v4UsvSBqL3 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 15:13:19 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 25CB71B28F3 for <cfrg@irtf.org>; Tue, 29 Jul 2014 15:13:18 -0700 (PDT)
Received: (qmail 5864 invoked by uid 1011); 29 Jul 2014 22:13:19 -0000
Received: from unknown (unknown) by unknown with QMTP; 29 Jul 2014 22:13:19 -0000
Received: (qmail 8708 invoked by uid 1001); 29 Jul 2014 22:13:12 -0000
Date: 29 Jul 2014 22:13:12 -0000
Message-ID: <20140729221312.8707.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/rykhMuD80Lc_XfVuL3r3vmN4FGM
Subject: [Cfrg] curves, coordinates, and computations
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: Tue, 29 Jul 2014 22:31:30 -0000

I've noticed that quite a few proposed requirements and comments have
been confusing three separate decisions:

   * which _curves_ should be used in protocols such as TLS;
   * which _coordinates_ should be used in protocols; and
   * which _computations_ the implementations will carry out.

For the _curves_ there are several options under discussion:

   * short Weierstrass curves such as NIST P-256, the curve y^2 =
     x^3-3x+c mod 2^256-2^224+2^192+2^96-1, where c is a big
     random-looking number that I won't repeat here;

   * Montgomery curves such as y^2 = x^3+486662x^2+x mod 2^255-19
     (Curve25519);

   * Edwards curves or more generally twisted Edwards curves such as
     x^2+y^2 = 1+3617x^2y^2 mod 2^414-17 (Curve41417) or Microsoft's
     -x^2+y^2 = 1+15342x^2y^2 mod 2^256-189.

For the _coordinates_ sent through the wire there are also several
options, including

   * short-Weierstrass x and y coordinates (often with y compressed);

   * short-Weierstrass x by itself (proposed in the first ECC paper);

   * Montgomery x by itself (used in practically all deployments of
     Curve25519 for one-time DH and for longer-lasting DH);

   * Edwards x and y (increasingly widely deployed in Ed25519
     signatures, with y compressed);

and many more. For the _computations_ there are also several options,
including

   * the Montgomery ladder (typical advertisement: excellent speed
     together with unmatched simplicity),

   * windowed "extended Edwards" scalar multiplication (typical
     advertisement: even faster than Montgomery for keygen), and

   * windowed "Jacobian" scalar multiplication (typical advertisement:
     reusing older software).

There seems to be a common misconception that making a decision at one
of these levels forces the decisions at all of the other levels. In
fact, as I'll describe in detail below, specifying a curve still leaves
tremendous freedom to the protocol designer to choose coordinates:

   * Edwards curves support Edwards coordinates, Montgomery coordinates,
     and short-Weierstrass coordinates.

   * Montgomery curves with points of order 4 (e.g., Curve25519) support
     Edwards coordinates; all Montgomery curves support Montgomery
     coordinates and short-Weierstrass coordinates.

   * Short Weierstrass curves with cofactor 1 (e.g., P-256) have by far
     the worst compatibility---obviously they support short-Weierstrass
     coordinates, but they fail to support Edwards coordinates and fail
     to support Montgomery coordinates.

Furthermore, specifying a curve and coordinates still leaves tremendous
freedom to the implementor to choose a computation. For example, Edwards
curves in short-Weierstrass coordinates support the Montgomery ladder
for scalar multiplication. See

   https://www.imperialviolet.org/2013/05/10/fastercurve25519.html

for another example spelled out in detail. Cofactor-1 short Weierstrass
curves are again the worst case for compatibility; for example, they
don't support the Montgomery ladder, and they don't support
extended-Edwards scalar multiplication.

As a concrete compatibility example, let me take NIST's ECDSA standard,
which NIST defines mostly via reference to ANSI X9.62. The standard is
parametrized by a choice of short Weierstrass curve Y^2 = X^3+aX+b mod p
meeting various criteria (or a binary curve; for simplicity I'll ignore
this option). What's sent through the network as a public key---what
actually matters for interoperability of public keys---is

   * the X-coordinate of a point on the curve Y^2 = X^3+aX+b mod p and
   * the Y-coordinate of the point,

encoded as a string in a specified way, optionally with Y compressed.

Everybody knows that NIST P-256 is compatible with the ECDSA standard.
The NIST P-256 curve y^2 = x^3-3x+c obviously matches the format Y^2 =
X^3+aX+b. One can check that P-256 meets all of the standard criteria.

What about Montgomery curves? For example, does Curve25519 support
ECDSA? Yes, it does. This is a trivial shift of coordinates: substitute
x = X-486662/3 and Y = y into y^2 = x^3+486662x^2+x to obtain

   Y^2 = X^3-(236839902241/3)X+(230521961007359098/27)

which is in exactly the short-Weierstrass format allowed by ECDSA. One
can also check that this curve meets all of the criteria required by the
ECDSA standard: for example, the Curve25519 cofactor 8 is well within
the allowed range of cofactors (FIPS 186-4 says cofactor<=2^14 for
255-bit primes). One standards-compliant way to specify this example of
ECDSA is to specify a = 236839902241/3 etc., not even mentioning the
equation y^2 = x^3+486662x^2+x normally used to define Curve25519.

What about Edwards curves? Does Microsoft's -x^2+y^2 = 1+15342x^2y^2 mod
2^256-189 support ECDSA? The answer is again yes, although getting to a
Weierstrass curve is slightly more complicated; see below.

If you have a complete implementation of standard ECDSA then you can
simply plug these curves into the implementation. You'll get better
speeds with a reduction method specialized to the new primes, raising
the question of what speeds are possible for each prime (see, e.g.,
https://www.imperialviolet.org/2010/12/21/eccspeed.html), and what
simplicity is possible when you don't care about speed, and the
tradeoffs possible between the desiderata of speed and simplicity. But
those issues aren't the topic of this message.

If you have a more limited implementation of ECDSA, for example one
specific to NIST P-256, then you'll certainly need to add code for the
new primes, but there's a good chance that the code has at least a
high-level Jacobian scalar-multiplication layer that works for arbitrary
short-Weierstrass curves. For example, you might have copied the
scalar-multiplication method stated in the ANSI standard, although this
particular method leaks tons of information through timing and is much
slower than other methods---the sort of code (and standard) that ought
to be replaced no matter what happens with the curve choice!

Beyond the benefits of a new prime, using ECDSA with these new curves
gives you access to better scalar-multiplication options. For example,
in the case of Curve25519:

   * Take the short-Weierstrass coordinate X provided as input.
   * Subtract 486662/3 to obtain the Montgomery coordinate x.
   * Use the Montgomery ladder for scalar multiplication. (This is the
     very short code that I displayed in my talk in Toronto.)
   * Add 486662/3. (This gets back to the short-Weierstrass output.)
   * Use a few extra lines to compute the other output y.

This code is considerably simpler, faster, and less error-prone than the
scalar-multiplication procedure in the ANSI standard. This option isn't
available for NIST P-256, so if you have to support both curves then you
might prefer the old-fashioned Jacobian approach, but other people will
still take advantage of the Montgomery-ladder option.

As a fancier example, starting from the Montgomery coordinates x and y
of a Curve25519 point, you can compute Edwards coordinates

   X = sqrt(486664)x/y,
   Y = (x-1)/(x+1)

on the corresponding Edwards curve X^2+Y^2 = 1+(121665/121666)X^2Y^2.
You can then use, e.g., windowed extended-Edwards scalar multiplication.
Compared to Jacobian scalar multiplication this is considerably faster
and has the huge advantage of not having to worry about exceptional
cases in the code. This generalizes to any complete Edwards curve; see
the Bernstein--Lange paper that introduced Edwards-curve cryptography. 

You might be worried about the divisions involved in these conversions
between Edwards coordinates and other coordinates. This is one of the
motivations for EdDSA, and in particular Ed25519, which sends Edwards
coordinates for Curve25519 through the wire (compressed) rather than
sending short Weierstrass coordinates ECDSA-style or sending Montgomery
coordinates. One shouldn't overestimate the speed benefit here---

   * the two divisions in a conversion are trivially merged into one,
   * constant-time division is only about 10% of optimized constant-time
     scalar multiplication, and
   * there are several well-known tricks to merge coordinate-conversion
     divisions into other operations, typically reducing 10% below 1%

---but there's an obvious benefit in simplicity. This isn't compatible
with ECDSA, but ECDSA also has many other problems that motivate doing
something new. (Similarly, sending the Montgomery x-coordinate has clear
benefits for ECDH/ECDHE.) An intermediate transition option would be to
support both Ed25519 and ECDSA with Curve25519, sharing all of the
underlying scalar-multiplication code, with an eye towards eventually
allowing simpler implementations that support only Ed25519.

Similarly,

   (1+y)/(1-y) - 30682/46029, sqrt(-4/15343)(1+y)/((1-y)x)

are ECDSA-compatible coordinates for the Microsoft curve. These two
coordinates satisfy a short Weierstrass equation. So choosing a
twisted-Edwards curve such as the Microsoft curve doesn't rule out
ECDSA, doesn't rule out the Montgomery ladder, etc.

To summarize, all of the _curves_ under discussion support ECDSA. So I'm
quite puzzled by Microsoft's "requirements" that "new curves" must
"support standard ECDHE and ECDSA algorithms" and must "support standard
EC point representations". The most obvious interpretations of these
"requirements" are content-free.

A subsequent Microsoft slide asserts that Montgomery curves ("curve
family: Montgomery") "can't be used with ECDSA". This is simply wrong.
There is no problem using Montgomery _curves_ with ECDSA. The fact that
ECDSA specifies short-Weierstrass _coordinates_ means that sending
Montgomery _coordinates_ would not be standards-compliant, but it's
trivial to send short-Weierstrass _coordinates_ for a Montgomery curve.

It's particularly strange that Microsoft makes this assertion only for
Montgomery curves and not for (twisted) Edwards curves. If Microsoft is
trying to suggest that simply sending the Edwards x and y is compliant
with the ECDSA standard, then a retraction is required; again, the ECDSA
standard specifies short-Weierstrass coordinates. If Microsoft is trying
to suggest that one can use Edwards _curves_ with ECDSA, then this is of
course true, but it's not an advantage of Edwards over Montgomery.

I'm similarly quite puzzled by Nigel Smart insisting on "curves" whose
"definition is in Weierstrass form". If this were actually imposed as a
requirement then all of the curve proposers would go through the trivial
exercise of reformulating all of these curves in Weierstrass form,
elevating style over content. This superficial translation wouldn't
remove the good reasons, or the ability, for new protocols to specify
other _coordinates_ (as in Ed25519), and similarly it wouldn't remove
the extended implementation options that I've described above. The most
flexibility would still be achieved by translated Montgomery curves and
translated Edwards curves.

Nigel also insists on "curves" whose "data format for point transfer" is
"in Weierstrass form". This is a syntax error, asking the curve object
to answer a "data format" question that it doesn't know how to answer. I
understand that Nigel wants protocols to use old-fashioned Weierstrass
coordinates, but he's wrong in suggesting that this could rule out any
of the curves under discussion. (As a side note, I don't know what his
rationale is, while I see important advantages to other choices.)

Let me again emphasize that requiring _curves_ to support ECDSA etc. is
content-free. Every curve under discussion supports ECDSA, and this
clearly isn't going to change. Nigel is wrong in suggesting that this
sort of requirement would exclude Edwards curves, and Microsoft is wrong
in suggesting that this sort of requirement would exclude Montgomery
curves.

Surely a requirement (or desideratum) that confuses people, and that
doesn't actually accomplish anything, should be eliminated. The actual
story is that Montgomery curves and Edwards curves support _extra_
options---options that have undisputed value---while _also_ supporting
the old-fashioned options.

As far as I can see, this confusion is _almost_ the entire source of
opposition to Montgomery curves and/or Edwards curves. The reason I'm
saying "almost" is that I also saw Nigel claiming that cofactor 1 has a
critical security benefit ("vital to avoid mistakes")---but details to
support this claim are missing. Note that

   * IEEE allows cofactors;

   * ANSI allows cofactors;

   * NIST claims that "For efficiency reasons, it is desirable to have
     the cofactor be as small as possible", but NIST allows larger
     cofactors and doesn't claim that smaller cofactors matter for
     _security_; and

   * Certicom's pet SEC 1 standard originally required cofactor<=4 but
     switched in 2009 to allowing larger cofactors.

Post-NIST research has produced overwhelming evidence that properly
chosen curves with larger cofactors, when implemented in the most
natural ways, _eliminate_ several critical pitfalls that nobody knows
how to eliminate for cofactor 1. See

   http://safecurves.cr.yp.to/ladder.html
   http://safecurves.cr.yp.to/twist.html
   http://safecurves.cr.yp.to/complete.html

for summaries and references.

Does anyone have a serious argument against Montgomery and/or Edwards?
I'm not aware of anything. I think there's an overwhelming case for
insisting that each new curve be compatible with the widest range of
options: short Weierstrass coordinates, Jacobian scalarmult, Montgomery
coordinates, Montgomery scalarmult without point validation, Edwards
coordinates, Edwards scalarmult without special cases, etc. This means
requiring each curve to have

   * a point of order 4, to support Edwards coordinates and Montgomery
     coordinates (improving simplicity, speed, and security);

   * a unique point of order 2, to eliminate failure cases in the
     simplest possible way; and
     
   * twist security, so that input validation isn't necessary for
     single-coordinate DH.

Some examples of curves meeting all these criteria are Curve25519,
Curve41417, E-521, and Microsoft's new twisted-Edwards curves---again,
it's wrong to think that Edwards curves aren't Montgomery-compatible or
vice versa. Examples of curves that _don't_ qualify are

   * the NIST curves (which obviously are grandfathered in),
   * the Brainpool curves (ditto), and
   * Microsoft's non-Edwards curves (which I think should be tossed).

Excluding inferior options will obviously simplify the discussion. For
example, if all remaining options automatically support Elligator 1
and/or Elligator 2, then there's no need to discuss which applications
care about this support, and whether Elligator Squared is adequate.

It would also be helpful for CFRG to figure out which range of ECC
mechanisms it's recommending: for example, just a curve choice, or also
coordinate choices for common applications. Since a large part of the
motivation for new curves is to enable better implementations, it makes
sense to carefully consider and document major implementation options,
even though it's ultimately up to the implementor to decide what to do
within the bounds of interoperability.

---Dan


From nobody Wed Jul 30 00:24:44 2014
Return-Path: <crypto@brainhub.org>
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 04F151B2953 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 00:24:40 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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 o2yIM-XJurFS for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 00:24:35 -0700 (PDT)
Received: from qmta06.emeryville.ca.mail.comcast.net (qmta06.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:56]) by ietfa.amsl.com (Postfix) with ESMTP id 7196A1B2954 for <cfrg@irtf.org>; Wed, 30 Jul 2014 00:24:34 -0700 (PDT)
Received: from omta01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by qmta06.emeryville.ca.mail.comcast.net with comcast id YXMb1o0040EPchoA6XQZN5; Wed, 30 Jul 2014 07:24:33 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta01.emeryville.ca.mail.comcast.net with comcast id YXQY1o00R4uhcbK8MXQZeJ; Wed, 30 Jul 2014 07:24:33 +0000
Message-ID: <53D89DB0.9020505@brainhub.org>
Date: Wed, 30 Jul 2014 00:24:32 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Robert Ransom <rransom.8774@gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>	<CFF7E184.28E9F%kenny.paterson@rhul.ac.uk>	<53D2781B.8030605@sbcglobal.net>	<CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com>	<CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com>	<53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com>
In-Reply-To: <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------010301070108070304020403"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406705073; bh=tFJASxSTQhPBb5J2PQPtMkwa2IHcf7JLAdw9YKtJQJU=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=P6wlcy/eu2xbPJ7UiJvsua6SSnKOoF/eQBw+m+zYpRxIR2Cmk952FPJiECZWIOJal OvClhQnfgf7K9qpiUYrhTjT/KYHf1FCizE2rRYQ46bIfqiQR5mfMDpsqWmYL1S4n8J a6YKD4/sNYJUbN2F+zWCUMYDX95L+chk932vUOxPZMTpQfiMqepN+d1BBAxKMiz2HI UqSyyKD/B+XO4U4vzyHRBWh7GvJAVWeOfs/qxrVExeuEq/eHumDCVl6a6i1or1KMj8 7Nb+oMCQ4YSsiLIhwosJK3PRJFMgDJEIEFRUYzAE80eyXhGibGyCO4XLpqpKakklbs hJsiKoYYkGIqg==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/-yzHPyRwz7zKlHRJ63ZZ6MJwczM
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Curve selection revisited
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, 30 Jul 2014 07:24:40 -0000

This is a multi-part message in MIME format.
--------------010301070108070304020403
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 07/29/2014 04:14 AM, Robert Ransom wrote:
> On 7/26/14, Andrey Jivsov <crypto@brainhub.org> wrote:
>> On 07/25/2014 07:25 PM, Robert Ransom wrote:
>>> The exact value of c determines whether a portable or vectorized
>>> implementation can delay carries until after reduction.  For example,
>>> after curve25519-donna performs a multiply or squaring, each of 19
>>> 64-bit limbs has absolute value less than 14*2^54.  When
>>> freduce_degree reduces a field element to 10 limbs without carrying,
>>> the result has absolute value less than (c+1)*14*2^54  = 280*2^54, or a
>>> bit more than 2^62.  In the Microsoft field 2^255  - 765, or even 2^256
>>> - 189, this would not be possible.
>>>
>>> Carries between limbs can be performed more efficiently than in
>>> curve25519-donna -- curve25519-donna goes to extra effort to keep
>>> limbs signed.  In the Montgomery ladder, this optimization does not
>>> add any extra carry steps, because the Montgomery-ladder formulas
>>> never perform more than two add/subtract operations between a
>>> multiply/square operation.  With Edwards-curve operations, this
>>> optimization may require an additional carry step in the doubling
>>> formula.
>>>
>>> The exact value of s determines whether carries can be vectorized
>>> within a coordinate-field element.  For example, 2^251  - 9 can be
>>> represented using one 26-bit limb (in the least significant position)
>>> and 9 25-bit limbs, but this interferes with the vectorization
>>> strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
>>> Since c=9 is so small, this can be worked around by representing
>>> coordinates modulo 2^252  - 18 instead, but this trick is rarely
>>> possible without running into the bound on c.
>> The main argument for p = 2^255-19 v.s. p = 1^256-189 is that the C=19
>> is smaller than C=189 and this helps to "manage" the carries.
> Actually, the main argument for p = 2^255 - 19 is that Curve25519 is
> the de-facto standard curve for high-performance ECC in a group of
> near-256-bit order.  Part of the reason for that is that implementers
> have, in practice, been able to rely on the small value of what you
> denote as â€œCâ€� for that field in optimizing their software, so no one
> has felt a need to switch to a different field of that form for
> performance reasons.

Yes, I accept it.

>
> (Mike Hamburg introduced â€˜special Montgomery primesâ€™ and showed
> evidence that they can provide better performance in some
> implementations than the Curve25519 coordinate field in
> <https://eprint.iacr.org/2012/309.pdf>, but that's a different form of
> prime.)
>
>
>> Let's assume that an F(p) integer is represented as n limbs (words).
>>
>> 256 bit Montgomery curve will have on the order of (5 mul + 4 squares)
>> and about the same number F(p) additions per one scalar bit.
>>
>> Therefore, we can talk about one unreduced F(p) multiplication + F(p)
>> reduction (where C plays its role) + F(p) addition. With this in mind
>> the contribution of C can be estimated within this group.
>>
>> F(p) multiplications (counting squares here as well) dominate the
>> performance of EC operations:
>> * the result of the multiplication is 2*n limbs and the complexity of
>> this operation is n^2 limb multiplications and O(n^2) additions.
>> * the 2*n limbs must be reduced (mod p) to n limbs immediately after
>> multiplication
>> * there is on average ~1 addition/subtraction of n limbs per each
>> multiplication due to EC formula
>>
>> Each multiplication needs degree reduction and settling of accumulated
>> carries before the next multiplication. One can only postpone settling
>> of carries while he does additions (prior to the next multiplciation).
>>
>> We have about n^2 limb additions, plus n limb additions due to EC
>> formular, plus we must perform n additions of the form <some_limb>*C
>> (for modp reduction).
>>
>> Assuming n=10 limbs, the entire contribution of n <some_limb>*C is bound
>> by ~10% of all the additions.
>>
>> We are not talking about C=0, however, but rather about |C|=4 bits v.s.
>> |C| = 8 bits difference.
>>
>> A rough estimate here is 5% penalty.
> As Dr. Bernstein has pointed out, a larger value of C requires 3*n
> carries instead of n carries (see
> <https://moderncrypto.org/mail-archive/curves/2014/000237.html>), and
> carries have high latency (see section 4, subsection â€˜Reductionâ€™ of
> naclcrypto).
>
>
>> One reason why I think this is a good estimate is that there may be a
>> benefit of more fine-tuned control of carries. The highest accumulation
>> of the carries happens in the inner limbs of the 2*n integer (imagine
>> paper-and-pencil multiplication of two n-limb numbers: the stack is the
>> highest in the middle). Therefore, if we have the need to control
>> overflow within, say, multiplication, perhaps it's possible to
>> accomplish this within a subset of n limbs.
> So you expect greater implementation effort and complexity to reduce
> the added cost, but not eliminate it?
I think it's fair to say that lower C will be faster if you only 
consider F(p) ( multiplies and squares; the additions/subtractions don't 
matter).

>
>
>> ( BTW, I don't see a clear argument why can't any F(p) be vectorized
>> (some more efficiently than others). The vectorization using x86 SSE2 is
>> known to speeds up RSA operations for generic F(p)s. )
> As I said, the vectorization strategy used in the neoncrypto paper is
> incompatible with 251-bit moduli.  That strategy requires pairing
> together limbs of the same size, so that a vectorized shift operation
> can be used to carry out of both limbs at the same time.
>
> In RSA, where (in your notation) C is necessarily huge, there is no
> performance penalty from making C a few bits larger, so it's easy to
> lengthen the modulus and make every limb the same size, so it's easy
> to vectorize carries across any pair of limbs.  But that's not very
> relevant to the primes used for fast ECC.
That's correct. For RSA with SSE you do similar things you do here, but 
the reduction is generic and slow.

>
>
> Do you see any benefit of p = 2^256 - 189 over p = 2^255 - 19 that you
> believe offsets the costs of switching to a different coordinate
> field?

They are :
* aesthetics
* it happened that square root of  p = 2^255 - 19 requires 
multiplication by a sqrt(-1) in half the cases when decompression is 
involved.

Both are tolerable from aesthetics point of view IMO if we (effectively) 
standardize on p = 2^255 - 19. p = 2^255 - 19's slightly higher 
performance than 2^256 - 189 should balance *sqrt(-1) out.

( Compare this with 2^414-17, which won't be trivial to match with other 
algorithms. )

--------------010301070108070304020403
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 07/29/2014 04:14 AM, Robert Ransom
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com"
      type="cite">
      <pre wrap="">On 7/26/14, Andrey Jivsov <a class="moz-txt-link-rfc2396E" href="mailto:crypto@brainhub.org">&lt;crypto@brainhub.org&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On 07/25/2014 07:25 PM, Robert Ransom wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">The exact value of c determines whether a portable or vectorized
implementation can delay carries until after reduction.  For example,
after curve25519-donna performs a multiply or squaring, each of 19
64-bit limbs has absolute value less than 14*2^54.  When
freduce_degree reduces a field element to 10 limbs without carrying,
the result has absolute value less than (c+1)*14*2^54  = 280*2^54, or a
bit more than 2^62.  In the Microsoft field 2^255  - 765, or even 2^256
- 189, this would not be possible.

Carries between limbs can be performed more efficiently than in
curve25519-donna -- curve25519-donna goes to extra effort to keep
limbs signed.  In the Montgomery ladder, this optimization does not
add any extra carry steps, because the Montgomery-ladder formulas
never perform more than two add/subtract operations between a
multiply/square operation.  With Edwards-curve operations, this
optimization may require an additional carry step in the doubling
formula.

The exact value of s determines whether carries can be vectorized
within a coordinate-field element.  For example, 2^251  - 9 can be
represented using one 26-bit limb (in the least significant position)
and 9 25-bit limbs, but this interferes with the vectorization
strategy described in the neoncrypto paper (by Dr. Bernstein et al.).
Since c=9 is so small, this can be worked around by representing
coordinates modulo 2^252  - 18 instead, but this trick is rarely
possible without running into the bound on c.
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">The main argument for p = 2^255-19 v.s. p = 1^256-189 is that the C=19
is smaller than C=189 and this helps to "manage" the carries.
</pre>
      </blockquote>
      <pre wrap="">
Actually, the main argument for p = 2^255 - 19 is that Curve25519 is
the de-facto standard curve for high-performance ECC in a group of
near-256-bit order.  Part of the reason for that is that implementers
have, in practice, been able to rely on the small value of what you
denote as â€œCâ€� for that field in optimizing their software, so no one
has felt a need to switch to a different field of that form for
performance reasons.</pre>
    </blockquote>
    <br>
    Yes, I accept it. <br>
    <br>
    <blockquote
cite="mid:CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com"
      type="cite">
      <pre wrap="">

(Mike Hamburg introduced â€˜special Montgomery primesâ€™ and showed
evidence that they can provide better performance in some
implementations than the Curve25519 coordinate field in
<a class="moz-txt-link-rfc2396E" href="https://eprint.iacr.org/2012/309.pdf">&lt;https://eprint.iacr.org/2012/309.pdf&gt;</a>, but that's a different form of
prime.)


</pre>
      <blockquote type="cite">
        <pre wrap="">Let's assume that an F(p) integer is represented as n limbs (words).

256 bit Montgomery curve will have on the order of (5 mul + 4 squares)
and about the same number F(p) additions per one scalar bit.

Therefore, we can talk about one unreduced F(p) multiplication + F(p)
reduction (where C plays its role) + F(p) addition. With this in mind
the contribution of C can be estimated within this group.

F(p) multiplications (counting squares here as well) dominate the
performance of EC operations:
* the result of the multiplication is 2*n limbs and the complexity of
this operation is n^2 limb multiplications and O(n^2) additions.
* the 2*n limbs must be reduced (mod p) to n limbs immediately after
multiplication
* there is on average ~1 addition/subtraction of n limbs per each
multiplication due to EC formula

Each multiplication needs degree reduction and settling of accumulated
carries before the next multiplication. One can only postpone settling
of carries while he does additions (prior to the next multiplciation).

We have about n^2 limb additions, plus n limb additions due to EC
formular, plus we must perform n additions of the form &lt;some_limb&gt;*C
(for modp reduction).

Assuming n=10 limbs, the entire contribution of n &lt;some_limb&gt;*C is bound
by ~10% of all the additions.

We are not talking about C=0, however, but rather about |C|=4 bits v.s.
|C| = 8 bits difference.

A rough estimate here is 5% penalty.
</pre>
      </blockquote>
      <pre wrap="">
As Dr. Bernstein has pointed out, a larger value of C requires 3*n
carries instead of n carries (see
<a class="moz-txt-link-rfc2396E" href="https://moderncrypto.org/mail-archive/curves/2014/000237.html">&lt;https://moderncrypto.org/mail-archive/curves/2014/000237.html&gt;</a>), and
carries have high latency (see section 4, subsection â€˜Reductionâ€™ of
naclcrypto).


</pre>
      <blockquote type="cite">
        <pre wrap="">One reason why I think this is a good estimate is that there may be a
benefit of more fine-tuned control of carries. The highest accumulation
of the carries happens in the inner limbs of the 2*n integer (imagine
paper-and-pencil multiplication of two n-limb numbers: the stack is the
highest in the middle). Therefore, if we have the need to control
overflow within, say, multiplication, perhaps it's possible to
accomplish this within a subset of n limbs.
</pre>
      </blockquote>
      <pre wrap="">
So you expect greater implementation effort and complexity to reduce
the added cost, but not eliminate it?</pre>
    </blockquote>
    I think it's fair to say that lower C will be faster if you only
    consider F(p) ( multiplies and squares; the additions/subtractions
    don't matter). <br>
    <br>
    <blockquote
cite="mid:CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com"
      type="cite">
      <pre wrap="">


</pre>
      <blockquote type="cite">
        <pre wrap="">( BTW, I don't see a clear argument why can't any F(p) be vectorized
(some more efficiently than others). The vectorization using x86 SSE2 is
known to speeds up RSA operations for generic F(p)s. )
</pre>
      </blockquote>
      <pre wrap="">
As I said, the vectorization strategy used in the neoncrypto paper is
incompatible with 251-bit moduli.  That strategy requires pairing
together limbs of the same size, so that a vectorized shift operation
can be used to carry out of both limbs at the same time.

In RSA, where (in your notation) C is necessarily huge, there is no
performance penalty from making C a few bits larger, so it's easy to
lengthen the modulus and make every limb the same size, so it's easy
to vectorize carries across any pair of limbs.  But that's not very
relevant to the primes used for fast ECC.</pre>
    </blockquote>
    That's correct. For RSA with SSE you do similar things you do here,
    but the reduction is generic and slow. <br>
    <br>
    <blockquote
cite="mid:CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com"
      type="cite">
      <pre wrap="">


Do you see any benefit of p = 2^256 - 189 over p = 2^255 - 19 that you
believe offsets the costs of switching to a different coordinate
field?</pre>
    </blockquote>
    <br>
    They are : <br>
    * aesthetics<br>
    * it happened that square root ofÂ  p = 2^255 - 19
    requires multiplication by a sqrt(-1) in half the cases when
    decompression is involved. <br>
    <br>
    Both are tolerable from aesthetics point of view IMO if we
    (effectively) standardize on p = 2^255 - 19. p = 2^255 - 19's
    slightly higher performance than 2^256 - 189 should balance
    *sqrt(-1) out. <br>
    <br>
    ( Compare this with 2<sup class="moz-txt-sup"><span
        style="display:inline-block;width:0;height:0;overflow:hidden">^</span>414</sup>-17,
    which won't be trivial to match with other algorithms. )<br>
  </body>
</html>

--------------010301070108070304020403--


From nobody Wed Jul 30 02:36:16 2014
Return-Path: <rransom.8774@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 DFA4A1B2A35 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 02:36:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 6niDuyhY-o6o for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 02:36:13 -0700 (PDT)
Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com [IPv6:2607:f8b0:400d:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A2D691A01C6 for <cfrg@irtf.org>; Wed, 30 Jul 2014 02:36:13 -0700 (PDT)
Received: by mail-qa0-f54.google.com with SMTP id k15so976933qaq.41 for <cfrg@irtf.org>; Wed, 30 Jul 2014 02:36:12 -0700 (PDT)
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:content-transfer-encoding; bh=YziIA/HyaxiHxQIcpKohrhInRkq8RWiLwsbBcgkfE/w=; b=wPT2qPTKBIGZ97zKe2o/zC8k0bEr0TmA9j7iF8N2fyHtbma9RpGuD2BJHM+KgQ9Fsg /tyvUboBm3Z2jUbflh0pygLk90/jOssc6KpvOIPgff76zKa1/TWQNXqdKu+gNRY9qyG3 gcMH68gVqKaTGv3oVPAWKW5sg7lVsaoZJWNHKe8YYrL6eJFKLEIyXOoH6TEhXDk2Piu1 YIAXmDbnxFJTJurHMtJDz7iKuFt4VRfFxvNBmNe9pPnhgShrGUWN/Mo+hRPJJL9i9USH cQisKP8X8Sq3AnQDGC3velKw5Or803wbpd4sAhloaMxApVGG+Nnttz0u5rx9DVv48RlZ BaTw==
MIME-Version: 1.0
X-Received: by 10.140.105.72 with SMTP id b66mr4558838qgf.30.1406712972581; Wed, 30 Jul 2014 02:36:12 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Wed, 30 Jul 2014 02:36:12 -0700 (PDT)
In-Reply-To: <53D89DB0.9020505@brainhub.org>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com> <53D89DB0.9020505@brainhub.org>
Date: Wed, 30 Jul 2014 02:36:12 -0700
Message-ID: <CABqy+spEkd9BCwE3o+CyRDeN24TPvQBHoyY+VYr9eeK4dg6sPg@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lkUdJIaSc4AGuqDOk7HJbbT1Id4
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Curve selection revisited
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, 30 Jul 2014 09:36:15 -0000

On 7/30/14, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 07/29/2014 04:14 AM, Robert Ransom wrote:

>> Do you see any benefit of p =3D 2^256 - 189 over p =3D 2^255 - 19 that y=
ou
>> believe offsets the costs of switching to a different coordinate
>> field?
>
> They are :
> * aesthetics
> * it happened that square root of  p =3D 2^255 - 19 requires
> multiplication by a sqrt(-1) in half the cases when decompression is
> involved.
>
> Both are tolerable from aesthetics point of view IMO if we (effectively)
> standardize on p =3D 2^255 - 19. p =3D 2^255 - 19's slightly higher
> performance than 2^256 - 189 should balance *sqrt(-1) out.

What do you mean by =E2=80=9Caesthetics=E2=80=9D?  (My aesthetic sense may =
have been
warped by seeing how these fields are implemented -- 2^255-19 and
2^414-17 are quite pretty to me.)

As for the slightly more annoying square-root algorithm modulo
2^255-19, (a) that's *much* better than the P-224 field (already
IETF-approved as a TLS NamedCurve), and (b) that's better than having
a trade-off between using the a=3D-1 formulas (and saving 1M per scalar
limb in Edwards form) and having a complete formula available for
arbitrary points.  I think it's unfortunate that 2^414-17 is a 3mod4
field rather than a 5mod8 field.


> ( Compare this with 2^414-17, which won't be trivial to match with other
> algorithms. )

What do you mean by =E2=80=9Cmatch with other algorithms=E2=80=9D?

If you're referring to =E2=80=98security level=E2=80=99:

* Stream-cipher keys are found by brute-force preimage search;
discrete logarithms in strong EC groups are computed by brute-force
collision search on the function m*P + n*Q.  The preimage-search
attack on a stream cipher can attack multiple target keys at the same
time at no extra cost, and its probability of finding any of the
target keys is linear in the number of operations performed.  The
discrete-logarithm attack targets a single key at a time (and cannot
find the first of multiple targets at reduced cost), and its
probability of finding the target key increases slower than linearly.
(See Dr. Bernstein's bruteforce paper for the engineering details of
preimage search, then see his ecc2k130 paper for the details of
discrete logarithms, though that paper targets a curve with
automorphisms.)  Thus, a curve group =E2=80=98at the n-bit security level=
=E2=80=99
should always be used with a stream cipher whose key is longer than n
bits.

* The only reason that people use AES keys shorter than 256 bits is
that NSA chose a cipher which uses more rounds (and is thus slower)
for longer keys.  If AES-256 ran at the same speed as AES-128,
everyone would rightly use 256-bit keys, regardless of the difficulty
of breaking the public-key algorithm used with it.


Robert Ransom


From nobody Wed Jul 30 02:41:12 2014
Return-Path: <rransom.8774@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 08E2A1B2A79 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 02:41:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 9zzBjcAXML6v for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 02:41:09 -0700 (PDT)
Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5799D1B2A76 for <cfrg@irtf.org>; Wed, 30 Jul 2014 02:41:09 -0700 (PDT)
Received: by mail-qg0-f43.google.com with SMTP id a108so1120208qge.30 for <cfrg@irtf.org>; Wed, 30 Jul 2014 02:41:08 -0700 (PDT)
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=G0bH0qKNrfUYsuNYoUUhu3m5b+g2StrAKEqgnYXihtw=; b=ryPSJlPsZ240ySgs429uXtboKk/jdsSgNn2G6XPNZJnB+LPP33JMiIKAB2ayJ2WHk/ gmMwxnbTqxEMbVb1sAJ04QDDv6tObbvleBZ2ghbfEpfQIYuhy7VLxor7jmiOwy8O2bVX 5mmoQIFL3OWibDaD/YlPYFUZJxbMJvnlM98HAM6//YLcXVtD2sHSU7GK9jQN4MhIE0e7 iwSCe4wgRvT7S7ldGrddXG5L5A6NKEMUFNfPrP+ItCREXeKFIDwYwzTRdTenCeayphxw vqS3O6YboNOPklWVu9ngSShxoExIgQfO/RDMLczo8HUaX9uNC8cyII2uPc/Ss5gc8gPF HzKg==
MIME-Version: 1.0
X-Received: by 10.224.86.5 with SMTP id q5mr4996127qal.36.1406713268508; Wed, 30 Jul 2014 02:41:08 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Wed, 30 Jul 2014 02:41:08 -0700 (PDT)
In-Reply-To: <CABqy+spEkd9BCwE3o+CyRDeN24TPvQBHoyY+VYr9eeK4dg6sPg@mail.gmail.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com> <53D89DB0.9020505@brainhub.org> <CABqy+spEkd9BCwE3o+CyRDeN24TPvQBHoyY+VYr9eeK4dg6sPg@mail.gmail.com>
Date: Wed, 30 Jul 2014 02:41:08 -0700
Message-ID: <CABqy+sp6+5ONjHwOh4+dWiut=VaV0g0=BzZsf=RYA0T_G9EPBg@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/a3RzbWr_4K0Pghoh4z82zGdgxzw
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Curve selection revisited
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, 30 Jul 2014 09:41:10 -0000

On 7/30/14, Robert Ransom <rransom.8774@gmail.com> wrote:

> (See Dr. Bernstein's bruteforce paper for the engineering details of
> preimage search, then see his ecc2k130 paper for the details of
> discrete logarithms,

Oops.  His paper that explains the discrete-logarithm algorithm is ecc2x.


Robert Ransom


From djb-dsn2-1406711340.7506@cr.yp.to  Wed Jul 30 05:33:48 2014
Return-Path: <djb-dsn2-1406711340.7506@cr.yp.to>
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 790011A0020 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 05:33:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.199
X-Spam-Level: 
X-Spam-Status: No, score=-1.199 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=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 pR8nwL-HLT7E for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 05:33:46 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id DD6BD1A0010 for <cfrg@irtf.org>; Wed, 30 Jul 2014 05:33:45 -0700 (PDT)
Received: (qmail 7263 invoked by uid 1011); 30 Jul 2014 12:33:47 -0000
Received: from unknown (unknown) by unknown with QMTP; 30 Jul 2014 12:33:47 -0000
Received: (qmail 29013 invoked by uid 1001); 30 Jul 2014 12:33:36 -0000
Date: 30 Jul 2014 12:33:36 -0000
Message-ID: <20140730123336.29011.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/UlaxcxVAz1wHTTLSc0QPPgq6EXo
Subject: [Cfrg] matching AES security
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, 30 Jul 2014 13:41:44 -0000

Blumenthal, Uri - 0668 - MITLL writes:
> IMHO, the logic/reason of matching security levels of the
> cryptographic algorithms employed in a protocol suite is fairly
> obvious and does not need an explicit justification. 

Let's think through what "matching security levels" actually means for
matching elliptic curves with AES.

In the foreseeable future there will be billions of devices that users
are relying on for cryptographic computations, and it's easy to imagine
that a typical device will use at least one new key every minute, i.e.,
a million new keys within two years. That's more than 2^50 keys overall.

There are standard attacks that break _all_ of 2^50 AES-128 keys using a
_total_ of 2^128 easy computations. Even worse, there are standard
attacks that find _at least one_ of the keys using just 2^78 easy
computations, a feasible computation today.

These attacks assume that the attacker sees ciphertext for, e.g., an
all-zero block encrypted under all of the keys. Sometimes protocols
randomize their blocks to try to stop these attacks---but putting
complications into protocols to compensate for a cipher's deficient
security is _not_ a smart way to design a cryptographic system. For the
past decade I've been recommending moving to larger cipher keys,
precisely because of this attack against 128-bit keys.

For comparison, if we're talking about Curve25519 keys rather than
AES-128 keys, the fastest attacks to find one out of 2^50 keys are as
slow as the fastest attack to find a single targeted key. (This isn't
just an observation about known attacks; it's a theorem about _all_
attacks, following easily from the "random self-reducibility" of
Curve25519 DL, a very strong type of "worst-case-to-average-case
reduction".) Exactly the same comment applies to any other curve---I'm
using Curve25519 as a concrete illustration but don't mean to suggest
that it's special in this respect.

A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapakidis,
also crediting Silverman--Stapleton; for further analysis see 2001
Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Bernstein,
2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the 2^50
Curve25519 keys more quickly than 2^50 separate DL computations, but
still takes time 2^150, millions of times more difficult than breaking
an AES-128 key.

If you scale down to more plausible amounts of future computation, such
as 2^100, then the comparison becomes even more lopsided. The attacker
is going to find millions of the users' AES-128 keys, but has chance
only about 1/2^50 of finding even _one_ of the Curve25519 keys.

> What benefit do you derive from including a stronger
> algorithm in a chain made of weaker algorithms?

Do you realize that you're arguing _against_ mixing AES-256 with a curve
as large as 512 bits?

In a world of 2^50 AES-256 keys, there's an attack that already has a
high probability of finding a key in time "only" 2^206. This is nicely
matched with the cost of breaking Curve41417. (I admit that Curve41417
is slightly more secure when the inner-loop cost is taken into account,
but let's not quibble.) What benefit do you think you're obtaining from
larger curves, such as NIST P-521 or E-521 or Microsoft's 512-bit curve?

The argument that AES-256 "matches" 512-bit ECC is supported only by an
oversimplified analysis of single-key attacks. Multiple-key attacks are
much faster for AES-256, and are obviously preferable for the attacker;
inferior attacks make no sense as a basis for evaluating security. If
you actually want a cipher that doesn't compromise the quantitative
security level of 512-bit ECC then you need to go far beyond 256-bit
cipher keys.

The point I'm making here is orthogonal to

   * Adam's point that comparing 2^200 computation to 2^250 computation
     is meaningless---we'll never do such big computations (see
     https://www.imperialviolet.org/2014/05/25/strengthmatching.html);

   * Mike's point that what actually matters up at this level is the
     risk of breakthroughs---e.g., quantum computers running Shor;
     
   * the point that several people have made about the low cost of
     moving from 192-bit ciphers to 256-bit ciphers (and the high cost
     of supporting an excessive spectrum of options)---so usage of
     256-bit ciphers doesn't imply that users want 2^256 security;

   * the point that it's already common practice to combine, e.g.,
     RSA-2048 with AES-128 and sometimes even AES-256, illustrating that
     the users' performance constraints are the biggest issue;

and various other arguments against the whole concept of "matching
security levels". What I'm saying is that if you _do_ want to "match
security levels"---for example, Joe Salowey wrote

   TLS supports 256-bit symmetric key ciphers and we want to have
   recommended curves to match this key strength

---then it's a huge quantitative error to pair AES-256 with 512-bit ECC.
All of the attack costs that I'm describing are thoroughly established
by the public cryptanalytic literature; I'm not aware of any dispute.

Perhaps CFRG should issue a warning about AES-128 being feasible to
break under plausible assumptions. A reasonable response to this threat
is to move to a 256-bit (or merely 192-bit, but see above regarding
options) cipher with Curve25519 (or Microsoft's 256-bit curve); this
would push all known attacks above 2^120, ample protection for the
foreseeable future. A 256-bit cipher with Curve41417 would push all
known attacks above 2^200.

---Dan


From nobody Wed Jul 30 07:06:36 2014
Return-Path: <rgm-sec@htt-consult.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 8839F1A008B for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 07:06:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 uKUzStb2CQNF for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 07:06:31 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id EE3DB1A007C for <cfrg@irtf.org>; Wed, 30 Jul 2014 07:06:30 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 7055A62B85 for <cfrg@irtf.org>; Wed, 30 Jul 2014 14:06:30 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4gE+lwKaLMqV for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:06:20 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id E9D8E62A76 for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:06:19 -0400 (EDT)
Message-ID: <53D8FBDB.4060601@htt-consult.com>
Date: Wed, 30 Jul 2014 10:06:19 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <20140730123336.29011.qmail@cr.yp.to>
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/IxQ9Xk-EInKmtwkTDQazOv7okj4
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 14:06:33 -0000

On 07/30/2014 08:33 AM, D. J. Bernstein wrote:
> Blumenthal, Uri - 0668 - MITLL writes:
>> IMHO, the logic/reason of matching security levels of the
>> cryptographic algorithms employed in a protocol suite is fairly
>> obvious and does not need an explicit justification.
> Let's think through what "matching security levels" actually means for
> matching elliptic curves with AES.
>
> In the foreseeable future there will be billions of devices that users
> are relying on for cryptographic computations, and it's easy to imagine
> that a typical device will use at least one new key every minute, i.e.,
> a million new keys within two years. That's more than 2^50 keys overall.

Dan,

Please explain what typical device will use at least one new key every 
minute?

In the typical devices I work with there will be at best one ECDHE 
exchange per day. Sometimes only once per month. (one message/5min = 312 
short messages/day to protect with AES-CCM or GCM). (we are working on 
changing once per life of sensor)

Now if you look at the server side that is receiving messages from 
10,000 fielded sensors and thus has 10,000 ECDHE exchanges/day (or per 
month), then the risk is a tad different?

thanks


From nobody Wed Jul 30 07:25:25 2014
Return-Path: <natanael.l@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 3A1041A0103 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 07:25:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 T7ljYOmCqkcy for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 07:25:17 -0700 (PDT)
Received: from mail-vc0-x232.google.com (mail-vc0-x232.google.com [IPv6:2607:f8b0:400c:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 23C921A0115 for <cfrg@irtf.org>; Wed, 30 Jul 2014 07:25:14 -0700 (PDT)
Received: by mail-vc0-f178.google.com with SMTP id la4so1913829vcb.9 for <cfrg@irtf.org>; Wed, 30 Jul 2014 07:25:13 -0700 (PDT)
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=Yvj4LwsYK8JxjszAIFwD4qLdf+xeDT0RmO7AlVsMYBg=; b=0x98jx05GJBXYsoYabt9Nm7joWigP7MYLswvn0MY+dOce+tYfNGb6jvv6YL93qf/rb iYr+7sJQilollCB+bPKpvasHAQh5A8GzXue7ynLex2CfglVhWZ5bL5Nkqyg3mfmE/lio piDWWiuHrvAtXnDtZ6obkENMgImwtnUAS9tjyx7djRVOdFWCtUc4V2nCrUH0/ZloCOpY 8r3sCKu4z42MexHZfdu5rTYEgcs0Q4pz9nRLvex+ABOIJRv8PbK7xNXGvHrJrBVIb+pE /wxp1uihbqUb1bZXmpT2uwpwR87xp2gD7TPWRnt9O+OAcmNoiVNdU5FXNKsWDyjCJbae +HBQ==
MIME-Version: 1.0
X-Received: by 10.52.37.81 with SMTP id w17mr1475360vdj.95.1406730313093; Wed, 30 Jul 2014 07:25:13 -0700 (PDT)
Received: by 10.58.111.106 with HTTP; Wed, 30 Jul 2014 07:25:12 -0700 (PDT)
Received: by 10.58.111.106 with HTTP; Wed, 30 Jul 2014 07:25:12 -0700 (PDT)
In-Reply-To: <53D8FBDB.4060601@htt-consult.com>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com>
Date: Wed, 30 Jul 2014 16:25:12 +0200
Message-ID: <CAAt2M19w_Gx2BWMhw22hS6eDQ2RoWbD+0P1Uzh3HxZkgPe_7uw@mail.gmail.com>
From: Natanael <natanael.l@gmail.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Content-Type: multipart/alternative; boundary=20cf307ca0f49b5c1804ff69ece0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PiYaD9mu4s8lBEYHOEh4GPgDFOI
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 14:25:21 -0000

--20cf307ca0f49b5c1804ff69ece0
Content-Type: text/plain; charset=UTF-8

Den 30 jul 2014 16:06 skrev "Robert Moskowitz" <rgm-sec@htt-consult.com>:
>
>
> On 07/30/2014 08:33 AM, D. J. Bernstein wrote:
>>
>> Blumenthal, Uri - 0668 - MITLL writes:
>>>
>>> IMHO, the logic/reason of matching security levels of the
>>> cryptographic algorithms employed in a protocol suite is fairly
>>> obvious and does not need an explicit justification.
>>
>> Let's think through what "matching security levels" actually means for
>> matching elliptic curves with AES.
>>
>> In the foreseeable future there will be billions of devices that users
>> are relying on for cryptographic computations, and it's easy to imagine
>> that a typical device will use at least one new key every minute, i.e.,
>> a million new keys within two years. That's more than 2^50 keys overall.
>
>
> Dan,
>
> Please explain what typical device will use at least one new key every
minute?
>
> In the typical devices I work with there will be at best one ECDHE
exchange per day. Sometimes only once per month. (one message/5min = 312
short messages/day to protect with AES-CCM or GCM). (we are working on
changing once per life of sensor)
>
> Now if you look at the server side that is receiving messages from 10,000
fielded sensors and thus has 10,000 ECDHE exchanges/day (or per month),
then the risk is a tad different?

It is not inconceivable that all kinds of mobile devices (not just
smartphones, but smartglasses, watches, shoes, your backpack, home
automation devices, electric cars which talk with every other large vehicle
nearby, etc) will be part of traffic anonymization networks like Tor and
I2P which frequently establishes new encrypted tunnels, that they'll be
using instant messengers with various OTR like protocols which rekey often,
so be part of radio mesh networks (see apps like Serval), etc... Then
there's file sharing (Flud is a nice torrent client for Android). And don't
forget randomized cover traffic to disrupt traffic analysis.

That's not even considering home servers which will do all of the above and
much more.

Few devices will only maintain a small set of connections over their
lifetimes, and many will be rekeying often for the sake of PFS (perfect
forward secrecy), etc...

This may be 10 years off before it becomes common (a large fraction of
users doing it), but it's highly likely to happen. The total number of
encrypted links will increase very drastically over time.

Your sensor may not be affected, but the rest of the world will be.

--20cf307ca0f49b5c1804ff69ece0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Den 30 jul 2014 16:06 skrev &quot;Robert Moskowitz&quot; &lt=
;<a href=3D"mailto:rgm-sec@htt-consult.com">rgm-sec@htt-consult.com</a>&gt;=
:<br>
&gt;<br>
&gt;<br>
&gt; On 07/30/2014 08:33 AM, D. J. Bernstein wrote:<br>
&gt;&gt;<br>
&gt;&gt; Blumenthal, Uri - 0668 - MITLL writes:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; IMHO, the logic/reason of matching security levels of the<br>
&gt;&gt;&gt; cryptographic algorithms employed in a protocol suite is fairl=
y<br>
&gt;&gt;&gt; obvious and does not need an explicit justification.<br>
&gt;&gt;<br>
&gt;&gt; Let&#39;s think through what &quot;matching security levels&quot; =
actually means for<br>
&gt;&gt; matching elliptic curves with AES.<br>
&gt;&gt;<br>
&gt;&gt; In the foreseeable future there will be billions of devices that u=
sers<br>
&gt;&gt; are relying on for cryptographic computations, and it&#39;s easy t=
o imagine<br>
&gt;&gt; that a typical device will use at least one new key every minute, =
i.e.,<br>
&gt;&gt; a million new keys within two years. That&#39;s more than 2^50 key=
s overall.<br>
&gt;<br>
&gt;<br>
&gt; Dan,<br>
&gt;<br>
&gt; Please explain what typical device will use at least one new key every=
 minute?<br>
&gt;<br>
&gt; In the typical devices I work with there will be at best one ECDHE exc=
hange per day. Sometimes only once per month. (one message/5min =3D 312 sho=
rt messages/day to protect with AES-CCM or GCM). (we are working on changin=
g once per life of sensor)<br>

&gt;<br>
&gt; Now if you look at the server side that is receiving messages from 10,=
000 fielded sensors and thus has 10,000 ECDHE exchanges/day (or per month),=
 then the risk is a tad different?</p>
<p dir=3D"ltr">It is not inconceivable that all kinds of mobile devices (no=
t just smartphones, but smartglasses, watches, shoes, your backpack, home a=
utomation devices, electric cars which talk with every other large vehicle =
nearby, etc) will be part of traffic anonymization networks like Tor and I2=
P which frequently establishes new encrypted tunnels, that they&#39;ll be u=
sing instant messengers with various OTR like protocols which rekey often, =
so be part of radio mesh networks (see apps like Serval), etc... Then there=
&#39;s file sharing (Flud is a nice torrent client for Android). And don&#3=
9;t forget randomized cover traffic to disrupt traffic analysis.</p>

<p dir=3D"ltr">That&#39;s not even considering home servers which will do a=
ll of the above and much more. </p>
<p dir=3D"ltr">Few devices will only maintain a small set of connections ov=
er their lifetimes, and many will be rekeying often for the sake of PFS (pe=
rfect forward secrecy), etc... </p>
<p dir=3D"ltr">This may be 10 years off before it becomes common (a large f=
raction of users doing it), but it&#39;s highly likely to happen. The total=
 number of encrypted links will increase very drastically over time.</p>

<p dir=3D"ltr">Your sensor may not be affected, but the rest of the world w=
ill be. </p>

--20cf307ca0f49b5c1804ff69ece0--


From nobody Wed Jul 30 09:34:46 2014
Return-Path: <tanja@hyperelliptic.org>
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 E7F8C1A00D8 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 09:34:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 zBh8Nj9tLwKO for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 09:34:43 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id A9C0C1A0084 for <cfrg@irtf.org>; Wed, 30 Jul 2014 09:34:42 -0700 (PDT)
Received: (qmail 7926 invoked from network); 30 Jul 2014 16:34:41 -0000
Received: from unknown (HELO hyperelliptic.org) (131.155.71.33) by mace.cs.uic.edu with SMTP; 30 Jul 2014 16:34:41 -0000
Received: (qmail 7178 invoked by uid 1000); 30 Jul 2014 16:34:09 -0000
Date: Wed, 30 Jul 2014 18:34:09 +0200
From: Tanja Lange <tanja@hyperelliptic.org>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Message-ID: <20140730163409.GH28679@cph.win.tue.nl>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <53D8FBDB.4060601@htt-consult.com>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/5jZq_ChGuGytgwb5R29UpamH71Q
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 16:34:45 -0000

Dear Bob,
> In the typical devices I work with there will be at best one ECDHE 
> exchange per day. Sometimes only once per month. (one message/5min = 312 
> short messages/day to protect with AES-CCM or GCM). (we are working on 
> changing once per life of sensor)
> 
> Now if you look at the server side that is receiving messages from 
> 10,000 fielded sensors and thus has 10,000 ECDHE exchanges/day (or per 
> month), then the risk is a tad different?
>
For every ECDHE there is a fresh AES key, so for whatever number 
of key exchanges you assume there is also an AES target. This is on
top of long-term connections that update the AES keys and devices
that use only symmetric keys. If that number is less than 2^50 then
the worry about finding AES-128 keys by chance gets smaller, but 
in any case it's significantly easier than breaking the DLP on an
elliptic curve over a field of ~256 bits (which needs 2^128 group
operations, so more than 2^140 bit operations).
 
All the best
	Tanja


From nobody Wed Jul 30 10:19:39 2014
Return-Path: <paul@marvell.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 2B5751A02F3 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:19:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, 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 BFWMK-NDoQLa for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:19:30 -0700 (PDT)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 547E91A0320 for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:19:30 -0700 (PDT)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id s6UHJMO4024147; Wed, 30 Jul 2014 10:19:22 -0700
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0b-0016f401.pphosted.com with ESMTP id 1nenh8jv9u-22 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 30 Jul 2014 10:19:22 -0700
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([fe80::e56e:83a7:9eef:b5a1%16]) with mapi; Wed, 30 Jul 2014 10:19:19 -0700
From: Paul Lambert <paul@marvell.com>
To: "D. J. Bernstein" <djb@cr.yp.to>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Wed, 30 Jul 2014 10:19:18 -0700
Thread-Topic: [Cfrg] matching AES security
Thread-Index: Ac+sGmWnbRfWf0eyQ+im44osBFOwCg==
Message-ID: <CFFE7108.47813%paul@marvell.com>
References: <20140730123336.29011.qmail@cr.yp.to>
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-30_07:2014-07-30,2014-07-30,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407300205
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Yyr6H_sW-KsRPDUI29OMseWL-qU
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 17:19:34 -0000

On 7/30/14, 5:33 AM, "D. J. Bernstein" <djb@cr.yp.to> wrote:

>Blumenthal, Uri - 0668 - MITLL writes:
>> IMHO, the logic/reason of matching security levels of the
>> cryptographic algorithms employed in a protocol suite is fairly
>> obvious and does not need an explicit justification.
>
>Let's think through what "matching security levels" actually means for
>matching elliptic curves with AES.
>
>In the foreseeable future there will be billions of devices that users
>are relying on for cryptographic computations, and it's easy to imagine
>that a typical device will use at least one new key every minute, i.e.,
>a million new keys within two years. That's more than 2^50 keys overall.
>
>There are standard attacks that break _all_ of 2^50 AES-128 keys using a
>_total_ of 2^128 easy computations. Even worse, there are standard
>attacks that find _at least one_ of the keys using just 2^78 easy
>computations, a feasible computation today.
>
>These attacks assume that the attacker sees ciphertext for, e.g., an
>all-zero block encrypted under all of the keys.

So, would this attack be mitigated by a change in algorithm mode?
In particular, if this is true for AES-CCM or AES-GCM, it does
not look like it would apply to AES-SIV.

Paul


>Sometimes protocols
>randomize their blocks to try to stop these attacks---but putting
>complications into protocols to compensate for a cipher's deficient
>security is _not_ a smart way to design a cryptographic system. For the
>past decade I've been recommending moving to larger cipher keys,
>precisely because of this attack against 128-bit keys.
>
>For comparison, if we're talking about Curve25519 keys rather than
>AES-128 keys, the fastest attacks to find one out of 2^50 keys are as
>slow as the fastest attack to find a single targeted key. (This isn't
>just an observation about known attacks; it's a theorem about _all_
>attacks, following easily from the "random self-reducibility" of
>Curve25519 DL, a very strong type of "worst-case-to-average-case
>reduction".) Exactly the same comment applies to any other curve---I'm
>using Curve25519 as a concrete illustration but don't mean to suggest
>that it's special in this respect.
>
>A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapakidis,
>also crediting Silverman--Stapleton; for further analysis see 2001
>Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Bernstein,
>2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the 2^50
>Curve25519 keys more quickly than 2^50 separate DL computations, but
>still takes time 2^150, millions of times more difficult than breaking
>an AES-128 key.
>
>If you scale down to more plausible amounts of future computation, such
>as 2^100, then the comparison becomes even more lopsided. The attacker
>is going to find millions of the users' AES-128 keys, but has chance
>only about 1/2^50 of finding even _one_ of the Curve25519 keys.
>
>> What benefit do you derive from including a stronger
>> algorithm in a chain made of weaker algorithms?
>
>Do you realize that you're arguing _against_ mixing AES-256 with a curve
>as large as 512 bits?
>
>In a world of 2^50 AES-256 keys, there's an attack that already has a
>high probability of finding a key in time "only" 2^206. This is nicely
>matched with the cost of breaking Curve41417. (I admit that Curve41417
>is slightly more secure when the inner-loop cost is taken into account,
>but let's not quibble.) What benefit do you think you're obtaining from
>larger curves, such as NIST P-521 or E-521 or Microsoft's 512-bit curve?
>
>The argument that AES-256 "matches" 512-bit ECC is supported only by an
>oversimplified analysis of single-key attacks. Multiple-key attacks are
>much faster for AES-256, and are obviously preferable for the attacker;
>inferior attacks make no sense as a basis for evaluating security. If
>you actually want a cipher that doesn't compromise the quantitative
>security level of 512-bit ECC then you need to go far beyond 256-bit
>cipher keys.
>
>The point I'm making here is orthogonal to
>
>   * Adam's point that comparing 2^200 computation to 2^250 computation
>     is meaningless---we'll never do such big computations (see
>     https://www.imperialviolet.org/2014/05/25/strengthmatching.html);
>
>   * Mike's point that what actually matters up at this level is the
>     risk of breakthroughs---e.g., quantum computers running Shor;
>    =20
>   * the point that several people have made about the low cost of
>     moving from 192-bit ciphers to 256-bit ciphers (and the high cost
>     of supporting an excessive spectrum of options)---so usage of
>     256-bit ciphers doesn't imply that users want 2^256 security;
>
>   * the point that it's already common practice to combine, e.g.,
>     RSA-2048 with AES-128 and sometimes even AES-256, illustrating that
>     the users' performance constraints are the biggest issue;
>
>and various other arguments against the whole concept of "matching
>security levels". What I'm saying is that if you _do_ want to "match
>security levels"---for example, Joe Salowey wrote
>
>   TLS supports 256-bit symmetric key ciphers and we want to have
>   recommended curves to match this key strength
>
>---then it's a huge quantitative error to pair AES-256 with 512-bit ECC.
>All of the attack costs that I'm describing are thoroughly established
>by the public cryptanalytic literature; I'm not aware of any dispute.
>
>Perhaps CFRG should issue a warning about AES-128 being feasible to
>break under plausible assumptions. A reasonable response to this threat
>is to move to a 256-bit (or merely 192-bit, but see above regarding
>options) cipher with Curve25519 (or Microsoft's 256-bit curve); this
>would push all known attacks above 2^120, ample protection for the
>foreseeable future. A 256-bit cipher with Curve41417 would push all
>known attacks above 2^200.
>
>---Dan
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jul 30 10:32:39 2014
Return-Path: <TurnerS@ieca.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 75E401A029C for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:32:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.567
X-Spam-Level: 
X-Spam-Status: No, score=-1.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001, 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 874dYx00nS5T for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:32:30 -0700 (PDT)
Received: from gateway01.websitewelcome.com (gateway01.websitewelcome.com [69.56.142.19]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37D301A0299 for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:32:30 -0700 (PDT)
Received: by gateway01.websitewelcome.com (Postfix, from userid 5007) id 61647EC3F608D; Wed, 30 Jul 2014 12:32:29 -0500 (CDT)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway01.websitewelcome.com (Postfix) with ESMTP id 5D7B1EC3F471D for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:32:23 -0500 (CDT)
Received: from [96.231.227.95] (port=50066 helo=[192.168.1.18]) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <TurnerS@ieca.com>) id 1XCXhf-0000cV-Cu; Wed, 30 Jul 2014 12:30:15 -0500
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Sean Turner <TurnerS@ieca.com>
In-Reply-To: <20140729204138.GA20282@LK-Perkele-VII>
Date: Wed, 30 Jul 2014 13:30:11 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <9F4CE885-8A90-4326-8D7B-7B101DF7EEAE@ieca.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <20140729204138.GA20282@LK-Perkele-VII>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
X-Mailer: Apple Mail (2.1878.6)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - gator3286.hostgator.com
X-AntiAbuse: Original Domain - irtf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ieca.com
X-BWhitelist: no
X-Source-IP: 96.231.227.95
X-Exim-ID: 1XCXhf-0000cV-Cu
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: ([192.168.1.18]) [96.231.227.95]:50066
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 1
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/eNSwWJTHFQ9pz-SONGgY_UDbfqQ
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 17:32:31 -0000

On Jul 29, 2014, at 16:41, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> =
wrote:

> On Tue, Jul 29, 2014 at 04:05:04PM -0400, Sean Turner wrote:
>>=20
>> Please review and provide comments if needed.
>>=20
>>> 	Filename        : draft-turner-thecurve25519function-00.txt
>=20
>  To compute the conditional swap in constant time (independent of s_t)
>  use dummy =3D s_t*(x_2-x_3) x_2 =3D x_2 - dummy x_3 =3D x_3 + dummy =
where
>  s_t is 1 or 0, or dummy =3D s_t & (x_2 XOR x_3) x_2 =3D x_2 XOR x_3 =
x_3 =3D
>  x_3 XOR x_2 where s_t is regarded as the all-1 word of 255 bits.  The
>  latter version is more efficient on most architectures.
>=20
> The latter formulas: Where is the dummy used? And s_t can also be 0
> (no swap)?
>=20
> Should those formulas be:
> dummy =3D s_t & (x_2 XOR x_3)
> x_2 <- x_2 XOR dummy
> x_3 <- x_3 XOR dummy
>=20
> ?
>=20
> And that paragraph could perhaps use some reformatting.
>=20
> -Ilari

Let me fix up the formatting first and then see if it=92s clearer.

spt=


From nobody Wed Jul 30 10:40:14 2014
Return-Path: <b@b3k.us>
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 3E46D1A0330 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:40:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 nc12hnK3hVig for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:40:08 -0700 (PDT)
Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B4C51A02A3 for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:40:07 -0700 (PDT)
Received: by mail-wi0-f178.google.com with SMTP id hi2so2770126wib.11 for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:40:06 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=AdOIlZFcbI7kVzksiGpGbSmpSrsr3ZSBPwxA+lc8alA=; b=NHk6xGuDIua0PYMhU6UinM9tEZsy/RH2YEBKrLnkEUlgY+sFH8Gz+p5LXCpAciHJtb R0unBDS5B8ehAIwCnq848WBfrwZguGoQQM1gRvqri4pUEYtaP1LMsVMNwo4SBerlibxp M7Jdy7DyVWVuODhCDHsroztldnl9HDC7oC0mGGFW+2v3ve1S23X4nEy8RvL3PGOPl/uI juGJmvlirYGnH56PtcrIN0jef73Kz9boexOY7qVoaOZXHhWCCuCKRg5kaHU6qjOeyFjb ftwybBXeKlZSOJCpfC75PdK00ptNdZXPSCZFC76TG+jvOObUCzR9bPRxOQpo284vz4dE vTFg==
X-Gm-Message-State: ALoCoQmSh+TpD3lnhWDTsRmQVgEJAitEyWyykTxa8JBhJ/JoF3zMq1wTkgy+46VlL/S9iZ15YO6K
X-Received: by 10.180.21.208 with SMTP id x16mr8068675wie.73.1406742006084; Wed, 30 Jul 2014 10:40:06 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Wed, 30 Jul 2014 10:39:46 -0700 (PDT)
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
References: <20140730123336.29011.qmail@cr.yp.to>
From: Benjamin Black <b@b3k.us>
Date: Wed, 30 Jul 2014 10:39:46 -0700
Message-ID: <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=047d7bb70cbe907a2904ff6ca5ae
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/HCEQjJAF6Y5D5ytlWJQXgfgaXXo
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 17:40:12 -0000

--047d7bb70cbe907a2904ff6ca5ae
Content-Type: text/plain; charset=UTF-8

AES is not the only symmetric cipher in use today and we can expect new
ciphers to supersede it during the service life of the new curves under
discussion. The goal is matching security levels of the suite components as
designed, not adjusting things based on attacks that emerge against a given
component over its service life.


b


On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernstein <djb@cr.yp.to> wrote:

> Blumenthal, Uri - 0668 - MITLL writes:
> > IMHO, the logic/reason of matching security levels of the
> > cryptographic algorithms employed in a protocol suite is fairly
> > obvious and does not need an explicit justification.
>
> Let's think through what "matching security levels" actually means for
> matching elliptic curves with AES.
>
> In the foreseeable future there will be billions of devices that users
> are relying on for cryptographic computations, and it's easy to imagine
> that a typical device will use at least one new key every minute, i.e.,
> a million new keys within two years. That's more than 2^50 keys overall.
>
> There are standard attacks that break _all_ of 2^50 AES-128 keys using a
> _total_ of 2^128 easy computations. Even worse, there are standard
> attacks that find _at least one_ of the keys using just 2^78 easy
> computations, a feasible computation today.
>
> These attacks assume that the attacker sees ciphertext for, e.g., an
> all-zero block encrypted under all of the keys. Sometimes protocols
> randomize their blocks to try to stop these attacks---but putting
> complications into protocols to compensate for a cipher's deficient
> security is _not_ a smart way to design a cryptographic system. For the
> past decade I've been recommending moving to larger cipher keys,
> precisely because of this attack against 128-bit keys.
>
> For comparison, if we're talking about Curve25519 keys rather than
> AES-128 keys, the fastest attacks to find one out of 2^50 keys are as
> slow as the fastest attack to find a single targeted key. (This isn't
> just an observation about known attacks; it's a theorem about _all_
> attacks, following easily from the "random self-reducibility" of
> Curve25519 DL, a very strong type of "worst-case-to-average-case
> reduction".) Exactly the same comment applies to any other curve---I'm
> using Curve25519 as a concrete illustration but don't mean to suggest
> that it's special in this respect.
>
> A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapakidis,
> also crediting Silverman--Stapleton; for further analysis see 2001
> Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Bernstein,
> 2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the 2^50
> Curve25519 keys more quickly than 2^50 separate DL computations, but
> still takes time 2^150, millions of times more difficult than breaking
> an AES-128 key.
>
> If you scale down to more plausible amounts of future computation, such
> as 2^100, then the comparison becomes even more lopsided. The attacker
> is going to find millions of the users' AES-128 keys, but has chance
> only about 1/2^50 of finding even _one_ of the Curve25519 keys.
>
> > What benefit do you derive from including a stronger
> > algorithm in a chain made of weaker algorithms?
>
> Do you realize that you're arguing _against_ mixing AES-256 with a curve
> as large as 512 bits?
>
> In a world of 2^50 AES-256 keys, there's an attack that already has a
> high probability of finding a key in time "only" 2^206. This is nicely
> matched with the cost of breaking Curve41417. (I admit that Curve41417
> is slightly more secure when the inner-loop cost is taken into account,
> but let's not quibble.) What benefit do you think you're obtaining from
> larger curves, such as NIST P-521 or E-521 or Microsoft's 512-bit curve?
>
> The argument that AES-256 "matches" 512-bit ECC is supported only by an
> oversimplified analysis of single-key attacks. Multiple-key attacks are
> much faster for AES-256, and are obviously preferable for the attacker;
> inferior attacks make no sense as a basis for evaluating security. If
> you actually want a cipher that doesn't compromise the quantitative
> security level of 512-bit ECC then you need to go far beyond 256-bit
> cipher keys.
>
> The point I'm making here is orthogonal to
>
>    * Adam's point that comparing 2^200 computation to 2^250 computation
>      is meaningless---we'll never do such big computations (see
>      https://www.imperialviolet.org/2014/05/25/strengthmatching.html);
>
>    * Mike's point that what actually matters up at this level is the
>      risk of breakthroughs---e.g., quantum computers running Shor;
>
>    * the point that several people have made about the low cost of
>      moving from 192-bit ciphers to 256-bit ciphers (and the high cost
>      of supporting an excessive spectrum of options)---so usage of
>      256-bit ciphers doesn't imply that users want 2^256 security;
>
>    * the point that it's already common practice to combine, e.g.,
>      RSA-2048 with AES-128 and sometimes even AES-256, illustrating that
>      the users' performance constraints are the biggest issue;
>
> and various other arguments against the whole concept of "matching
> security levels". What I'm saying is that if you _do_ want to "match
> security levels"---for example, Joe Salowey wrote
>
>    TLS supports 256-bit symmetric key ciphers and we want to have
>    recommended curves to match this key strength
>
> ---then it's a huge quantitative error to pair AES-256 with 512-bit ECC.
> All of the attack costs that I'm describing are thoroughly established
> by the public cryptanalytic literature; I'm not aware of any dispute.
>
> Perhaps CFRG should issue a warning about AES-128 being feasible to
> break under plausible assumptions. A reasonable response to this threat
> is to move to a 256-bit (or merely 192-bit, but see above regarding
> options) cipher with Curve25519 (or Microsoft's 256-bit curve); this
> would push all known attacks above 2^120, ample protection for the
> foreseeable future. A 256-bit cipher with Curve41417 would push all
> known attacks above 2^200.
>
> ---Dan
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--047d7bb70cbe907a2904ff6ca5ae
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">AES is not the only symmetric cipher in use today and we c=
an expect new ciphers to supersede it during the service life of the new cu=
rves under discussion. The goal is matching security levels of the suite co=
mponents as designed, not adjusting things based on attacks that emerge aga=
inst a given component over its service life.<div>

<br></div><div><br></div><div>b</div></div><div class=3D"gmail_extra"><br><=
br><div class=3D"gmail_quote">On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernst=
ein <span dir=3D"ltr">&lt;<a href=3D"mailto:djb@cr.yp.to" target=3D"_blank"=
>djb@cr.yp.to</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Blumenthal, Uri - 0668 - MITLL writes:<br>
&gt; IMHO, the logic/reason of matching security levels of the<br>
&gt; cryptographic algorithms employed in a protocol suite is fairly<br>
&gt; obvious and does not need an explicit justification.<br>
<br>
Let&#39;s think through what &quot;matching security levels&quot; actually =
means for<br>
matching elliptic curves with AES.<br>
<br>
In the foreseeable future there will be billions of devices that users<br>
are relying on for cryptographic computations, and it&#39;s easy to imagine=
<br>
that a typical device will use at least one new key every minute, i.e.,<br>
a million new keys within two years. That&#39;s more than 2^50 keys overall=
.<br>
<br>
There are standard attacks that break _all_ of 2^50 AES-128 keys using a<br=
>
_total_ of 2^128 easy computations. Even worse, there are standard<br>
attacks that find _at least one_ of the keys using just 2^78 easy<br>
computations, a feasible computation today.<br>
<br>
These attacks assume that the attacker sees ciphertext for, e.g., an<br>
all-zero block encrypted under all of the keys. Sometimes protocols<br>
randomize their blocks to try to stop these attacks---but putting<br>
complications into protocols to compensate for a cipher&#39;s deficient<br>
security is _not_ a smart way to design a cryptographic system. For the<br>
past decade I&#39;ve been recommending moving to larger cipher keys,<br>
precisely because of this attack against 128-bit keys.<br>
<br>
For comparison, if we&#39;re talking about Curve25519 keys rather than<br>
AES-128 keys, the fastest attacks to find one out of 2^50 keys are as<br>
slow as the fastest attack to find a single targeted key. (This isn&#39;t<b=
r>
just an observation about known attacks; it&#39;s a theorem about _all_<br>
attacks, following easily from the &quot;random self-reducibility&quot; of<=
br>
Curve25519 DL, a very strong type of &quot;worst-case-to-average-case<br>
reduction&quot;.) Exactly the same comment applies to any other curve---I&#=
39;m<br>
using Curve25519 as a concrete illustration but don&#39;t mean to suggest<b=
r>
that it&#39;s special in this respect.<br>
<br>
A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapakidis,<br>
also crediting Silverman--Stapleton; for further analysis see 2001<br>
Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Bernstein,<br>
2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the 2^50<br>
Curve25519 keys more quickly than 2^50 separate DL computations, but<br>
still takes time 2^150, millions of times more difficult than breaking<br>
an AES-128 key.<br>
<br>
If you scale down to more plausible amounts of future computation, such<br>
as 2^100, then the comparison becomes even more lopsided. The attacker<br>
is going to find millions of the users&#39; AES-128 keys, but has chance<br=
>
only about 1/2^50 of finding even _one_ of the Curve25519 keys.<br>
<br>
&gt; What benefit do you derive from including a stronger<br>
&gt; algorithm in a chain made of weaker algorithms?<br>
<br>
Do you realize that you&#39;re arguing _against_ mixing AES-256 with a curv=
e<br>
as large as 512 bits?<br>
<br>
In a world of 2^50 AES-256 keys, there&#39;s an attack that already has a<b=
r>
high probability of finding a key in time &quot;only&quot; 2^206. This is n=
icely<br>
matched with the cost of breaking Curve41417. (I admit that Curve41417<br>
is slightly more secure when the inner-loop cost is taken into account,<br>
but let&#39;s not quibble.) What benefit do you think you&#39;re obtaining =
from<br>
larger curves, such as NIST P-521 or E-521 or Microsoft&#39;s 512-bit curve=
?<br>
<br>
The argument that AES-256 &quot;matches&quot; 512-bit ECC is supported only=
 by an<br>
oversimplified analysis of single-key attacks. Multiple-key attacks are<br>
much faster for AES-256, and are obviously preferable for the attacker;<br>
inferior attacks make no sense as a basis for evaluating security. If<br>
you actually want a cipher that doesn&#39;t compromise the quantitative<br>
security level of 512-bit ECC then you need to go far beyond 256-bit<br>
cipher keys.<br>
<br>
The point I&#39;m making here is orthogonal to<br>
<br>
=C2=A0 =C2=A0* Adam&#39;s point that comparing 2^200 computation to 2^250 c=
omputation<br>
=C2=A0 =C2=A0 =C2=A0is meaningless---we&#39;ll never do such big computatio=
ns (see<br>
=C2=A0 =C2=A0 =C2=A0<a href=3D"https://www.imperialviolet.org/2014/05/25/st=
rengthmatching.html" target=3D"_blank">https://www.imperialviolet.org/2014/=
05/25/strengthmatching.html</a>);<br>
<br>
=C2=A0 =C2=A0* Mike&#39;s point that what actually matters up at this level=
 is the<br>
=C2=A0 =C2=A0 =C2=A0risk of breakthroughs---e.g., quantum computers running=
 Shor;<br>
<br>
=C2=A0 =C2=A0* the point that several people have made about the low cost o=
f<br>
=C2=A0 =C2=A0 =C2=A0moving from 192-bit ciphers to 256-bit ciphers (and the=
 high cost<br>
=C2=A0 =C2=A0 =C2=A0of supporting an excessive spectrum of options)---so us=
age of<br>
=C2=A0 =C2=A0 =C2=A0256-bit ciphers doesn&#39;t imply that users want 2^256=
 security;<br>
<br>
=C2=A0 =C2=A0* the point that it&#39;s already common practice to combine, =
e.g.,<br>
=C2=A0 =C2=A0 =C2=A0RSA-2048 with AES-128 and sometimes even AES-256, illus=
trating that<br>
=C2=A0 =C2=A0 =C2=A0the users&#39; performance constraints are the biggest =
issue;<br>
<br>
and various other arguments against the whole concept of &quot;matching<br>
security levels&quot;. What I&#39;m saying is that if you _do_ want to &quo=
t;match<br>
security levels&quot;---for example, Joe Salowey wrote<br>
<br>
=C2=A0 =C2=A0TLS supports 256-bit symmetric key ciphers and we want to have=
<br>
=C2=A0 =C2=A0recommended curves to match this key strength<br>
<br>
---then it&#39;s a huge quantitative error to pair AES-256 with 512-bit ECC=
.<br>
All of the attack costs that I&#39;m describing are thoroughly established<=
br>
by the public cryptanalytic literature; I&#39;m not aware of any dispute.<b=
r>
<br>
Perhaps CFRG should issue a warning about AES-128 being feasible to<br>
break under plausible assumptions. A reasonable response to this threat<br>
is to move to a 256-bit (or merely 192-bit, but see above regarding<br>
options) cipher with Curve25519 (or Microsoft&#39;s 256-bit curve); this<br=
>
would push all known attacks above 2^120, ample protection for the<br>
foreseeable future. A 256-bit cipher with Curve41417 would push all<br>
known attacks above 2^200.<br>
<br>
---Dan<br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
</blockquote></div><br></div>

--047d7bb70cbe907a2904ff6ca5ae--


From nobody Wed Jul 30 10:50:38 2014
Return-Path: <prvs=32887b111f=uri@ll.mit.edu>
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 6F4C91A01C5 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:50:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, UNPARSEABLE_RELAY=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 cH1M98ZLfp5g for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:50:29 -0700 (PDT)
Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by ietfa.amsl.com (Postfix) with ESMTP id 763C21A01AC for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:50:29 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id s6UHmsNN025778; Wed, 30 Jul 2014 13:50:17 -0400
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: "D. J. Bernstein" <djb@cr.yp.to>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] matching AES security
Thread-Index: AQHPq/wCacsPipZEQE6PjxUstHqztJu45RiA
Date: Wed, 30 Jul 2014 17:49:02 +0000
Message-ID: <CFFE99A0.18226%uri@ll.mit.edu>
References: <20140730123336.29011.qmail@cr.yp.to>
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3489572935_10671884"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-30_07:2014-07-30,2014-07-30,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407300210
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/9fWKP9cP56azLu-0pK-5_KsFPDA
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 17:50:33 -0000

--B_3489572935_10671884
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: 7bit

On 7/30/14 8:33 , "D. J. Bernstein" <djb@cr.yp.to> wrote:

>Blumenthal, Uri - 0668 - MITLL writes:
>> IMHO, the logic/reason of matching security levels of the
>> cryptographic algorithms employed in a protocol suite is fairly
>> obvious and does not need an explicit justification.
>
>Let's think through what "matching security levels" actually means for
>matching elliptic curves with AES.

Sure.

>In the foreseeable future there will be billions of devices that users
>are relying on for cryptographic computations, and it's easy to imagine
>that a typical device will use at least one new key every minute, i.e.,
>a million new keys within two years. That's more than 2^50 keys overall.

This does not appear realistic. But I find the following more interesting:

>There are standard attacks that break _all_ of 2^50 AES-128 keys using a
>_total_ of 2^128 easy computations. Even worse, there are standard
>attacks that find _at least one_ of the keys using just 2^78 easy
>computations, a feasible computation today.

Could you please point me at a decent reference/description of this attack?

>These attacks assume that the attacker sees

[And can identify as such]

>ciphertext for, e.g., an all-zero block encrypted under all of the keys.

You are saying that there has to be _the same_ known plaintext pair for
_all_ of these 2^50 keys in order for the attack to work? And it takes
2^128 computations?

What happens if there's fewer keys than 2^50? What happens if you only
have probable plaintext? What happens if you have known plaintext pairs
but they differ across the 2^N keys?


>Sometimes protocols randomize their blocks to try to stop these
>attacks---but putting
>complications into protocols to compensate for a cipher's deficient
>security is _not_ a smart way to design a cryptographic system. For the
>past decade I've been recommending moving to larger cipher keys,
>precisely because of this attack against 128-bit keys.

You have a point. But let's evaluate/discuss this attack (its basics,
costs, applicability, etc) before figuring out costs of defending against
it.

>The argument that AES-256 "matches" 512-bit ECC is supported only by an
>oversimplified analysis of single-key attacks.

Which is what most people are concerned about, and IMHO justly so. But
let's discuss.

>Multiple-key attacks are
>much faster for AES-256, and are obviously preferable for the attacker;
>.......................

The question is whether they are plausible and/or feasible.


>All of the attack costs that I'm describing are thoroughly established
>by the public cryptanalytic literature; I'm not aware of any dispute.

"Multiple-key attacks" reference please?


>Perhaps CFRG should issue a warning about AES-128 being feasible to
>break under plausible assumptions.

I'd like to get a better understanding of both the attacks and the
assumptions. Probably the entire group (CFRG) should evaluate their
plausibility.

TNX!

--B_3489572935_10671884
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIIUOAYJKoZIhvcNAQcCoIIUKTCCFCUCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghIHMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7b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Y3zrna1GbOMZgWFz8R6akAoLKpqGulNrvjvU8
c63U+JVmgJmBPCMv5JlH10m87+WPJ+ToK0m4XfZjl7n5OKDJ/hOyBwbBntc+W2gDppfR1BCt
DNfEG0+zHjFqF+Of1Q5NI5abhgvw5IEuVA1M4SV/utwmmdreBEv/YuLnDd/PhVgQwp3LHGCX
X1dANyiKso2aACl9jrkylq39cA/WgvAlS21w9vxVpDGCAfUwggHxAgEBMF8wUTELMAkGA1UE
BhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTET
MBEGA1UEAxMKTUlUTEwgQ0EtMwIKH0XZoAAAAAABzTANBglghkgBZQMEAgEFAKBpMC8GCSqG
SIb3DQEJBDEiBCBfLan2wLl70Hui80ofBPXw6f7zAssuVfNTgpK4w12QMDAYBgkqhkiG9w0B
CQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNDA3MzAxNzQ4NTVaMA0GCSqGSIb3
DQEBAQUABIIBAGEBCOWvO2Awow9relSTHekv2K9RZHbyorkerJrxP6vk89it2rrZthAfukXg
iqX4j0Th1i9uOiZO2WVIOi2OfJcmBzRK2BEhXjrl9dDBT+v6I5S+uH5EcOHt8I3xitmG7Xqr
S68cc2ns9xq1jBazugzROAtneE+AszLzEpvKdnpjYuFDwph+SQ6qZmxYWkO6qoZ3mfyy/ZMC
00eBuneUGj2YWQ3L6sA9z6LsSPIIjlkrFm7bxXcd+M000M/s6yQJ8fd5RxFl96SUhS0CHFUM
jmBFjtcGwshX2gGOaYC8t0piIjNxjwRRMDw4wu/5SB2jcI+stnwMDntFBRflcfIJTmM=

--B_3489572935_10671884--


From nobody Wed Jul 30 11:05:58 2014
Return-Path: <randy@psg.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 2C9AC1A029D for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:05:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 XACrKUUDQff7 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:05:52 -0700 (PDT)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE23F1A01C5 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:05:51 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=ryuu.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.76) (envelope-from <randy@psg.com>) id 1XCYG6-0007OA-CO; Wed, 30 Jul 2014 18:05:50 +0000
Date: Wed, 30 Jul 2014 20:05:49 +0200
Message-ID: <m2bns6yb5u.wl%randy@psg.com>
From: Randy Bush <randy@psg.com>
To: Sean Turner <TurnerS@ieca.com>
In-Reply-To: <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/J_v--uGIsxs9ImTEmcCtx6EtVBQ
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 18:05:55 -0000

sean, we also need signatures.  would you consider adding ed25519 to
this draft or doing a parallel draft?

randy


From nobody Wed Jul 30 11:08:33 2014
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 0DABE1A01C5 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:08:32 -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 QKoTdKho1neG for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:08:30 -0700 (PDT)
Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3BA641A01C8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:08:30 -0700 (PDT)
Received: by mail-lb0-f173.google.com with SMTP id p9so1191975lbv.32 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:08:28 -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=3fMsw1XRiMXlYjqI/N7ZEmjEUKWy0sA0LztiRJiCiCs=; b=RYPaTt/M8NYAwYRl9+WT4mLHFZDVfqgnW9oCepnwiHdBeJFUJ3K+MrGYYZmzbioGUB kVK1qgt5hHjeuPMaCvR7O5MDXjwqsGgkfC71tuvdhdVkCgezqqSKQUCHPmGMohxYJyCb 6igNqEb+lhexnpb6WKG3JTvSdlGgSlMk9NHaU03SA5nC9R3KcC16Wrcqt/myq4MVse3p 01JYH/cfQhdYb9l0UBZWuXFDZV6azV1TItDuPPS0a5zzOUjVk8uE84Pvj8io7epOxUHi KYC9gt7hoD4FQo0kbsZvSRaHLkqOYS5ull/YNt1HrEezqaYaOaC4u7XZD2lIk7cTSJeL /LNg==
MIME-Version: 1.0
X-Received: by 10.152.179.229 with SMTP id dj5mr3995352lac.97.1406743708563; Wed, 30 Jul 2014 11:08:28 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 30 Jul 2014 11:08:28 -0700 (PDT)
In-Reply-To: <20140730163409.GH28679@cph.win.tue.nl>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com> <20140730163409.GH28679@cph.win.tue.nl>
Date: Wed, 30 Jul 2014 14:08:28 -0400
X-Google-Sender-Auth: SM7SeDcvP6tNu0JTSOUlN8zFj58
Message-ID: <CAMm+LwieafzTxEh-_XDT+Y+Zu8Aor6rQs8xkb_VtV57Yk5jTuA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Tanja Lange <tanja@hyperelliptic.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_t2pJvnljQozSLeb5Ncx-2GpmpQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 18:08:32 -0000

On Wed, Jul 30, 2014 at 12:34 PM, Tanja Lange <tanja@hyperelliptic.org> wrote:
> Dear Bob,
>> In the typical devices I work with there will be at best one ECDHE
>> exchange per day. Sometimes only once per month. (one message/5min = 312
>> short messages/day to protect with AES-CCM or GCM). (we are working on
>> changing once per life of sensor)
>>
>> Now if you look at the server side that is receiving messages from
>> 10,000 fielded sensors and thus has 10,000 ECDHE exchanges/day (or per
>> month), then the risk is a tad different?
>>
> For every ECDHE there is a fresh AES key, so for whatever number
> of key exchanges you assume there is also an AES target. This is on
> top of long-term connections that update the AES keys and devices
> that use only symmetric keys. If that number is less than 2^50 then
> the worry about finding AES-128 keys by chance gets smaller, but
> in any case it's significantly easier than breaking the DLP on an
> elliptic curve over a field of ~256 bits (which needs 2^128 group
> operations, so more than 2^140 bit operations).


I am not keen on rekeying for the sake of it. There are security costs
as well as benefits. In particular a lot of systems have the property
that they are break once, run anywhere. Just as we now think 50
ciphers give less security than 5 as the strength is determined by the
weakest one an attacker can get the parties to use, rekeying for the
sake of it is probably a bad thing.

Forward Secrecy is a good thing of course, but generating ephemeral
keys or mix ins is not what I think of when someone says rekey. To me,
rekey implies rebuilding the authentication relationship between the
end points. Thats a lot more work.


I am working on making it possible to rekey PPE once a week because I
want to create a forcing function for usability. Security people often
think they can get users to do silly things every 90, 60 or even 30
days. But even security folk get fed up of hoops when its once a week.
But LOTS of folk got very worried about that suggestion and I agree
that it would be bad operationally. I doubt rekey more than once a
quarter is desirable, even if the whole process is transparent.

The only reason I rekey at all is because people read their mail on
mobile devices and those get lost. So rekeying is a good way to limit
exposure to that risk. But I don't plan to ever roll per device
credentials or keys. If a public key algorithm isn't good for a
billion uses without security concern, then don't use it.


AES does have slightly different concerns. But really, if you are
worried about the need to rekey then you should go to a 256 bit key
first and then think about rekeying AES.


From nobody Wed Jul 30 11:12:40 2014
Return-Path: <watsonbladd@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 4759D1A02FA for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:12:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 lHt98DGd7_fg for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:12:34 -0700 (PDT)
Received: from mail-yh0-x22c.google.com (mail-yh0-x22c.google.com [IPv6:2607:f8b0:4002:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9F441A02F8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:12:33 -0700 (PDT)
Received: by mail-yh0-f44.google.com with SMTP id f73so938100yha.31 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:12:32 -0700 (PDT)
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=gDYgXvllrRNCkEY7CvmhoNflffp++++sAz80PfIKnl4=; b=F+Vh0fSNqLPhKZbveofTerXCgz5vIXBI9LQh5bd6vwoYRn49CLwFHUe5Z3RjSWe/hY eNCLn624v75BUFnL6xj1nKNNE8XHz67jfGyw6+IJhv7wwzw3VnPM7K+0SdGp/TYr1cM0 NjmVayL8k/awj1eSa+FQjJ2NeWNsla1aodV4WpQtytr/H6trC8z896B5iVazYw3CTIDP nyucEPdmEhSK4MGrx+WRfpLrpLZ1ngPe/Jl4tYd1wgyk0hC+ym+ga6E2aNJnSM/AOXpz wQ9zRnU7BtvOrl9kr7HlSXyJi0iwOpZEuasQ5I8B82AHW57XFnRFbIGcVpOT3f3vASjt +Qqg==
MIME-Version: 1.0
X-Received: by 10.236.172.161 with SMTP id t21mr9048207yhl.65.1406743952773; Wed, 30 Jul 2014 11:12:32 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Wed, 30 Jul 2014 11:12:32 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Wed, 30 Jul 2014 11:12:32 -0700 (PDT)
In-Reply-To: <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com>
Date: Wed, 30 Jul 2014 11:12:32 -0700
Message-ID: <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Benjamin Black <b@b3k.us>
Content-Type: multipart/alternative; boundary=20cf304273e098573804ff6d195c
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BMTkY81-IpKRz7bQyMGOoDM9JrM
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 18:12:38 -0000

--20cf304273e098573804ff6d195c
Content-Type: text/plain; charset=UTF-8

On Jul 30, 2014 10:40 AM, "Benjamin Black" <b@b3k.us> wrote:
>
> AES is not the only symmetric cipher in use today and we can expect new
ciphers to supersede it during the service life of the new curves under
discussion. The goal is matching security levels of the suite components as
designed, not adjusting things based on attacks that emerge against a given
component over its service life.

Is the attack DJB mentioned an attack on AES?  No: AES matches the PRP
security definition. Is it an attack on Salsa20? No: it meets the security
claim.

Rather it's the obvious point that a man who strains half a lake has half
the fish.

This has been pointed out before on this list, and is really on the level
of an exercise in probability.

Sincerely,
Watson Ladd
>
>
> b
>
>
> On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernstein <djb@cr.yp.to> wrote:
>>
>> Blumenthal, Uri - 0668 - MITLL writes:
>> > IMHO, the logic/reason of matching security levels of the
>> > cryptographic algorithms employed in a protocol suite is fairly
>> > obvious and does not need an explicit justification.
>>
>> Let's think through what "matching security levels" actually means for
>> matching elliptic curves with AES.
>>
>> In the foreseeable future there will be billions of devices that users
>> are relying on for cryptographic computations, and it's easy to imagine
>> that a typical device will use at least one new key every minute, i.e.,
>> a million new keys within two years. That's more than 2^50 keys overall.
>>
>> There are standard attacks that break _all_ of 2^50 AES-128 keys using a
>> _total_ of 2^128 easy computations. Even worse, there are standard
>> attacks that find _at least one_ of the keys using just 2^78 easy
>> computations, a feasible computation today.
>>
>> These attacks assume that the attacker sees ciphertext for, e.g., an
>> all-zero block encrypted under all of the keys. Sometimes protocols
>> randomize their blocks to try to stop these attacks---but putting
>> complications into protocols to compensate for a cipher's deficient
>> security is _not_ a smart way to design a cryptographic system. For the
>> past decade I've been recommending moving to larger cipher keys,
>> precisely because of this attack against 128-bit keys.
>>
>> For comparison, if we're talking about Curve25519 keys rather than
>> AES-128 keys, the fastest attacks to find one out of 2^50 keys are as
>> slow as the fastest attack to find a single targeted key. (This isn't
>> just an observation about known attacks; it's a theorem about _all_
>> attacks, following easily from the "random self-reducibility" of
>> Curve25519 DL, a very strong type of "worst-case-to-average-case
>> reduction".) Exactly the same comment applies to any other curve---I'm
>> using Curve25519 as a concrete illustration but don't mean to suggest
>> that it's special in this respect.
>>
>> A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapakidis,
>> also crediting Silverman--Stapleton; for further analysis see 2001
>> Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Bernstein,
>> 2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the 2^50
>> Curve25519 keys more quickly than 2^50 separate DL computations, but
>> still takes time 2^150, millions of times more difficult than breaking
>> an AES-128 key.
>>
>> If you scale down to more plausible amounts of future computation, such
>> as 2^100, then the comparison becomes even more lopsided. The attacker
>> is going to find millions of the users' AES-128 keys, but has chance
>> only about 1/2^50 of finding even _one_ of the Curve25519 keys.
>>
>> > What benefit do you derive from including a stronger
>> > algorithm in a chain made of weaker algorithms?
>>
>> Do you realize that you're arguing _against_ mixing AES-256 with a curve
>> as large as 512 bits?
>>
>> In a world of 2^50 AES-256 keys, there's an attack that already has a
>> high probability of finding a key in time "only" 2^206. This is nicely
>> matched with the cost of breaking Curve41417. (I admit that Curve41417
>> is slightly more secure when the inner-loop cost is taken into account,
>> but let's not quibble.) What benefit do you think you're obtaining from
>> larger curves, such as NIST P-521 or E-521 or Microsoft's 512-bit curve?
>>
>> The argument that AES-256 "matches" 512-bit ECC is supported only by an
>> oversimplified analysis of single-key attacks. Multiple-key attacks are
>> much faster for AES-256, and are obviously preferable for the attacker;
>> inferior attacks make no sense as a basis for evaluating security. If
>> you actually want a cipher that doesn't compromise the quantitative
>> security level of 512-bit ECC then you need to go far beyond 256-bit
>> cipher keys.
>>
>> The point I'm making here is orthogonal to
>>
>>    * Adam's point that comparing 2^200 computation to 2^250 computation
>>      is meaningless---we'll never do such big computations (see
>>      https://www.imperialviolet.org/2014/05/25/strengthmatching.html);
>>
>>    * Mike's point that what actually matters up at this level is the
>>      risk of breakthroughs---e.g., quantum computers running Shor;
>>
>>    * the point that several people have made about the low cost of
>>      moving from 192-bit ciphers to 256-bit ciphers (and the high cost
>>      of supporting an excessive spectrum of options)---so usage of
>>      256-bit ciphers doesn't imply that users want 2^256 security;
>>
>>    * the point that it's already common practice to combine, e.g.,
>>      RSA-2048 with AES-128 and sometimes even AES-256, illustrating that
>>      the users' performance constraints are the biggest issue;
>>
>> and various other arguments against the whole concept of "matching
>> security levels". What I'm saying is that if you _do_ want to "match
>> security levels"---for example, Joe Salowey wrote
>>
>>    TLS supports 256-bit symmetric key ciphers and we want to have
>>    recommended curves to match this key strength
>>
>> ---then it's a huge quantitative error to pair AES-256 with 512-bit ECC.
>> All of the attack costs that I'm describing are thoroughly established
>> by the public cryptanalytic literature; I'm not aware of any dispute.
>>
>> Perhaps CFRG should issue a warning about AES-128 being feasible to
>> break under plausible assumptions. A reasonable response to this threat
>> is to move to a 256-bit (or merely 192-bit, but see above regarding
>> options) cipher with Curve25519 (or Microsoft's 256-bit curve); this
>> would push all known attacks above 2^120, ample protection for the
>> foreseeable future. A 256-bit cipher with Curve41417 would push all
>> known attacks above 2^200.
>>
>> ---Dan
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

--20cf304273e098573804ff6d195c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr"><br>
On Jul 30, 2014 10:40 AM, &quot;Benjamin Black&quot; &lt;<a href=3D"mailto:=
b@b3k.us">b@b3k.us</a>&gt; wrote:<br>
&gt;<br>
&gt; AES is not the only symmetric cipher in use today and we can expect ne=
w ciphers to supersede it during the service life of the new curves under d=
iscussion. The goal is matching security levels of the suite components as =
designed, not adjusting things based on attacks that emerge against a given=
 component over its service life.</p>

<p dir=3D"ltr">Is the attack DJB mentioned an attack on AES?=C2=A0 No: AES =
matches the PRP security definition. Is it an attack on Salsa20? No: it mee=
ts the security claim.</p>
<p dir=3D"ltr">Rather it&#39;s the obvious point that a man who strains hal=
f a lake has half the fish.</p>
<p dir=3D"ltr">This has been pointed out before on this list, and is really=
 on the level of an exercise in probability. </p>
<p dir=3D"ltr">Sincerely, <br>
Watson Ladd<br>
&gt;<br>
&gt;<br>
&gt; b<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernstein &lt;<a href=3D"mailto=
:djb@cr.yp.to">djb@cr.yp.to</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Blumenthal, Uri - 0668 - MITLL writes:<br>
&gt;&gt; &gt; IMHO, the logic/reason of matching security levels of the<br>
&gt;&gt; &gt; cryptographic algorithms employed in a protocol suite is fair=
ly<br>
&gt;&gt; &gt; obvious and does not need an explicit justification.<br>
&gt;&gt;<br>
&gt;&gt; Let&#39;s think through what &quot;matching security levels&quot; =
actually means for<br>
&gt;&gt; matching elliptic curves with AES.<br>
&gt;&gt;<br>
&gt;&gt; In the foreseeable future there will be billions of devices that u=
sers<br>
&gt;&gt; are relying on for cryptographic computations, and it&#39;s easy t=
o imagine<br>
&gt;&gt; that a typical device will use at least one new key every minute, =
i.e.,<br>
&gt;&gt; a million new keys within two years. That&#39;s more than 2^50 key=
s overall.<br>
&gt;&gt;<br>
&gt;&gt; There are standard attacks that break _all_ of 2^50 AES-128 keys u=
sing a<br>
&gt;&gt; _total_ of 2^128 easy computations. Even worse, there are standard=
<br>
&gt;&gt; attacks that find _at least one_ of the keys using just 2^78 easy<=
br>
&gt;&gt; computations, a feasible computation today.<br>
&gt;&gt;<br>
&gt;&gt; These attacks assume that the attacker sees ciphertext for, e.g., =
an<br>
&gt;&gt; all-zero block encrypted under all of the keys. Sometimes protocol=
s<br>
&gt;&gt; randomize their blocks to try to stop these attacks---but putting<=
br>
&gt;&gt; complications into protocols to compensate for a cipher&#39;s defi=
cient<br>
&gt;&gt; security is _not_ a smart way to design a cryptographic system. Fo=
r the<br>
&gt;&gt; past decade I&#39;ve been recommending moving to larger cipher key=
s,<br>
&gt;&gt; precisely because of this attack against 128-bit keys.<br>
&gt;&gt;<br>
&gt;&gt; For comparison, if we&#39;re talking about Curve25519 keys rather =
than<br>
&gt;&gt; AES-128 keys, the fastest attacks to find one out of 2^50 keys are=
 as<br>
&gt;&gt; slow as the fastest attack to find a single targeted key. (This is=
n&#39;t<br>
&gt;&gt; just an observation about known attacks; it&#39;s a theorem about =
_all_<br>
&gt;&gt; attacks, following easily from the &quot;random self-reducibility&=
quot; of<br>
&gt;&gt; Curve25519 DL, a very strong type of &quot;worst-case-to-average-c=
ase<br>
&gt;&gt; reduction&quot;.) Exactly the same comment applies to any other cu=
rve---I&#39;m<br>
&gt;&gt; using Curve25519 as a concrete illustration but don&#39;t mean to =
suggest<br>
&gt;&gt; that it&#39;s special in this respect.<br>
&gt;&gt;<br>
&gt;&gt; A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapak=
idis,<br>
&gt;&gt; also crediting Silverman--Stapleton; for further analysis see 2001=
<br>
&gt;&gt; Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Berns=
tein,<br>
&gt;&gt; 2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the=
 2^50<br>
&gt;&gt; Curve25519 keys more quickly than 2^50 separate DL computations, b=
ut<br>
&gt;&gt; still takes time 2^150, millions of times more difficult than brea=
king<br>
&gt;&gt; an AES-128 key.<br>
&gt;&gt;<br>
&gt;&gt; If you scale down to more plausible amounts of future computation,=
 such<br>
&gt;&gt; as 2^100, then the comparison becomes even more lopsided. The atta=
cker<br>
&gt;&gt; is going to find millions of the users&#39; AES-128 keys, but has =
chance<br>
&gt;&gt; only about 1/2^50 of finding even _one_ of the Curve25519 keys.<br=
>
&gt;&gt;<br>
&gt;&gt; &gt; What benefit do you derive from including a stronger<br>
&gt;&gt; &gt; algorithm in a chain made of weaker algorithms?<br>
&gt;&gt;<br>
&gt;&gt; Do you realize that you&#39;re arguing _against_ mixing AES-256 wi=
th a curve<br>
&gt;&gt; as large as 512 bits?<br>
&gt;&gt;<br>
&gt;&gt; In a world of 2^50 AES-256 keys, there&#39;s an attack that alread=
y has a<br>
&gt;&gt; high probability of finding a key in time &quot;only&quot; 2^206. =
This is nicely<br>
&gt;&gt; matched with the cost of breaking Curve41417. (I admit that Curve4=
1417<br>
&gt;&gt; is slightly more secure when the inner-loop cost is taken into acc=
ount,<br>
&gt;&gt; but let&#39;s not quibble.) What benefit do you think you&#39;re o=
btaining from<br>
&gt;&gt; larger curves, such as NIST P-521 or E-521 or Microsoft&#39;s 512-=
bit curve?<br>
&gt;&gt;<br>
&gt;&gt; The argument that AES-256 &quot;matches&quot; 512-bit ECC is suppo=
rted only by an<br>
&gt;&gt; oversimplified analysis of single-key attacks. Multiple-key attack=
s are<br>
&gt;&gt; much faster for AES-256, and are obviously preferable for the atta=
cker;<br>
&gt;&gt; inferior attacks make no sense as a basis for evaluating security.=
 If<br>
&gt;&gt; you actually want a cipher that doesn&#39;t compromise the quantit=
ative<br>
&gt;&gt; security level of 512-bit ECC then you need to go far beyond 256-b=
it<br>
&gt;&gt; cipher keys.<br>
&gt;&gt;<br>
&gt;&gt; The point I&#39;m making here is orthogonal to<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 =C2=A0* Adam&#39;s point that comparing 2^200 computation t=
o 2^250 computation<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0is meaningless---we&#39;ll never do such big c=
omputations (see<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0<a href=3D"https://www.imperialviolet.org/2014=
/05/25/strengthmatching.html">https://www.imperialviolet.org/2014/05/25/str=
engthmatching.html</a>);<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 =C2=A0* Mike&#39;s point that what actually matters up at t=
his level is the<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0risk of breakthroughs---e.g., quantum computer=
s running Shor;<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 =C2=A0* the point that several people have made about the l=
ow cost of<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0moving from 192-bit ciphers to 256-bit ciphers=
 (and the high cost<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0of supporting an excessive spectrum of options=
)---so usage of<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0256-bit ciphers doesn&#39;t imply that users w=
ant 2^256 security;<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 =C2=A0* the point that it&#39;s already common practice to =
combine, e.g.,<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0RSA-2048 with AES-128 and sometimes even AES-2=
56, illustrating that<br>
&gt;&gt; =C2=A0 =C2=A0 =C2=A0the users&#39; performance constraints are the=
 biggest issue;<br>
&gt;&gt;<br>
&gt;&gt; and various other arguments against the whole concept of &quot;mat=
ching<br>
&gt;&gt; security levels&quot;. What I&#39;m saying is that if you _do_ wan=
t to &quot;match<br>
&gt;&gt; security levels&quot;---for example, Joe Salowey wrote<br>
&gt;&gt;<br>
&gt;&gt; =C2=A0 =C2=A0TLS supports 256-bit symmetric key ciphers and we wan=
t to have<br>
&gt;&gt; =C2=A0 =C2=A0recommended curves to match this key strength<br>
&gt;&gt;<br>
&gt;&gt; ---then it&#39;s a huge quantitative error to pair AES-256 with 51=
2-bit ECC.<br>
&gt;&gt; All of the attack costs that I&#39;m describing are thoroughly est=
ablished<br>
&gt;&gt; by the public cryptanalytic literature; I&#39;m not aware of any d=
ispute.<br>
&gt;&gt;<br>
&gt;&gt; Perhaps CFRG should issue a warning about AES-128 being feasible t=
o<br>
&gt;&gt; break under plausible assumptions. A reasonable response to this t=
hreat<br>
&gt;&gt; is to move to a 256-bit (or merely 192-bit, but see above regardin=
g<br>
&gt;&gt; options) cipher with Curve25519 (or Microsoft&#39;s 256-bit curve)=
; this<br>
&gt;&gt; would push all known attacks above 2^120, ample protection for the=
<br>
&gt;&gt; foreseeable future. A 256-bit cipher with Curve41417 would push al=
l<br>
&gt;&gt; known attacks above 2^200.<br>
&gt;&gt;<br>
&gt;&gt; ---Dan<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.i=
rtf.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.=
org/mailman/listinfo/cfrg</a><br>
&gt;<br>
</p>

--20cf304273e098573804ff6d195c--


From nobody Wed Jul 30 11:16:41 2014
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 67E291A0330 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:16:27 -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 GGNG_bH21jjW for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:16:26 -0700 (PDT)
Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8FBFE1A0350 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:16:18 -0700 (PDT)
Received: by mail-la0-f49.google.com with SMTP id hz20so1187486lab.8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:16:16 -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=IDDq+g3jM/QLbXxxP0TmUQw0+Pq8kkRx4J/CszFmnSc=; b=fgLPzazaYSB9q0V6sGV//9kO08b4U4zX1x9Xm2xbB6Vgl2DMSNWjWM3ukQ0RArf1OZ hk28Q0SnXLRnu7S+cXKBMo7iTMLmPUMhXENxhYttHYGVdVM9CM9c4V4Yz2VlorIgsuwB Fg6mL/51O6OmsdaU197NtcD/JAM9s5ccf1v7rooXIbz87kbTxW8OwZrKQI7awQS7TQqZ AzXUDiji2AgizGq6vQr1dNu6WkHiqr8ghcZgfP0zwsL2n2raewQbEX+ZJnMXOb301sRc snx+WSx87kHud7A88Y9r1Ig+oi96tI6yoYpnIobTbEj5Qc3zsHZ9Wu4oBJ4uh5Mq5TX2 827g==
MIME-Version: 1.0
X-Received: by 10.112.139.196 with SMTP id ra4mr6252909lbb.28.1406744176540; Wed, 30 Jul 2014 11:16:16 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 30 Jul 2014 11:16:16 -0700 (PDT)
In-Reply-To: <m2bns6yb5u.wl%randy@psg.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com>
Date: Wed, 30 Jul 2014 14:16:16 -0400
X-Google-Sender-Auth: RuuY3UXo_QaKhj-Gm9ne6_BAJGk
Message-ID: <CAMm+LwhKvb1Yf=PM5r8dZmFp+xB68OMaN41AooHS5vRfTyMSGw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Randy Bush <randy@psg.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6e6lyd25qcwUQjdFhPAwJMhSgO0
Cc: Sean Turner <TurnerS@ieca.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 18:16:27 -0000

On Wed, Jul 30, 2014 at 2:05 PM, Randy Bush <randy@psg.com> wrote:
> sean, we also need signatures.  would you consider adding ed25519 to
> this draft or doing a parallel draft?

We do need signatures, but do we need curve 25519 signatures?


RSA allows one key to be used for encryption and signature easily. But
that is still terrible security practice.

Looking through the sets of requirements we have, a curve optimized
for encryption may not be best for signatures. And writing up how to
do signatures from a curve is non-trivial (unless its 'do DSA with
this curve')

Given that the EC keys are short, we could have a combined 'encryption
and signature' certificate  but with different curves for each one.


From nobody Wed Jul 30 11:24:50 2014
Return-Path: <prvs=32887b111f=uri@ll.mit.edu>
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 8AE7C1A01C8 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:24:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level: 
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, UNPARSEABLE_RELAY=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 YVgwQguSMk5S for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:24:45 -0700 (PDT)
Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by ietfa.amsl.com (Postfix) with ESMTP id E6EF01A02FA for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:24:41 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id s6UIObW7028959; Wed, 30 Jul 2014 14:24:37 -0400
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Watson Ladd <watsonbladd@gmail.com>, Benjamin Black <b@b3k.us>
Thread-Topic: [Cfrg] matching AES security
Thread-Index: AQHPq/wCacsPipZEQE6PjxUstHqztJu5JZcAgAAJKAD//8BLgA==
Date: Wed, 30 Jul 2014 18:24:36 +0000
Message-ID: <CFFEAE61.18259%uri@ll.mit.edu>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com>
In-Reply-To: <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3489575071_10781244"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-30_07:2014-07-30,2014-07-30,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407300216
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ChSC4uitf9XHhH8-QKcU3vRDitU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 18:24:48 -0000

--B_3489575071_10781244
Content-type: multipart/alternative;
	boundary="B_3489575071_10761773"


--B_3489575071_10761773
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: 7bit

> Is the attack DJB mentioned an attack on AES?  No: AES matches the PRP
> security definition. Is it an attack on Salsa20? No: it meets the security
> claim.
> 
> Rather it's the obvious point that a man who strains half a lake has half the
> fish.
> 
> This has been pointed out before on this list, and is really on the level of
> an exercise in probability.

In that case (probability game) this attack does not seem realistic, let
alone plausible. 

How many plaintext pairs can you store (alternatively, which one "master"
plaintext would you use)? For how many keys? How do various encryption modes
impact your ability to search your tables (i.e., might using IV interfere
with it)? How are you planning to identify that magic plaintext encryption
in the traffic stream? What do your resulting probabilities look like in
real world, after all of this has been taken into account?

I won't dump my AES-128 just yet. :-)

>> > On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernstein <djb@cr.yp.to> wrote:
>>> >>
>>> >> Blumenthal, Uri - 0668 - MITLL writes:
>>>> >> > IMHO, the logic/reason of matching security levels of the
>>>> >> > cryptographic algorithms employed in a protocol suite is fairly
>>>> >> > obvious and does not need an explicit justification.
>>> >>
>>> >> Let's think through what "matching security levels" actually means for
>>> >> matching elliptic curves with AES.
>>> >>
>>> >> In the foreseeable future there will be billions of devices that users
>>> >> are relying on for cryptographic computations, and it's easy to imagine
>>> >> that a typical device will use at least one new key every minute, i.e.,
>>> >> a million new keys within two years. That's more than 2^50 keys overall.
>>> >>
>>> >> There are standard attacks that break _all_ of 2^50 AES-128 keys using a
>>> >> _total_ of 2^128 easy computations. Even worse, there are standard
>>> >> attacks that find _at least one_ of the keys using just 2^78 easy
>>> >> computations, a feasible computation today.
>>> >>
>>> >> These attacks assume that the attacker sees ciphertext for, e.g., an
>>> >> all-zero block encrypted under all of the keys. Sometimes protocols
>>> >> randomize their blocks to try to stop these attacks---but putting
>>> >> complications into protocols to compensate for a cipher's deficient
>>> >> security is _not_ a smart way to design a cryptographic system. For the
>>> >> past decade I've been recommending moving to larger cipher keys,
>>> >> precisely because of this attack against 128-bit keys.
>>> >>
>>> >> For comparison, if we're talking about Curve25519 keys rather than
>>> >> AES-128 keys, the fastest attacks to find one out of 2^50 keys are as
>>> >> slow as the fastest attack to find a single targeted key. (This isn't
>>> >> just an observation about known attacks; it's a theorem about _all_
>>> >> attacks, following easily from the "random self-reducibility" of
>>> >> Curve25519 DL, a very strong type of "worst-case-to-average-case
>>> >> reduction".) Exactly the same comment applies to any other curve---I'm
>>> >> using Curve25519 as a concrete illustration but don't mean to suggest
>>> >> that it's special in this respect.
>>> >>
>>> >> A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapakidis,
>>> >> also crediting Silverman--Stapleton; for further analysis see 2001
>>> >> Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Bernstein,
>>> >> 2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the 2^50
>>> >> Curve25519 keys more quickly than 2^50 separate DL computations, but
>>> >> still takes time 2^150, millions of times more difficult than breaking
>>> >> an AES-128 key.
>>> >>
>>> >> If you scale down to more plausible amounts of future computation, such
>>> >> as 2^100, then the comparison becomes even more lopsided. The attacker
>>> >> is going to find millions of the users' AES-128 keys, but has chance
>>> >> only about 1/2^50 of finding even _one_ of the Curve25519 keys.
>>> >>
>>>> >> > What benefit do you derive from including a stronger
>>>> >> > algorithm in a chain made of weaker algorithms?
>>> >>
>>> >> Do you realize that you're arguing _against_ mixing AES-256 with a curve
>>> >> as large as 512 bits?
>>> >>
>>> >> In a world of 2^50 AES-256 keys, there's an attack that already has a
>>> >> high probability of finding a key in time "only" 2^206. This is nicely
>>> >> matched with the cost of breaking Curve41417. (I admit that Curve41417
>>> >> is slightly more secure when the inner-loop cost is taken into account,
>>> >> but let's not quibble.) What benefit do you think you're obtaining from
>>> >> larger curves, such as NIST P-521 or E-521 or Microsoft's 512-bit curve?
>>> >>
>>> >> The argument that AES-256 "matches" 512-bit ECC is supported only by an
>>> >> oversimplified analysis of single-key attacks. Multiple-key attacks are
>>> >> much faster for AES-256, and are obviously preferable for the attacker;
>>> >> inferior attacks make no sense as a basis for evaluating security. If
>>> >> you actually want a cipher that doesn't compromise the quantitative
>>> >> security level of 512-bit ECC then you need to go far beyond 256-bit
>>> >> cipher keys.
>>> >>
>>> >> The point I'm making here is orthogonal to
>>> >>
>>> >>    * Adam's point that comparing 2^200 computation to 2^250 computation
>>> >>      is meaningless---we'll never do such big computations (see
>>> >>      https://www.imperialviolet.org/2014/05/25/strengthmatching.html);
>>> >>
>>> >>    * Mike's point that what actually matters up at this level is the
>>> >>      risk of breakthroughs---e.g., quantum computers running Shor;
>>> >>
>>> >>    * the point that several people have made about the low cost of
>>> >>      moving from 192-bit ciphers to 256-bit ciphers (and the high cost
>>> >>      of supporting an excessive spectrum of options)---so usage of
>>> >>      256-bit ciphers doesn't imply that users want 2^256 security;
>>> >>
>>> >>    * the point that it's already common practice to combine, e.g.,
>>> >>      RSA-2048 with AES-128 and sometimes even AES-256, illustrating that
>>> >>      the users' performance constraints are the biggest issue;
>>> >>
>>> >> and various other arguments against the whole concept of "matching
>>> >> security levels". What I'm saying is that if you _do_ want to "match
>>> >> security levels"---for example, Joe Salowey wrote
>>> >>
>>> >>    TLS supports 256-bit symmetric key ciphers and we want to have
>>> >>    recommended curves to match this key strength
>>> >>
>>> >> ---then it's a huge quantitative error to pair AES-256 with 512-bit ECC.
>>> >> All of the attack costs that I'm describing are thoroughly established
>>> >> by the public cryptanalytic literature; I'm not aware of any dispute.
>>> >>
>>> >> Perhaps CFRG should issue a warning about AES-128 being feasible to
>>> >> break under plausible assumptions. A reasonable response to this threat
>>> >> is to move to a 256-bit (or merely 192-bit, but see above regarding
>>> >> options) cipher with Curve25519 (or Microsoft's 256-bit curve); this
>>> >> would push all known attacks above 2^120, ample protection for the
>>> >> foreseeable future. A 256-bit cipher with Curve41417 would push all
>>> >> known attacks above 2^200.
>>> >>
>>> >> ---Dan
>>> >>
>>> >> _______________________________________________
>>> >> Cfrg mailing list
>>> >> Cfrg@irtf.org
>>> >> http://www.irtf.org/mailman/listinfo/cfrg
>> >
>> >
>> >
>> > _______________________________________________
>> > Cfrg mailing list
>> > Cfrg@irtf.org
>> > http://www.irtf.org/mailman/listinfo/cfrg
>> >



--B_3489575071_10761773
Content-type: text/html;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
 14px; font-family: Calibri, sans-serif; "><span id=3D"OLK_SRC_BODY_SECTION"><=
blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4=
df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div><p dir=3D"ltr">Is the =
attack DJB mentioned an attack on AES?&nbsp; No: AES matches the PRP securit=
y definition. Is it an attack on Salsa20? No: it meets the security claim.</=
p><p dir=3D"ltr">Rather it's the obvious point that a man who strains half a l=
ake has half the fish.</p><p dir=3D"ltr">This has been pointed out before on t=
his list, and is really on the level of an exercise in probability.</p></div=
></div></blockquote></span><div>In that case (probability game) this attack =
does not seem realistic, let alone plausible.&nbsp;</div><div><br></div><div=
>How many plaintext pairs can you store (alternatively, which one "master" p=
laintext would you use)? For how many keys? How do various encryption modes =
impact your ability to search your tables (i.e., might using IV interfere wi=
th it)? How are you planning to identify that magic plaintext encryption in =
the traffic stream?&nbsp;What do your resulting probabilities look like in r=
eal world, after all of this has been taken into account?</div><div><br></di=
v><div>I won't dump my AES-128 just yet. :-)</div><div><br></div><span id=3D"O=
LK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" sty=
le=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><di=
v><p dir=3D"ltr">&gt; On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernstein &lt;<a =
href=3D"mailto:djb@cr.yp.to">djb@cr.yp.to</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Blumenthal, Uri - 0668 - MITLL writes:<br>
&gt;&gt; &gt; IMHO, the logic/reason of matching security levels of the<br>=

&gt;&gt; &gt; cryptographic algorithms employed in a protocol suite is fair=
ly<br>
&gt;&gt; &gt; obvious and does not need an explicit justification.<br>
&gt;&gt;<br>
&gt;&gt; Let's think through what "matching security levels" actually means=
 for<br>
&gt;&gt; matching elliptic curves with AES.<br>
&gt;&gt;<br>
&gt;&gt; In the foreseeable future there will be billions of devices that u=
sers<br>
&gt;&gt; are relying on for cryptographic computations, and it's easy to im=
agine<br>
&gt;&gt; that a typical device will use at least one new key every minute, =
i.e.,<br>
&gt;&gt; a million new keys within two years. That's more than 2^50 keys ov=
erall.<br>
&gt;&gt;<br>
&gt;&gt; There are standard attacks that break _all_ of 2^50 AES-128 keys u=
sing a<br>
&gt;&gt; _total_ of 2^128 easy computations. Even worse, there are standard=
<br>
&gt;&gt; attacks that find _at least one_ of the keys using just 2^78 easy<=
br>
&gt;&gt; computations, a feasible computation today.<br>
&gt;&gt;<br>
&gt;&gt; These attacks assume that the attacker sees ciphertext for, e.g., =
an<br>
&gt;&gt; all-zero block encrypted under all of the keys. Sometimes protocol=
s<br>
&gt;&gt; randomize their blocks to try to stop these attacks---but putting<=
br>
&gt;&gt; complications into protocols to compensate for a cipher's deficien=
t<br>
&gt;&gt; security is _not_ a smart way to design a cryptographic system. Fo=
r the<br>
&gt;&gt; past decade I've been recommending moving to larger cipher keys,<b=
r>
&gt;&gt; precisely because of this attack against 128-bit keys.<br>
&gt;&gt;<br>
&gt;&gt; For comparison, if we're talking about Curve25519 keys rather than=
<br>
&gt;&gt; AES-128 keys, the fastest attacks to find one out of 2^50 keys are=
 as<br>
&gt;&gt; slow as the fastest attack to find a single targeted key. (This is=
n't<br>
&gt;&gt; just an observation about known attacks; it's a theorem about _all=
_<br>
&gt;&gt; attacks, following easily from the "random self-reducibility" of<b=
r>
&gt;&gt; Curve25519 DL, a very strong type of "worst-case-to-average-case<b=
r>
&gt;&gt; reduction".) Exactly the same comment applies to any other curve--=
-I'm<br>
&gt;&gt; using Curve25519 as a concrete illustration but don't mean to sugg=
est<br>
&gt;&gt; that it's special in this respect.<br>
&gt;&gt;<br>
&gt;&gt; A standard batching mechanism (1999 Escott--Sager--Selkirk--Tsapak=
idis,<br>
&gt;&gt; also crediting Silverman--Stapleton; for further analysis see 2001=
<br>
&gt;&gt; Kuhn--Struik, 2004 Hitchcock--Montague--Carter--Dawson, 2006 Berns=
tein,<br>
&gt;&gt; 2012 Lee--Cheon--Hong, and 2012 Bernstein--Lange) finds all of the=
 2^50<br>
&gt;&gt; Curve25519 keys more quickly than 2^50 separate DL computations, b=
ut<br>
&gt;&gt; still takes time 2^150, millions of times more difficult than brea=
king<br>
&gt;&gt; an AES-128 key.<br>
&gt;&gt;<br>
&gt;&gt; If you scale down to more plausible amounts of future computation,=
 such<br>
&gt;&gt; as 2^100, then the comparison becomes even more lopsided. The atta=
cker<br>
&gt;&gt; is going to find millions of the users' AES-128 keys, but has chan=
ce<br>
&gt;&gt; only about 1/2^50 of finding even _one_ of the Curve25519 keys.<br=
>
&gt;&gt;<br>
&gt;&gt; &gt; What benefit do you derive from including a stronger<br>
&gt;&gt; &gt; algorithm in a chain made of weaker algorithms?<br>
&gt;&gt;<br>
&gt;&gt; Do you realize that you're arguing _against_ mixing AES-256 with a=
 curve<br>
&gt;&gt; as large as 512 bits?<br>
&gt;&gt;<br>
&gt;&gt; In a world of 2^50 AES-256 keys, there's an attack that already ha=
s a<br>
&gt;&gt; high probability of finding a key in time "only" 2^206. This is ni=
cely<br>
&gt;&gt; matched with the cost of breaking Curve41417. (I admit that Curve4=
1417<br>
&gt;&gt; is slightly more secure when the inner-loop cost is taken into acc=
ount,<br>
&gt;&gt; but let's not quibble.) What benefit do you think you're obtaining=
 from<br>
&gt;&gt; larger curves, such as NIST P-521 or E-521 or Microsoft's 512-bit =
curve?<br>
&gt;&gt;<br>
&gt;&gt; The argument that AES-256 "matches" 512-bit ECC is supported only =
by an<br>
&gt;&gt; oversimplified analysis of single-key attacks. Multiple-key attack=
s are<br>
&gt;&gt; much faster for AES-256, and are obviously preferable for the atta=
cker;<br>
&gt;&gt; inferior attacks make no sense as a basis for evaluating security.=
 If<br>
&gt;&gt; you actually want a cipher that doesn't compromise the quantitativ=
e<br>
&gt;&gt; security level of 512-bit ECC then you need to go far beyond 256-b=
it<br>
&gt;&gt; cipher keys.<br>
&gt;&gt;<br>
&gt;&gt; The point I'm making here is orthogonal to<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;* Adam's point that comparing 2^200 computation to 2^=
250 computation<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;is meaningless---we'll never do such big compu=
tations (see<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;<a href=3D"https://www.imperialviolet.org/2014/0=
5/25/strengthmatching.html">https://www.imperialviolet.org/2014/05/25/streng=
thmatching.html</a>);<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;* Mike's point that what actually matters up at this =
level is the<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;risk of breakthroughs---e.g., quantum computer=
s running Shor;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;* the point that several people have made about the l=
ow cost of<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;moving from 192-bit ciphers to 256-bit ciphers=
 (and the high cost<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;of supporting an excessive spectrum of options=
)---so usage of<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;256-bit ciphers doesn't imply that users want =
2^256 security;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;* the point that it's already common practice to comb=
ine, e.g.,<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;RSA-2048 with AES-128 and sometimes even AES-2=
56, illustrating that<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;the users' performance constraints are the big=
gest issue;<br>
&gt;&gt;<br>
&gt;&gt; and various other arguments against the whole concept of "matching=
<br>
&gt;&gt; security levels". What I'm saying is that if you _do_ want to "mat=
ch<br>
&gt;&gt; security levels"---for example, Joe Salowey wrote<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp;TLS supports 256-bit symmetric key ciphers and we wan=
t to have<br>
&gt;&gt; &nbsp; &nbsp;recommended curves to match this key strength<br>
&gt;&gt;<br>
&gt;&gt; ---then it's a huge quantitative error to pair AES-256 with 512-bi=
t ECC.<br>
&gt;&gt; All of the attack costs that I'm describing are thoroughly establi=
shed<br>
&gt;&gt; by the public cryptanalytic literature; I'm not aware of any dispu=
te.<br>
&gt;&gt;<br>
&gt;&gt; Perhaps CFRG should issue a warning about AES-128 being feasible t=
o<br>
&gt;&gt; break under plausible assumptions. A reasonable response to this t=
hreat<br>
&gt;&gt; is to move to a 256-bit (or merely 192-bit, but see above regardin=
g<br>
&gt;&gt; options) cipher with Curve25519 (or Microsoft's 256-bit curve); th=
is<br>
&gt;&gt; would push all known attacks above 2^120, ample protection for the=
<br>
&gt;&gt; foreseeable future. A 256-bit cipher with Curve41417 would push al=
l<br>
&gt;&gt; known attacks above 2^200.<br>
&gt;&gt;<br>
&gt;&gt; ---Dan<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Cfrg mailing list<br>
&gt;&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irt=
f.org/mailman/listinfo/cfrg</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.or=
g/mailman/listinfo/cfrg</a><br>
&gt;<br></p></div></div></blockquote></span></body></html>

--B_3489575071_10761773--

--B_3489575071_10781244
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIIUOAYJKoZIhvcNAQcCoIIUKTCCFCUCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghIHMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7bYbBUuDpN25Lc86P9RaOiiICtyu
ZZP2P/2kkKYRAgMBAAGjggGyMIIBrjAdBgNVHQ4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K0m4XfZjl7n5OKDJ/hOyBwbBntc+W2gDppfR1BCt
DNfEG0+zHjFqF+Of1Q5NI5abhgvw5IEuVA1M4SV/utwmmdreBEv/YuLnDd/PhVgQwp3LHGCX
X1dANyiKso2aACl9jrkylq39cA/WgvAlS21w9vxVpDGCAfUwggHxAgEBMF8wUTELMAkGA1UE
BhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTET
MBEGA1UEAxMKTUlUTEwgQ0EtMwIKH0XZoAAAAAABzTANBglghkgBZQMEAgEFAKBpMC8GCSqG
SIb3DQEJBDEiBCDYK71gz6U47m/45Gj1lLAZofqippZj7LYJbhEs4rLNlzAYBgkqhkiG9w0B
CQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNDA3MzAxODI0MzFaMA0GCSqGSIb3
DQEBAQUABIIBADpDkRXnghFL4i2GI1VgM0GSZdNl8aJockwwcdmOykQSDUuOByWJU9FSOY0L
pgTFTMQzxfWf2I5ijzZa/sJC1s3Shiy9nXNTM6wid2IQJcHjPMNQsBiFG0uC0aT87HQsS/Y3
26RCLO+Jxou10IAfgZhsxrwRvvUg3lKDJr1YM0ISm5khnXwhkh/g7R8nZmqUqQcJ5m1p+l8s
8gCMc2SgODPwMM9SlO0Ds0rpSEYcz5IaA4eeYKL9NrWdWGx9Eiz3X59yvsGY0nI0889bMocp
4cPYq3yrxyHuuK7bDAt5iSbh2/4CmSwCSGzCMJdr+xGeiZSZixYb5Lh/YvkQ5tyRxRA=

--B_3489575071_10781244--


From nobody Wed Jul 30 11:28:12 2014
Return-Path: <rsalz@akamai.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 A50011A0359 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:28:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 34C2_W5qUx-U for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:28:09 -0700 (PDT)
Received: from prod-mail-xrelay06.akamai.com (prod-mail-xrelay06.akamai.com [96.6.114.98]) by ietfa.amsl.com (Postfix) with ESMTP id 4F5501A02FA for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:28:09 -0700 (PDT)
Received: from prod-mail-xrelay06.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 7F4BC1657BC; Wed, 30 Jul 2014 18:28:08 +0000 (GMT)
Received: from prod-mail-relay09.akamai.com (prod-mail-relay09.akamai.com [172.27.22.68]) by prod-mail-xrelay06.akamai.com (Postfix) with ESMTP id 749401657B8; Wed, 30 Jul 2014 18:28:08 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub6.kendall.corp.akamai.com [172.27.105.22]) by prod-mail-relay09.akamai.com (Postfix) with ESMTP id 5C8461E047; Wed, 30 Jul 2014 18:28:08 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB6.kendall.corp.akamai.com ([172.27.105.22]) with mapi; Wed, 30 Jul 2014 14:28:07 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Randy Bush <randy@psg.com>, Sean Turner <TurnerS@ieca.com>
Date: Wed, 30 Jul 2014 14:28:06 -0400
Thread-Topic: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
Thread-Index: Ac+sIOuI3s+RSwonS0uLL44vYmQ84wAAuCPA
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE0B5@USMBX1.msg.corp.akamai.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com>
In-Reply-To: <m2bns6yb5u.wl%randy@psg.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YXNdaq1mZnwqAna-kd3Anz7BqhA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 18:28:10 -0000

I think the DH function of 25519 should be separate from a signature functi=
on based on 25519 and, for now at least, we're not going to add Ed25519 sig=
natures.


-- =20
Principal Security Engineer
Akamai Technologies, Cambridge MA
IM: rsalz@jabber.me Twitter: RichSalz


From nobody Wed Jul 30 11:28:42 2014
Return-Path: <b@b3k.us>
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 78F0A1A036C for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:28:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 9GlfgnOUvDrF for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:28:40 -0700 (PDT)
Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C19171A01C8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:28:39 -0700 (PDT)
Received: by mail-we0-f178.google.com with SMTP id w61so1655432wes.37 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:28:38 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=hTarzOhNn0iYiKytxfIY2Ia+EUiIq6m72ttvDTrzF3k=; b=GeI+qp7uqvZQqHl+Id266kXWNuosAD9qD4iW1LVzFYA/kUeoLmx/0LWGFsPROdv2Lk sCGCsFrltOw6K4YXuBipAYyk5vCz9t+TFjF4MbVgJRIoMYa16nJnyO6hs0TWo57M7K7V xsaZaqgNFs0396ctX9yakHp8yIDVRF6uBpElDTQsE39pZ2dtnTs6Vqco2y7m0PvEIByI dLNi7+usMqQWW2EZwS7u1S149w69KVRagv1vtzgY26khC4QbHzksVMLYn5kybr41rPud 0Fd/YvUX1q3o8EKq4kw0DvyNG51Hh2MDomi3dWBNuNIFtGehCM9se9LrRUNLAM2o1xRm k+dA==
X-Gm-Message-State: ALoCoQnKAFUfA5jobMXtoMCiBPHp2T1Fcyg5OHx2buz/MypNQIEG+Unn6nldajZQSpO/bPh48ogO
X-Received: by 10.180.94.234 with SMTP id df10mr9544634wib.76.1406744918328; Wed, 30 Jul 2014 11:28:38 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Wed, 30 Jul 2014 11:28:18 -0700 (PDT)
In-Reply-To: <CAMm+LwhKvb1Yf=PM5r8dZmFp+xB68OMaN41AooHS5vRfTyMSGw@mail.gmail.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <CAMm+LwhKvb1Yf=PM5r8dZmFp+xB68OMaN41AooHS5vRfTyMSGw@mail.gmail.com>
From: Benjamin Black <b@b3k.us>
Date: Wed, 30 Jul 2014 11:28:18 -0700
Message-ID: <CA+Vbu7xLjdPzN-0OUdbwiqCNUx00d6+pMBhePjBaFo0YL1Q7cg@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=f46d0444ea9f25a62504ff6d5397
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/9ULaLkPCm9dsTtaCuFuCdzjTsYI
Cc: Sean Turner <TurnerS@ieca.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 18:28:41 -0000

--f46d0444ea9f25a62504ff6d5397
Content-Type: text/plain; charset=UTF-8

On Wed, Jul 30, 2014 at 11:16 AM, Phillip Hallam-Baker <
phill@hallambaker.com> wrote:

> On Wed, Jul 30, 2014 at 2:05 PM, Randy Bush <randy@psg.com> wrote:
> > sean, we also need signatures.  would you consider adding ed25519 to
> > this draft or doing a parallel draft?
>
> We do need signatures, but do we need curve 25519 signatures?
>
>
Using the same curve across kx and signatures simplifies specification,
implementation, and deployment.


>
> RSA allows one key to be used for encryption and signature easily. But
> that is still terrible security practice.
>
>
I don't see how this is relevant to using the same curves in different
algorithms.


> Looking through the sets of requirements we have, a curve optimized
> for encryption may not be best for signatures. And writing up how to
> do signatures from a curve is non-trivial (unless its 'do DSA with
> this curve')
>
>
Specific to Randy's request, EdDSA is specified in the same paper as
ed25519.


> Given that the EC keys are short, we could have a combined 'encryption
> and signature' certificate  but with different curves for each one.
>
>
The discussion is about using the same curves in different algorithms.
Curves are not keys.


b

--f46d0444ea9f25a62504ff6d5397
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jul 30, 2014 at 11:16 AM, Phillip Hallam-Baker <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:phill@hallambaker.com" target=3D"_blank">phill@hallambaker.=
com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"">On Wed, Jul 30, 2014 at 2:05=
 PM, Randy Bush &lt;<a href=3D"mailto:randy@psg.com">randy@psg.com</a>&gt; =
wrote:<br>


&gt; sean, we also need signatures. =C2=A0would you consider adding ed25519=
 to<br>
&gt; this draft or doing a parallel draft?<br>
<br>
</div>We do need signatures, but do we need curve 25519 signatures?<br>
<br></blockquote><div><br></div><div>Using the same curve across kx and sig=
natures simplifies specification, implementation, and deployment.</div><div=
>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex">


<br>
RSA allows one key to be used for encryption and signature easily. But<br>
that is still terrible security practice.<br>
<br></blockquote><div><br></div><div>I don&#39;t see how this is relevant t=
o using the same curves in different algorithms.</div><div>=C2=A0</div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex">


Looking through the sets of requirements we have, a curve optimized<br>
for encryption may not be best for signatures. And writing up how to<br>
do signatures from a curve is non-trivial (unless its &#39;do DSA with<br>
this curve&#39;)<br>
<br></blockquote><div><br></div><div>Specific to Randy&#39;s request, EdDSA=
 is specified in the same paper as ed25519.</div><div>=C2=A0</div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex">


Given that the EC keys are short, we could have a combined &#39;encryption<=
br>
and signature&#39; certificate =C2=A0but with different curves for each one=
.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br></div></div></blockquote><div><=
br></div><div>The discussion is about using the same curves in different al=
gorithms. Curves are not keys.</div><div><br></div><div><br></div><div>b</d=
iv>

<div><br></div></div></div></div>

--f46d0444ea9f25a62504ff6d5397--


From nobody Wed Jul 30 11:48:02 2014
Return-Path: <mike@shiftleft.org>
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 E195A1A023E for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:47:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.556
X-Spam-Level: *
X-Spam-Status: No, score=1.556 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 RFXSrJBNZwIx for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:47:53 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A79641A01F6 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:47:53 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id D3B693AA12; Wed, 30 Jul 2014 11:47:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406746056; bh=o1tE1NOYUmL6/wENL8hAAawzYyD0/3A+mGZJp4fFgFw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=GudDpjQzt45qAkC6i9G/mR6FSCQW3eo2gc747GDnsKoaIHycOMfrKYkjIJ1HgwHK3 Zvlznvj5RJ/pQi+RjaXI0MTNVWUMZhr9bv/F9A3I/mv59kasMBXdruWWm3TVnKKLZ9 poUXRBgp5pbv7uZSsTHarjOvQDgfdYQm973x83KM=
Content-Type: multipart/alternative; boundary="Apple-Mail=_BC7484A2-DFB0-4302-BE60-D872F9357C39"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com>
Date: Wed, 30 Jul 2014 11:47:50 -0700
Message-Id: <ED370334-7F81-4D9D-B7DE-94C319151D54@shiftleft.org>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Pz9da6yDUgyW3wM4HlTg8nRwlVo
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 18:47:57 -0000

--Apple-Mail=_BC7484A2-DFB0-4302-BE60-D872F9357C39
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Thanks, DJB, for advancing this argument for non-512-bit curves.  As the =
other guy with a 400-and-something-bit curve, I was going to have to do =
it sometime this week as well, and you made the argument more coherently =
than I would have.

On Jul 30, 2014, at 11:12 AM, Watson Ladd <watsonbladd@gmail.com> wrote:

>=20
> On Jul 30, 2014 10:40 AM, "Benjamin Black" <b@b3k.us> wrote:
> >
> > AES is not the only symmetric cipher in use today and we can expect =
new ciphers to supersede it during the service life of the new curves =
under discussion. The goal is matching security levels of the suite =
components as designed, not adjusting things based on attacks that =
emerge against a given component over its service life.
>=20
> Is the attack DJB mentioned an attack on AES?  No: AES matches the PRP =
security definition. Is it an attack on Salsa20? No: it meets the =
security claim.
>=20
> Rather it's the obvious point that a man who strains half a lake has =
half the fish.
>=20
> This has been pointed out before on this list, and is really on the =
level of an exercise in probability.
>=20
> Sincerely,=20
> Watson Ladd
>=20

To answer Uri=92s question, yes, this attack requires a shared known =
plaintext block across all the connections.  This is most likely to =
happen through the use of CTR mode with a deterministic nonce; or the =
MAC of the empty string; or explicit key confirmation.

Also, the attack is not realistic for AES-128 in the near future, and we =
don=92t have to warn users about it.  But it=92s more realistic than a =
128-bit key exhaustion.

But even in a single-target model, you can=92t just compare the =
brute-force security levels of, say, AES-192 and NIST-P384.  Brute force =
is not a realistic threat to either one.  Instead you have to consider =
the risk that an attacker with a given budget can hack you.  This risk =
would encompass things like:

* Value of the keys.  The long-term ECC keys are worth more.
* Protocol tightness.  Time/memory/data attacks are not necessarily =
limited to multiple-user attacks, and are likely to weaken AES more than =
ECC.
* Chosen-plaintext are more likely to affect AES.
* Quantum computation.  More bits of AES buys you more resistance, but =
more bits of ECC does not.
* Mathematical breakthrough.  Hard to quantify.
* Side channels.  More bits don=92t buy you much more security.

My conclusions from this would be:

* Past 192 bits of security, brute force security ratings are basically =
meaningless even with linear time/data tradeoffs.  Stronger ciphers are =
mostly a hedge against breakthroughs.
* We use 256-bit AES because it=92s not much more expensive than 192-bit =
AES.
* We should consider a more-than-384-bit elliptic curve if and only if =
it=92s not much more expensive than a 384-bit curve.
* There=92s not much point to ed-512-mers if it costs twice as much as =
ed-384-mers.
* The unusual-sized curves Curve41417 and Ed448-Goldilocks should be =
considered if and only if they=92re not much more expensive than the =
384-bit alternatives.  This has been demonstrated for Goldilocks, which =
is 6% slower than ed-384-mers on Sandy Bridge.  I believe that it will =
also be true for Curve41417, but so far I=92ve only heard numbers for =
Cortex A8 NEON, and none of the alternatives have optimized =
implementations on that platform.

Cheers,
=97 Mike


--Apple-Mail=_BC7484A2-DFB0-4302-BE60-D872F9357C39
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>Thanks, DJB, for advancing this argument for =
non-512-bit curves. &nbsp;As the other guy with a 400-and-something-bit =
curve, I was going to have to do it sometime this week as well, and you =
made the argument more coherently than I would =
have.</div><div><br><div><div>On Jul 30, 2014, at 11:12 AM, Watson Ladd =
&lt;<a href=3D"mailto:watsonbladd@gmail.com">watsonbladd@gmail.com</a>&gt;=
 wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><p =
dir=3D"ltr"><br>On Jul 30, 2014 10:40 AM, "Benjamin Black" &lt;<a =
href=3D"mailto:b@b3k.us">b@b3k.us</a>&gt; wrote:<br>&gt;<br>&gt; AES is =
not the only symmetric cipher in use today and we can expect new ciphers =
to supersede it during the service life of the new curves under =
discussion. The goal is matching security levels of the suite components =
as designed, not adjusting things based on attacks that emerge against a =
given component over its service life.</p><p dir=3D"ltr">Is the attack =
DJB mentioned an attack on AES?&nbsp; No: AES matches the PRP security =
definition. Is it an attack on Salsa20? No: it meets the security =
claim.</p><p dir=3D"ltr">Rather it's the obvious point that a man who =
strains half a lake has half the fish.</p><p dir=3D"ltr">This has been =
pointed out before on this list, and is really on the level of an =
exercise in probability.</p><p dir=3D"ltr">Sincerely,<span =
class=3D"Apple-converted-space">&nbsp;</span><br>Watson =
Ladd</p></div></blockquote></div><br><div>To answer Uri=92s question, =
yes, this attack requires a shared known plaintext block across all the =
connections. &nbsp;This is most likely to happen through the use of CTR =
mode with a deterministic nonce; or the MAC of the empty string; or =
explicit key confirmation.</div><div><br></div><div>Also, the attack is =
not realistic for AES-128 in the near future, and we don=92t have to =
warn users about it. &nbsp;But it=92s more realistic than a 128-bit key =
exhaustion.</div><div><br></div><div>But even in a single-target model, =
you can=92t just compare the brute-force security levels of, say, =
AES-192 and NIST-P384. &nbsp;Brute force is not a realistic threat to =
either one. &nbsp;Instead you have to consider the risk that an attacker =
with a given budget can hack you. &nbsp;This risk would encompass things =
like:</div><div><br></div><div>* Value of the keys. &nbsp;The long-term =
ECC keys are worth more.</div><div>* Protocol tightness. =
&nbsp;Time/memory/data attacks are not necessarily limited to =
multiple-user attacks, and are likely to weaken AES more than =
ECC.</div><div>* Chosen-plaintext are more likely to affect =
AES.</div><div>* Quantum computation. &nbsp;More bits of AES buys you =
more resistance, but more bits of ECC does not.</div><div>* Mathematical =
breakthrough. &nbsp;Hard to quantify.</div><div>* Side channels. =
&nbsp;More bits don=92t buy you much more =
security.</div><div><br></div></div><div>My conclusions from this would =
be:</div><div><br></div><div>* Past 192 bits of security, brute force =
security ratings are basically meaningless even with linear time/data =
tradeoffs. &nbsp;Stronger ciphers are mostly a hedge against =
breakthroughs.</div><div>* We use 256-bit AES because it=92s not much =
more expensive than 192-bit AES.</div><div>* We should consider a =
more-than-384-bit elliptic curve if and only if it=92s not much more =
expensive than a 384-bit curve.</div><div>* There=92s not much point to =
ed-512-mers if it costs twice as much as ed-384-mers.</div><div>* The =
unusual-sized curves Curve41417 and Ed448-Goldilocks should be =
considered if and only if they=92re not much more expensive than the =
384-bit alternatives. &nbsp;This has been demonstrated for Goldilocks, =
which is 6% slower than ed-384-mers on Sandy Bridge. &nbsp;I believe =
that it will also be true for Curve41417, but so far I=92ve only heard =
numbers for Cortex A8 NEON, and none of the alternatives have optimized =
implementations on that =
platform.</div><div><br></div><div>Cheers,</div><div>=97 =
Mike</div><div><br></div></body></html>=

--Apple-Mail=_BC7484A2-DFB0-4302-BE60-D872F9357C39--


From nobody Wed Jul 30 11:49:32 2014
Return-Path: <rransom.8774@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 5173B1A02BD for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:49:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 84Lt3UAe6Mjv for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:49:29 -0700 (PDT)
Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3310A1A0179 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:49:29 -0700 (PDT)
Received: by mail-qg0-f46.google.com with SMTP id z60so2247680qgd.5 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:49:26 -0700 (PDT)
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:content-transfer-encoding; bh=uIz6dfk5A7MnzqRql2ofLmjgFTl/xxq+6li+/GFoCEY=; b=KNnwBUupomH6o9Tj/pGQp8nATEM1/GfHrVZDZqD9Y+plsr8eTLAuwxFZdMk12WGtem hpNnSje95Qe0yVG75KONFkrG/kDl2zhogwr/4jJatJJyPrhM6egcxkMATovQDjO3ZRfA OHuOzV9jH5/QkHIFrNfq2ajuNEBRmA5EsnzKLDlXx4AYQv5vC294DkTiLKdxjj0sczOu f6AzFrlq98w+8wPOOBhB9D/WHxAZ63mxVZVc4wlQlim1fALQIV8xF41y/ztLmL5H51dO N7UIcB5bEYrbPuy+ZdNcy71epQF/PPgxfmSr2f7di5WlNHuaBEoBz37vd6UvD+v1msj2 khug==
MIME-Version: 1.0
X-Received: by 10.229.117.136 with SMTP id r8mr9822046qcq.17.1406746166079; Wed, 30 Jul 2014 11:49:26 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Wed, 30 Jul 2014 11:49:26 -0700 (PDT)
In-Reply-To: <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
Date: Wed, 30 Jul 2014 11:49:26 -0700
Message-ID: <CABqy+sroxMhZ=N1o26YG58e3JEj4qdw8=E_dL3D+o2rV-4D3bw@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Sean Turner <TurnerS@ieca.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/87aYyJVobzOWHmPT3CVOMqrMScA
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 18:49:30 -0000

On 7/29/14, Sean Turner <TurnerS@ieca.com> wrote:
> At the interim CFRG meeting, I agreed to publish a draft of the curve 255=
19
> function with some help from Rich, Watson, and Tanja.  That draft is now =
up.

Some notes (this is not a thorough review):

Section 3:

* The draft correctly specifies that the high bit must be discarded,
but does not mention that that differs from the specification in the
Curve25519 paper, and does not explain the reasons for that difference
(resistance to implementation fingerprinting, and forward
compatibility with point formats which preserve the sign bit for use
in other protocols).  It should do both, so that the RFC won't be
=E2=80=98corrected=E2=80=99 to match the paper when someone else notices th=
at
difference five or more years from now.

* The draft correctly specifies that implementations must produce
outputs less than the field order p, but does not explicitly state
that implementations must accept inputs which are greater than or
equal to p (and silently reduce them mod p).

Section 4:

* In the second paragraph, =E2=80=9CAll calculations are done over GF(p)=E2=
=80=9D
should be replaced with =E2=80=9CAll calculations are performed in GF(p)=E2=
=80=9D --
=E2=80=9Cperformed=E2=80=9D is slightly more precise, and =E2=80=9Cin=E2=80=
=9D is more correct than
=E2=80=9Cover=E2=80=9D when you're operating on field elements rather than =
e.g.
polynomials with coefficients in the field (i.e. polynomials =E2=80=98over=
=E2=80=99
the field).


Robert Ransom


From nobody Wed Jul 30 11:50:37 2014
Return-Path: <paul@marvell.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 0CA061A032E for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:50:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.266
X-Spam-Level: 
X-Spam-Status: No, score=-2.266 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, 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 2_PFHXJDQ0qB for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 11:50:30 -0700 (PDT)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 269771A0190 for <cfrg@irtf.org>; Wed, 30 Jul 2014 11:50:30 -0700 (PDT)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id s6UIoOfX001660; Wed, 30 Jul 2014 11:50:24 -0700
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0b-0016f401.pphosted.com with ESMTP id 1nenh8k97f-3 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 30 Jul 2014 11:50:24 -0700
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([fe80::e56e:83a7:9eef:b5a1%16]) with mapi; Wed, 30 Jul 2014 11:50:23 -0700
From: Paul Lambert <paul@marvell.com>
To: Benjamin Black <b@b3k.us>, Phillip Hallam-Baker <phill@hallambaker.com>
Date: Wed, 30 Jul 2014 11:50:20 -0700
Thread-Topic: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
Thread-Index: Ac+sJx3tPQ8w5eYuQ52UwOwt8TyhPg==
Message-ID: <CFFE8B84.478D8%paul@marvell.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <CAMm+LwhKvb1Yf=PM5r8dZmFp+xB68OMaN41AooHS5vRfTyMSGw@mail.gmail.com> <CA+Vbu7xLjdPzN-0OUdbwiqCNUx00d6+pMBhePjBaFo0YL1Q7cg@mail.gmail.com>
In-Reply-To: <CA+Vbu7xLjdPzN-0OUdbwiqCNUx00d6+pMBhePjBaFo0YL1Q7cg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_CFFE8B84478D8paulmarvellcom_"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-30_07:2014-07-30,2014-07-30,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407300220
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pdC9tjOUE6XjmfqGlF8JtRqdlLQ
Cc: Sean Turner <TurnerS@ieca.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 18:50:33 -0000

--_000_CFFE8B84478D8paulmarvellcom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


On Wed, Jul 30, 2014 at 11:16 AM, Phillip Hallam-Baker <phill@hallambaker.c=
om<mailto:phill@hallambaker.com>> wrote:
On Wed, Jul 30, 2014 at 2:05 PM, Randy Bush <randy@psg.com<mailto:randy@psg=
.com>> wrote:
> sean, we also need signatures.  would you consider adding ed25519 to
> this draft or doing a parallel draft?
+1

We do need signatures, but do we need curve 25519 signatures?


Using the same curve across kx and signatures simplifies specification, imp=
lementation, and deployment.
Yes!


RSA allows one key to be used for encryption and signature easily. But
that is still terrible security practice.
Not always.  First, using the same curve could be with different keys.
Option should also be allowed to have same key support key establishment
and signatures.  There are improvements in protocol design/usability that a=
re possible.

Paul




I don't see how this is relevant to using the same curves in different algo=
rithms.

Looking through the sets of requirements we have, a curve optimized
for encryption may not be best for signatures. And writing up how to
do signatures from a curve is non-trivial (unless its 'do DSA with
this curve')


Specific to Randy's request, EdDSA is specified in the same paper as ed2551=
9.

Given that the EC keys are short, we could have a combined 'encryption
and signature' certificate  but with different curves for each one.


The discussion is about using the same curves in different algorithms. Curv=
es are not keys.


b




--_000_CFFE8B84478D8paulmarvellcom_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:=
 space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-si=
ze: 14px; font-family: Calibri, sans-serif;"><span id=3D"OLK_SRC_BODY_SECTI=
ON"><div style=3D"font-family:Calibri; font-size:11pt; text-align:left; col=
or:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOT=
TOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt so=
lid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><br></div><blockquote id=
=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 sol=
id; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_=
extra"><div class=3D"gmail_quote">On Wed, Jul 30, 2014 at 11:16 AM, Phillip=
 Hallam-Baker <span dir=3D"ltr">&lt;<a href=3D"mailto:phill@hallambaker.com=
" target=3D"_blank">phill@hallambaker.com</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div class=3D"">On Wed, Jul 30, 2014 at 2:05 PM, Ran=
dy Bush &lt;<a href=3D"mailto:randy@psg.com">randy@psg.com</a>&gt; wrote:<b=
r>


&gt; sean, we also need signatures. &nbsp;would you consider adding ed25519=
 to<br>
&gt; this draft or doing a parallel draft?</div></blockquote></div></div></=
div></blockquote></span><div>+1</div><div><br></div><span id=3D"OLK_SRC_BOD=
Y_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"B=
ORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"=
ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div class=3D"">We do need signatures, but do we need curve =
25519 signatures?</div><br></blockquote><div><br></div><div>Using the same =
curve across kx and signatures simplifies specification, implementation, an=
d deployment.</div></div></div></div></blockquote></span><div>Yes!</div><di=
v><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK=
_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0=
 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_extra"><div cla=
ss=3D"gmail_quote"><div>&nbsp;</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">RSA allo=
ws one key to be used for encryption and signature easily. But<br>
that is still terrible security practice.</blockquote></div></div></div></b=
lockquote></span><div>Not always. &nbsp;First, using the same curve could b=
e with different keys. &nbsp;</div><div>Option should also be allowed to ha=
ve same key support key establishment</div><div>and signatures. &nbsp;There=
 are improvements in protocol design/usability that are possible.</div><div=
><br></div><div>Paul</div><div><br></div><span id=3D"OLK_SRC_BODY_SECTION">=
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div c=
lass=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex"><br><br></blockquote><div><br></div><div>I don't see how this is releva=
nt to using the same curves in different algorithms.</div><div>&nbsp;</div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">


Looking through the sets of requirements we have, a curve optimized<br>
for encryption may not be best for signatures. And writing up how to<br>
do signatures from a curve is non-trivial (unless its 'do DSA with<br>
this curve')<br><br></blockquote><div><br></div><div>Specific to Randy's re=
quest, EdDSA is specified in the same paper as ed25519.</div><div>&nbsp;</d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex">


Given that the EC keys are short, we could have a combined 'encryption<br>
and signature' certificate &nbsp;but with different curves for each one.<br=
><div class=3D"HOEnZb"><div class=3D"h5"><br></div></div></blockquote><div>=
<br></div><div>The discussion is about using the same curves in different a=
lgorithms. Curves are not keys.</div><div><br></div><div><br></div><div>b</=
div><div><br></div></div></div></div></blockquote></span><div><br></div><di=
v><br></div></body></html>

--_000_CFFE8B84478D8paulmarvellcom_--


From nobody Wed Jul 30 12:15:44 2014
Return-Path: <randy@psg.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 08BA51A006C for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:15:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 i1_dRhj9GkV4 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:15:41 -0700 (PDT)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 95EA81A007C for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:15:41 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=ryuu.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.76) (envelope-from <randy@psg.com>) id 1XCZLf-0007Wv-Gw; Wed, 30 Jul 2014 19:15:40 +0000
Date: Wed, 30 Jul 2014 21:15:38 +0200
Message-ID: <m24mxyy7xh.wl%randy@psg.com>
From: Randy Bush <randy@psg.com>
To: Benjamin Black <b@b3k.us>
In-Reply-To: <CA+Vbu7xLjdPzN-0OUdbwiqCNUx00d6+pMBhePjBaFo0YL1Q7cg@mail.gmail.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <CAMm+LwhKvb1Yf=PM5r8dZmFp+xB68OMaN41AooHS5vRfTyMSGw@mail.gmail.com> <CA+Vbu7xLjdPzN-0OUdbwiqCNUx00d6+pMBhePjBaFo0YL1Q7cg@mail.gmail.com>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Y2MTp4wC05j_rt4aAa-7bWIGYH0
Cc: cfrg <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 19:15:43 -0000

>>> sean, we also need signatures.  would you consider adding ed25519 to
>>> this draft or doing a parallel draft?
>> We do need signatures, but do we need curve 25519 signatures?
> Using the same curve across kx and signatures simplifies specification,
> implementation, and deployment.

bingo

>> Looking through the sets of requirements we have, a curve optimized
>> for encryption may not be best for signatures. And writing up how to
>> do signatures from a curve is non-trivial (unless its 'do DSA with
>> this curve')
> Specific to Randy's request, EdDSA is specified in the same paper as
> ed25519.

i am hoping to learn a lot from/if sean specs ed25519 in parallel.

randy


From nobody Wed Jul 30 12:26:00 2014
Return-Path: <rsalz@akamai.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 464431A02F5 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:25:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-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 7kB7XEFrL-1B for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:25:58 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id 2D63B1A002C for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:25:58 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 5A7362860A; Wed, 30 Jul 2014 19:25:57 +0000 (GMT)
Received: from prod-mail-relay06.akamai.com (prod-mail-relay06.akamai.com [172.17.120.126]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id 39849285B3; Wed, 30 Jul 2014 19:25:57 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub4.kendall.corp.akamai.com [172.27.105.20]) by prod-mail-relay06.akamai.com (Postfix) with ESMTP id 328E72029; Wed, 30 Jul 2014 19:25:57 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB4.kendall.corp.akamai.com ([172.27.105.20]) with mapi; Wed, 30 Jul 2014 15:25:56 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Robert Ransom <rransom.8774@gmail.com>, Sean Turner <TurnerS@ieca.com>
Date: Wed, 30 Jul 2014 15:25:55 -0400
Thread-Topic: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
Thread-Index: Ac+sJwSwa6jveHIES1OtIPNwRASacgABQMrw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE116@USMBX1.msg.corp.akamai.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <CABqy+sroxMhZ=N1o26YG58e3JEj4qdw8=E_dL3D+o2rV-4D3bw@mail.gmail.com>
In-Reply-To: <CABqy+sroxMhZ=N1o26YG58e3JEj4qdw8=E_dL3D+o2rV-4D3bw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/0ixt9N3B3GTPDRHL4sZbH4SwrMI
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 19:25:59 -0000

PiBTb21lIG5vdGVzICh0aGlzIGlzIG5vdCBhIHRob3JvdWdoIHJldmlldyk6DQoNCkFsbCBleGNl
bGxlbnQgcG9pbnRzLCB0aGFua3MuICBQbGVhc2UsIGNvbnRpbnVlIDopDQoNCgkvciQNCg0KLS0g
IA0KUHJpbmNpcGFsIFNlY3VyaXR5IEVuZ2luZWVyDQpBa2FtYWkgVGVjaG5vbG9naWVzLCBDYW1i
cmlkZ2UgTUENCklNOiByc2FsekBqYWJiZXIubWUgVHdpdHRlcjogUmljaFNhbHoNCg0K


From nobody Wed Jul 30 12:26:17 2014
Return-Path: <crypto@brainhub.org>
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 5D6E31A0401 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:26:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 mWACI8PxJPm1 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:26:14 -0700 (PDT)
Received: from qmta14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:212]) by ietfa.amsl.com (Postfix) with ESMTP id 1FEF51A002C for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:26:14 -0700 (PDT)
Received: from omta21.emeryville.ca.mail.comcast.net ([76.96.30.88]) by qmta14.emeryville.ca.mail.comcast.net with comcast id Ydwt1o0011u4NiLAEjSEoV; Wed, 30 Jul 2014 19:26:14 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by omta21.emeryville.ca.mail.comcast.net with comcast id YjSC1o00H4uhcbK8hjSC9T; Wed, 30 Jul 2014 19:26:13 +0000
Message-ID: <53D946D4.6050407@brainhub.org>
Date: Wed, 30 Jul 2014 12:26:12 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com> <ED370334-7F81-4D9D-B7DE-94C319151D54@shiftleft.org>
In-Reply-To: <ED370334-7F81-4D9D-B7DE-94C319151D54@shiftleft.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406748374; bh=pklexO8/izMPzOuEFbB0/WFgCMCplG3YFs9ZE1IHGpo=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=SVke5pGLukQoLGMIaRAowswOjCRZmNGfUWbrvVMBJ8HNhkxSjNUe8yLLzXetG9qKA PfGuLIRt8V6D4bGo+figm6Y9cvd3HBPT2fBDBOfhdYN2xnaXF45ppn66Npto/+tmK+ KIlAvhfDEHLR5NZj1WPhhTsIRrr/S90nuTjrie/B3V60mTtd8LYksEQqI1QCNITMys Hb+xnLolHGW4r3O4Mi2OZ4ZfBGZHMqUAJ1zZRLeuo1gq7aeBmvkcdAMw2AGRanJgSm zHNE/V885VZIxz0VsemLt/qyGLwneKdkY2ygZtm0J42FhtA4xYux1V7/DvGxhPRdIy ibFQXENDnTUxw==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gMhm7ZJjbTPURczHisNLEuU9cH8
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 19:26:15 -0000

On 07/30/2014 11:47 AM, Michael Hamburg wrote:
> * Quantum computation.  More bits of AES buys you more resistance, but
> more bits of ECC does not.

Wouldn't more qubits mean substantially higher cost and it will take 
some time (decades?) to get from 5 (?) to 256 qubits and beyond?

If so, higher bit curves have an advantage, esp. for persistent 
structures like CA certificates that cannot count on fast crypto upgrade.


From nobody Wed Jul 30 12:30:30 2014
Return-Path: <rransom.8774@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 E390C1A040A for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:30:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.75
X-Spam-Level: 
X-Spam-Status: No, score=-1.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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 aMxXA57i_2UC for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:30:27 -0700 (PDT)
Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 73B9A1A02F5 for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:30:27 -0700 (PDT)
Received: by mail-qg0-f50.google.com with SMTP id q108so2501604qgd.9 for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:30:26 -0700 (PDT)
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:content-transfer-encoding; bh=u/I81tlz6/ozJT80I1YMOi3EcU594KR+hu3x4mnNZTc=; b=tZoh9yTWo+mJB9HZS279gVWgwm+4UyCsruSXPDML2oLthpZUR5C03/wBWQMSJwVF9s PqmRCB0Puwlgi+Iq+b5Z4nQNN4w9fB2web5mzB1z4eFGBoDz/oZBNvfcC9TPmbMjIMUU a2CeEghOWJiDVlNVNn77O971lHDnewXITe4v94y0CQP6vBvxO9fbXcyQbqgoJjHHbZnS G1LOak039MeMDZwBPNO8YRkFrX049t7CYM+LQakCr004rnydgAr4tcpvTY6suznf2fbQ XgqYhWa2Oo+eJS52rPWssG4cyNrgdRYRrQPjNKzRHwKRdN8FCLCOlGRkLBWAWjWRqvP2 hODQ==
MIME-Version: 1.0
X-Received: by 10.140.26.110 with SMTP id 101mr9686927qgu.1.1406748626606; Wed, 30 Jul 2014 12:30:26 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Wed, 30 Jul 2014 12:30:26 -0700 (PDT)
In-Reply-To: <258124fc-3f8b-4ea3-9f61-20395e7916c9@email.android.com>
References: <20140729205846.6639765.71649.17355@certicom.com> <258124fc-3f8b-4ea3-9f61-20395e7916c9@email.android.com>
Date: Wed, 30 Jul 2014 12:30:26 -0700
Message-ID: <CABqy+sr9keX8q8Rw+=MbtVQ0VNejevYiM146Q8KCZHbQTmbo2g@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Alyssa Rowan <akr@akr.io>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PG04_gNkbSG0OM0iMIuT0BFPdyM
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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, 30 Jul 2014 19:30:29 -0000

On 7/29/14, Alyssa Rowan <akr@akr.io> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 29 July 2014 21:58:47 BST, Dan Brown <dbrown@certicom.com> wrote:
>>=E2=80=8EIn ECDSA or Schnorr, if the ephemeral private key k depends on t=
he
>>message bring signed, precomputation of kG, an efficiency advantage
>>(reduced latency?), and possibly effective side channel countermeasure
>>(harder to time precomputation), seems precluded. Not being an
>>efficiency or side channel expert, I ask: Does this downside sound
>>right?
>
> On the other hand, deterministic signatures can have test vectors - a big
> win - and they don't need an RNG. Less baggage, less worry about
> implementation fingerprinting or even potential kleptography (although
> obviously you should always avoid black boxes too where that last one cou=
ld
> be a risk!).

Exactly.  I would make deterministic signatures a MUST for any
interoperable long-term signing key, and make an interoperable
deterministic signature generation specification and interoperable
storage/transport format for the associated secret key material a must
for any signature scheme specification.

For *short-term* signing keys which will never be written to disk, it
may make sense to store a counter along with the secret key, and use
that to precompute ephemeral keys for non-deterministic signature
generation.  (I've considered this as part of a key-agreement
protocol.)  But I can't support this approach for any key which may be
written to disk, or which may need to be used in more than one
signature-generation implementation.


Robert Ransom


From nobody Wed Jul 30 12:43:06 2014
Return-Path: <luto@amacapital.net>
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 6188E1A033E for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:43:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 OmaKljIxLyPl for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:43:02 -0700 (PDT)
Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E9091A0158 for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:43:02 -0700 (PDT)
Received: by mail-la0-f44.google.com with SMTP id e16so1291117lan.31 for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:43:00 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-type; bh=yllpn+WauxR214aFwZ6TVP83wwdDRJarj05BJLmOnH8=; b=kI3o/78KSf58Pe6AB4eTQn9Bjnss/pGv44vr5RQBXvQEDw1gbTakY3HdndN86vEM/U OPwBACtUCYozWyBBaWV4YjFQi13d7JYXlJcMLLvtgH6rHbcQFGHqEgXQYi7Xi5SpLWDT 8hlAh73zIL5yKJcJptqecDbaJEAr8o2WNWsHxMUWZBQm+BE4LJ8cLOoa0RvX/0sgdwkw 3G4qqd3uaDOBBmDfLPMgZrSNkfx2ZEIHi02a5svgTzVf0KjPTxTqAV6p67PY3ilVQVhV x17aD/ooZMCMcKZem4nZfbvOnjJc4rz9hOgZRi14DLosDu00Ci5q5Lb4VU7TqzY422KX Gv2Q==
X-Gm-Message-State: ALoCoQlH/70487UUwvmAgS1HFuX8UI7xFQg7ajKc2WT4zOWS2/e+BvQtYWDYFyNgUIFJWmi3V3pi
X-Received: by 10.112.63.65 with SMTP id e1mr6623894lbs.81.1406749380410; Wed, 30 Jul 2014 12:43:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.36.106 with HTTP; Wed, 30 Jul 2014 12:42:40 -0700 (PDT)
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 30 Jul 2014 12:42:40 -0700
Message-ID: <CALCETrXnuXkYz0sQvMk_tQrGCBUxuM+mDP4pDLh4SwDVZKxV2g@mail.gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/w0wJIG9wlyhG7SotHxPhQbLZlkA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 19:43:04 -0000

On Wed, Jul 30, 2014 at 12:26 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 07/30/2014 11:47 AM, Michael Hamburg wrote:
>>
>> * Quantum computation.  More bits of AES buys you more resistance, but
>> more bits of ECC does not.
>
>
> Wouldn't more qubits mean substantially higher cost and it will take some
> time (decades?) to get from 5 (?) to 256 qubits and beyond?

Good luck.  In my view, either you have a scalable quantum computer or
you don't.  If it's scalable, then you can spend a bunch of money and
scale it.  If it's not scalable (and the current things that factor 15
aren't), you can throw as many fancy refrigerators and copies of the
machine at it as you want, and you won't get anywhere.

The asymptotic complexity of Shor's algorithm is *really* good.

>
> If so, higher bit curves have an advantage, esp. for persistent structures
> like CA certificates that cannot count on fast crypto upgrade.
>

When someone has a quantum computer, I will consider all crypto based
on Abelian groups to be dead, full stop.  (There's some reason to
believe that crypto based on elliptic curve isogenies might survive a
little bit longer, but the quantum algorithms there haven't been all
that well studied, and IIRC they're already decent.)

--Andy


From nobody Wed Jul 30 12:46:20 2014
Return-Path: <luto@amacapital.net>
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 952311A0340 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:46:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 T6EcPVSZV_Py for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:46:12 -0700 (PDT)
Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 116921A01AA for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:46:11 -0700 (PDT)
Received: by mail-la0-f41.google.com with SMTP id s18so1319017lam.28 for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:46:10 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=MKkg6edQJ5os7u301tSyrN30wuvHeuttrLjjfXSpxJ0=; b=TEP9AJTnEg7kDCCY3/xVaa6FkcCp/kbN0ca2udrq39Wwy4jcQzNDjMt2xpBfdSC3/c i5GD1h4mAN3Yf1xLN8HI/X5edxnHP2nxPs9IaNqvmZ9eXuZ0dX4ruDac07wqpVNwnliX uOaJWetWtAPznpTX8untGks0NmztyFyUObQ4p2DzKZhrBfCFnsCPZh+mm5Ds4DvzJOEf AAINlMoX7nfHGZhylyu2eQ1BTk/SnjAHtw1fRR3k9s2Kvc87pUUCuDZNmzmjZfWM1HBb ep5sDFf4TLUx4qbLG2SQkjwAuVje8Nljaqd1tSbp1/5k5uFYhsh2iiBNptHA9AKwrVGh Z6HQ==
X-Gm-Message-State: ALoCoQnNTTN+teuwQAJhP76FU2QkU8dZT8RUc5wXDJFzgaLjTXcH4+Gdlx7IKVhrhKGNincSVQsr
X-Received: by 10.112.4.228 with SMTP id n4mr6781055lbn.46.1406749570247; Wed, 30 Jul 2014 12:46:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.36.106 with HTTP; Wed, 30 Jul 2014 12:45:50 -0700 (PDT)
In-Reply-To: <CFFEAE61.18259%uri@ll.mit.edu>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com> <CFFEAE61.18259%uri@ll.mit.edu>
From: Andy Lutomirski <luto@amacapital.net>
Date: Wed, 30 Jul 2014 12:45:50 -0700
Message-ID: <CALCETrVzQaE6ZVCV6-n060e4jqcbio_TWuOGyM5hAKLPpb-oDQ@mail.gmail.com>
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/npOZYR4bSXS3gH5S6kXbtrAWP4s
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 19:46:14 -0000

On Wed, Jul 30, 2014 at 11:24 AM, Blumenthal, Uri - 0558 - MITLL
<uri@ll.mit.edu> wrote:
> Is the attack DJB mentioned an attack on AES?  No: AES matches the PRP
> security definition. Is it an attack on Salsa20? No: it meets the security
> claim.
>
> Rather it's the obvious point that a man who strains half a lake has half
> the fish.
>
> This has been pointed out before on this list, and is really on the level of
> an exercise in probability.
>
> In that case (probability game) this attack does not seem realistic, let
> alone plausible.
>
> How many plaintext pairs can you store (alternatively, which one "master"
> plaintext would you use)? For how many keys? How do various encryption modes
> impact your ability to search your tables (i.e., might using IV interfere
> with it)? How are you planning to identify that magic plaintext encryption
> in the traffic stream? What do your resulting probabilities look like in
> real world, after all of this has been taken into account?
>
> I won't dump my AES-128 just yet. :-)

In my opinion, this approach to crypto has been inappropriate for
quite some time.  Despite the fact that, theoretically, there were
nice attacks against MAC-then-encrypt, people kept using it because
they couldn't imagine how those attacks could work in the "real
world".  That didn't go so well.

If people start using 256-bit keys, then these attacks are a
non-issue.  Or someone could try to find a protocol that is *provably*
immune with 128-bit keys.  But let's stop relying on our own failures
to image how these attacks might work.

--Andy


From nobody Wed Jul 30 12:47:57 2014
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 2A2251A0340 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:47:56 -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 FAhsNLLPQcO6 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 12:47:55 -0700 (PDT)
Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A4EAC1A032E for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:47:54 -0700 (PDT)
Received: by mail-lb0-f173.google.com with SMTP id p9so1274393lbv.18 for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:47:53 -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=O8Uxy54PWXpDLKE91CZ0ntXw02zS6Uvs79eByyb9vro=; b=03/yKmJfffkiFrq8Jf8SXOaw0QlebY3BWHDj1tPlJD5GVavPARW8ka10+sas1ghUoa msZesfOhxdXCsKJxdRbEd68wTzqKHyCdrbSYBnrcig6IyjV5Bf8IQTRF6YkefwI99f2o fUN8sm9AkjqubjHW0iHf1fHCBHzbqaTfigc/E9o0kt8tjfdHypHWfNi89lygZGHpPpMf dkzf4TdGvFUfYB3NIobis43Tisus/os6Z9qLR9VzmO+IPOo+Fd7oCgWvztqvtQZ83TrZ d7nlXzwWD1rT+tBRj/2Xvm12dILIEtJD/hHShRlGdG0WF93BMrmDkBEHSbZm8r0b12dF d3Gw==
MIME-Version: 1.0
X-Received: by 10.112.139.196 with SMTP id ra4mr6699108lbb.28.1406749672894; Wed, 30 Jul 2014 12:47:52 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 30 Jul 2014 12:47:52 -0700 (PDT)
In-Reply-To: <53D68F33.3010802@gmx.net>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <53D66506.4080809@htt-consult.com> <C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org> <53D68F33.3010802@gmx.net>
Date: Wed, 30 Jul 2014 15:47:52 -0400
X-Google-Sender-Auth: U4jeJXXWIy4kGEuOV4Vl3IQZIh4
Message-ID: <CAMm+LwhCm1RgKkMYJpHNAk3_iLvmAtHgc1exR=paaFGC_6Xhwg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/5KHxmV1FFkKKOdMqQ3pBMQ574gU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] Curve selection revisited
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, 30 Jul 2014 19:47:56 -0000

On Mon, Jul 28, 2014 at 1:58 PM, Hannes Tschofenig
<hannes.tschofenig@gmx.net> wrote:
> Hi Mike, Hi Bob,
>
> Saying that you need hardware acceleration because of performance, RAM
> and ROM size supported by some boards running 8-bit microcontrollers is
> a bit lying to ourselves. The hardware acceleration might in fact
> involve a chip with 32-bit.

Sorry, no, that does not help at all. The only way to reduce the
number of 8 bit processors would be to burn down the fabs.

The problem is that when the price on the 32 bit processor drops to
the price of the 8 bit, the 8 bit processor also drops in price. And
then it proliferates to another layer of devices. Which is why the
number of 6502 and Z80 processors has climbed exponentially since the
80s.


From nobody Wed Jul 30 13:18:34 2014
Return-Path: <mike@shiftleft.org>
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 AC5141A026E for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 13:18:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 kAb3fpbShObv for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 13:18:32 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 90AC71A00D4 for <cfrg@irtf.org>; Wed, 30 Jul 2014 13:18:32 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id EA5CA3AA12; Wed, 30 Jul 2014 13:18:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406751495; bh=283XVIIrguizMVDQ5J6sAWK8MfamdT7jyMTxXxWy5mk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=E3DgRQamehhshR5cfV5AQrqSsfYzLc1Kw7yxVrn9vUQqzTRAvj/tKghA1liL/hdxt NB4qsutbcQ5+hkux4Efp0PCiuL/acj3/Efbk33qJ3PlmQrXxsC2lkkECKc0y/HQS+0 sUaIdYSvaWMfkRIhmquCCJ3kRMFnXVtz7z/Jpfn8=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CABqy+sr9keX8q8Rw+=MbtVQ0VNejevYiM146Q8KCZHbQTmbo2g@mail.gmail.com>
Date: Wed, 30 Jul 2014 13:18:29 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <45D8797B-E75C-4B1B-82E5-26983A780392@shiftleft.org>
References: <20140729205846.6639765.71649.17355@certicom.com> <258124fc-3f8b-4ea3-9f61-20395e7916c9@email.android.com> <CABqy+sr9keX8q8Rw+=MbtVQ0VNejevYiM146Q8KCZHbQTmbo2g@mail.gmail.com>
To: Robert Ransom <rransom.8774@gmail.com>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Ew4BgjcxgdkF0heNRoHljRCU1p0
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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, 30 Jul 2014 20:18:33 -0000

On Jul 30, 2014, at 12:30 PM, Robert Ransom <rransom.8774@gmail.com> =
wrote:

> On 7/29/14, Alyssa Rowan <akr@akr.io> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>>=20
>> On 29 July 2014 21:58:47 BST, Dan Brown <dbrown@certicom.com> wrote:
>>> =E2=80=8EIn ECDSA or Schnorr, if the ephemeral private key k depends =
on the
>>> message bring signed, precomputation of kG, an efficiency advantage
>>> (reduced latency?), and possibly effective side channel =
countermeasure
>>> (harder to time precomputation), seems precluded. Not being an
>>> efficiency or side channel expert, I ask: Does this downside sound
>>> right?
>>=20
>> On the other hand, deterministic signatures can have test vectors - a =
big
>> win - and they don't need an RNG. Less baggage, less worry about
>> implementation fingerprinting or even potential kleptography =
(although
>> obviously you should always avoid black boxes too where that last one =
could
>> be a risk!).
>=20
> Exactly.  I would make deterministic signatures a MUST for any
> interoperable long-term signing key, and make an interoperable
> deterministic signature generation specification and interoperable
> storage/transport format for the associated secret key material a must
> for any signature scheme specification.
>=20
> For *short-term* signing keys which will never be written to disk, it
> may make sense to store a counter along with the secret key, and use
> that to precompute ephemeral keys for non-deterministic signature
> generation.  (I've considered this as part of a key-agreement
> protocol.)  But I can't support this approach for any key which may be
> written to disk, or which may need to be used in more than one
> signature-generation implementation.
>=20
>=20
> Robert Ransom

Why not make it a SHOULD in the signature standard, and then other =
standards can upgrade it to MUST if they don=E2=80=99t need low-latency =
or streaming signatures?

=E2=80=94 Mike



From nobody Wed Jul 30 13:26:32 2014
Return-Path: <mike@shiftleft.org>
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 600131A03CF for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 13:26:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.555
X-Spam-Level: *
X-Spam-Status: No, score=1.555 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 nGJwS0PUk417 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 13:26:30 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E39F31A0326 for <cfrg@irtf.org>; Wed, 30 Jul 2014 13:26:29 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 07B6A3AA12; Wed, 30 Jul 2014 13:26:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406751972; bh=Nk6CyLEIGcJ7TT15HEubvwFDZx9jKa2nCDlHUy4fOyk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=e7R7Nj9m9Z+12K2kMOOU/RSiLz3y4MAfyZCob+nHGFDSdCgLqnzSfhPdSNAnO/SEX kWC1UOOCPXD+M3y/nNWb0X1vaZ2H6uHgWnjKJDKOic/mmTsbS6KOesKsr/XvjHnOvE u/FbFpK7CnhNt4PRW+7pTCz8gVmtN2VS97Azelek=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CALCETrVzQaE6ZVCV6-n060e4jqcbio_TWuOGyM5hAKLPpb-oDQ@mail.gmail.com>
Date: Wed, 30 Jul 2014 13:26:21 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <F2C352B4-2474-46F3-A2F4-EE6CFE54F65A@shiftleft.org>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com> <CFFEAE61.18259%uri@ll.mit.edu> <CALCETrVzQaE6ZVCV6-n060e4jqcbio_TWuOGyM5hAKLPpb-oDQ@mail.gmail.com>
To: Andy Lutomirski <luto@amacapital.net>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/zExvrsT8xb-ohS7shsjmSUlyVl0
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 20:26:31 -0000

On Jul 30, 2014, at 12:45 PM, Andy Lutomirski <luto@amacapital.net> =
wrote:

> On Wed, Jul 30, 2014 at 11:24 AM, Blumenthal, Uri - 0558 - MITLL
> <uri@ll.mit.edu> wrote:
>> Is the attack DJB mentioned an attack on AES?  No: AES matches the =
PRP
>> security definition. Is it an attack on Salsa20? No: it meets the =
security
>> claim.
>>=20
>> Rather it's the obvious point that a man who strains half a lake has =
half
>> the fish.
>>=20
>> This has been pointed out before on this list, and is really on the =
level of
>> an exercise in probability.
>>=20
>> In that case (probability game) this attack does not seem realistic, =
let
>> alone plausible.
>>=20
>> How many plaintext pairs can you store (alternatively, which one =
"master"
>> plaintext would you use)? For how many keys? How do various =
encryption modes
>> impact your ability to search your tables (i.e., might using IV =
interfere
>> with it)? How are you planning to identify that magic plaintext =
encryption
>> in the traffic stream? What do your resulting probabilities look like =
in
>> real world, after all of this has been taken into account?
>>=20
>> I won't dump my AES-128 just yet. :-)
>=20
> In my opinion, this approach to crypto has been inappropriate for
> quite some time.  Despite the fact that, theoretically, there were
> nice attacks against MAC-then-encrypt, people kept using it because
> they couldn't imagine how those attacks could work in the "real
> world".  That didn't go so well.
>=20
> If people start using 256-bit keys, then these attacks are a
> non-issue.  Or someone could try to find a protocol that is *provably*
> immune with 128-bit keys.  But let's stop relying on our own failures
> to image how these attacks might work.
>=20
> =97Andy

I=92s really hard to get tight security bounds.  To start with, you=92ll =
need something stronger than the standard PRF/PRP assumptions; maybe =
ideal ciphers would be enough?  Likewise with EC signatures, even in the =
ROM the bounds are really far from tight.

But yeah, 256-bit symmetric ciphers are cheap.  If the small performance =
difference doesn=92t matter much to you, then just use them everywhere.

=97 Mike=


From nobody Wed Jul 30 13:55:03 2014
Return-Path: <sandyinchina@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 ADEB41A041F for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 13:55:01 -0700 (PDT)
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 CRklmX9o6XEz for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 13:55:00 -0700 (PDT)
Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0929C1A041D for <cfrg@irtf.org>; Wed, 30 Jul 2014 13:54:59 -0700 (PDT)
Received: by mail-ie0-f177.google.com with SMTP id at20so2274115iec.8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 13:54:59 -0700 (PDT)
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 :content-type; bh=31coeTrhBsS7z6eDWA2VRo1orOibk9zpK2/hmqQXH2c=; b=W04wd7wVhEk2JJuwnoX41aWyY6JfCJF3LJCsBz1EvsucWM4M7AuSsEE2foRdiVgF5E lJHRxKqlQ4xb9whWCeDTVb4kVwu2ufTqyh+DYT2qv/zPPlt+0bYpQF5attlrbEO65+Pi tHVoeYLJKMbZV47OTrAucvsV6jVaoBsg65Fv59riFR4egrQdagMfdV7VfnR/1gRXLwwn jmeWGMx14y/I+21yMsXmN2kqxZd430J/A6tGsTNmHuOuPgKeQmOa//uBlPO2ut8C7nLX n+rdc99uJYgFa0p9TNHfOzAiuMiRG7YUh8GZOdG0EC9bKo3bB+dW3EW8TQRFgLXVj3Dr KBig==
MIME-Version: 1.0
X-Received: by 10.50.32.10 with SMTP id e10mr11699427igi.7.1406753699079; Wed, 30 Jul 2014 13:54:59 -0700 (PDT)
Received: by 10.107.153.211 with HTTP; Wed, 30 Jul 2014 13:54:58 -0700 (PDT)
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
References: <20140730123336.29011.qmail@cr.yp.to>
Date: Wed, 30 Jul 2014 16:54:58 -0400
Message-ID: <CACXcFmkidGmOyqAqo7oTmfS9nhu76gchb5GAnM1FEf078f_UTQ@mail.gmail.com>
From: Sandy Harris <sandyinchina@gmail.com>
To: cfrg@irtf.org
Content-Type: text/plain; charset=ISO-8859-1
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6tWXYvvxoUqt3NZ-lu7uk8vdDQY
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 20:55:01 -0000

D. J. Bernstein <djb@cr.yp.to> wrote:

> There are standard attacks that break _all_ of 2^50 AES-128 keys using a
> _total_ of 2^128 easy computations. Even worse, there are standard
> attacks that find _at least one_ of the keys using just 2^78 easy
> computations, a feasible computation today.
>
> These attacks assume that the attacker sees ciphertext for, e.g., an
> all-zero block encrypted under all of the keys. Sometimes protocols
> randomize their blocks to try to stop these attacks---but putting
> complications into protocols to compensate for a cipher's deficient
> security is _not_ a smart way to design a cryptographic system. For the
> past decade I've been recommending moving to larger cipher keys,
> precisely because of this attack against 128-bit keys.
....
> In a world of 2^50 AES-256 keys, there's an attack that already has a
> high probability of finding a key in time "only" 2^206.

Does the construction used in Enchilada solve those problems?
https://aezoo.compute.dtu.dk/doku.php?id=enchilada

It puts a 256-bit key into Chacha, then uses Chacha both to
generate AES round keys (so there is no 128-bit or 256-bit
AES key to attack) and to add whitening that changes for
every block (so common general attacks on block ciphers
all fail).


From nobody Wed Jul 30 14:00:41 2014
Return-Path: <cloos@jhcloos.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 5B1871A049F for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:00:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level: 
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-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 viqwNyL7gDGd for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:00:39 -0700 (PDT)
Received: from ore.jhcloos.com (ore.jhcloos.com [IPv6:2604:2880::b24d:a297]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E99F61A046A for <cfrg@irtf.org>; Wed, 30 Jul 2014 14:00:38 -0700 (PDT)
Received: by ore.jhcloos.com (Postfix, from userid 10) id 643011DF52; Wed, 30 Jul 2014 21:00:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore14; t=1406754037; bh=3OR3hFELAsJPyH0YAJSMR81QlXhDeUvFdKugcakXa4s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bzpAzseP7UR32TWfnnHNX6RckDyk2safIoatNfn3kjMf/kL4HggW/rQM3iluMqoaz dwf9JNzIlfSE5YrkxGw5AEvu0SZKTT+eYZt7MnH4PyZWYwW8lDaEbmp0fVgujN94WG yc1w9aDBSdUYr69kR69hkEXtIS/jbGQ8ggxg1gjs=
Received: by carbon.jhcloos.org (Postfix, from userid 500) id 183AC60021; Wed, 30 Jul 2014 20:55:47 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
In-Reply-To: <CAMm+LwieafzTxEh-_XDT+Y+Zu8Aor6rQs8xkb_VtV57Yk5jTuA@mail.gmail.com> (Phillip Hallam-Baker's message of "Wed, 30 Jul 2014 14:08:28 -0400")
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com> <20140730163409.GH28679@cph.win.tue.nl> <CAMm+LwieafzTxEh-_XDT+Y+Zu8Aor6rQs8xkb_VtV57Yk5jTuA@mail.gmail.com>
User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC
Copyright: Copyright 2014 James Cloos
OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Wed, 30 Jul 2014 16:55:47 -0400
Message-ID: <m38unawoq4.fsf@carbon.jhcloos.org>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain
X-Hashcash: 1:28:140730:phill@hallambaker.com::3Tj63Ny9N3qRJTkg:0000000000000000000000000000000000000004t8AO
X-Hashcash: 1:28:140730:tanja@hyperelliptic.org::G144rjO7SR3mcEDT:00000000000000000000000000000000000003KcNF
X-Hashcash: 1:28:140730:cfrg@irtf.org::Xm7bRondC4hSdjvw:000ByU0v
X-Hashcash: 1:28:140730:rgm-sec@htt-consult.com::KxFqb3w1ekGvZQqC:0000000000000000000000000000000000000P/Djy
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/jqRz46KtPkZQC2qNCtalWpOGZEU
Cc: cfrg@irtf.org, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 21:00:40 -0000

>>>>> "PH" == Phillip Hallam-Baker <phill@hallambaker.com> writes:

PH> To me, rekey implies rebuilding the authentication relationship
PH> between the end points. Thats a lot more work.

I don't think that meshes with what most of the participants in the
tls1.3 discussion think.

My understanding of all of the rekey-instead-of-renegotiate threads
is that everyone who wants that expects to use the same algorithm
initially used to negotiate the symmetric key to negotiate a new one
without any changes to which symmetric algorithm is used, or to any
authentication which took place at the start.

So it seems that there is significant interest in just changing the
symmetric keys every so often for long-running tls sockets.

[Not commenting on whether that change should occur, just on that which
everyone on the tls list seems to write about.]

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


From nobody Wed Jul 30 14:10:21 2014
Return-Path: <tanja@hyperelliptic.org>
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 B8C7F1A046A for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:10:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 RXwmLe4xfGel for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:10:17 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id F29061A052E for <cfrg@irtf.org>; Wed, 30 Jul 2014 14:10:16 -0700 (PDT)
Received: (qmail 8324 invoked from network); 30 Jul 2014 21:10:18 -0000
Received: from unknown (HELO hyperelliptic.org) (131.155.71.33) by mace.cs.uic.edu with SMTP; 30 Jul 2014 21:10:18 -0000
Received: (qmail 9298 invoked by uid 1000); 30 Jul 2014 21:09:46 -0000
Date: Wed, 30 Jul 2014 23:09:46 +0200
From: Tanja Lange <tanja@hyperelliptic.org>
To: Robert Ransom <rransom.8774@gmail.com>
Message-ID: <20140730210946.GL28679@cph.win.tue.nl>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <CABqy+sroxMhZ=N1o26YG58e3JEj4qdw8=E_dL3D+o2rV-4D3bw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CABqy+sroxMhZ=N1o26YG58e3JEj4qdw8=E_dL3D+o2rV-4D3bw@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/A1RsnVMvgWmBF0qx9IIjQXxP3eY
Cc: Sean Turner <TurnerS@ieca.com>, cfrg@irtf.org
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 21:10:20 -0000

Dear Robert,
> Section 3:
> 
> * The draft correctly specifies that the high bit must be discarded,
> but does not mention that that differs from the specification in the
> Curve25519 paper, and does not explain the reasons for that difference
> (resistance to implementation fingerprinting, and forward
> compatibility with point formats which preserve the sign bit for use
> in other protocols).  It should do both, so that the RFC won't be
> â€˜correctedâ€™ to match the paper when someone else notices that
> difference five or more years from now.
> 
The paper specifies that the x value is an integer between 0 and p-1. 
It does not specify what to do if the sent value does not adhere to 
this format. On the math side, there is no attack from accepting 
DH inputs which do not match this format, but for specifications
I want a defined format.

The text specifies that s[31] is minimal; the representation is
unique.

> * The draft correctly specifies that implementations must produce
> outputs less than the field order p, but does not explicitly state
> that implementations must accept inputs which are greater than or
> equal to p (and silently reduce them mod p).
> 
Why would you do this? If the DH input is >=2^255-19 then it was
not generated according to the specification and should be rejected.

If you want to have the ambiguity of having multiple representations
for inputs (which I would recommend against) there is still no need 
to reduce modulo p. The computation could start from the unreduced
value and give the same result.

Do you see any benefit in having non-unique representations? Any 
problems with rejecting malformed inputs?

All the best
	Tanja


From nobody Wed Jul 30 14:28:25 2014
Return-Path: <prvs=32887b111f=uri@ll.mit.edu>
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 EC1411A049F for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:28:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level: 
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, UNPARSEABLE_RELAY=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 QmJz3oUecIpO for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:28:19 -0700 (PDT)
Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by ietfa.amsl.com (Postfix) with ESMTP id 21BD71A05C0 for <cfrg@irtf.org>; Wed, 30 Jul 2014 14:28:18 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id s6ULSHXF021687; Wed, 30 Jul 2014 17:28:17 -0400
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Michael Hamburg <mike@shiftleft.org>, Watson Ladd <watsonbladd@gmail.com>
Thread-Topic: [Cfrg] matching AES security
Thread-Index: AQHPq/wCacsPipZEQE6PjxUstHqztJu5JZcAgAAJKACAAAndAP//6b4A
Date: Wed, 30 Jul 2014 21:28:16 +0000
Message-ID: <CFFED804.182A4%uri@ll.mit.edu>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com> <ED370334-7F81-4D9D-B7DE-94C319151D54@shiftleft.org>
In-Reply-To: <ED370334-7F81-4D9D-B7DE-94C319151D54@shiftleft.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3489586090_11416388"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-30_07:2014-07-30,2014-07-30,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407300245
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/R-xUrO0IocP41JEDFhorLCVuX2E
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 21:28:23 -0000

--B_3489586090_11416388
Content-type: multipart/alternative;
	boundary="B_3489586090_11417194"


--B_3489586090_11417194
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

> To answer Uri=E2=80=99s question, yes, this attack requires a shared known plai=
ntext
> block across all the connections.  This is most likely to happen through =
the
> use of CTR mode with a deterministic nonce; or the MAC of the empty strin=
g; or
> explicit key confirmation.
>=20
> Also, the attack is not realistic for AES-128 in the near future, and we =
don=E2=80=99t
> have to warn users about it.  But it=E2=80=99s more realistic than a 128-bit ke=
y
> exhaustion.

Good points! I concur.

> But even in a single-target model, you can=E2=80=99t just compare the brute-for=
ce
> security levels of, say, AES-192 and NIST-P384.  Brute force is not a
> realistic threat to either one.

Again, I concur. But still, we need some ways to compare, e.g., NIST-P384
with NIST-P521. You cannot say "beyond bit-length X they're just all the
same".

> Instead you have to consider the risk that an attacker with a given budge=
t can
> hack you.  This risk would encompass things like:
>=20
> * Value of the keys.  The long-term ECC keys are worth more.

Yes.

> * Protocol tightness.  Time/memory/data attacks are not necessarily limit=
ed to
> multiple-user attacks, and are likely to weaken AES more than ECC.

Don't know. Maybe.

> * Chosen-plaintext are more likely to affect AES.

Probably the opposite. Easier to mount against AES, but AES is more immune
against them.

> * Quantum computation.  More bits of AES buys you more resistance, but mo=
re
> bits of ECC does not.

Yes.

> * Mathematical breakthrough.  Hard to quantify.

Yes. :-)

> * Side channels.  More bits don=E2=80=99t buy you much more security.

Yes. :-)

> My conclusions from this would be:
>=20
> * Past 192 bits of security, brute force security ratings are basically
> meaningless even with linear time/data tradeoffs.  Stronger ciphers are m=
ostly
> a hedge against breakthroughs.

OK, agree.

> * We use 256-bit AES because it=E2=80=99s not much more expensive than 192-bit =
AES.

Actually I don't know why we don't use 192-bit AES. Maybe you're right.

> * We should consider a more-than-384-bit elliptic curve if and only if it=
=E2=80=99s
> not much more expensive than a 384-bit curve.
> * There=E2=80=99s not much point to ed-512-mers if it costs twice as much as
> ed-384-mers.

See your point about "a hedge against breakthroughs". We don't know if a
breakthrough would be made against ECC, and if it would =E2=80=93 whether it woul=
d
be hampered "enough" by more bits, and how many more bits would be needed t=
o
stay "safe".

So while a scalable quantum computer (probably) obliterates ECC, there coul=
d
be mathematical advances that are less drastic. I.e., there could still be
reasons for larger curves to stay around.

> * The unusual-sized curves Curve41417 and Ed448-Goldilocks should be
> considered if and only if they=E2=80=99re not much more expensive than the 384-=
bit
> alternatives.  This has been demonstrated for Goldilocks, which is 6% slo=
wer
> than ed-384-mers on Sandy Bridge.  I believe that it will also be true fo=
r
> Curve41417, but so far I=E2=80=99ve only heard numbers for Cortex A8 NEON, and =
none of
> the alternatives have optimized implementations on that platform.

Don't know.



--B_3489586090_11417194
Content-type: text/html;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
 14px; font-family: Calibri, sans-serif; "><span id=3D"OLK_SRC_BODY_SECTION"><=
blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4=
df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div style=3D"word-wrap: br=
eak-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">=
<div><div>To answer Uri&#8217;s question, yes, this attack requires a shared=
 known plaintext block across all the connections. &nbsp;This is most likely=
 to happen through the use of CTR mode with a deterministic nonce; or the MA=
C of the empty string; or explicit key confirmation.</div><div><br></div><di=
v>Also, the attack is not realistic for AES-128 in the near future, and we d=
on&#8217;t have to warn users about it. &nbsp;But it&#8217;s more realistic =
than a 128-bit key exhaustion.</div></div></div></div></blockquote></span><d=
iv><br></div><div>Good points! I concur.&nbsp;</div><div><br></div><span id=3D=
"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" s=
tyle=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div s=
tyle=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: a=
fter-white-space;"><div><div>But even in a single-target model, you can&#821=
7;t just compare the brute-force security levels of, say, AES-192 and NIST-P=
384. &nbsp;Brute force is not a realistic threat to either one. &nbsp;</div>=
</div></div></blockquote></span><div><br></div><div>Again, I concur. But sti=
ll, we need some ways to compare, e.g., NIST-P384 with NIST-P521. You cannot=
 say "beyond bit-length X they're just all the same".</div><div><br></div><s=
pan id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQ=
UOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"=
><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-b=
reak: after-white-space;"><div><div>Instead you have to consider the risk th=
at an attacker with a given budget
 can hack you. &nbsp;This risk would encompass things like:</div><div><br><=
/div><div>* Value of the keys. &nbsp;The long-term ECC keys are worth more.<=
/div></div></div></blockquote></span><div><br></div><div>Yes.</div><div><br>=
</div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTIO=
N_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0=
 0 0 5;"><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webki=
t-line-break: after-white-space;"><div><div>* Protocol tightness. &nbsp;Time=
/memory/data attacks are not necessarily limited to multiple-user attacks, a=
nd are likely to weaken AES more than ECC.</div></div></div></blockquote></s=
pan><div><br></div><div>Don't know. Maybe.</div><div><br></div><span id=3D"OLK=
_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=
=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div style=
=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after=
-white-space;"><div><div>* Chosen-plaintext are more likely to affect AES.</=
div></div></div></blockquote></span><div><br></div><div>Probably the opposit=
e. Easier to mount against AES, but AES is more immune against them.</div><d=
iv><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATT=
RIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; M=
ARGIN:0 0 0 5;"><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space;=
 -webkit-line-break: after-white-space;"><div><div>* Quantum computation. &n=
bsp;More bits of AES buys you more resistance, but more bits of ECC does not=
.</div></div></div></blockquote></span><div><br></div><div>Yes.</div><div><b=
r></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUT=
ION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN=
:0 0 0 5;"><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -web=
kit-line-break: after-white-space;"><div><div>* Mathematical breakthrough. &=
nbsp;Hard to quantify.</div></div></div></blockquote></span><div><br></div><=
div>Yes. :-)</div><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote=
 id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid=
; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div style=3D"word-wrap: break-word; -webk=
it-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div>* Sid=
e channels. &nbsp;More bits don&#8217;t buy you much more security.</div></d=
iv></div></blockquote></span><div><br></div><div>Yes. :-)</div><div><br></di=
v><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BL=
OCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0=
 5;"><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-li=
ne-break: after-white-space;"><div><div>My conclusions from this would be:</=
div></div><div><br></div><div>* Past 192 bits of security, brute force secur=
ity ratings are basically meaningless even with linear time/data tradeoffs. =
&nbsp;Stronger ciphers are mostly a hedge against breakthroughs.</div></div>=
</blockquote></span><div><br></div><div>OK, agree.</div><div><br></div><span=
 id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOT=
E" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><d=
iv style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-brea=
k: after-white-space;"><div>* We use 256-bit AES because it&#8217;s not much=
 more expensive than 192-bit AES.</div></div></blockquote></span><div><br></=
div><div>Actually I don't know why we don't use 192-bit AES. Maybe you're ri=
ght.</div><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC=
_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDIN=
G:0 0 0 5; MARGIN:0 0 0 5;"><div style=3D"word-wrap: break-word; -webkit-nbsp-=
mode: space; -webkit-line-break: after-white-space;"><div>* We should consid=
er a more-than-384-bit elliptic curve if and only if it&#8217;s not much mor=
e expensive than a 384-bit curve.</div><div>* There&#8217;s not much point t=
o ed-512-mers if it costs twice as much as ed-384-mers.</div></div></blockqu=
ote></span><div><br></div><div>See your point about "a hedge against breakth=
roughs". We don't know if a breakthrough would be made against ECC, and if i=
t would &#8211; whether it would be hampered "enough" by more bits, and how =
many more bits would be needed to stay "safe".</div><div><br></div><div>So w=
hile a scalable quantum computer (probably) obliterates ECC, there could be =
mathematical advances that are less drastic. I.e., there could still be reas=
ons for larger curves to stay around.</div><div><br></div><span id=3D"OLK_SRC_=
BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BOR=
DER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div style=3D"wor=
d-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-whit=
e-space;"><div>* The unusual-sized curves Curve41417 and Ed448-Goldilocks sh=
ould be considered if and only if they&#8217;re not much more expensive than=
 the 384-bit alternatives. &nbsp;This has been demonstrated for Goldilocks, =
which is 6% slower than ed-384-mers on Sandy Bridge.
 &nbsp;I believe that it will also be true for Curve41417, but so far I&#82=
17;ve only heard numbers for Cortex A8 NEON, and none of the alternatives ha=
ve optimized implementations on that platform.</div></div></blockquote></spa=
n><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"><div style=3D"word-wrap: brea=
k-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><d=
iv>Don't know.</div></div></span></body></html>

--B_3489586090_11417194--

--B_3489586090_11416388
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIIUOAYJKoZIhvcNAQcCoIIUKTCCFCUCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghIHMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yY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1s7mpGMDn7ttKI4BS5JUtaiT9kIwQfZLuV3VIN7m6vLV
8OXBIgvpvLT5XPovyX6+hPD4yN6wNngJSWEK7pFBTgfSu01xb/DC2g6RFGVL8o955T7fI5It
E3gqUwefNmRdckhwH6keIQSGh4Ja6elIIo8vx+q0csaX6BefKFpydT0WTSASD+WfNgMwLAV/
EiCHxlQ5aL/mQLXsG8zAUHhoFORUYv28BWNTFx2de2YRwAAr4/CD7k/lr9f/Qz5g31Q=

--B_3489586090_11416388--


From nobody Wed Jul 30 14:38:36 2014
Return-Path: <cloos@jhcloos.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 3425F1A038E for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:38:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level: 
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-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 RkjJPS1--mqv for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 14:38:32 -0700 (PDT)
Received: from ore.jhcloos.com (ore.jhcloos.com [IPv6:2604:2880::b24d:a297]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D6BC31A024C for <cfrg@irtf.org>; Wed, 30 Jul 2014 14:38:32 -0700 (PDT)
Received: by ore.jhcloos.com (Postfix, from userid 10) id 2502F1DF52; Wed, 30 Jul 2014 21:38:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore14; t=1406756312; bh=myob+vJmWPbjKwJV0zPxWO9iIzzrJoWfEMO5uYtQJ2E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=efkADZe8doS9U2kCxRXUyw1s3McUjkn2JXDNTdyMB2Wg8Kv0T8rR3fmGyJ7x/s3W4 sXVC51xDz3yCZN2igXyyIC/fDZ3FX9LEugw1HwutLs5A4Iv+1P0EcFyRyodvl5xSH/ 7dViNdr5O36Rt+xo39bFz1Tc7IpnVOCOf1/+fi3U=
Received: by carbon.jhcloos.org (Postfix, from userid 500) id 75F7A60021; Wed, 30 Jul 2014 21:36:00 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: "Salz\, Rich" <rsalz@akamai.com>
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE0B5@USMBX1.msg.corp.akamai.com> (Rich Salz's message of "Wed, 30 Jul 2014 14:28:06 -0400")
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE0B5@USMBX1.msg.corp.akamai.com>
User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC
Copyright: Copyright 2014 James Cloos
OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Wed, 30 Jul 2014 17:36:00 -0400
Message-ID: <m338diwmv3.fsf@carbon.jhcloos.org>
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain
X-Hashcash: 1:28:140730:rsalz@akamai.com::dy9lbg2phH4hhWQO:9h5qG
X-Hashcash: 1:28:140730:randy@psg.com::1unSSeA9M655ek+8:0002nL5m
X-Hashcash: 1:28:140730:turners@ieca.com::ErauyrYKSTIdzHZD:Fardx
X-Hashcash: 1:28:140730:"cfrg\@irtf.org"::sfPVy/+wDD2y7Ogi:AsgkQ
X-Hashcash: 1:28:140730:cfrg@irtf.org::T4tF58V5GK9uB6bI:0009GlM7
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/aw-zZv7H3F3qBMOpSwKUvQsWmCk
Cc: Sean Turner <TurnerS@ieca.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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, 30 Jul 2014 21:38:34 -0000

>>>>> "SR" == Salz, Rich <rsalz@akamai.com> writes:

SR> I think the DH function of 25519 should be separate from a signature
SR> function based on 25519 and, for now at least, we're not going to add
SR> Ed25519 signatures.

Why not?  They work well for ssh.

But even if ipsec a/o tls don't care, there still should be an rfc
specifying the algorithm.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


From nobody Wed Jul 30 15:38:03 2014
Return-Path: <nico@cryptonector.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 863111A05C0 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 15:38:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.044
X-Spam-Level: 
X-Spam-Status: No, score=-1.044 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] 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 YJxfgfrbtDt7 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 15:37:56 -0700 (PDT)
Received: from homiemail-a95.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 57ABF1A0264 for <cfrg@irtf.org>; Wed, 30 Jul 2014 15:37:56 -0700 (PDT)
Received: from homiemail-a95.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a95.g.dreamhost.com (Postfix) with ESMTP id 1F8911E076 for <cfrg@irtf.org>; Wed, 30 Jul 2014 15:37:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=5ajdnEtnc2rff12LX8go fVFSk0Q=; b=RM6WkN7FHowPburUPwofRg6iVzZnnz4bOwkaMzmGrw1L+pkO5yGN B8Cwzru+MCT8e+WqNGfZlL1vdh5OFCNpolnOonJjkOoDOtO0g95bvpsmVIS91M/U Y7m4IAbORm02VjfIq+DchLwT/cvacnUO288eye16M8viI52Lf4Lu0eM=
Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a95.g.dreamhost.com (Postfix) with ESMTPSA id C3A5E1E05D for <cfrg@irtf.org>; Wed, 30 Jul 2014 15:37:55 -0700 (PDT)
Received: by mail-wg0-f49.google.com with SMTP id k14so1927047wgh.32 for <cfrg@irtf.org>; Wed, 30 Jul 2014 15:37:54 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.180.108.13 with SMTP id hg13mr10513598wib.28.1406759874632;  Wed, 30 Jul 2014 15:37:54 -0700 (PDT)
Received: by 10.217.98.6 with HTTP; Wed, 30 Jul 2014 15:37:54 -0700 (PDT)
In-Reply-To: <53D8FBDB.4060601@htt-consult.com>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com>
Date: Wed, 30 Jul 2014 17:37:54 -0500
Message-ID: <CAK3OfOjxSsxc95i6UVn3oW_Kdz3R92OUpGSmdfO=yFXnTpGvZQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/utlwzotcs4ER2sK3PrvFlFGzdsY
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 22:38:01 -0000

On Wed, Jul 30, 2014 at 9:06 AM, Robert Moskowitz
<rgm-sec@htt-consult.com> wrote:
> On 07/30/2014 08:33 AM, D. J. Bernstein wrote:
>
> Dan,
>
> Please explain what typical device will use at least one new key every
> minute?

Er, well, smartphone apps might well poll/get pushed to that
frequently, altogether, with a new key per-poll/push.  Sure, the
protocol involved might not generate a new key per-event, but if the
protocol is TLS, then it will.

DJB's point is that we should permit "odd" match-ups like AES-256 and
Curve25519 _because_ AES-128 is weak in plausible scenarios.

I'm having a hard time objecting to that!

(BTW, that's a much more serious problem for Kerberos than for TLS w/
session resumption.)

Nico
--


From nobody Wed Jul 30 16:08:58 2014
Return-Path: <prvs=32887b111f=uri@ll.mit.edu>
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 268021A01E5 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 16:08:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, UNPARSEABLE_RELAY=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 PWUimOsG9ZXg for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 16:08:54 -0700 (PDT)
Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by ietfa.amsl.com (Postfix) with ESMTP id EF1FB1A00B8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 16:08:53 -0700 (PDT)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id s6UN86ER007756; Wed, 30 Jul 2014 19:08:40 -0400
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Nico Williams <nico@cryptonector.com>, Robert Moskowitz <rgm-sec@htt-consult.com>
Thread-Topic: [Cfrg] matching AES security
Thread-Index: AQHPq/wCacsPipZEQE6PjxUstHqztJu46fSAgACO8AD//8V+AA==
Date: Wed, 30 Jul 2014 23:08:34 +0000
Message-ID: <CFFEEC4B.182BF%uri@ll.mit.edu>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com> <CAK3OfOjxSsxc95i6UVn3oW_Kdz3R92OUpGSmdfO=yFXnTpGvZQ@mail.gmail.com>
In-Reply-To: <CAK3OfOjxSsxc95i6UVn3oW_Kdz3R92OUpGSmdfO=yFXnTpGvZQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.3.140616
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3489592110_11782786"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14,  0.0.0000 definitions=2014-07-30_07:2014-07-30,2014-07-30,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407300257
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ykAFVsPiZY6IALsds1O5wmS92lo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 23:08:56 -0000

--B_3489592110_11782786
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: 7bit

>>Please explain what typical device will use at least one new key every
>> minute?
>
>Er, well, smartphone apps might well poll/get pushed to that
>frequently, altogether, with a new key per-poll/push.  Sure, the
>protocol involved might not generate a new key per-event, but if the
>protocol is TLS, then it will.

Maybe... A good argument to avoid TLS. :-)

>DJB's point is that we should permit "odd" match-ups like AES-256 and
>Curve25519 _because_ AES-128 is weak in plausible scenarios.
                                          ^^^^^^^^^ :-)

There already are such "odd" match-ups, and I guess the trend is here to
stay.

But to do it because of attackers "getting _all_ of your 2^50 keys with
2^128 easy (sic!) computations"? (I guess you could convince about half of
the existing atoms in the Universe to do one computation for you, and
maybe store the result. But lookups would have to be extra! :).

>I'm having a hard time objecting to that!

:-)

--B_3489592110_11782786
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIIUOAYJKoZIhvcNAQcCoIIUKTCCFCUCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghIHMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEA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ywU1sD4R3CL
IoqFlPoFT8QUle3ljGl756O1bCp17ht5wTCJjI+pIoszLIy/3opxF6zAw1nwlaXvmxaiXWG+
dN/lzlLNLA2ICJAAz/LGZd1MzOJiRLQUAJAPjzbLII2NkwY2g1Zc1sFWM5qF7lZVzJzDZGoc
cFHSP9t1dHpRXZSZGK0EmyRZkiKArjf4uCOjT2PbE9Vyb/JlBsbsO9O5fmyTmw1KDZc=

--B_3489592110_11782786--


From nobody Wed Jul 30 16:47:27 2014
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 13BEA1A0657 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 16:47:26 -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 glEYI7kbEaiI for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 16:47:24 -0700 (PDT)
Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6DED01A03C4 for <cfrg@irtf.org>; Wed, 30 Jul 2014 16:47:24 -0700 (PDT)
Received: by mail-la0-f49.google.com with SMTP id hz20so1436159lab.8 for <cfrg@irtf.org>; Wed, 30 Jul 2014 16:47:22 -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=lvQyTlbnwVENi927TT3ORsgu42vv8Jv2dtqq3fQvEb4=; b=OQA30n3a56e33u4yUXej6M2WqTO6SqJdebkRQB6GnjcH6dF7cBRKEnSMr2IDvrsLlK Eh9E73cVi9n5Ed0jZaqPAKT/EBoG/K8JACTaxU5R1cUirU6m7bni/He9tLKsMewfmZm0 fYT2l6wyZthDKLzYeKCIk29OO1077m+mhyN3enpyoVfOqSphCEZ5H582drKwAFEz8ir0 46PiWc9QiQTNiCVu//pz1p4P3jfk0NLeTT+njs2rf8i3L547f4lAkcld46xSb+5yRIbH bZgIFGrist+z+eLPVB2v4NdWwLvX/V2Aop7pmul2KRZW8A3Rm5GeB2j3z/3hSksAK0Ns 2bcw==
MIME-Version: 1.0
X-Received: by 10.152.179.229 with SMTP id dj5mr5493784lac.97.1406764042633; Wed, 30 Jul 2014 16:47:22 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 30 Jul 2014 16:47:22 -0700 (PDT)
In-Reply-To: <CAK3OfOjxSsxc95i6UVn3oW_Kdz3R92OUpGSmdfO=yFXnTpGvZQ@mail.gmail.com>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com> <CAK3OfOjxSsxc95i6UVn3oW_Kdz3R92OUpGSmdfO=yFXnTpGvZQ@mail.gmail.com>
Date: Wed, 30 Jul 2014 19:47:22 -0400
X-Google-Sender-Auth: aWV2_BIBG7I779hyJaxaISSdtyY
Message-ID: <CAMm+Lwj9tfijR0n6Yw_tcr7hrs2ec48s+rVEKrEogyPvFPU9WA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/9WMM5zfT5NZ5xnsc6IzndgSgE8c
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] matching AES security
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, 30 Jul 2014 23:47:26 -0000

On Wed, Jul 30, 2014 at 6:37 PM, Nico Williams <nico@cryptonector.com> wrote:
> On Wed, Jul 30, 2014 at 9:06 AM, Robert Moskowitz
> <rgm-sec@htt-consult.com> wrote:
>> On 07/30/2014 08:33 AM, D. J. Bernstein wrote:
>>
>> Dan,
>>
>> Please explain what typical device will use at least one new key every
>> minute?
>
> Er, well, smartphone apps might well poll/get pushed to that
> frequently, altogether, with a new key per-poll/push.  Sure, the
> protocol involved might not generate a new key per-event, but if the
> protocol is TLS, then it will.
>
> DJB's point is that we should permit "odd" match-ups like AES-256 and
> Curve25519 _because_ AES-128 is weak in plausible scenarios.
>
> I'm having a hard time objecting to that!

I would accept it done right.

i.e. set up the keys with an initial 256 bit exchange and then use the
ephemeral 128 bit key as a mix-in to add PFS.

256 bit secrecy plus 128 bit forward secrecy would be good enough for
most applications.


From nobody Wed Jul 30 17:12:15 2014
Return-Path: <stephen.farrell@cs.tcd.ie>
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 D723C1A01BD for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 17:12:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 VGNT3DJgWupl for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 17:12:12 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id A493E1A016D for <cfrg@irtf.org>; Wed, 30 Jul 2014 17:12:12 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id C97CFBE0D; Thu, 31 Jul 2014 01:12:11 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m8xNRDBYxrRD; Thu, 31 Jul 2014 01:12:10 +0100 (IST)
Received: from [192.168.1.130] (unknown [5.175.75.49]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 191ABBE14; Thu, 31 Jul 2014 01:12:04 +0100 (IST)
Message-ID: <53D989CB.2030006@cs.tcd.ie>
Date: Thu, 31 Jul 2014 01:11:55 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: James Cloos <cloos@jhcloos.com>, "Salz, Rich" <rsalz@akamai.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE0B5@USMBX1.msg.corp.akamai.com> <m338diwmv3.fsf@carbon.jhcloos.org>
In-Reply-To: <m338diwmv3.fsf@carbon.jhcloos.org>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/52lYhliyJsDijlxWCKsoF41vgXA
Cc: Sean Turner <TurnerS@ieca.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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: Thu, 31 Jul 2014 00:12:14 -0000

On 30/07/14 22:36, James Cloos wrote:
> 
> But even if ipsec a/o tls don't care, there still should be an rfc
> specifying the algorithm.

+1

CFRG are being asked to propose such for use in TLS. In order to
allow CFRG the possibility to consider Ed25519 a draft that
describes that is needed.

S.


From nobody Wed Jul 30 18:39:04 2014
Return-Path: <bascule@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 4A9E01A016D for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 18:38:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 BfvEg0IJF7tD for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 18:38:57 -0700 (PDT)
Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [IPv6:2607:f8b0:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2FEB01A0076 for <cfrg@irtf.org>; Wed, 30 Jul 2014 18:38:57 -0700 (PDT)
Received: by mail-vc0-f179.google.com with SMTP id hq11so3235490vcb.10 for <cfrg@irtf.org>; Wed, 30 Jul 2014 18:38:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VusBOw+KBHNB+e4f6i4Gjay1LkpwPe6MnvYiaXd+Mfg=; b=DKE3+E9wAlwHEffWsOp2FhGMP/mukG6vSralC8vwcfILAQMypWdgFOgUuEt0Cd8cbz E8Smi2/iXKnVcZvq5gTBfb/BSJaz+k+67jfx3TmHNNSs48taWJvq2Hqo1dHcDAdtLKc/ suOPr4oRq4YwT2563VM+mxdPP2sgWVT6BNzWgGuUgc3sCsJl/Rxlnm62d6zG0UW4WgIZ 9GbGGuIBEQ6/di9hugUFxJOx1qojuyGWM87Dcd0RjgGxhc5ofbN15nHUr53nBNQuEM0a hvhHafkepn9KNTMl6TBPpyD/GAemKG+jBtryZJ2DyfcehjatYpiFi2Oz6DIk1cR+zhBe 4TNA==
X-Received: by 10.52.27.80 with SMTP id r16mr5271845vdg.91.1406770736168; Wed, 30 Jul 2014 18:38:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.58.160.10 with HTTP; Wed, 30 Jul 2014 18:38:36 -0700 (PDT)
In-Reply-To: <20140729205846.6639765.71649.17355@certicom.com>
References: <20140729205846.6639765.71649.17355@certicom.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 30 Jul 2014 18:38:36 -0700
Message-ID: <CAHOTMVJ4AirY+tRnVfwt1umgx=Q2xNwVTks6OoVNaV0gkKihOg@mail.gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: multipart/alternative; boundary=20cf307cfd0c0286b504ff73565e
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/LnIZa3H69lwDLGgByyhSJpWJvWA
Cc: IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Thu, 31 Jul 2014 01:38:59 -0000

--20cf307cfd0c0286b504ff73565e
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 29, 2014 at 1:58 PM, Dan Brown <dbrown@certicom.com> wrote:

> =E2=80=8EIn ECDSA or Schnorr, if the ephemeral private key k depends on t=
he
> message bring signed, precomputation of kG, an efficiency advantage
> (reduced latency?), and possibly effective side channel countermeasure
> (harder to time precomputation), seems precluded.
>

Okay, so the argument is: efficiency. The counterargument is: private key
exposure, loss of all security, abandon all hope ye who enter here, etc.

 Does this downside sound right?


>From a technical perspective, yes. From an objective perspective: it is
extremely dangerous and has lead to multiple key compromises *in practice*,
including the PS3 master key.

We can blame the cryptographic user for these mistakes, or we can blame the
standard for placing dubious objectives like efficiency ahead of security.

Relevant: http://cr.yp.to/talks/2012.08.08/slides.pdf

--=20
Tony Arcieri

--20cf307cfd0c0286b504ff73565e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Jul 29, 2014 at 1:58 PM, Dan Brown <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:dbrown@certicom.com" target=3D"_blank">dbrown@certicom.com</a>&gt;</spa=
n> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">  <div><div>=E2=80=8EIn ECDSA or Schnorr, if the ephemeral=
 private key k depends on the message bring signed, precomputation of kG, a=
n efficiency advantage (reduced latency?), and possibly effective=C2=A0<spa=
n style=3D"font-family:Calibri,&#39;Slate Pro&#39;,sans-serif">side channel=
 countermeasure (harder to time precomputation), seems precluded.</span></d=
iv>

</div></blockquote><div><br></div><div>Okay, so the argument is: efficiency=
. The counterargument is: private key exposure, loss of all security, aband=
on all hope ye who enter here, etc.</div><div><br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<span style=3D"font-family:Calibri,&#39;Slate Pro&#39;,sans-serif;font-size=
:13px">=C2=A0Does this downside sound right?</span></blockquote><div><br></=
div><div>From a technical perspective, yes. From an objective perspective: =
it is extremely dangerous and has lead to multiple key compromises *in prac=
tice*, including the PS3 master key.</div>

<div><br></div><div>We can blame the cryptographic user for these mistakes,=
 or we can blame the standard for placing dubious objectives like efficienc=
y ahead of security.</div><div><br></div><div>Relevant:=C2=A0<a href=3D"htt=
p://cr.yp.to/talks/2012.08.08/slides.pdf">http://cr.yp.to/talks/2012.08.08/=
slides.pdf</a></div>

<div><br></div></div>-- <br>Tony Arcieri<br>
</div></div>

--20cf307cfd0c0286b504ff73565e--


From nobody Wed Jul 30 19:41:31 2014
Return-Path: <watsonbladd@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 AFE801A0451 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 19:41:28 -0700 (PDT)
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 H3TK2-gBSlRm for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 19:41:26 -0700 (PDT)
Received: from mail-yh0-x22f.google.com (mail-yh0-x22f.google.com [IPv6:2607:f8b0:4002:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D87B1A03BD for <cfrg@irtf.org>; Wed, 30 Jul 2014 19:41:26 -0700 (PDT)
Received: by mail-yh0-f47.google.com with SMTP id f10so1273517yha.34 for <cfrg@irtf.org>; Wed, 30 Jul 2014 19:41:26 -0700 (PDT)
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=SWb1BtAfJRdeyuL1tfvzHavh1eSbYNd0g0Ps9iVZkHk=; b=Pki86JfzTRnkgB8nCbT8sVETtzywh3tETvCh6X5Q1DPvPpQAMlBZg6tww7ag/KHJaP 3K9mPjvPBPpplSPNufzold4e4tLYRYzJlgH0HT1vwBP3v33vUEbfvQ8PYIypOluqkylV RL1rOpBJfXLaLxG4kLDXuTJ0s4Btt5jZZVB05JNaXdTJID5G260+WXfJ6zcQ9R4n1smj 1tpCWo5QeXVPOmedyyJiYGW0l5gzTTga61yt16uXM+owO+o1j46Juw+eqMEF8xewfYDC umr5bS4JpNTUIyM+sXVTheNMUStvBMDwtnWNkAMpkJhKpbLgafeTW52jOxyeEz6UAyi6 Z94A==
MIME-Version: 1.0
X-Received: by 10.236.85.208 with SMTP id u56mr1707469yhe.48.1406774485956; Wed, 30 Jul 2014 19:41:25 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Wed, 30 Jul 2014 19:41:25 -0700 (PDT)
In-Reply-To: <53D989CB.2030006@cs.tcd.ie>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE0B5@USMBX1.msg.corp.akamai.com> <m338diwmv3.fsf@carbon.jhcloos.org> <53D989CB.2030006@cs.tcd.ie>
Date: Wed, 30 Jul 2014 19:41:25 -0700
Message-ID: <CACsn0c=3TLM+Qj-HgCEgGgw7R5xSXA7RO41_zsFCsvz0RSqYmw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Peh5YoOQKb6V28sVmPCNRdSUhoo
Cc: Sean Turner <TurnerS@ieca.com>, "cfrg@irtf.org" <cfrg@irtf.org>, James Cloos <cloos@jhcloos.com>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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: Thu, 31 Jul 2014 02:41:28 -0000

On Jul 30, 2014 5:12 PM, "Stephen Farrell" <stephen.farrell@cs.tcd.ie> wrote:
>
>
>
> On 30/07/14 22:36, James Cloos wrote:
> >
> > But even if ipsec a/o tls don't care, there still should be an rfc
> > specifying the algorithm.
>
> +1
>
> CFRG are being asked to propose such for use in TLS. In order to
> allow CFRG the possibility to consider Ed25519 a draft that
> describes that is needed.

There already is a paper describing the algorithm. I'm happy to spend
time writing an ID describing it, but I think we all know what
the situation with the alternatives is. (There still is no draft
describing the Microsoft alternatives). Furthermore, the chair of the
CFRG said
the issue of which signature algorithm to recommend was not being
taken up: the question of point formats for use with ECDSA-like things
would be. (I actually believe there are questions DJB identified that
need addressing: ECDSA assumes Weierstrass x, and there is good reason
to prefer Schnorr)

Furthermore, we've in this draft assumed Montgomery points,
x-coordinate only. Combining it with a draft describing a signature
scheme with an isomorphic curve doesn't gain much over splitting them.

Sincerely,
Watson Ladd
>
> S.
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jul 30 20:30:17 2014
Return-Path: <watsonbladd@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 55CC51A031C for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 20:30:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 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, J_CHICKENPOX_22=0.6, 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 KwihwCnwzSV8 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 20:30:15 -0700 (PDT)
Received: from mail-yh0-x236.google.com (mail-yh0-x236.google.com [IPv6:2607:f8b0:4002:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E1A7C1A008E for <cfrg@irtf.org>; Wed, 30 Jul 2014 20:30:14 -0700 (PDT)
Received: by mail-yh0-f54.google.com with SMTP id v1so1318252yhn.27 for <cfrg@irtf.org>; Wed, 30 Jul 2014 20:30:14 -0700 (PDT)
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=GMUpYOU6qyT6uhaUa1BOnKJfLtDBrIV6jtcxzkhoQA8=; b=Uhk4pxWa2BtFz7DdpZiqVd7Pf6pqznKwHlkNX4DHjm2vHePTd/C5iMSMTq1zr/5W54 S+/4iaR9+RY+TmiVfUfL571kJSGVhcNE08/Ry+y1pII3QgeCtEsoRGkqlZ66xApbvjx8 qN9K3kefD9SxAOswV4Z9YlssWS9r26IjT4ENHLbHf4Lo1LztT/FmOAtyqaBHjALr1rfZ Q012ZatBN7y/rzjkLzRuh6K68iNvy3/L4ED2mW8hQ7mMotc3XEtEqoIUJEdyY8SDAsiZ RJFJTJuR3kPKrDZw2bEWnK0hY+bGpfD9H49f9TQw+qrD0clJxwjmPc3bCWnQ4WnKRXXw Cgvw==
MIME-Version: 1.0
X-Received: by 10.236.148.209 with SMTP id v57mr1962704yhj.140.1406777414129;  Wed, 30 Jul 2014 20:30:14 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Wed, 30 Jul 2014 20:30:14 -0700 (PDT)
In-Reply-To: <CFFEEC4B.182BF%uri@ll.mit.edu>
References: <20140730123336.29011.qmail@cr.yp.to> <53D8FBDB.4060601@htt-consult.com> <CAK3OfOjxSsxc95i6UVn3oW_Kdz3R92OUpGSmdfO=yFXnTpGvZQ@mail.gmail.com> <CFFEEC4B.182BF%uri@ll.mit.edu>
Date: Wed, 30 Jul 2014 20:30:14 -0700
Message-ID: <CACsn0cn5MK25-y8hj_Cag1XdFgE5A2i4U6x6t6LsBiDGSj6UVA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/aI4QMhHiCYFSjrzw1Sq46Ykc0e0
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Robert Moskowitz <rgm-sec@htt-consult.com>
Subject: Re: [Cfrg] matching AES security
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: Thu, 31 Jul 2014 03:30:16 -0000

On Wed, Jul 30, 2014 at 4:08 PM, Blumenthal, Uri - 0558 - MITLL
<uri@ll.mit.edu> wrote:
>>>Please explain what typical device will use at least one new key every
>>> minute?
>>
>>Er, well, smartphone apps might well poll/get pushed to that
>>frequently, altogether, with a new key per-poll/push.  Sure, the
>>protocol involved might not generate a new key per-event, but if the
>>protocol is TLS, then it will.
>
> Maybe... A good argument to avoid TLS. :-)
>
>>DJB's point is that we should permit "odd" match-ups like AES-256 and
>>Curve25519 _because_ AES-128 is weak in plausible scenarios.
>                                           ^^^^^^^^^ :-)
>
> There already are such "odd" match-ups, and I guess the trend is here to
> stay.
>
> But to do it because of attackers "getting _all_ of your 2^50 keys with
> 2^128 easy (sic!) computations"? (I guess you could convince about half of
> the existing atoms in the Universe to do one computation for you, and
> maybe store the result. But lookups would have to be extra! :).

This is what rainbow tables are for. Let's suppose f:S->S, |S|=n. To
find preimages of k points p_1, ... p_k,
I do the following: pick s points q_1, .. q_s, store (q_i,f^r(q_i)) in
a table, and compute f^j(p_t) for each j and t,
checking if I get f^r(q_i) for some q_i. If I do, I calculate the
intermediate iterates of q_i, one of which is likely p_t.

The storage is s, while the number of points is sr, and I win with
probability about srjk/n, doing sr+jk work.
There is a higher-order collision term, but it's negligible.

This isn't new: rainbow tables were used to reverse password hashes in the 90's.

Sincerely,
Watson Ladd

>
>>I'm having a hard time objecting to that!
>
> :-)
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin


From nobody Wed Jul 30 20:54:50 2014
Return-Path: <dmjacobson@sbcglobal.net>
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 BD08E1A00AD for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 20:54:48 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001] 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 BVv8zWkYWal5 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 20:54:46 -0700 (PDT)
Received: from nm3-vm5.access.bullet.mail.gq1.yahoo.com (nm3-vm5.access.bullet.mail.gq1.yahoo.com [216.39.63.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D3BF41A0097 for <cfrg@irtf.org>; Wed, 30 Jul 2014 20:54:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1406778886; bh=1fjyNVVSnH2Y/T+yEZDKCeMSDb45W9gfVUQN3Mysc2s=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=PAvt1dYyrcdDXH+fYDAJgP2tjfKsUbHPqgIUnTC5FA6twCILqN2Dy9kW397CqBMxg6xV4LLp2EiLCJSKbt8mf5Uzi8xSMhqY48+bxfhM08ty5pDnxxvNwYxxOSDzXgx92+FqpuJQwWdWi+YPZb7AvWtLW/jjFuvatpbXVcBlSZGd0oNuOirVhvdoahhrIXwWpnerONgUQrG9tW4MPewLfY1c0yQqaOUM+qOYMAJ7RB+1oIJn+i6KvmKbBU1OICVDq4ncz+Szcc7VV2Jb++v9EEcL03oYHNJf3gm1wTqX7ap8G0zpQ/JagGH5/MdGMQotK/16ymueRfXeT1Hu67m8QQ==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=DmJYLsiN0NvAqqYhiN4w4dlkeO6n2xDymlw63+vqwLgG3QbYHW2QUG+Xp/nuxY9levQOxyPWMebMwBgsmfZAvaTAutxN4NyOf8gAIM6wqcbHRm9EYBFEBVyG4p64Kgh5XzqzvAdy5vLYPfhtodmLTKN6qpuGzITfGLJCSjaBhXsWXImnIkaKS5rHMTXMBU4aioeg8DGKglSh+uGHvkLu0g82Zi6XahpnoY1lQbuFkohGoiO9iulm7NNUZk7V7KJqB4a1BeT9ZT6eD/osoYotsxk4dAsIziiXfdMINSqeVFGTDdu/jM+0e4JMRwmtN6cd6Fj/sjjpiT/fZdxczcyzng==;
Received: from [216.39.60.169] by nm3.access.bullet.mail.gq1.yahoo.com with NNFMP; 31 Jul 2014 03:54:46 -0000
Received: from [67.195.22.116] by tm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 31 Jul 2014 03:54:46 -0000
Received: from [127.0.0.1] by smtp111.sbc.mail.gq1.yahoo.com with NNFMP; 31 Jul 2014 03:54:46 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1406778886; bh=1fjyNVVSnH2Y/T+yEZDKCeMSDb45W9gfVUQN3Mysc2s=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=r0p8mF/9oF8tHav5c/Q9zxFn1XNW4gdencf+kgemWDQPtNh2O3AaEvsDNtr6ZjRIQ/MCh7mM0n6l+G2f+qR2kyqbVrzMqcrlQazjo1Nt4umJW0ra94gpr6s+HNw2OIiNLjux82Uxd/d+6K2/h2AxX5GvVZR3WkoQjJ3so92kpXE=
X-Yahoo-Newman-Id: 383924.68383.bm@smtp111.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: 1qVGIfcVM1laRljrasGGCPW8KAHgdrnl8ig5nirOb00txpB y7LJroyrBkgeI5zSnmWXqaS48Y2cWaXiF80VXGFPO0Zh3JugLQ5xFVRIPo7Y 6odPfYxcdtybfcvC7JVJz0ZhDudoN0fZe_fDQu7XsONwBQoxVP2PsvA_I1kT pOptu7pJBO6fRQf3Wm5.cW0mX1QqPzLERAHcncy7uiVxX.KYoQ5qNXNYUkvQ _yWUoSlMPTM_tN2S2crq3Y9.EOdjBvvsccDk6eKSCzx7rbDeeQWZtT.i571W qIOAJ2JMaxqasgeYdAtakrs1g29ionRQE4sGDBaT41aGWFn1I4v7mnCElqyX 2xFnA7e_0RUUaL8NPpGa3x7ayTo9FnbqGZRR5.IFx0BLJ3zKTZZcWPRlGgl3 ZFEiMIe.6j290giGHLj1r7taeQFG8L4XgUkjzdKEEh01BjccyirNygrE9eBw 5Z6byym44sifTpRsq97lbu6VjNOrGpLbiszoxdsi543d3tUQOar5EB8mqjKH _KBNF8Rc9vgCYEak0EbTm1XjDR8zj2OF93BVPtneJr2XXN5blfS0fK_gQfHK KmOXROLywzJQayLmj.jqY8aK7gQa_xuGkS5NNh1YjFBrSu_M8
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53D9BE05.6080806@sbcglobal.net>
Date: Wed, 30 Jul 2014 20:54:45 -0700
From: David Jacobson <dmjacobson@sbcglobal.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "Salz, Rich" <rsalz@akamai.com>, Alyssa Rowan <akr@akr.io>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <53D7E119.7040209@akr.io> <2A0EFB9C05D0164E98F19BB0AF3708C718599EDC92@USMBX1.msg.corp.akamai.com>
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C718599EDC92@USMBX1.msg.corp.akamai.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YRvdnfO9nAKwUSBjEI3Xvl2PZMQ
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Thu, 31 Jul 2014 03:54:48 -0000

On 7/29/14 11:43 AM, Salz, Rich wrote:
>> I feel a HSM/smartcard/token design actually worthy of
>> third-party trust would need:
> Check out http://cryptech.is
>
> --
> Principal Security Engineer
> Akamai Technologies, Cambridge MA
> IM: rsalz@jabber.me Twitter: RichSalz
>
In a past life, I worked on the design of an HSM that was used by lots 
of banks.  (FIPS 140-2 level 3)   It was basically just an ARM processor 
and a crypto accelerator in a module coated with hard opaque epoxy.  
There is no reason that the firmware couldn't be modified to do Curve 
25519.  Of course, it would be slower, since it wouldn't get any benefit 
from the crypto accelerator, and you couldn't put it in FIPS mode with 
that curve enabled (not a "FIPS approved algorithm").

     --David Jacobson




From nobody Wed Jul 30 21:50:48 2014
Return-Path: <dmjacobson@sbcglobal.net>
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 ACAC71A01E0 for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 21:50:46 -0700 (PDT)
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, RCVD_IN_DNSWL_NONE=-0.0001] 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 w1tYm1IgBg8Z for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 21:50:44 -0700 (PDT)
Received: from nm19-vm3.access.bullet.mail.gq1.yahoo.com (nm19-vm3.access.bullet.mail.gq1.yahoo.com [216.39.63.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C6E861A0197 for <cfrg@irtf.org>; Wed, 30 Jul 2014 21:50:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1406782244; bh=Z7GOICK3sAWliyTb7jl8xBgDR32uAa6fAE5YHGTlTZw=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IscHBfmnvQoQE2Q3GVYx3ha5q5cbZJkNoFwDUADzRMpAozDqmsz/kpUvjsIC/LTINsoNsV1o3/RCMuVlU9sbdQ/j6LpR3ogKm+HYDEhu2U6Fy5WB3rmaJrxARKyxOOp1hGvh8w8iDbWV7UV3PA9/7oWNX0ECLxEA1DBXLm+rx+vnI9n3VZwE+5zc76axpDxiz8jWpQIwjHFqR9dME+bk2sg+ktPfP/+W/koYai3QhSGx+SXuqK2tkgNddudxWjU8E5D5Af7ivoSRk+k8DH0GGlqoCc1bBF+20a+afjeIf00ic1egYib2+ef7nk9JCBWEGjdqmVxbwzRfX7QQ+9UfdA==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=heQfJNSfxsWZS99qr7I0fSH5d3geu+0vFtPogqR8Hrj1eYs1wPHIEnM+4CBu0VZXFojdwSugHD/CkRgIwYO63msgJ02/RlVuIlszdOEoO7rs8WV/SGPWlNjG7sLKmZCmqqNIfXFRQhPmIhmLqimKEEuJXd0oC6SOF2xcBuMiMbDGPgQqQNj1mO4mxVEw79yepug5G6DDqDNXCk2O3vpcSX65CV6+6YxSQrtIkwEEtuTBapONRWP7Y6/y45K/lOGR0Agq8g/Z8JM/rHgaM5dDeY7QFUTg9jaHo4jlZBCzObZ2ntAaJWhOxeHbbYnRCPXR22MPq5yvzsxUO0Jlp6pgfQ==;
Received: from [216.39.60.170] by nm19.access.bullet.mail.gq1.yahoo.com with NNFMP; 31 Jul 2014 04:50:44 -0000
Received: from [67.195.23.147] by tm6.access.bullet.mail.gq1.yahoo.com with NNFMP; 31 Jul 2014 04:50:44 -0000
Received: from [127.0.0.1] by smtp119.sbc.mail.gq1.yahoo.com with NNFMP; 31 Jul 2014 04:50:44 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1406782244; bh=Z7GOICK3sAWliyTb7jl8xBgDR32uAa6fAE5YHGTlTZw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=h74JjAS+IsnauB7WzQs2g4Trirhl6DhLIO9s6cSMhimJqz6auPekoYSrSQfcGxXJ5jdEU9goRtk8fbTzVnJKCFj7rXQ+iDjsK0xxfjxTP9l5YYlotdtMSi+HtH5+6FuzEoWRMkwEfUYhoUsl+sgnJEPvIzbuyuejdVwBKKccu40=
X-Yahoo-Newman-Id: 151651.20976.bm@smtp119.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: mI_7E94VM1kRF8FIpxB634Tkemyx6XTBF1BjKgmbnX3mPjm 7Ya8RxVSrUkW_W.5hIG9TKpCEpU68dvBtf_4DwMsZe35gdXhdQDEFN0kyPdK 0kkpXXjFY9wrG.28Dh8Rp_MVXv0ZEHRaUjoBTuHJTiqOsSfHEvTNetdHjJKt UWbWIFbSfsgTfPNwC1NxxWGoB7EvtNfywwEUKxVUZOTOX3IAk2smUQ_QkRFa 6TSAzuo4dumc_4VDzvlI2M983zJh4hE0eeYtzsQzNVTnRyF.NB0MBiyhLnDi 8rp6bkZGroWV1Yf9z6nWH9_9_QcwPYsT0JCdLtF_RTtaSgasDCa1lDy70XXf NKrAI2mvPs3YSQa7tODsy4b_DdvkgJjlfdaqvs7LbgHQpKnQ6PsRQFLSGCRQ 8nraBm7A6g4MgjNmHgUspfnEGXYgr93scX7yaNb1bTJBciDSMPUSYZpEhLWb LA19eS2J2W2GCiN3TkSyKI.dSuzeFAf0hyxJsvB7Zwoq_MBW5RYxW4Xa4rfU QwtpTowFuoSYTAjeupQIpw8RrMaoebbsJhfCXe5JgmpFwrcj._RmU9w4j.GB RUvoEPF1rnNkkGe2UCx9hyWF.JP120iCy6ya6TgDE9v474wbAM98-
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53D9CB23.8080807@sbcglobal.net>
Date: Wed, 30 Jul 2014 21:50:43 -0700
From: David Jacobson <dmjacobson@sbcglobal.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <53D7E119.7040209@akr.io> <2A0EFB9C05D0164E98F19BB0AF3708C718599EDC92@USMBX1.msg.corp.akamai.com> <53D9BE05.6080806@sbcglobal.net>
In-Reply-To: <53D9BE05.6080806@sbcglobal.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/wKg7yaqmTTYgiILWUrsb9NxJbYg
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Thu, 31 Jul 2014 04:50:46 -0000

On 7/30/14 8:54 PM, David Jacobson wrote:
> On 7/29/14 11:43 AM, Salz, Rich wrote:
>>> I feel a HSM/smartcard/token design actually worthy of
>>> third-party trust would need:
>> Check out http://cryptech.is
>>
>> -- 
>> Principal Security Engineer
>> Akamai Technologies, Cambridge MA
>> IM: rsalz@jabber.me Twitter: RichSalz
>>
> In a past life, I worked on the design of an HSM that was used by lots 
> of banks.  (FIPS 140-2 level 3)   It was basically just an ARM 
> processor and a crypto accelerator in a module coated with hard opaque 
> epoxy.  There is no reason that the firmware couldn't be modified to 
> do Curve 25519.  Of course, it would be slower, since it wouldn't get 
> any benefit from the crypto accelerator, and you couldn't put it in 
> FIPS mode with that curve enabled (not a "FIPS approved algorithm").
>
>     --David Jacobson
Oops.  I replied to the wrong message.  There was a talk of how a new 
curve would require new HSMs, and the manufacturers should get working 
on it, etc.  My point was that for the manufacturer who has all the code 
for the HSM, adding a new curve is is much simpler than designing an HSM 
from scratch.   Rich's remark was about the need for an open HSM, so we 
could trust it.  An entirely different subject.

    --David


From nobody Thu Jul 31 00:10:03 2014
Return-Path: <randy@psg.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 4D1DD1A0377 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 00:10:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 VbRCCCwNjB4h for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 00:09:58 -0700 (PDT)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3B3EB1A0375 for <cfrg@irtf.org>; Thu, 31 Jul 2014 00:09:58 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=ryuu.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.76) (envelope-from <randy@psg.com>) id 1XCkUs-0000jp-S8; Thu, 31 Jul 2014 07:09:55 +0000
Date: Thu, 31 Jul 2014 09:09:53 +0200
Message-ID: <m2vbqevwam.wl%randy@psg.com>
From: Randy Bush <randy@psg.com>
To: James Cloos <cloos@jhcloos.com>
In-Reply-To: <m338diwmv3.fsf@carbon.jhcloos.org>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <m2bns6yb5u.wl%randy@psg.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE0B5@USMBX1.msg.corp.akamai.com> <m338diwmv3.fsf@carbon.jhcloos.org>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/A_KLW-hmV0xcKpoiPl7X5T39CcA
Cc: cfrg <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
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: Thu, 31 Jul 2014 07:10:01 -0000

> But even if ipsec a/o tls don't care, there still should be an rfc
> specifying the algorithm.

indeed.  i am trying to understand objecting to this and am not being
very successful.

i realize that a/o is so widely deployed, it will be impossible to
change.  </sarcasm>

randy


From nobody Thu Jul 31 00:40:26 2014
Return-Path: <mike@shiftleft.org>
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 4AE211A038A for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 00:40:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.755
X-Spam-Level: **
X-Spam-Status: No, score=2.755 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, J_CHICKENPOX_12=0.6, J_CHICKENPOX_42=0.6, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-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 4yPAOhNEZCGl for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 00:40:24 -0700 (PDT)
Received: from aspartame.shiftleft.org (199-116-74-168-v301.PUBLIC.monkeybrains.net [199.116.74.168]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 11D871A0382 for <cfrg@irtf.org>; Thu, 31 Jul 2014 00:40:24 -0700 (PDT)
Received: from [192.168.1.124] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 30A583AA12; Thu, 31 Jul 2014 00:40:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1406792405; bh=FOMkEPdXWoGL7lsSgUxQbQjeAP5hpyCj4q5rvtEvYPU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=EiHJsq1p1eNeurqPW8qnsH3rDD3QYgeoYPnB7sd3ph7+XO6A5Xw+TQ88QR+ASuWJc pa81XtYpmGH6MWwIOXHgjj95igUHpHS5+71MUUoKpw1tEpRszhfTqbc5DHCmQJzEFf D6W4vMfKcOJvOsX/sZVnutsHN6mE43WQetCfm3dw=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CAHOTMVJ4AirY+tRnVfwt1umgx=Q2xNwVTks6OoVNaV0gkKihOg@mail.gmail.com>
Date: Thu, 31 Jul 2014 00:40:18 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <947D45A1-AF36-470B-8D50-7600FEF7FB30@shiftleft.org>
References: <20140729205846.6639765.71649.17355@certicom.com> <CAHOTMVJ4AirY+tRnVfwt1umgx=Q2xNwVTks6OoVNaV0gkKihOg@mail.gmail.com>
To: Tony Arcieri <bascule@gmail.com>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/35T-4sY-QRhpZFNj9kXx9UQr4bE
Cc: Dan Brown <dbrown@certicom.com>, IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Thu, 31 Jul 2014 07:40:25 -0000

> On Jul 30, 2014, at 6:38 PM, Tony Arcieri <bascule@gmail.com> wrote:
> =46rom a technical perspective, yes. =46rom an objective perspective: =
it is extremely dangerous and has lead to multiple key compromises *in =
practice*, including the PS3 master key.

Indeed.  But collision attacks have also broken signature schemes *in =
practice*, for example the Flame malware.

You can have any two of determinism, one-pass signatures, and protection =
from collision attacks.  So far as I know, you can=E2=80=99t have all =
three, at least not with a Schnorr scheme.  Please correct me if I=E2=80=99=
m wrong.

The collision protection comes from the order things are passed to the =
hash function during signing/verification and deterministic nonce =
generation (i.e. H(pk || nonce || message) resp HMAC(sk, message)), so =
if we are going to have it in a given scheme, it will be a mandatory =
part of the spec.

Determinism isn=E2=80=99t part of the verification algorithm or the =
message format.  It just affects nonce generation.  So it could be a =
SHOULD, or it could be a MUST if the committee feels strongly that it =
should be required.

If it=E2=80=99s a MUST, it follows that implementors MUST NOT provide a =
streaming API for signatures.  This means that they can=E2=80=99t sign =
messages that come in on a pipe without unbounded buffering, and they =
can=E2=80=99t sign messages that don=E2=80=99t fit in the memory of your =
(possibly constrained) device.

Should a signature scheme declare that it MUST NOT be implemented with a =
streaming API, even though it=E2=80=99s possible to do that securely?  =
Or should we drop protection from collision attacks?  How much =
confidence do you have in SHA3?  Or am I missing a way to get all of =
these?

=E2=80=94 Mike=


From nobody Thu Jul 31 01:38:32 2014
Return-Path: <randy@psg.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 857761A043D for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 01:38:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 bkni4nLF-fEk for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 01:38:23 -0700 (PDT)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 563721A038A for <cfrg@irtf.org>; Thu, 31 Jul 2014 01:38:22 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=ryuu.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.76) (envelope-from <randy@psg.com>) id 1XClsQ-0000t5-Cu; Thu, 31 Jul 2014 08:38:19 +0000
Date: Thu, 31 Jul 2014 10:38:17 +0200
Message-ID: <m2mwbpx6rq.wl%randy@psg.com>
From: Randy Bush <randy@psg.com>
To: David Jacobson <dmjacobson@sbcglobal.net>
In-Reply-To: <53D9BE05.6080806@sbcglobal.net>
References: <CAMm+LwhYWfP30=rdYQoVZ=Ns8dCn2HdjKLLPCP7Yw540eifvOg@mail.gmail.com> <53D7E119.7040209@akr.io> <2A0EFB9C05D0164E98F19BB0AF3708C718599EDC92@USMBX1.msg.corp.akamai.com> <53D9BE05.6080806@sbcglobal.net>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/C_CzTl3saQB_17fdt5mLMIxOyg4
Cc: IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] FIPS or equivalent approvals
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: Thu, 31 Jul 2014 08:38:26 -0000

>> Check out http://cryptech.is
> In a past life, I worked on the design of an HSM that was used by lots
> of banks.  (FIPS 140-2 level 3) It was basically just an ARM processor
> and a crypto accelerator in a module coated with hard opaque epoxy.
> There is no reason that the firmware couldn't be modified to do Curve
> 25519.  Of course, it would be slower, since it wouldn't get any
> benefit from the crypto accelerator, and you couldn't put it in FIPS
> mode with that curve enabled (not a "FIPS approved algorithm").

the first iteration of the cryptech project has an fpga base, and dr
lange has offered 25519 verilog.  as the design is attempting
[de-]composability, one could leave 25519 out if going for fips
approval.  efficient, constant time/power, so what's not to like?

randy<


From nobody Thu Jul 31 02:37:45 2014
Return-Path: <Johannes.Merkle@secunet.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 1061B1A063F for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 02:37:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-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 fIb8FG0rVImy for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 02:37:40 -0700 (PDT)
Received: from a.mx.secunet.com (a.mx.secunet.com [195.81.216.161]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34E791A059F for <cfrg@irtf.org>; Thu, 31 Jul 2014 02:37:40 -0700 (PDT)
Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 0B0D21A0091; Thu, 31 Jul 2014 11:37:35 +0200 (CEST)
X-Virus-Scanned: by secunet
Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M_Qjrkk02Yfr; Thu, 31 Jul 2014 11:37:30 +0200 (CEST)
Received: from mail-essen-01.secunet.de (unknown [10.53.40.204]) by a.mx.secunet.com (Postfix) with ESMTP id 2BD5F1A0066; Thu, 31 Jul 2014 11:37:30 +0200 (CEST)
Received: from [10.208.1.76] (10.208.1.76) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 31 Jul 2014 11:37:32 +0200
Message-ID: <53DA0E5B.6020006@secunet.com>
Date: Thu, 31 Jul 2014 11:37:31 +0200
From: Johannes Merkle <johannes.merkle@secunet.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>, "D. J. Bernstein" <djb@cr.yp.to>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <20140730123336.29011.qmail@cr.yp.to> <CFFE99A0.18226%uri@ll.mit.edu>
In-Reply-To: <CFFE99A0.18226%uri@ll.mit.edu>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.208.1.76]
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6c9gt_8h976ml7JRei33q2yqZAI
Subject: Re: [Cfrg] matching AES security
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: Thu, 31 Jul 2014 09:37:43 -0000

Blumenthal, Uri - 0558 - MITLL wrote on 30.07.2014 19:49:
> On 7/30/14 8:33 , "D. J. Bernstein" <djb@cr.yp.to> wrote:
>> There are standard attacks that break _all_ of 2^50 AES-128 keys using a
>> _total_ of 2^128 easy computations. Even worse, there are standard
>> attacks that find _at least one_ of the keys using just 2^78 easy
>> computations, a feasible computation today.
> 
> Could you please point me at a decent reference/description of this attack?
> 

The attack is very simple:
- Gather a list of 2^N cipher texts resulting from the _same_ plain text encrypted under 2^N random keys.
- For 2^(128-N) randomly chosen (different) keys, encrypt the known plain text and check if the resulting cipher text
matches one of the gathered cipher texts

Assuming the cipher to be a random permutation, a collision occurs with probability 1 - (1-2^(-N))^N which approximates
1-1/e. If you have sorted the list of gathered cipher texts, the attack takes 2^(128-N)*log(N) steps (and 2^N space).


-- 
Johannes


From nobody Thu Jul 31 06:43:26 2014
Return-Path: <rgm-sec@htt-consult.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 DEE531B2810 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 06:43:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level: 
X-Spam-Status: No, score=-0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, RP_MATCHES_RCVD=-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 AKjAaMUSH04g for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 06:43:23 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id EEDA71B280B for <cfrg@irtf.org>; Thu, 31 Jul 2014 06:43:22 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id D4DF262AD0; Thu, 31 Jul 2014 13:43:21 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jCw6nRM-qnwv; Thu, 31 Jul 2014 09:43:11 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id 476E662A6E; Thu, 31 Jul 2014 09:43:11 -0400 (EDT)
Message-ID: <53DA47EE.5060108@htt-consult.com>
Date: Thu, 31 Jul 2014 09:43:10 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>,  Hannes Tschofenig <hannes.tschofenig@gmx.net>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com>	<53D66506.4080809@htt-consult.com>	<C0C42541-06A2-465B-82CF-00DA63BE1398@shiftleft.org>	<53D68F33.3010802@gmx.net> <CAMm+LwhCm1RgKkMYJpHNAk3_iLvmAtHgc1exR=paaFGC_6Xhwg@mail.gmail.com>
In-Reply-To: <CAMm+LwhCm1RgKkMYJpHNAk3_iLvmAtHgc1exR=paaFGC_6Xhwg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Xx_od_JYSpQnhcyNyjMGsjlZzhk
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve selection revisited
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: Thu, 31 Jul 2014 13:43:25 -0000

On 07/30/2014 03:47 PM, Phillip Hallam-Baker wrote:
> On Mon, Jul 28, 2014 at 1:58 PM, Hannes Tschofenig
> <hannes.tschofenig@gmx.net> wrote:
>> Hi Mike, Hi Bob,
>>
>> Saying that you need hardware acceleration because of performance, RAM
>> and ROM size supported by some boards running 8-bit microcontrollers is
>> a bit lying to ourselves. The hardware acceleration might in fact
>> involve a chip with 32-bit.
> Sorry, no, that does not help at all. The only way to reduce the
> number of 8 bit processors would be to burn down the fabs.

And Bastille Day has come and gone.  We will have to wait another year  :)



From nobody Thu Jul 31 06:51:30 2014
Return-Path: <rgm-sec@htt-consult.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 3CAD91B2816 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 06:51:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 raURrqEmuvsH for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 06:51:15 -0700 (PDT)
Received: from klovia.htt-consult.com (klovia.htt-consult.com [IPv6:2607:f4b8:3:0:218:71ff:fe83:66b9]) by ietfa.amsl.com (Postfix) with ESMTP id A570A1A0020 for <cfrg@irtf.org>; Thu, 31 Jul 2014 06:51:14 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by klovia.htt-consult.com (Postfix) with ESMTP id 03668633DB; Thu, 31 Jul 2014 13:51:14 +0000 (UTC)
X-Virus-Scanned: amavisd-new at localhost
Received: from klovia.htt-consult.com ([127.0.0.1]) by localhost (klovia.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DQeCbNhucgki; Thu, 31 Jul 2014 09:51:03 -0400 (EDT)
Received: from lx120e.htt-consult.com (nc4010.htt-consult.com [208.83.67.156]) (Authenticated sender: rgm-sec@htt-consult.com) by klovia.htt-consult.com (Postfix) with ESMTPSA id E9AE762A7B; Thu, 31 Jul 2014 09:51:02 -0400 (EDT)
Message-ID: <53DA49C6.4070504@htt-consult.com>
Date: Thu, 31 Jul 2014 09:51:02 -0400
From: Robert Moskowitz <rgm-sec@htt-consult.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>,  Andy Lutomirski <luto@amacapital.net>
References: <20140730123336.29011.qmail@cr.yp.to> <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com> <CACsn0cmofOFFOc-EFyu5=kMVyhLCwTMudQ607zH1h9m9Q5ve1Q@mail.gmail.com> <CFFEAE61.18259%uri@ll.mit.edu> <CALCETrVzQaE6ZVCV6-n060e4jqcbio_TWuOGyM5hAKLPpb-oDQ@mail.gmail.com> <F2C352B4-2474-46F3-A2F4-EE6CFE54F65A@shiftleft.org>
In-Reply-To: <F2C352B4-2474-46F3-A2F4-EE6CFE54F65A@shiftleft.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/YvBNucNAhl4HYlkGHvwSk17XK5s
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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: Thu, 31 Jul 2014 13:51:20 -0000

On 07/30/2014 04:26 PM, Michael Hamburg wrote:
> On Jul 30, 2014, at 12:45 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>
>> On Wed, Jul 30, 2014 at 11:24 AM, Blumenthal, Uri - 0558 - MITLL
>> <uri@ll.mit.edu> wrote:
>>> Is the attack DJB mentioned an attack on AES?  No: AES matches the PRP
>>> security definition. Is it an attack on Salsa20? No: it meets the security
>>> claim.
>>>
>>> Rather it's the obvious point that a man who strains half a lake has half
>>> the fish.
>>>
>>> This has been pointed out before on this list, and is really on the level of
>>> an exercise in probability.
>>>
>>> In that case (probability game) this attack does not seem realistic, let
>>> alone plausible.
>>>
>>> How many plaintext pairs can you store (alternatively, which one "master"
>>> plaintext would you use)? For how many keys? How do various encryption modes
>>> impact your ability to search your tables (i.e., might using IV interfere
>>> with it)? How are you planning to identify that magic plaintext encryption
>>> in the traffic stream? What do your resulting probabilities look like in
>>> real world, after all of this has been taken into account?
>>>
>>> I won't dump my AES-128 just yet. :-)
>> In my opinion, this approach to crypto has been inappropriate for
>> quite some time.  Despite the fact that, theoretically, there were
>> nice attacks against MAC-then-encrypt, people kept using it because
>> they couldn't imagine how those attacks could work in the "real
>> world".  That didn't go so well.
>>
>> If people start using 256-bit keys, then these attacks are a
>> non-issue.  Or someone could try to find a protocol that is *provably*
>> immune with 128-bit keys.  But let's stop relying on our own failures
>> to image how these attacks might work.
>>
>> —Andy
> I’s really hard to get tight security bounds.  To start with, you’ll need something stronger than the standard PRF/PRP assumptions; maybe ideal ciphers would be enough?  Likewise with EC signatures, even in the ROM the bounds are really far from tight.
>
> But yeah, 256-bit symmetric ciphers are cheap.  If the small performance difference doesn’t matter much to you, then just use them everywhere.

Except the cost to change standards where they are 'hardwired' in. I 
have to figure out how to expand the cipher choice for 802.15.4 without 
really breaking the MAC Header.  Only 3 bits for the cipher selector and 
0 - 6 already used...

I should use the September meeting in Athens to socialize how to address 
this...

The whole family of 802.15.N (N={4, 6, 7, maybe8}) are like this. Then 
IEEE 1901.2 basically copied the 802.15.4 MAC.

But this list is about selecting good crypto.  Elsewhere we need to 
think really hard about USING good crypto.


From nobody Thu Jul 31 08:58:03 2014
Return-Path: <brian@briansmith.org>
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 E427D1A028B for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 08:57:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, 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 rsLjT37qD9GY for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 08:57:51 -0700 (PDT)
Received: from mail-qg0-f43.google.com (mail-qg0-f43.google.com [209.85.192.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DDDC1A00B5 for <cfrg@irtf.org>; Thu, 31 Jul 2014 08:57:51 -0700 (PDT)
Received: by mail-qg0-f43.google.com with SMTP id a108so4219959qge.16 for <cfrg@irtf.org>; Thu, 31 Jul 2014 08:57:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=AwZx+w6dD+TKV8JkRC3y1IJU5YXzVM8uC9vE8eHVC6Q=; b=iWJRyf0ZUC77xog3MXkJdjPneRwyGQWvvvbTOmAd5uWrhZ5YS6JsDNpw8OKz8LgFUl CezPRd4xXoKkxP1rNck1sHWvne82bAtG0ATiTCvQFi1vv3aAUJf2csJv/wZ9ucITtLmh Ka9G8f7cPjtnGQMxt+5lLkwZiY3qSInD5ntFMkajFbum3RckmvMqjnzSvh5Up5+Mmo6v sndaQo9IVnbAAG8MyyAEtIo9TJ8R7VS9z73XdT+OvH8sw46KQaF0WzeRqSQAKGO1vmsm Ve7369F1Gi57pkm6bJFbALKJvXSkamvDuE9wJ9dnMRHn72/oxEpG+gOuIGAX+/Vt+ogZ CdEQ==
X-Gm-Message-State: ALoCoQm+kFeDctUq8C87meyJQssqy25zjcjE24kgXOwAanYgX8jLE4daLT8OQhtU1f/gRdJqyHlM
MIME-Version: 1.0
X-Received: by 10.229.182.1 with SMTP id ca1mr19787327qcb.28.1406822270776; Thu, 31 Jul 2014 08:57:50 -0700 (PDT)
Received: by 10.224.189.200 with HTTP; Thu, 31 Jul 2014 08:57:50 -0700 (PDT)
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
References: <20140730123336.29011.qmail@cr.yp.to>
Date: Thu, 31 Jul 2014 08:57:50 -0700
Message-ID: <CAFewVt4jNUVK5PBDUoMJ0y4YzZ1e5okztV3qpT6J5aK0KmC0wg@mail.gmail.com>
From: Brian Smith <brian@briansmith.org>
To: cfrg@irtf.org
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/0wi7Wi26lFuH0tOijBcg7X269x0
Subject: Re: [Cfrg] matching AES security
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: Thu, 31 Jul 2014 15:57:55 -0000

On Wed, Jul 30, 2014 at 5:33 AM, D. J. Bernstein <djb@cr.yp.to> wrote:
> These attacks assume that the attacker sees ciphertext for, e.g., an
> all-zero block encrypted under all of the keys. Sometimes protocols
> randomize their blocks to try to stop these attacks---but putting
> complications into protocols to compensate for a cipher's deficient
> security is _not_ a smart way to design a cryptographic system.

I agree that it would be better to not need to randomize blocks to
avoid the attacks you alluded to. However, it seems like randomizing
the blocks is often easy; for example, I think it would be pretty easy
to define AES-GCM and ChaCaa20-Poly1305 cipher suites for TLS in a way
where the initial nonce is comes from the PRF and then incremented.

Don't you think it is worthwhile to do such randomization anyway,
since the randomization acts as a second line of defense against a
variety of problems? Is doing so harmful in some way?

>    * the point that it's already common practice to combine, e.g.,
>      RSA-2048 with AES-128 and sometimes even AES-256, illustrating that
>      the users' performance constraints are the biggest issue;

I agree with this. I'd also like to point out that I've yet to hear
anybody say that the P-256 curve is too slow for them to use. I've
heard others say that it would be nice to have a faster curve like
Curve25519, and I've heard people say that it is important to replace
P-256 with a curve that we trust more like Curve25519 (for some value
of "we"). Curve25519 has kind of become the default choice since it
seems to meet both the "nice to have" performance criteria and the
"must-have" security criteria for many people.

However, as a thought experiment, imagine that we had a proof that
P-256 was secure (including a proof that the mysterious constant is
not a security issue). I think a lot of the urges to replace P-256
would vanish because P-256 performance isn't that bad and almost
everybody has an implementation. That, combined with the common sense
that computations per second will increase and attacks will improve,
makes me think that it makes more sense to standardize on a curve with
roughly the same performance of P-256 but with better security,
particularly if such a curve could cover multiple security levels
(128-bit and 192-bit) so that there is less need to rely on
negotiation mechanisms in protocols to select an acceptable curve.

I think it would make a lot more sense to standardize one
~192-bit-security-level curve than to standardize one 128-bit curve
AND one 192-bit curve AND one 256-bit curve just so we can say we've
"matched" security levels. I don't think "matching" is useful for many
applications, including in particular the use of TLS in web browsers
and similar applications.

It would be interesting to hear from people who could not use P-256,
Curve41417, or other curves of around the same performance level for
*performance* reasons.

Cheers,
Brian


From nobody Thu Jul 31 09:57:12 2014
Return-Path: <housley@vigilsec.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 B340E1A0180 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 09:57:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.001
X-Spam-Level: 
X-Spam-Status: No, score=-100.001 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, USER_IN_WHITELIST=-100] 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 yON3PEdJ3iTX for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 09:57:06 -0700 (PDT)
Received: from odin.smetech.net (mail.smetech.net [209.135.209.4]) by ietfa.amsl.com (Postfix) with ESMTP id 08AF01A00CA for <cfrg@irtf.org>; Thu, 31 Jul 2014 09:57:06 -0700 (PDT)
Received: from localhost (unknown [209.135.209.5]) by odin.smetech.net (Postfix) with ESMTP id E3F27F9C04C for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:56:54 -0400 (EDT)
X-Virus-Scanned: amavisd-new at smetech.net
Received: from odin.smetech.net ([209.135.209.4]) by localhost (ronin.smeinc.net [209.135.209.5]) (amavisd-new, port 10024) with ESMTP id MkkKMLh0uV5z for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:56:54 -0400 (EDT)
Received: from [192.168.2.108] (pool-96-255-70-16.washdc.fios.verizon.net [96.255.70.16]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by odin.smetech.net (Postfix) with ESMTP id 8FE8DF9C047 for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:56:54 -0400 (EDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1085)
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com>
Date: Thu, 31 Jul 2014 12:56:43 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <620BB268-735C-4204-9788-88E1D244CABB@vigilsec.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com>
To: IRTF CFRG <cfrg@irtf.org>
X-Mailer: Apple Mail (2.1085)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/qDGjP7AneqfSoPdIxT1Jf5nCeNA
Subject: Re: [Cfrg] Curve selection revisited
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: Thu, 31 Jul 2014 16:57:07 -0000

We seem to have gone away from discussing requirements.  Can we get back =
to that?

I would like to see us use of the same curve for digital signature and =
key agreement.  This provides obvious modularity, and it seems to fit =
well with the security protocols that already have support for ECC.

Russ



From nobody Thu Jul 31 10:09:26 2014
Return-Path: <bascule@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 841811A02D1 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:09:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 9j_YojLGadi1 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:09:20 -0700 (PDT)
Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [IPv6:2607:f8b0:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 08F541A02DB for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:09:19 -0700 (PDT)
Received: by mail-vc0-f172.google.com with SMTP id im17so4735622vcb.17 for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:09:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hE2a9HHY+BfjQtHKVdsL1dOz0wR8Z3JR60OnqK7+Wbw=; b=C0yvbT6Fg33cdJMa42fTZa2p+rcPJ2VsQPTG4cN+fLb+580/iijF3LiGXi96mfnCnY fWjsIa+tZV8+tjRv6B593QqpayWZYEMEBVZhZhhvzupHbrBFHMOVYsjNZyX/N3QZsFvK cmdxlm08P8hMINW47Bg04918sYzKLRdeErsypXpYePJm0UhX2gjEbvLRuVJ3O6QGHBla U4pEq1IQtYVKTbvLObdM18K4IiXJftrQ/KJ0WD115Tw09H5QmvpVT97Y37gUkOPZw7CF YBdShcMAGjm4ZsJIJuUSa0ZZupJO6xAMqnxIiux7fGo3J0vjV/p0l0YXvpwVS390JB4g KokQ==
X-Received: by 10.52.246.198 with SMTP id xy6mr16421504vdc.7.1406826558644; Thu, 31 Jul 2014 10:09:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.58.160.10 with HTTP; Thu, 31 Jul 2014 10:08:58 -0700 (PDT)
In-Reply-To: <947D45A1-AF36-470B-8D50-7600FEF7FB30@shiftleft.org>
References: <20140729205846.6639765.71649.17355@certicom.com> <CAHOTMVJ4AirY+tRnVfwt1umgx=Q2xNwVTks6OoVNaV0gkKihOg@mail.gmail.com> <947D45A1-AF36-470B-8D50-7600FEF7FB30@shiftleft.org>
From: Tony Arcieri <bascule@gmail.com>
Date: Thu, 31 Jul 2014 10:08:58 -0700
Message-ID: <CAHOTMVJYr=S1fXXSYCHDJz2m6sn10uQ=ztXT7htW1m53qEZHog@mail.gmail.com>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: multipart/alternative; boundary=001a1133b89049e92a04ff805530
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/axlz_BGbUmNFiKa1Ww1RLHlZE4Q
Cc: Dan Brown <dbrown@certicom.com>, IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Thu, 31 Jul 2014 17:09:25 -0000

--001a1133b89049e92a04ff805530
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 31, 2014 at 12:40 AM, Michael Hamburg <mike@shiftleft.org>
wrote:

> Indeed.  But collision attacks have also broken signature schemes *in
> practice*, for example the Flame malware.
>

Are there any other examples of collision attacks in the wild? Also note
this attack required a nationstate-level effort.

Attacks on bad nonces are comparatively common and relatively easy, e.g.
someone automated stealing of other's Bitcoins by detecting nonce reuse in
the BitCoin block chain:

https://bitcointalk.org/index.php?topic=3D271486.0


>  You can have any two of determinism, one-pass signatures, and protection
> from collision attacks.  So far as I know, you can=E2=80=99t have all thr=
ee, at
> least not with a Schnorr scheme.  Please correct me if I=E2=80=99m wrong.
>

I think you're correct


> Or should we drop protection from collision attacks?


Probably, unless there's evidence they're a real threat.

--=20
Tony Arcieri

--001a1133b89049e92a04ff805530
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Jul 31, 2014 at 12:40 AM, Michael Hamburg <span dir=3D"ltr">&lt;<a href=
=3D"mailto:mike@shiftleft.org" target=3D"_blank" onclick=3D"window.open(&#3=
9;https://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dmike@shiftlef=
t.org&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);ret=
urn false;">mike@shiftleft.org</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><div class=3D"">Indeed. =C2=A0But collision attacks have a=
lso broken signature schemes *in practice*, for example the Flame malware.<=
br>

</div></blockquote><div><br></div><div>Are there any other examples of coll=
ision attacks in the wild? Also note this attack required a nationstate-lev=
el effort.</div><div><br></div><div>Attacks on bad nonces are comparatively=
 common and relatively easy, e.g. someone automated stealing of other&#39;s=
 Bitcoins by detecting nonce reuse in the BitCoin block chain:</div>

<div><br></div><div><a href=3D"https://bitcointalk.org/index.php?topic=3D27=
1486.0">https://bitcointalk.org/index.php?topic=3D271486.0</a><br></div><di=
v>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left=
-style:solid;padding-left:1ex">

<div class=3D""></div>
You can have any two of determinism, one-pass signatures, and protection fr=
om collision attacks. =C2=A0So far as I know, you can=E2=80=99t have all th=
ree, at least not with a Schnorr scheme. =C2=A0Please correct me if I=E2=80=
=99m wrong.<br></blockquote>

<div><br></div><div>I think you&#39;re correct</div><div>=C2=A0</div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-w=
idth:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding=
-left:1ex">

Or should we drop protection from collision attacks?</blockquote></div><br>=
Probably, unless there&#39;s evidence they&#39;re a real threat.<br clear=
=3D"all"><div><br></div>-- <br>Tony Arcieri<br>
</div></div>

--001a1133b89049e92a04ff805530--


From nobody Thu Jul 31 10:18:48 2014
Return-Path: <rsalz@akamai.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 E40891A02E3 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:18:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-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 vi8MRP_K7KDA for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:18:43 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id 00C4D1A0099 for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:18:42 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 0F5992864C; Thu, 31 Jul 2014 17:18:42 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id F1F9328641; Thu, 31 Jul 2014 17:18:41 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub6.kendall.corp.akamai.com [172.27.105.22]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id EF8998003C; Thu, 31 Jul 2014 17:18:41 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB6.kendall.corp.akamai.com ([172.27.105.22]) with mapi; Thu, 31 Jul 2014 13:18:41 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Russ Housley <housley@vigilsec.com>, IRTF CFRG <cfrg@irtf.org>
Date: Thu, 31 Jul 2014 13:18:40 -0400
Thread-Topic: [Cfrg] Curve selection revisited
Thread-Index: Ac+s4HtZk7yaNA2oRIGvlGDN5zAX5wAAokyw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE43A@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com> <620BB268-735C-4204-9788-88E1D244CABB@vigilsec.com>
In-Reply-To: <620BB268-735C-4204-9788-88E1D244CABB@vigilsec.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/agHY8-pcnl2Gc-RZuUNFtZX9vfM
Subject: Re: [Cfrg] Curve selection revisited
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: Thu, 31 Jul 2014 17:18:45 -0000

> I would like to see us use of the same curve for digital signature and ke=
y
> agreement.  This provides obvious modularity, and it seems to fit well wi=
th
> the security protocols that already have support for ECC.

I don't want this requirement because I'd like to use 25519 for DH-style ke=
y exchange, without having to give up whatever "standard" curves are being =
used for signature.  I find the "system" approach to Curve25519 appealing, =
and the efficiency -- where we might have 100's of hosts on a single IP add=
ress with their own PFS requirements -- compelling.

	/r$

-- =20
Principal Security Engineer
Akamai Technologies, Cambridge MA
IM: rsalz@jabber.me Twitter: RichSalz


From nobody Thu Jul 31 10:22:58 2014
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 D43231B293C for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:22:56 -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 j3k5Q9G403-T for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:22:55 -0700 (PDT)
Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA9E51A0310 for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:22:54 -0700 (PDT)
Received: by mail-la0-f42.google.com with SMTP id pv20so2315963lab.1 for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:22:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:date:message-id:subject:from:to:content-type;  bh=0ghl1eQ8i2RH+QlMd7W7yVSnEY9bMlDE44ptI57ZO8c=; b=Qn/aqdWNiE/bQsqGf+nngoW/oAQVjSLhc30YIHqM7TC5QruVUWE79hzRftkdStFrye YHb8C9nQ6tM9g+e3g72X7u9JMF5csnmHkIrGz4V6KchkuxALhup8RSrMuaLHcawSfGCh wEUdkSY5FsrhoSf/6FtHCj16XsC1iEVGJcobwWnNDX0JHY9gQHsKpVsBs3CFPLYq4xw5 ss1KE80isPliU6pNErEsvbT07QiQpXQUSmwPydQjRL/4upWh/OA1E976Q4Gkyu6rOcNR ZgrJz/qj9mpw7qJlfPVWlLfDAXVbN6AiIjKvXGHMm8zmHflGZra3xfDiLKWL5K2lNHe0 2AnQ==
MIME-Version: 1.0
X-Received: by 10.152.27.197 with SMTP id v5mr13726750lag.84.1406827373061; Thu, 31 Jul 2014 10:22:53 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Thu, 31 Jul 2014 10:22:53 -0700 (PDT)
Date: Thu, 31 Jul 2014 13:22:53 -0400
X-Google-Sender-Auth: tX0VDM65d69OLz_yAHo_rq6aSCw
Message-ID: <CAMm+LwgZp4sgLaFZeWV05UDvN=x7FUNbM5Gi32fJRRrKmais+A@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ibacgC74DfzpkMAESeRqsKxcSe0
Subject: [Cfrg] Another perspective on the Curve256/255 problem
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: Thu, 31 Jul 2014 17:22:57 -0000

Lets recap what we need for Internet protocols, as far as I am
concerned there are only two buckets that matter:

WF128 - High performance / small public key size. 2^128 work factor
WF256 - High security delivering a confidence factor of 50+ years.
2^256 work factor

[I am using WF128 to remind ourselves that this is a 2^128 Work Factor
which is what really matters here.]

Given that any ECC scheme is a LOT faster than RSA2048 and much more
secure than RSA4048, it is actually quite easy to fit most
applications into one bucket or the other. Without really good reasons
to the contrary:

* Any key that is relied on for encryption of stored data should be WF256
* Any key that is embedded as a long term Key Signing Key must be WF256

So PKIX, S/MIME and OpenPGP should just use WF256. Which means that a
TLS stack is going to need the ability to do WF256.

PFS is a different case since in a well designed protocol, PFS is an
additional confidentiality control rather than a single point of
failure. Breaking the PFS key should only affect the forward secrecy
of a communication and then only if the master key exchange has been
compromised.

Since PFS is an additional control, there is a good argument that
performance is critical. The parties might just turn PFS off if it is
too slow. So there is quite an argument to be made to keep an WF128
bucket in that case.


At the meeting we saw the NUMS curves compared to the FastPrimes
curves and we saw two different arguments

DJB: Speed! Speed! Speed!

BAL: The most important thing is to assure people there is no special
reason for the choice of curve and so we must eliminate subjective
choices completely.


Now these are both important considerations of course. But DJB's
argument is only a good one for WF128 and BAL's is only really valid
for WF256.

Lets consider BAL's argument first.

For WF256, I think it is a really good one because the only way that
the 2^512-569 or E-521 curves is going to be breakable is if there is
either a flaw in the whole ECC approach or something really special
about a particular chosen curve. We can't know which curve might have
an issue but we can know the reason one curve is being chosen. 2^512
is a round number in crypto, 2^521 is a very odd one.

For WF128, BAL's argument is nonsense. Anyone who cares about the
possibility that the NSA might be manipulating the choice of prime
should be using WF256 crypto. There is a chance that there is
something odd about Curve25519 that makes it easier top break. But the
chance that there is a flaw in ECC that makes Curve25519 highly
vulnerable but leaves 2^256-x unscathed is much smaller.


Equally, DJB's arguments for speed don't really apply at the WF256
level. There isn't a conveniently close curve for a start. So there is
a 'gut check' call and we go looking for Goldilocks curves.

All of the curve choices on offer are significantly faster than
RSA2048 which is what every major application doing public key is
using today. All other things being equal, performance is significant.
But there are many things that have a higher priority:

* Explaining the choice.
* Compatibility with legacy crypto HSMs
* Compatibility with standard data paths

All these arguments favor the 2^512-569 curve. It is really easy to
explain that this is the natural compliment to AES256. E21 is not
going to be offering any more security and might well offer less.

Having sold crypto for 20 years I know that what people care about
most is strength even if they have no clue what it means. It is not
unusual for someone to argue that its too much CPU to turn on TLS
everywhere. Then after they finally decide to bit the bullet they turn
on AES256 because they can. This despite the fact that RSA2048 is the
weakest link.


My people can sell ECC certs pretty easily as being the essential
compliment to AES256. And that is probably the fastest route to
getting ubiquitous deployment of PFS. That speaks for a WF256 solution
that has as little to cloud the argument as possible.

So in my view, the split decision is actually a lot more principled
than splitting the baby. The two camps are focused on different
security needs at different poles and are making the arguments suited
to their chosen poles. Further, we are seeing deployment of Curve25519
which might well be making the issue of choosing a different curve
problematic.


So in summary, these are the suite choices I think would be relevant to TLS:

Key Signing Certs:  RSA4096 or RSA2048 or NUMS-512 ECDSA
End-Entity Certs: RSA2048 or NUMS-512 ECDSA

WF128 security:
    AES-128-GCM + Curve25519 ECDHE PFS

WF256 security:
    AES-256-GCM + NUMS-512 ECDHE PFS

Additional:
    AES-256-GCM + Curve25519 ECDHE PFS
    CHA-CHA-POLY + Curve25519 ECDHE PFS
    CHA-CHA-POLY + NUMS-512 ECDHE PFS


That would make for a total of 10 new suite IDs assuming we go for the
CHA-CHA-POLY options as well.

This time I would want to restrict RSA to a specific key size. There
is no point in using a RSA4096 EE cert with ECC crypto (!) and nothing
less is permitted. So lets nix that degree of freedom.


From nobody Thu Jul 31 10:23:41 2014
Return-Path: <dkg@fifthhorseman.net>
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 124E21B2951 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:23:39 -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 8bMwlnMNPkXT for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:23:36 -0700 (PDT)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id 9E6A71B2955 for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:23:21 -0700 (PDT)
Received: from [10.70.10.93] (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 36D6EF984; Thu, 31 Jul 2014 13:23:17 -0400 (EDT)
Message-ID: <53DA7B79.70709@fifthhorseman.net>
Date: Thu, 31 Jul 2014 13:23:05 -0400
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Icedove/30.0
MIME-Version: 1.0
To: Tony Arcieri <bascule@gmail.com>,  Michael Hamburg <mike@shiftleft.org>
References: <20140729205846.6639765.71649.17355@certicom.com> <CAHOTMVJ4AirY+tRnVfwt1umgx=Q2xNwVTks6OoVNaV0gkKihOg@mail.gmail.com> <947D45A1-AF36-470B-8D50-7600FEF7FB30@shiftleft.org> <CAHOTMVJYr=S1fXXSYCHDJz2m6sn10uQ=ztXT7htW1m53qEZHog@mail.gmail.com>
In-Reply-To: <CAHOTMVJYr=S1fXXSYCHDJz2m6sn10uQ=ztXT7htW1m53qEZHog@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xoIbFDcEhowCJXeQVSB3BqUSTLT9UUd8b"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/oEaNHTrpXz72Q_tEksNK-13u29s
Cc: Dan Brown <dbrown@certicom.com>, IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Thu, 31 Jul 2014 17:23:39 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--xoIbFDcEhowCJXeQVSB3BqUSTLT9UUd8b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 07/31/2014 01:08 PM, Tony Arcieri wrote:
> On Thu, Jul 31, 2014 at 12:40 AM, Michael Hamburg <mike@shiftleft.org>
> wrote:
>=20
>> Indeed.  But collision attacks have also broken signature schemes *in
>> practice*, for example the Flame malware.
>>
>=20
> Are there any other examples of collision attacks in the wild? Also not=
e
> this attack required a nationstate-level effort.

sure:

  http://www.win.tue.nl/hashclash/rogue-ca/

and other instances from the same group, including the cheeky:

  http://www.win.tue.nl/hashclash/Nostradamus/

neither of these required nationstate-level effort, and they date back
to 2008.

	--dkg


--xoIbFDcEhowCJXeQVSB3BqUSTLT9UUd8b
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJT2nt5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB
NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpcLBwQAK3Mlml/okGgSsSyg9K5B7Bl
qYK6752Pp8ONABSjgaWofFeMip4QyqS5FL1mABXpTFTYV4YjOzDotBXPtN0zRytw
wAnWTs7xGTtS8ODEvDRIKZYse655hVPTOkCfZbZzstQ/iLyYUdbsUXPDuWyTQdib
gWsUJCm2c0J4CbqGg7eMu49eRJQXXp/76Cy71Kn9SD3p0v99ka9GxGdB7YtvWTWr
MXGx4F+wnnrfzDJoN2/30MSTHTCzRd6yzKVkglvNM40o5TiC/dGG17B80dJzoZ5s
T6ECeXFcwZdIQVu/hB1KAQsY4/I0uFep3/RuiQfXzRiJcYDQXl7t93/dFlSga+Ru
3onV2b6wegt/I4Ke6On+8Vm1IICVpKJV98qTzMsU2Ub4FUOb4+ZmcGsFkesHzsT5
zIDY+w62jtXAlllGE5Ixas+w86LkZ4D45ZjtfRGT0vKIlP0Y0Nf23jlAGXDGPCc4
Cz7Jyn2x1f5cvxzbkjEf9tYJiKXeFahw3kur8FD+OLjdHeu5mWnKF2NooEFU3oFH
W9l0Gz/e7qBBYOhhwSFnEamUYaulQXnBYaJ4zixvtWQqVryB3LXinRl4LLx0ach+
MnFoQSV+xA4SrRvRGzh1Ramii51PpyNltz1RaAJ5vFWx96qENPl4jIiZ55le1nje
Hk2yiJvClnpUF4eVbyCZ
=5RdW
-----END PGP SIGNATURE-----

--xoIbFDcEhowCJXeQVSB3BqUSTLT9UUd8b--


From nobody Thu Jul 31 10:44:01 2014
Return-Path: <rsalz@akamai.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 7FF151A02E3 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:43:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-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 4C3eNGPWJEFh for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 10:43:58 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id 215F71B2954 for <cfrg@irtf.org>; Thu, 31 Jul 2014 10:43:58 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 9FE7128654; Thu, 31 Jul 2014 17:43:57 +0000 (GMT)
Received: from prod-mail-relay06.akamai.com (prod-mail-relay06.akamai.com [172.17.120.126]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id 8DDD928651; Thu, 31 Jul 2014 17:43:57 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub4.kendall.corp.akamai.com [172.27.105.20]) by prod-mail-relay06.akamai.com (Postfix) with ESMTP id 89E082027; Thu, 31 Jul 2014 17:43:57 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB4.kendall.corp.akamai.com ([172.27.105.20]) with mapi; Thu, 31 Jul 2014 13:43:57 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Thu, 31 Jul 2014 13:43:56 -0400
Thread-Topic: [Cfrg] Another perspective on the Curve256/255 problem
Thread-Index: Ac+s5Bc3VrmbbAxqTQWAaJCEW0eZoQAAfYfw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE460@USMBX1.msg.corp.akamai.com>
References: <CAMm+LwgZp4sgLaFZeWV05UDvN=x7FUNbM5Gi32fJRRrKmais+A@mail.gmail.com>
In-Reply-To: <CAMm+LwgZp4sgLaFZeWV05UDvN=x7FUNbM5Gi32fJRRrKmais+A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sQlDDSnhiVs4Udvmn2z39sHzmss
Subject: Re: [Cfrg] Another perspective on the Curve256/255 problem
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: Thu, 31 Jul 2014 17:43:59 -0000

> [I am using WF128 to remind ourselves that this is a 2^128 Work Factor wh=
ich
> is what really matters here.]

I like this notation.

> So PKIX, S/MIME and OpenPGP should just use WF256. Which means that a
> TLS stack is going to need the ability to do WF256.

Can you explain this?  I don't see the "which means" justification, which m=
eans I'm missing something.

> DJB: Speed! Speed! Speed!

That's not how I would characterize it.  One of Dan's slides said something=
 about removing the friction between security and performance. I wish I wro=
te it down, it was a brilliant insight.  The first time I've seen a real sy=
stems approach to crypto (which probably says more about my ignorance of th=
e field than anything else).  For example, Curve25519 requires the top bit =
to be set, so that implementers don't expose timing attacks by skipping dow=
n until they find the first bit set.

I think everyone agreed with rigidity as a good principle to follow.  Caesa=
r's wife must be above suspicion.

-- =20
Principal Security Engineer
Akamai Technologies, Cambridge MA
IM: rsalz@jabber.me Twitter: RichSalz


From nobody Thu Jul 31 12:12:29 2014
Return-Path: <housley@vigilsec.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 56CDA1A0048 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:12:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.9
X-Spam-Level: 
X-Spam-Status: No, score=-101.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, USER_IN_WHITELIST=-100] 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 9iTWGMmRgPdr for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:12:26 -0700 (PDT)
Received: from odin.smetech.net (mail.smetech.net [209.135.209.4]) by ietfa.amsl.com (Postfix) with ESMTP id 1B8CA1A003A for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:12:26 -0700 (PDT)
Received: from localhost (unknown [209.135.209.5]) by odin.smetech.net (Postfix) with ESMTP id D1693F9C04C for <cfrg@irtf.org>; Thu, 31 Jul 2014 15:12:15 -0400 (EDT)
X-Virus-Scanned: amavisd-new at smetech.net
Received: from odin.smetech.net ([209.135.209.4]) by localhost (ronin.smeinc.net [209.135.209.5]) (amavisd-new, port 10024) with ESMTP id wJLdRMWWg4rV for <cfrg@irtf.org>; Thu, 31 Jul 2014 15:11:54 -0400 (EDT)
Received: from [192.168.2.108] (pool-96-255-70-16.washdc.fios.verizon.net [96.255.70.16]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by odin.smetech.net (Postfix) with ESMTP id 0B84CF9C01B for <cfrg@irtf.org>; Thu, 31 Jul 2014 15:11:55 -0400 (EDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1085)
From: Russ Housley <housley@vigilsec.com>
In-Reply-To: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
Date: Thu, 31 Jul 2014 15:11:43 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <15E948B3-587B-4DCB-B9F3-BCDDF46FB0E7@vigilsec.com>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
To: IRTF CFRG <cfrg@irtf.org>
X-Mailer: Apple Mail (2.1085)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/GJM_vYObdeujDzM3w9pxttTZnAU
Subject: Re: [Cfrg] Progress on curve recommendations for TLS WG
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: Thu, 31 Jul 2014 19:12:28 -0000

Kenny asked for input on five specific questions.  Here are my thoughts =
on the first one.

> - What is the cost of keeping backwards compatibility with existing
> defined point formats in RFC 4492, if any, for different curve shapes
> (Edwards, twisted Edwards, Montgomery, Weierstrass-only form)?

It is important to look at the use of ECC in TLS (RFC 4492), but we also =
need to look at PKIX since TLS will rely on certificates to bind the =
public key to the subject name.  RFC 5480 talks about ECC in =
certificates.  In my view, we should not ignore other uses of ECC in =
making this decision.  RFC 5753 talks about ECC for CMS; RFC 4754 talks =
about ECC for IKE and IKEv2; RFC 5349 talks about ECC for Kerberos =
PKINIT; RFC 5656 talks about ECC for Secure Shell.

For the certificate, RFC 5480 is aligned with the X9.62 specification, =
but the most difficult choices are not supported:
   o namedCurve -- MUST be supported.
   o implicitCurve -- MUST NOT be used.
   o specifiedCurve -- MUST NOT be used.

Since we have already limited the choice to named curves, we can simply =
assign names (object identifiers) to whatever curve we select.  This =
frees us from trying to make specify the curve using the X9.62 syntax.

For the TLS handshake, it seems to me that we can assign compatible =
values Supported Elliptic Curves Extension, and if necessary, for the =
Supported Point Formats Extension.

Russ=


From nobody Thu Jul 31 12:26:17 2014
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 138031A000F for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:26:17 -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 DlaJ5Va2QvQi for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:26:15 -0700 (PDT)
Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 867D11A000B for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:26:15 -0700 (PDT)
Received: by mail-lb0-f170.google.com with SMTP id w7so2407843lbi.15 for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:26:13 -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:content-transfer-encoding; bh=KRFa8g8KAIysJXL4qoSxUTBQ05nm3ircRZao56r/Psg=; b=DYO6J9LaXiHysHNMJlU+oDtSTB+7mKsbT+BcCOCiiM4vug1tN2dQikb1J2SzUFT4kQ WZHcxXBsIkJ43RwGx5f0chwJ/mTONE9FdYZhyxydTIlWInZwxxHMjQgO9OpmJmEIoiJL wt6J4ZXkfMLyq2psStYW7B5LRaPtv2NITBWa5xgV2Em4zWE5IFbcYul2bJga+vydTQ5I 7CJ9J0XPopGo1cfZNRt7xIa9CAVTXFAJZRyAm2dqvOJA6iW3YclmjYAL4xrITiFPwcow fZE7vALu3nFQHZJzOAd1pmqGNabph2edOR25G1qXe1KL4wMiqfQAOcnfPOdcL50ARvO6 13eQ==
MIME-Version: 1.0
X-Received: by 10.112.161.72 with SMTP id xq8mr321956lbb.18.1406834773655; Thu, 31 Jul 2014 12:26:13 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Thu, 31 Jul 2014 12:26:13 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE43A@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk> <53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com> <620BB268-735C-4204-9788-88E1D244CABB@vigilsec.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE43A@USMBX1.msg.corp.akamai.com>
Date: Thu, 31 Jul 2014 15:26:13 -0400
X-Google-Sender-Auth: Q6dJnItasa-PU8e138uQxDuLnis
Message-ID: <CAMm+LwgYWP5KkM4bPNbArEFwWNB=52XZA2ckQxvYLB0tRTcKNA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "Salz, Rich" <rsalz@akamai.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kiu_OexL4PhEBJxYDfkQP2Fi1IE
Cc: IRTF CFRG <cfrg@irtf.org>, Russ Housley <housley@vigilsec.com>
Subject: Re: [Cfrg] Curve selection revisited
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: Thu, 31 Jul 2014 19:26:17 -0000

On Thu, Jul 31, 2014 at 1:18 PM, Salz, Rich <rsalz@akamai.com> wrote:
>> I would like to see us use of the same curve for digital signature and k=
ey
>> agreement.  This provides obvious modularity, and it seems to fit well w=
ith
>> the security protocols that already have support for ECC.
>
> I don't want this requirement because I'd like to use 25519 for DH-style =
key exchange, without having to give up whatever "standard" curves are bein=
g used for signature.  I find the "system" approach to Curve25519 appealing=
, and the efficiency -- where we might have 100's of hosts on a single IP a=
ddress with their own PFS requirements -- compelling.

I don't see that there is a need for a WF128 digital signature scheme
that is backwards compatible.

For existing uses of Digital Signatures where I am currently using
RSA2048 I will switch to WF256 curves and those are the ones where
backwards compatibility matters. There isn't a security argument to
switch from RSA2048 to curve25519 and I don't see the performance
argument as being a good one for where we are already using crypto.

It does make sense to do digital signatures for a WF128 curve because
there may well be applications that a higher performance curve will
enable.


From nobody Thu Jul 31 12:37:28 2014
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 D45071A0022 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:37:26 -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 3oVQOXySb4ce for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:37:25 -0700 (PDT)
Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3BBDA1A000F for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:37:25 -0700 (PDT)
Received: by mail-la0-f49.google.com with SMTP id hz20so2425390lab.22 for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:37:23 -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:content-transfer-encoding; bh=vdrER5ysWhQ1YSloGHhBLaDHLBP4PDnNUSmK3nuwkUA=; b=WhMnMuTnygttvDDHpF+hGY73jogznwETO8eaP++aZRVJIYyNNoQZwqDdg0r+lJCM1b atjVhMHzPySfNL2zAAU0b/hj/5tV8UdgC+4aSlAYzPb2kLXJxRFKw2SYQXnKcF400qBD AY/AxhwVM+cfzX8R2NDh2UUTGqe5ZfCCIKyguCuz7n1hFh9in9C/AvyFqh8OGi+ojkYp kx4biARkdmDQrOR48dJfHImKSEYMadRxejDdYatx0wBOrQIfJuOKxVrJ3L4UJ82oH+Z9 gw+9Nn1aiJSKAwkkr4MSYBdeUQR0BvSqox/eLmYCdBshDrJZTyULNHP7PoEOft2Pz4jS Ertg==
MIME-Version: 1.0
X-Received: by 10.112.63.65 with SMTP id e1mr347168lbs.81.1406835443480; Thu, 31 Jul 2014 12:37:23 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Thu, 31 Jul 2014 12:37:23 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE460@USMBX1.msg.corp.akamai.com>
References: <CAMm+LwgZp4sgLaFZeWV05UDvN=x7FUNbM5Gi32fJRRrKmais+A@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE460@USMBX1.msg.corp.akamai.com>
Date: Thu, 31 Jul 2014 15:37:23 -0400
X-Google-Sender-Auth: MTf--yXetH5Cr0AzzoI2l1Yaf3U
Message-ID: <CAMm+Lwgq83JwFhxn9BFK2d0W6DMdFaC+tbzKMcahQRBJabW39w@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "Salz, Rich" <rsalz@akamai.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/RT8XLlGji5xpyses4679b2SYD8g
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Another perspective on the Curve256/255 problem
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: Thu, 31 Jul 2014 19:37:27 -0000

On Thu, Jul 31, 2014 at 1:43 PM, Salz, Rich <rsalz@akamai.com> wrote:
>> [I am using WF128 to remind ourselves that this is a 2^128 Work Factor w=
hich
>> is what really matters here.]
>
> I like this notation.
>
>> So PKIX, S/MIME and OpenPGP should just use WF256. Which means that a
>> TLS stack is going to need the ability to do WF256.
>
> Can you explain this?  I don't see the "which means" justification, which=
 means I'm missing something.

The browser providers want to limit the number of roots in their trust
stores for good reason. My customers want high security so I
definitely need a WF256 curve. But I am not going to get a WF128
factor root as well unless I give up something else and I don't want
to do that.

So the bottom line is that a TLS stack that wants to support the
WebPKI is going to need a WF256 signature scheme. But it is not clear
that a WF128 scheme is needed.


Its funny the way that when I want to add a feature to a protocol
people push back and when its algorithms I'm the one asking if they
are really necessary.



>> DJB: Speed! Speed! Speed!
>
> That's not how I would characterize it.  One of Dan's slides said somethi=
ng about removing the friction between security and performance. I wish I w=
rote it down, it was a brilliant insight.  The first time I've seen a real =
systems approach to crypto (which probably says more about my ignorance of =
the field than anything else).  For example, Curve25519 requires the top bi=
t to be set, so that implementers don't expose timing attacks by skipping d=
own until they find the first bit set.

Is there a reason that would only work for that particular curve and
not the NUMS? I wasn't seeing that as a discriminating argument. Its a
good one though.


From nobody Thu Jul 31 12:52:16 2014
Return-Path: <rsalz@akamai.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 46E931A0046 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:52:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-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 zB2-kaEnP0Ww for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 12:52:13 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id CB87C1A000F for <cfrg@irtf.org>; Thu, 31 Jul 2014 12:52:13 -0700 (PDT)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 465DA2865E; Thu, 31 Jul 2014 19:52:13 +0000 (GMT)
Received: from prod-mail-relay06.akamai.com (prod-mail-relay06.akamai.com [172.17.120.126]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id 2C55E28655; Thu, 31 Jul 2014 19:52:13 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub7.kendall.corp.akamai.com [172.27.105.23]) by prod-mail-relay06.akamai.com (Postfix) with ESMTP id 288582026; Thu, 31 Jul 2014 19:52:13 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by usma1ex-cashub7.kendall.corp.akamai.com ([172.27.105.23]) with mapi; Thu, 31 Jul 2014 15:52:12 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Thu, 31 Jul 2014 15:52:11 -0400
Thread-Topic: [Cfrg] Curve selection revisited
Thread-Index: Ac+s9U9gu+agSiXrTrSBRxI1pdDf3wAA0HZA
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE539@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7xroa68=HOZtbf=oz7kK2EeUv_z1okpnjxHPR0ZtHD5cA@mail.gmail.com> <CFF7E184.28E9F%kenny.paterson@rhul.ac.uk>	<53D2781B.8030605@sbcglobal.net> <CACsn0ckqFigWoH2+OOEHSd2VWPp8y6=m8H5OsFRyjXmjK7+m4w@mail.gmail.com> <CABqy+srxMNuG0AaQd0SaegHvZWgbW762EQq+iAHL_fbu6sOJJQ@mail.gmail.com> <53D420B3.10707@brainhub.org> <CABqy+so6JcL3drjXuiQfLhm-LPMOJuS9ES5Hyb1UQRhi-gV2jA@mail.gmail.com> <620BB268-735C-4204-9788-88E1D244CABB@vigilsec.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE43A@USMBX1.msg.corp.akamai.com> <CAMm+LwgYWP5KkM4bPNbArEFwWNB=52XZA2ckQxvYLB0tRTcKNA@mail.gmail.com>
In-Reply-To: <CAMm+LwgYWP5KkM4bPNbArEFwWNB=52XZA2ckQxvYLB0tRTcKNA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Vp-Z1sQnlRdnJla92fmkKoR0Ews
Cc: IRTF CFRG <cfrg@irtf.org>, Russ Housley <housley@vigilsec.com>
Subject: Re: [Cfrg] Curve selection revisited
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: Thu, 31 Jul 2014 19:52:15 -0000

PiBUaGVyZSBpc24ndCBhIHNlY3VyaXR5IGFyZ3VtZW50IHRvIHN3aXRjaA0KPiBmcm9tIFJTQTIw
NDggdG8gY3VydmUyNTUxOSBhbmQgSSBkb24ndCBzZWUgdGhlIHBlcmZvcm1hbmNlIGFyZ3VtZW50
IGFzDQoNCkknbSB0YWxraW5nIHN0cmljdGx5IGFib3V0IEN1cnZlMjU1MTkgYXMgYSBESCBwcm90
b2NvbC4gIEkgYW0gbm90IHRhbGtpbmcgYWJvdXQgRWQyNTUxOSBhcyBhIHNpZ25hdHVyZSBtZWNo
YW5pc20uIFNvcnJ5IGZvciBhbnkgY29uZnVzaW9uLCBidXQgdGhpcyBmb2xsb3dzIHRoZSBkb2N1
bWVudHMgYW5kIHRlcm1pbm9sb2d5IHVzZWQgYnkgZGpiLiAgU28gdG8gbWUgc3dpdGNoaW5nIGZy
b20gUlNBMksgdG8gQ3VydmUyNTUxOSBpcyBsaWtlIHN3aXRjaGluZyBmcm9tIGNvZmZlZSB0byBh
IGJpY3ljbGUuDQoNCgkvciQNCg0KLS0gIA0KUHJpbmNpcGFsIFNlY3VyaXR5IEVuZ2luZWVyDQpB
a2FtYWkgVGVjaG5vbG9naWVzLCBDYW1icmlkZ2UgTUENCklNOiByc2FsekBqYWJiZXIubWUgVHdp
dHRlcjogUmljaFNhbHoNCg==


From nobody Thu Jul 31 14:09:28 2014
Return-Path: <bascule@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 D39871A0179 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 14:09:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 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, 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 4r4pXxV3cD8q for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 14:09:23 -0700 (PDT)
Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [IPv6:2607:f8b0:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 312491A010A for <cfrg@irtf.org>; Thu, 31 Jul 2014 14:09:23 -0700 (PDT)
Received: by mail-vc0-f179.google.com with SMTP id hq11so5292754vcb.10 for <cfrg@irtf.org>; Thu, 31 Jul 2014 14:09:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=rEf+EC+KOASciKTZUN11C4iVnYSpGdQzQAgU4OQ+JSU=; b=Xht+g8WhGPpp7Tbg6x/iJCKFzMaNeiBGRAXbd0ndVOACoRqKPatbjJQPCy/yqkRK44 bmWgFIQKrlPmA3/owujKISeiroDcdJoXXy+nZF3QxFOcf1v/7M3D9rl8arhjQrG2Fhdx yq7s9ZUW1z/hQdre8brgNmF4WU4dHdq9bVSLGwwQQG8g5DYRF/UJRRAp2z+s1iVLG6fF SB5rPZ9OkUYXTnyC2QdRznJgBlXlsrzO8MJ35XEqs0rJNOwde+9pxq6h6omwPpDHyuSv vl0DL+e0sFItdoab9AYmC1Eb+glsKWsuvj8+SHuX709nIgZBi/n2Q1Q5V/jgbrGOoCSX tPgw==
X-Received: by 10.52.0.209 with SMTP id 17mr1004489vdg.60.1406840962415; Thu, 31 Jul 2014 14:09:22 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.58.160.10 with HTTP; Thu, 31 Jul 2014 14:09:02 -0700 (PDT)
In-Reply-To: <53DA7B79.70709@fifthhorseman.net>
References: <20140729205846.6639765.71649.17355@certicom.com> <CAHOTMVJ4AirY+tRnVfwt1umgx=Q2xNwVTks6OoVNaV0gkKihOg@mail.gmail.com> <947D45A1-AF36-470B-8D50-7600FEF7FB30@shiftleft.org> <CAHOTMVJYr=S1fXXSYCHDJz2m6sn10uQ=ztXT7htW1m53qEZHog@mail.gmail.com> <53DA7B79.70709@fifthhorseman.net>
From: Tony Arcieri <bascule@gmail.com>
Date: Thu, 31 Jul 2014 14:09:02 -0700
Message-ID: <CAHOTMVKb8w2TeTpoZsMnJHtspp+xZrO-Ug7YpqUqW2Bc5itNmQ@mail.gmail.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Content-Type: multipart/alternative; boundary=047d7ba97002d2050904ff83aff0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/R9l9F38ablzo6AIktb0TQeVveEI
Cc: Dan Brown <dbrown@certicom.com>, IRTF Crypto Forum Research Group <cfrg@irtf.org>
Subject: Re: [Cfrg] A downside of deterministic DL signatures?
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: Thu, 31 Jul 2014 21:09:25 -0000

--047d7ba97002d2050904ff83aff0
Content-Type: text/plain; charset=UTF-8

On Thu, Jul 31, 2014 at 10:23 AM, Daniel Kahn Gillmor <dkg@fifthhorseman.net
> wrote:

> neither of these required nationstate-level effort, and they date back
> to 2008.


Okay, let me put it this way instead:

Collisions:

- Can be used to alter the content of individual messages
- This requires that the design of the hash function itself be broken

Bad nonces:

- Leak the private key which can then be used to forge as many messages as
you wish
- Can be the result of bad RNGs/implementation errata even if the algorithm
and the rest of its implementation is sound

Which is worse?

-- 
Tony Arcieri

--047d7ba97002d2050904ff83aff0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Jul 31, 2014 at 10:23 AM, Daniel Kahn Gillmor <span dir=3D"ltr">&lt;<a =
href=3D"mailto:dkg@fifthhorseman.net" target=3D"_blank">dkg@fifthhorseman.n=
et</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"">neither of these required na=
tionstate-level effort, and they date back<br></div>
to 2008.</blockquote><div><br></div><div>Okay, let me put it this way inste=
ad:</div><div><br></div><div>Collisions:</div><div><br></div><div>- Can be =
used to alter the content of individual messages</div><div>- This requires =
that the design of the hash function itself be broken=C2=A0</div>

<div><br></div><div>Bad nonces:</div><div><br></div><div>- Leak the private=
 key which can then be used to forge as many messages as you wish</div><div=
>- Can be the result of bad RNGs/implementation errata even if the algorith=
m and the rest of its implementation is sound</div>

<div><br></div><div>Which is worse?</div></div><div><br></div>-- <br>Tony A=
rcieri<br>
</div></div>

--047d7ba97002d2050904ff83aff0--


From nobody Thu Jul 31 14:21:44 2014
Return-Path: <rsalz@akamai.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 ADAC31A0171 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 14:21:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-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 6QwqfTBSZCyb for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 14:21:41 -0700 (PDT)
Received: from prod-mail-xrelay06.akamai.com (prod-mail-xrelay06.akamai.com [96.6.114.98]) by ietfa.amsl.com (Postfix) with ESMTP id 3ABEA1A013B for <cfrg@irtf.org>; Thu, 31 Jul 2014 14:21:40 -0700 (PDT)
Received: from prod-mail-xrelay06.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id A6D141657D2; Thu, 31 Jul 2014 21:21:39 +0000 (GMT)
Received: from prod-mail-relay09.akamai.com (prod-mail-relay09.akamai.com [172.27.22.68]) by prod-mail-xrelay06.akamai.com (Postfix) with ESMTP id 9BF9C1657D1; Thu, 31 Jul 2014 21:21:39 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub6.kendall.corp.akamai.com [172.27.105.22]) by prod-mail-relay09.akamai.com (Postfix) with ESMTP id 840D01E047; Thu, 31 Jul 2014 21:21:39 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB6.kendall.corp.akamai.com ([172.27.105.22]) with mapi; Thu, 31 Jul 2014 17:21:39 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Thu, 31 Jul 2014 17:21:37 -0400
Thread-Topic: [Cfrg] Another perspective on the Curve256/255 problem
Thread-Index: Ac+s9txvTFIElz9NQzmOfiPmWSZaywADl9pg
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C718599EE5B0@USMBX1.msg.corp.akamai.com>
References: <CAMm+LwgZp4sgLaFZeWV05UDvN=x7FUNbM5Gi32fJRRrKmais+A@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C718599EE460@USMBX1.msg.corp.akamai.com> <CAMm+Lwgq83JwFhxn9BFK2d0W6DMdFaC+tbzKMcahQRBJabW39w@mail.gmail.com>
In-Reply-To: <CAMm+Lwgq83JwFhxn9BFK2d0W6DMdFaC+tbzKMcahQRBJabW39w@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/tu3RDyRJ4wz52N_kZVVW5XUI7EU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Another perspective on the Curve256/255 problem
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: Thu, 31 Jul 2014 21:21:42 -0000

QWgsIHRoZSB0cnVzdCBjaGFpbiBldmFsIHdhcyB0aGUgcGFydCBJIGhhZCBza2lwcGVkLg0KDQo+
IElzIHRoZXJlIGEgcmVhc29uIHRoYXQgd291bGQgb25seSB3b3JrIGZvciB0aGF0IHBhcnRpY3Vs
YXIgY3VydmUgYW5kIG5vdCB0aGUNCj4gTlVNUz8gSSB3YXNuJ3Qgc2VlaW5nIHRoYXQgYXMgYSBk
aXNjcmltaW5hdGluZyBhcmd1bWVudC4gSXRzIGEgZ29vZCBvbmUNCj4gdGhvdWdoLg0KDQpJJ20g
bm90IHF1YWxpZmllZCB0byBhbnN3ZXIuDQoNCgkvciQNCg0KLS0gIA0KUHJpbmNpcGFsIFNlY3Vy
aXR5IEVuZ2luZWVyDQpBa2FtYWkgVGVjaG5vbG9naWVzLCBDYW1icmlkZ2UgTUENCklNOiByc2Fs
ekBqYWJiZXIubWUgVHdpdHRlcjogUmljaFNhbHoNCg0K


From nobody Thu Jul 31 18:37:15 2014
Return-Path: <djb-dsn2-1406711340.7506@cr.yp.to>
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 E9E931A0368 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 18:37:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.7
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=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 24DaVUBW7kkp for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 18:37:11 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id E31291A035F for <cfrg@irtf.org>; Thu, 31 Jul 2014 18:37:10 -0700 (PDT)
Received: (qmail 9955 invoked by uid 1011); 1 Aug 2014 01:37:11 -0000
Received: from unknown (unknown) by unknown with QMTP; 1 Aug 2014 01:37:11 -0000
Received: (qmail 11642 invoked by uid 1001); 1 Aug 2014 01:36:59 -0000
Date: 1 Aug 2014 01:36:59 -0000
Message-ID: <20140801013659.11640.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/oMS8YfLOWSBlHMFm7pBeJobafrA
Subject: Re: [Cfrg] Progress on curve recommendations for TLS WG
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: Fri, 01 Aug 2014 01:37:14 -0000

Paterson, Kenny writes:
> Would selecting curves that are not in Weierstrass form materially
> slow down deployment?

It wouldn't slow down deployment at all. As explained in detail in my
"curves, coordinates, and computations" message, Montgomery curves and
Edwards curves are trivially expressed in short-Weierstrass form, so
they are fully compatible with standards such as ECDSA, and they allow
all of the usual implementation options.

These curves _also_ enable additional implementation options and better
protocol designs---additional computations and coordinates---helping to
minimize tensions between speed, security, and simplicity. For example,
the Montgomery ladder is the simplest DH algorithm in all of ECC, and in
combination with sensible engineering (always set the high bit of the
scalar, choose twist-secure curves, use protocols that suppress the
y-coordinate) it removes many opportunities for implementors to screw up
security. Similarly, complete Edwards addition simplifies signatures.

The obvious conclusion is that every new curve should support the
_coordinates_ required for these additional options. What this means is
that the curve has a unique point of order 2 and points of order 4. Any
such curve can be expressed in Edwards form _and_ can be expressed in
Montgomery form _and_ can be expressed in short-Weierstrass form.

> What is the cost of keeping backwards compatibility with existing
> defined point formats in RFC 4492, if any, for different curve shapes
> (Edwards, twisted Edwards, Montgomery, Weierstrass-only form)?

Adding new formats would provide only a small gain in efficiency (see my
"curves, coordinates, and computations" message) but a larger gain in
simplicity. For DH protocols I recommend the Montgomery x-coordinate,
allowing remarkably simple DH implementations. Signatures are inherently
more complicated, with two scalars inside verification; for signatures I
recommend Edwards coordinates to simplify the resulting additions. Both
of these encoding choices are compatible with top speed but are amply
justified by simplicity.

> If ephemeral really means ephemeral, what are the implications for the
> mix of fixed-base/variable-base computations in ECDHE and what, if any,
> are the implications for the choice of curve type?

In the setting of one-time DH keys, both fixed-base and variable-base
computations are frequent. For all curves one can easily make fixed-base
a few times faster than variable-base; the exact speedup depends mainly
on the amount of precomputation. A poor choice of curve (cofactor 1)
slows down both of these operations by a factor of roughly 1.5. A poor
choice of prime (e.g., the P-256 prime) creates another big slowdown.

Details of the performance considerations have been amply explored in
the literature, leading to the conclusion that what one wants for
performance is a curve with a unique point of order 2 and points of
order 4---fortunately matching what one wants for simplicity.

> Correspondingly, what are the implications for our choices if we accept
> that ephemeral reuse is the expected behaviour?

I think it's important to be careful with terminology here.

The TLS advertisement of "perfect forward secrecy" seems dangerously
deceptive when keys are in fact not erased for days or months (see
https://www.imperialviolet.org/2013/06/27/botchingpfs.html). Keeping
keys around for an unlimited-length session, or even for a single
unlimited-length connection, is clearly not the right policy. The
fundamental question here is not whether keys are reused, but how much
time is allowed to elapse before keys are erased.

I'm told that the default time for Microsoft products is two hours. This
strikes me as much too long. I'd suggest 10 seconds as an upper limit. I
realize that many protocols need to be changed to do this properly, but
it's a target to shoot for.

But what about the people who really want to save keygen time by reusing
DH keys? Won't they object to the 10-second upper limit?

The good news: 1 keygen is unnoticeable next to (say) 100 variable-base
computations, even if the keygen is implemented as a variable-base
computation without any special fixed-base code. So these people don't
actually have any performance incentive to use a DH key more than 100
times. The only ways to stretch 100 DH invocations across 10 seconds are

   * to use a very slow device or
   * to use a faster device that isn't actually spending much of its
     time on DH, so there's little reason to worry about keygen.

A few data points regarding "very slow device": I'm not talking about a
typical smartphone/tablet CPU such as a 1GHz Cortex-A8 (20000 Curve25519
computations in 10 seconds). I'm talking about, e.g., a 16Mhz ATmega2560
microcontroller. The Hutter--Schwabe AVR implementation of Curve25519
takes 1.4 seconds on this CPU---but this still means that 10 seconds is
enough time for a keygen plus several variable-base computations.

Obviously the performance impact of reusing DH keys is to emphasize
variable-base computations. In the opposite direction, signing
emphasizes fixed-base computations, while verification emphasizes
double-base computations.

As for implications, surely CFRG should consider the performance of each
of these important computations, should consider the simplicity of
implementations focused on one type of computation, and should consider
the simplicity of implementations handling more types of computations.
But I don't expect this broad view to create conflicts in curve choices;
it's more a matter of confirming that one curve works well everywhere.

I do recommend considering, separately from performance and simplicity
of good implementations, the extent to which performance and simplicity
can be improved by _bad_ implementations. Such improvements create an
incentive towards bad implementations and are therefore anti-desiderata.
Examples of "bad":

   * implementations that don't handle all valid inputs correctly;
   * implementations that damage security when the attacker supplies
     invalid inputs;
   * variable-time implementations.

There are two reasons to highlight timing attacks rather than power
attacks, EM attacks, acoustic attacks, etc.: first, timing is naturally
visible through the Internet; second, I highly doubt that considering
side-channel attacks beyond timing will affect any curve decisions.

> Do the current proposals (Curve25519 and friends, and the NUMS curves)
> provide an adequate degree of rigidity that is likely to satisfy the
> widest set of commentators?

This sounds to me like an evaluation question, not a requirements
question. I do think that limiting the curve designer's wiggle room
belongs on the list of desiderata, for reasons explained in the
following documents:

   http://cr.yp.to/talks/2013.05.31/slides-dan+tanja-20130531-4x3.pdf (page 21)
   http://safecurves.cr.yp.to/rigid.html

However, the following recent analysis shows that the Brainpool curves,
which were advertised as "generated in a systematic and comprehensive
way" covering several different security levels, actually gave the curve
generator the flexibility to secretly choose from among more than
1000000 curves for any particular prime:

   http://safecurves.cr.yp.to/bada55.html
   http://safecurves.cr.yp.to/bada55/bada55-20140722.pdf

I would therefore advise against stating any desiderata in terms of
unjustified marketing terminology such as "nothing up my sleeves" or
"generated in a systematic and comprehensive way" or "generated
deterministically from the security level". The actual question here is
quantitative: how many different curves could a malicious curve
generator have fooled the public into accepting?

> Or should we be thinking about generating
> fresh curves using a public process having verifiably random inputs? What
> would the likely impact be on performance?

The impact depends on exactly which class of curves is chosen, raising
the question of what manipulation is possible through this choice---I
would guess more than the manipulation possible for any of the proposals
that are on the table so far.

Dan Brown claims that choosing random curves (in some unspecified class)
is safer than choosing "special" curves. He says that this claim is
justified by "special" MOV-vulnerable curves and "special"
SmartASS-vulnerable curves. However, he ignores

   * the fact that we always take "special" curves with unusually small
     cofactors, and believe these to be more secure than random curves;

   * the fact that we now take even more "special" curves that also have
     unusually small twist cofactors, for the same reason; and

   * five further counterexamples in Section 11 of a 2008 paper by
     Koblitz, Koblitz, and Menezes (http://eprint.iacr.org/2008/390)---
     in these five examples, under perfectly believable hypotheses,
     random curve choices are _less_ secure than "special" curves.

Koblitz, Koblitz, and Menezes conclude that "either choice has risks"
and that the ultimate decision is "a subjective one based on the user's
best guess about future vulnerabilities."

---Dan


From nobody Thu Jul 31 19:13:54 2014
Return-Path: <pgut001@cs.auckland.ac.nz>
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 23F211A037A for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 19:13:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level: 
X-Spam-Status: No, score=-0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RP_MATCHES_RCVD=-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 pu14ajmQLSFk for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 19:13:45 -0700 (PDT)
Received: from mx2.auckland.ac.nz (mx2.auckland.ac.nz [130.216.125.245]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E39821A035F for <cfrg@irtf.org>; Thu, 31 Jul 2014 19:13:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1406859225; x=1438395225; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=5UxW6Wds8jNYgf51Wb+ih4ujedMRdtEbvQRsrFqshq0=; b=uGzT1b5a1TD+kTjpgaB+EzB3Z7ZAh+Rw35uvn8hInVr960YfP8iHC1cq qaWhQG/1w2xccNUAkEb7hXlIEWKyQ1FYevgkyfHhGyStWVREMaeFicUv4 EaRUuzTobmK91v6wsn9IAv894IROaotmxK/ZSGLmeXFguNUvkC5oWsbcR I=;
X-IronPort-AV: E=Sophos;i="5.01,776,1399982400"; d="scan'208";a="266749121"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.171 - Outgoing - Outgoing
Received: from uxchange10-fe4.uoa.auckland.ac.nz ([130.216.4.171]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES128-SHA; 01 Aug 2014 14:13:41 +1200
Received: from UXCN10-5.UoA.auckland.ac.nz ([169.254.5.247]) by uxchange10-fe4.UoA.auckland.ac.nz ([169.254.109.63]) with mapi id 14.03.0174.001; Fri, 1 Aug 2014 14:13:40 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] matching AES security
Thread-Index: Ac+tLjX2dUjMZENtSvieo4tmEFvSoQ==
Date: Fri, 1 Aug 2014 02:13:40 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C738EFB3D63@uxcn10-5.UoA.auckland.ac.nz>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/JnHxF_KhlyUCnmPSw0omQh3LUfY
Subject: Re: [Cfrg] matching AES security
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: Fri, 01 Aug 2014 02:13:50 -0000

Johannes Merkle <johannes.merkle@secunet.com> writes:=0A=
>The attack is very simple:=0A=
>- Gather a list of 2^N cipher texts resulting from the _same_ plain text=
=0A=
>encrypted under 2^N random keys.=0A=
>- For 2^(128-N) randomly chosen (different) keys, encrypt the known plain=
=0A=
>text and check if the resulting cipher text matches one of the gathered=0A=
>cipher texts=0A=
=0A=
That attack is *conceptually* very simple, in the same way that getting hum=
ans=0A=
to Mars is conceptually very simple:=0A=
=0A=
- Build a rocket capable of travelling to Mars and back.=0A=
- Board rocket and fly to Mars.=0A=
=0A=
Practically, though, some of the steps are a bit tricky.=0A=
=0A=
Peter.=0A=


From nobody Thu Jul 31 19:26:47 2014
Return-Path: <crypto@brainhub.org>
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 D0CC01A03A6 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 19:26:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 53iMsog4g64p for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 19:26:44 -0700 (PDT)
Received: from qmta09.emeryville.ca.mail.comcast.net (qmta09.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:96]) by ietfa.amsl.com (Postfix) with ESMTP id 25F651A03A1 for <cfrg@irtf.org>; Thu, 31 Jul 2014 19:26:44 -0700 (PDT)
Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta09.emeryville.ca.mail.comcast.net with comcast id ZEDo1o0061bwxycA9ESkB1; Fri, 01 Aug 2014 02:26:44 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by omta18.emeryville.ca.mail.comcast.net with comcast id ZESi1o00S4uhcbK8eESiRk; Fri, 01 Aug 2014 02:26:43 +0000
Message-ID: <53DAFAE2.6030003@brainhub.org>
Date: Thu, 31 Jul 2014 19:26:42 -0700
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: cfrg@irtf.org
X-Priority: 5 (Lowest)
References: <9A043F3CF02CD34C8E74AC1594475C738EFB3D63@uxcn10-5.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C738EFB3D63@uxcn10-5.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1406860004; bh=tL/y3gf2+pzRNS2VsO7qQZJ5cN2VdagNfKqHjxAkkcU=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=viRxU/eGKV8HoRQooPJwJhHpj+46q5Bs9LOS3btQeh6BziX8N2qLh2LJwhMVYnlSj 5mJQ4hdckI9K5lR1CvPfqfgyHioT5EBsNGUqdtWgH0ezuLx4rzZfDFaB/D07/xSBsJ uXIDRiZtGgdrq7pJbaBnb+T5BFZ+jZi+wplOFuVJvb4cZ5yXOl4NFucqy17F9OE4Ic Yc8XeagkS1JizAOr9ekakMvoJ6FvYe4Et5WFSG+nh9qfiz1CZXTCmVQLNXhbGdyjR3 546IPVngns7F0/q77zvaOMd19e8muPAwkfDSw52j9deP0XbTYbQ/XQeHsQ4bGLCApD bZTMgI8Sxrt9A==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/uUW2XUxtVx3-AxyzT06HPagawBQ
Subject: Re: [Cfrg] matching AES security
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: Fri, 01 Aug 2014 02:26:46 -0000

On 07/31/2014 07:13 PM, Peter Gutmann wrote:
> Johannes Merkle <johannes.merkle@secunet.com> writes:
>> The attack is very simple:
>> - Gather a list of 2^N cipher texts resulting from the _same_ plain text
>> encrypted under 2^N random keys.
>> - For 2^(128-N) randomly chosen (different) keys, encrypt the known plain
>> text and check if the resulting cipher text matches one of the gathered
>> cipher texts
> That attack is *conceptually* very simple, in the same way that getting humans
> to Mars is conceptually very simple:
>
> - Build a rocket capable of travelling to Mars and back.
> - Board rocket and fly to Mars.
>
> Practically, though, some of the steps are a bit tricky.
>
> Peter.
>

Besides, a well-designed protocol that uses a block cipher should 
consider including (pseudo)random IVs.


From nobody Thu Jul 31 20:00:27 2014
Return-Path: <watsonbladd@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 D6EF11A03A5 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 20:00:25 -0700 (PDT)
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 RKxqSkW8aFP8 for <cfrg@ietfa.amsl.com>; Thu, 31 Jul 2014 20:00:23 -0700 (PDT)
Received: from mail-yh0-x229.google.com (mail-yh0-x229.google.com [IPv6:2607:f8b0:4002:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3F0991A039F for <cfrg@irtf.org>; Thu, 31 Jul 2014 20:00:23 -0700 (PDT)
Received: by mail-yh0-f41.google.com with SMTP id b6so2244991yha.28 for <cfrg@irtf.org>; Thu, 31 Jul 2014 20:00:22 -0700 (PDT)
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=vYjlGO5FY50Xi+5CT0JD5UqxKIbQrD4os8+RE4tRlXQ=; b=vIY1ds/jSUXgogHBmMPkXZyl7UTHTPPnUCbATLBUSbfjar3TKL6W/UqN7U2ys7b0yH Zi3gqX8SuADS82sXqZqBuep1cTZUVxzIkHU+SVDBsSUn6WqNUiFjueMIQvjwgOk3UpfS XavVblcXq6Il0DhqRRdN68T3r3YBFoxoNktrFk10u4zq1OonOubh3rQki8vId8q+/RXm RWA9kb/VA1cIM/F7Nk5a1P7fw9zU8lFNrGhXwFZzDRnr+VBDLLe2twR8MaxQsw/w+Vqs DooVM13qqdeeg/mm9VK86rgp3c9A/OXUiDfNeupEwv7cIUiLfN2PEf56iAEYsr2DBzV8 +fzA==
MIME-Version: 1.0
X-Received: by 10.236.94.197 with SMTP id n45mr364613yhf.171.1406862022421; Thu, 31 Jul 2014 20:00:22 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Thu, 31 Jul 2014 20:00:22 -0700 (PDT)
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C738EFB3D63@uxcn10-5.UoA.auckland.ac.nz>
References: <9A043F3CF02CD34C8E74AC1594475C738EFB3D63@uxcn10-5.UoA.auckland.ac.nz>
Date: Thu, 31 Jul 2014 20:00:22 -0700
Message-ID: <CACsn0ckecBetDnnM41XEaO9GLva_Y-jJ=-Ap0aLDs=LT4JufDA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/T1lwrJlmRa-5DjsVxkMOWIZAm6o
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] matching AES security
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: Fri, 01 Aug 2014 03:00:26 -0000

On Thu, Jul 31, 2014 at 7:13 PM, Peter Gutmann
<pgut001@cs.auckland.ac.nz> wrote:
> Johannes Merkle <johannes.merkle@secunet.com> writes:
>>The attack is very simple:
>>- Gather a list of 2^N cipher texts resulting from the _same_ plain text
>>encrypted under 2^N random keys.
>>- For 2^(128-N) randomly chosen (different) keys, encrypt the known plain
>>text and check if the resulting cipher text matches one of the gathered
>>cipher texts
>
> That attack is *conceptually* very simple, in the same way that getting humans
> to Mars is conceptually very simple:
>
> - Build a rocket capable of travelling to Mars and back.
> - Board rocket and fly to Mars.
>
> Practically, though, some of the steps are a bit tricky.

Except that the issue isn't doing 2^128 calculations: it's what you
have when you have only done 2^70 or so calculations.
The relevant paper is http://cr.yp.to/snuffle/bruteforce-20050425.pdf.

Sincerely,
Watson Ladd

>
> Peter.
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



-- 
"Those who would give up Essential Liberty to purchase a little
Temporary Safety deserve neither  Liberty nor Safety."
-- Benjamin Franklin

