### Re: [Cfrg] Elliptic curve evaluation truths

"Parkinson, Sean" <sean.parkinson@rsa.com> Wed, 26 November 2014 23:31 UTC

Return-Path: <sean.parkinson@rsa.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 DEADE1A8796
for <cfrg@ietfa.amsl.com>; Wed, 26 Nov 2014 15:31:43 -0800 (PST)

X-Virus-Scanned: amavisd-new at amsl.com

X-Spam-Flag: NO

X-Spam-Score: -4.301

X-Spam-Level:

X-Spam-Status: No, score=-4.301 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_MED=-2.3, 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 Y0Fk_AmGNMQR for <cfrg@ietfa.amsl.com>;
Wed, 26 Nov 2014 15:31:41 -0800 (PST)

Received: from mailuogwdur.emc.com (mailuogwdur.emc.com [128.221.224.79])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id 323A71A878C
for <cfrg@irtf.org>; Wed, 26 Nov 2014 15:31:40 -0800 (PST)

Received: from maildlpprd55.lss.emc.com (maildlpprd55.lss.emc.com
[10.106.48.159])
by mailuogwprd51.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with
ESMTP id sAQNVcCi022340
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
Wed, 26 Nov 2014 18:31:39 -0500

X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com sAQNVcCi022340

DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=rsa.com; s=jan2013;
t=1417044699; bh=0f1k/spvaNyGmlmoi1TMwga1Ka0=;
h=From:To:CC:Date:Subject:Message-ID:References:In-Reply-To:
Content-Type:Content-Transfer-Encoding:MIME-Version;
b=li1k1gYOJHuiTdn5zbHTeShx1FYvOoq/ceZCn4YdafYoLy6OusBUhpADuUHPJ84V1
8HAj41iCxbhZrH2hyGTn6m5ed7nNOcZvY4VFujoM3IRvukD61g/YKB/3IkfqThPjHL
Asd+jAgfosn8RAQ4/Nizv39OHIDWPoPtuXiiestg=

X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com sAQNVcCi022340

Received: from mailusrhubprd04.lss.emc.com (mailusrhubprd04.lss.emc.com
[10.253.24.22]) by maildlpprd55.lss.emc.com (RSA Interceptor);
Wed, 26 Nov 2014 18:30:55 -0500

Received: from mxhub06.corp.emc.com (mxhub06.corp.emc.com [128.222.70.203])
by mailusrhubprd04.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with
ESMTP id sAQNVEDk003959
(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL);
Wed, 26 Nov 2014 18:31:14 -0500

Received: from mx17a.corp.emc.com ([169.254.1.228]) by mxhub06.corp.emc.com
([128.222.70.203]) with mapi; Wed, 26 Nov 2014 18:31:14 -0500

From: "Parkinson, Sean" <sean.parkinson@rsa.com>

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

Date: Wed, 26 Nov 2014 18:31:11 -0500

Thread-Topic: [Cfrg] Elliptic curve evaluation truths

Thread-Index: AdAIhUScn/JQkG3QSJOURMsxShDNUwASHk4AAA+gqgAABC8YAAAP9B0AABzRV6A=

Message-ID: <2FBC676C3BBFBB4AA82945763B361DE60BF9B914@MX17A.corp.emc.com>

References: <2FBC676C3BBFBB4AA82945763B361DE60BF9B858@MX17A.corp.emc.com>
<CACsn0ck=0meRduRi7gCpX=Lp2NffKjQJQhY-QR+erEg2WbKkZg@mail.gmail.com>
<2FBC676C3BBFBB4AA82945763B361DE60BF9B8A4@MX17A.corp.emc.com>
<85CC278A-E032-4748-BC8F-DEF4C058C6DB@shiftleft.org>
<D09B4E4F.37B2B%kenny.paterson@rhul.ac.uk>

In-Reply-To: <D09B4E4F.37B2B%kenny.paterson@rhul.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="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

MIME-Version: 1.0

X-Sentrion-Hostname: mailusrhubprd04.lss.emc.com

X-RSA-Classifications: DLM_1, public

Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_bQo2l-qgbjMvaB5B02yUe6fN40

Cc: "cfrg@irtf.org" <cfrg@irtf.org>

Subject: Re: [Cfrg] Elliptic curve evaluation truths

X-BeenThere: cfrg@irtf.org

X-Mailman-Version: 2.1.15

Precedence: list

List-Id: Crypto Forum Research Group <cfrg.irtf.org>

List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>,
<mailto:cfrg-request@irtf.org?subject=unsubscribe>

List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>

List-Post: <mailto:cfrg@irtf.org>

List-Help: <mailto:cfrg-request@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, 26 Nov 2014 23:31:44 -0000

Some of the statements are not as simple as they may at first appear. By teasing out the facts from the disputed statements I was hoping to get clarity around where the groups thoughts are at. Anyway, I am now looking forward to the significant developments! Thanks Kenny, Sean -- Sean Parkinson | Consultant Software Engineer | RSA, The Security Division of EMC Office +61 7 3032 5232 | Fax +61 7 3032 5299 www.rsa.com -----Original Message----- From: Paterson, Kenny [mailto:Kenny.Paterson@rhul.ac.uk] Sent: Wednesday, 26 November 2014 7:39 PM To: Michael Hamburg; Parkinson, Sean Cc: cfrg@irtf.org Subject: Re: [Cfrg] Elliptic curve evaluation truths Hi Everyone, Thanks for contributing to this thread. It's helpful in establishing some facts that will help to inform our decision-making for people who are not so aware of the basic issues. But, please, let's not get into huge amounts of details here, as it will distract us from our main business. On that front, I'm hoping we'll have some significant developments in the next couple of days that will help us move forward with that main work of selecting curves to recommend to the TLS WG. Cheers Kenny On 26/11/2014 02:02, "Michael Hamburg" <mike@shiftleft.org> wrote: >Usually Montgomery curves are used because they have a very simple and >efficient x-only Montgomery ladder implementation, where the y >coordinate is not computed, at least not in the inner loop. > >It is not possible to add two points without some information about the >y-coordinate. However, if the y-coordinate is given (compressed on the >wire, but uncompressed internally), then it possible to add points on a >Montgomery curve. That¹s not what people will do, though. Instead >they¹ll convert to (twisted) Edwards, where all the math is much simpler. > Depending on the signature form, it may be possible to verify without >adding, but people probably won¹t do that either. > >Likewise, it is possible but not practical to use ³pools of points² on >a Montgomery curve. Instead people will use Edwards form. > >So I would state: > >def) ³Twisted Edwards² includes traditional Edwards curves with a = 1. > >0) Every Montgomery curve is equivalent (isomorphic) to a Twisted >Edwards curve. Every Twisted Edwards curve is equivalent to a >Montgomery or twisted Montgomery curve. Every elliptic curve is >equivalent to a short Weierstrass curve. > >4) Signing and verification on a Montgomery curve practically requires >using Twisted Edwards form. > >6) Twisted Edwards and short Weierstrass curves support precomputed >tables to speed up ephemeral DH. Supporting this for Montgomery curves >practically requires using Twisted Edwards form. > >Nitpicking Watson¹s claims: > >Every curve supports the Montgomery ladder, often in several flavors. >Montgomery curves are used because they have a particularly simple and >efficient Montgomery ladder. A curve with a point of order 4 in some >other form may have a somewhat slower or more complex Montgomery ladder >than Montgomery curves. > >Cheers, >< Mike > > >> On Nov 25, 2014, at 4:02 PM, Parkinson, Sean <sean.parkinson@rsa.com> >>wrote: >> >> My understanding is that because you can't efficiently perform a >>point add operation of two random points with Montgomery curves then >>signature schemes are out. >> Is there inefficient algorithms for performing point add on the >>Montgomery curve? >> I intended to not include transforming points to other curve types. >>So maybe, >> 4. Signing and verification operations on Montgomery curves is not >>possible. >> >> I'm intentionally not talking about simplicity of implementations. >>That is making things more complicated and hiding the 'truths'. >> >> Sorry, 'Pools of points' was my name for the technique of having a >>number of pre-generated points that are then added to each other to >>quickly generate new points for TLS PFS. >> >> >> Sean >> -- >> Sean Parkinson | Consultant Software Engineer | RSA, The Security >>Division of EMC Office +61 7 3032 5232 | Fax +61 7 3032 5299 >>www.rsa.com >> >> >> -----Original Message----- >> From: Watson Ladd [mailto:watsonbladd@gmail.com] >> Sent: Wednesday, 26 November 2014 2:35 AM >> To: Parkinson, Sean >> Cc: cfrg@irtf.org >> Subject: Re: [Cfrg] Elliptic curve evaluation truths >> >> On Mon, Nov 24, 2014 at 11:56 PM, Parkinson, Sean >><sean.parkinson@rsa.com> wrote: >>> In hopes of reaching consensus, I thought I might start a list of >>> known truths. >>> >>> Please don¹t just argue against each point but instead look to >>> refine the statements where possible. >>> >>> >>> >>> 1. Only curves over prime fields are being considered. >>> >>> 2. Good, efficient implementations of Twisted Edwards curves will >>> faster than good, efficient implementations of short Weierstrass >>> with the same prime. >>> >>> 3. Good, efficient Montgomery curve implementations are simpler >>>than >>> good, efficient Twisted Edwards and short Weierstrass curve >>>implementations. >>> >>> 4. Montgomery curves cannot be used for signing/verification >>> operations. >> >> This is incorrect: see DJB's "Curves, Coordinates and Computation >>emails". One can retrieve y-coordinates from the Montgomery ladder. >> In fact, 2 and 3 both need to be reworked in light of this email. >> >> The correct statement is that curves with a complete addition law are >>easy to work with, and that the Montgomery ladder is also very simple. >> Curves have a complete addition law if they are isomorphic to Edwards >>curves, which is almost the same as having a point of order 4. The >>Montgomery ladder works for curves with a point of order 4. (I may >>have gotten the conditions somewhat wrong: this is morally correct) >> >> How the curve is presented on the wire doesn't change this: one does >>a few fast calculations to put the point retrieved from the wire in >>the preferred form for calculation, and a few fast ones at the end to >>put it back in the form on the wire. >> >> This is also missing security considerations: it's easy to get >>multiplication correct with a complete addition law, much harder >>without one. Edwards curves always have a complete addition law, while >>Twisted Edwards may or may not, depending on the value $a$ being a >>quadratic residue or not. >> >>> >>> 5. Small co-factor curves are no weaker, in terms of small >>>subgroup >>> attacks, than co-factor 1 curves. >>> >>> 6. Twisted Edwards and short Weierstrass but not Montgomery >>>curves >>> support pools of points for ephemeral DH. >> >> What do you mean by pools of points? Do you mean fast fixed-based >>exponentiation? In that case one can do a fast fixed-based >>exponentiation on the isomorphic or isogenous Edwards curve, and use a >>few fast computations to get the point on the Montgomery curve. >> >>> >>> 7. NIST curves are going to be in use for some time. >>> >>> 8. One curve at about WF-128 is required. >>> >>> 9. At least one curve with WF greater than 128 is required. >>> >>> 10. Good, efficient implementations of curves using special primes >>>are >>> significantly faster than good, efficient implementations using >>>random primes. >>> >>> 11. There are steps in performance based on the number of words used. >>> >>> 12. There are a few special primes that are significantly faster >>>than the >>> step they are on. >>> >>> 13. The curves chosen will be used for ECDH and ECDSA. >>> >>> 14. The curves will be used in TLS and certificates. >>> >>> >>> >>> If you have more truths then please add to this list. >>> >>> >>> Sean >>> >>> -- >>> >>> Sean Parkinson | Consultant Software Engineer | RSA, The Security >>> Division of EMC >>> >>> Office +61 7 3032 5232 | Fax +61 7 3032 5299 >>> >>> www.rsa.com >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >> _______________________________________________ >> 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] Elliptic curve evaluation truths Parkinson, Sean
- Re: [Cfrg] Elliptic curve evaluation truths Watson Ladd
- Re: [Cfrg] Elliptic curve evaluation truths Parkinson, Sean
- Re: [Cfrg] Elliptic curve evaluation truths Parkinson, Sean
- Re: [Cfrg] Elliptic curve evaluation truths Michael Hamburg
- Re: [Cfrg] Elliptic curve evaluation truths Paterson, Kenny
- Re: [Cfrg] Elliptic curve evaluation truths Parkinson, Sean