
From nobody Fri Aug  1 01:53:58 2014
Return-Path: <eternaleye@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 36CBD1A030D for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 01:53: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 PIvzH_ZELfdP for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 01:53:55 -0700 (PDT)
Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 14B441A010D for <cfrg@irtf.org>; Fri,  1 Aug 2014 01:53:55 -0700 (PDT)
Received: by mail-pd0-f182.google.com with SMTP id fp1so5209183pdb.13 for <cfrg@irtf.org>; Fri, 01 Aug 2014 01:53:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=from:to:subject:date:message-id:disposition-notification-to :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=AD1FdwbTjv/Lw4lU9dB17LtVhlg1b965VuLoICkrQtI=; b=T/JqXkcPF5q2PGLmnn83kqTboR0RmYaSqyNVqWUtx9CYbE6hb5FoUoAzKDCX5uxrOV QMJMhp1pscqcmLS6tdimbAxx/zIW+UqbHZmt8bdiZHo43QW6qQfAuHlQ23PuvsBNMG49 xkcFaVQIZ3vhk8BDYaDORwQgE7a/Zn26B/7zx8DfcACMIehsBweN60blPqMOnnzpvvol 67qxdt52O5OQsrTY61JDxNBtT0QC/CLHm6I5Y/EMaJhcvZe0eVm9X8Mxw1Jap7KN36Sp T1Ag35p0SnKHslf+o0mT2MUYO+p9o/vXucowCepfhl5Rw/zTPtzqiluyJDQHC52MbvDo 8VzA==
X-Received: by 10.66.161.194 with SMTP id xu2mr4135403pab.128.1406883234466; Fri, 01 Aug 2014 01:53:54 -0700 (PDT)
Received: from arkadios.localnet ([66.87.138.250]) by mx.google.com with ESMTPSA id v17sm12059589pdj.11.2014.08.01.01.53.53 for <cfrg@irtf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Aug 2014 01:53:53 -0700 (PDT)
From: Alex Elsayed <eternaleye@gmail.com>
To: cfrg@irtf.org
Date: Fri, 01 Aug 2014 01:53:50 -0700
Message-ID: <2776234.venKYWsbWt@arkadios>
User-Agent: KMail/4.13.1 (Linux/3.15.6; KDE/4.13.2; x86_64; ; )
In-Reply-To: <20140730123336.29011.qmail@cr.yp.to>
References: <20140730123336.29011.qmail@cr.yp.to>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/n7BpQ5IQTZAt3-Jj78MSFU6EplQ
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 08:53:57 -0000

On Wednesday, July 30, 2014 12:33:36 PM D. J. Bernstein wrote:
<Snip detailed, informative explanation of why matching security levels is 
nowhere near as simple as matching bit-lengths of keys>

I snip because I want to make a point that is considerably shorter:

Matching bit-lengths has value not in the _technicals_, but because it's a 
Schelling point. Using a 512-or-so-bit curve may very well not provide any 
computational security benefit over a 414-bit curve; nonetheless the 
_psychological_ simplification of "Oh, hashes and ECC need about 2x work 
factor bits, and symmetric keys need about 1x" is a security benefit in 
dealing with the world of humans, especially as regards deployment.

At the security parameters involved at that level, the sacrifice of 
performance involved is unlikely to be a killer (if it was, the user is 
probably using work-factor 128 systems, which happen to be roughly bit-length-
matched anyway).


From nobody Fri Aug  1 06:04: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 7056B1A8BB5 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 06:04:05 -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 gI_qjg25BfEo for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 06:04:03 -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 3B94C1A0B17 for <cfrg@irtf.org>; Fri,  1 Aug 2014 06:04:03 -0700 (PDT)
User-Agent: K-9 Mail for Android
In-Reply-To: <2776234.venKYWsbWt@arkadios>
References: <20140730123336.29011.qmail@cr.yp.to> <2776234.venKYWsbWt@arkadios>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Fri, 01 Aug 2014 14:03:56 +0100
To: cfrg@irtf.org
Message-ID: <836aeec8-62be-4cc7-8c43-9bc4518b5d9e@email.android.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/wAyAqh4SiDovpKkynJGhzAl8T80
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 13:04:05 -0000

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

On 1 August 2014 09:53:50 BST, Alex Elsayed <eternaleye@gmail.com> wrote:

>Matching bit-lengths has value not in the _technicals_, but because it's a Schelling point.

I think recommendations need to be made on solid technical and practical grounds, not fluffy marketing and psychological ones.

Users wouldn't typically know Rho work factor is actually lower than they thought at 0.886√ℓ, or might just think the 521-bit curves just typoed 512. Not to mention the eye-roll I know most of us feel when we see "military-grade" crypto marketed (probably with clearly-visible penguins), and the number of times we've all seen people copy-paste SSL configs.

We need fast, strong cryptosystems. But I don't think specific aesthetics of the bit lengths of those matter outside their security and performance effects, and I don't think it'll have an appreciable effect on adoption either way.

- --
/akr
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI3BAEBCgAhBQJT25A7GhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6SowP/iOVodqSSs78w3CJ+ESjZan0TgNOnxPcSz0r8ZhoVqCHPlpqYh44
RuMNcxiEHAM5zxJ3sD2ofoZ9p9QiGtvLDv113L58AQKtyEnvWgQe+EWL0QjFPPOL
oAmLzy9bWsPEdsOlbvf/CtRkYogB+226fwwPrQ6kVcp3oyaj2J4ft/UFmGogWX4z
OcxMnDlgfx1MnsqR3k7Akibx8dUCMIHsGJEfRSgOSDI+a58geYtX1i8eUq8rvS0U
TcXTMXSv89xZ8csHUK4v9xS320aSbBocXc5doeVoU4pqMfZ1tC6Vj04eXzqy8CMZ
/qqZnKDoQfX3sVAxdVF/7K/7E/qWDC07SL5QUv5cw6driaLSBn327wXVulO+wSNJ
bK333Wd0y4EkCxDYBKAQUJRxiWOnOLmIxpGvBjJJlxSH1trPVJ7lZoiD3MDuCWRZ
NKf8J76+KDh8WQSfPv29TEEq1e7ZuWiuFyZeXP+31oroWi40hnHjd+iRGz4YEQ/8
pjz0mDBHMuR9B+2gcXkyvr5djSwTGQvTBx8EUF1FbjATrvxPf9hiHmNFqLA39JEQ
N8SIpeFbQby8hE0hOAunvp0a7yiyzw588srcvegRzy+R7VYVXAacNEGfR4SXo5iA
LegVEC4X4tCmSNIM7KuztTPwEvhnlQO3mqiOCZCAAiMloQas94fOTGvc
=3GMF
-----END PGP SIGNATURE-----


From nobody Fri Aug  1 06:10:20 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 69FD11A0AFF for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 06:10: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, 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 K0yDfkHFgguD for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 06:10:11 -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 37FC71A0383 for <cfrg@irtf.org>; Fri,  1 Aug 2014 06:10:11 -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=1406898611; x=1438434611; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=ln4fdAkUl14UVbf2SggLK5bJ/bf3wQp39oiRl1eZ3aY=; b=Me/a42zP6NCqMenoQNSjFocOtvx5LQe18Q7USyrQ3MTv3UV4grl7I0ul YlE5Vez/+nAGI32XC6RRfoBbi/Pk8iHTB99sEybECcXBlzcVime26XFd9 zwHEK2NnmTRTwEKHLsDS0IFEm45nhRKwSkpJDJ+h+5dgvVHfDHjHbb7fZ Q=;
X-IronPort-AV: E=Sophos;i="5.01,780,1399982400"; d="scan'208";a="266839849"
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; 02 Aug 2014 01:10:08 +1200
Received: from UXCN10-5.UoA.auckland.ac.nz ([169.254.5.247]) by uxchange10-fe2.UoA.auckland.ac.nz ([169.254.27.86]) with mapi id 14.03.0174.001; Sat, 2 Aug 2014 01:10:08 +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+tiep7KEhI5s/HT5ebw8bFDOFZrg==
Date: Fri, 1 Aug 2014 13:10:07 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C738EFB422D@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/jlh_5x7Bqi7AX1UeT_hXarUcHmQ
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 13:10:16 -0000

Watson Ladd <watsonbladd@gmail.com> writes:=0A=
=0A=
>Except that the issue isn't doing 2^128 calculations: it's what you have w=
hen=0A=
>you have only done 2^70 or so calculations. The relevant paper is=0A=
>http://cr.yp.to/snuffle/bruteforce-20050425.pdf.=0A=
=0A=
That was the one that postulated (goes back to paper) a custom device with=
=0A=
2^42 bytes of memory and 2^32 keysearch engines that required 2^36 inputs.=
=0A=
That's 100 terabytes of RAM, 4 billion keysearch engines, and around 70=0A=
billion sets of input data.=0A=
=0A=
I'm not overly concerned.=0A=
=0A=
(Having said that, it's an interesting FYI and aptly gets across what's=0A=
described in the abstract, it's just a long way down on the things-to-keep-=
me-=0A=
up-at-night register).=0A=
=0A=
Peter.=0A=


From nobody Fri Aug  1 06:33: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 F371C1A0B06 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 06:33:01 -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 q2bhFsUXlfm8 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 06:33:00 -0700 (PDT)
Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010: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 712C31A0B03 for <cfrg@irtf.org>; Fri,  1 Aug 2014 06:33:00 -0700 (PDT)
Received: by mail-lb0-f171.google.com with SMTP id l4so3227148lbv.30 for <cfrg@irtf.org>; Fri, 01 Aug 2014 06:32:58 -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=zirQcQ2u+gi8mkIUX3NpVmW6zKzV1ixquNPs4h/qN5I=; b=hfkgeTe7frK2F+QSRr4MTzQeIHsCE1qidVE45/ygKJ++IH9N0kpl/HLFKXqldkwruf 480sGJSMHde4WMsZQk3CrkLOERWeiSIMnssjBRZcnJGn8div8hh+zzxYfkMJUt2Fzull krDiNkFdc7a/ojBJYqcCcMsot2g7Euc22GX71N83dVnXLr8aEU64DD8bAmr6hAFIC14J 9Xa0iJVMSljzSq0vF8xouAUQehIsH/lcLyIQIkRATmA7ERZbIOsPASekMQ0VndyHG6GT g3+GoFhTbVok4ZYU0atd5BbfbhSGCWXgEqnD+R5kRE6bero13G7kwsZ80hEXF1r4apZs 6MFg==
MIME-Version: 1.0
X-Received: by 10.152.29.202 with SMTP id m10mr6011595lah.4.1406899978599; Fri, 01 Aug 2014 06:32:58 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Fri, 1 Aug 2014 06:32:58 -0700 (PDT)
In-Reply-To: <836aeec8-62be-4cc7-8c43-9bc4518b5d9e@email.android.com>
References: <20140730123336.29011.qmail@cr.yp.to> <2776234.venKYWsbWt@arkadios> <836aeec8-62be-4cc7-8c43-9bc4518b5d9e@email.android.com>
Date: Fri, 1 Aug 2014 09:32:58 -0400
X-Google-Sender-Auth: M6cep5OSRtmvZtSQuZNbzZA39Zw
Message-ID: <CAMm+LwiLCnx=ZfwgoCkY4Gn9fvcL+rACDxF9Cvc+eQSe9eFjMQ@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/jF5LPhZOJmo7zZxvYqK-_J8Ogoo
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 13:33:02 -0000

On Fri, Aug 1, 2014 at 9:03 AM, Alyssa Rowan <akr@akr.io> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 1 August 2014 09:53:50 BST, Alex Elsayed <eternaleye@gmail.com> wrote:
>
>>Matching bit-lengths has value not in the _technicals_, but because it's =
a Schelling point.
>
> I think recommendations need to be made on solid technical and practical =
grounds, not fluffy marketing and psychological ones.

Such as?

The problem here is that we don't have solid technical reasons because
we don't know the attacker capabilities. In fact we can't ever know
that.

Yesterday someone claimed in another forum that 'performance' was an
objective factor, as if every algorithm executed as fast (or at least
relatively) on each architecture. The likelihood of a split decision
with algorithm A faster on Intel and B faster on AMD didn't occur to
them.

The needs of marketechture align perfectly with the goal of rigidity.
There is absolutely no way that any of the academics can tell us that
we need exactly 123 or 129 bits. So we stick to round multiples of
128.

Now curve 25519 is not perfectly rigid, but as I pointed out
previously, rigidity is a better argument than performance at the
WF256 level and performance is a better argument than rigidity at the
WF128 level


> Users wouldn't typically know Rho work factor is actually lower than they=
 thought at 0.886=E2=88=9A=E2=84=93, or might just think the 521-bit curves=
 just typoed 512. Not to mention the eye-roll I know most of us feel when w=
e see "military-grade" crypto marketed (probably with clearly-visible pengu=
ins), and the number of times we've all seen people copy-paste SSL configs.

I never used the term because most military crypto has been crap.
Weekend before last I was watching Daniel Ellsberg in the Chelsea
Manning room talking to Edward Snowden on a video link. None of those
names would have been known if the NSA had been remotely competent.


> We need fast, strong cryptosystems. But I don't think specific aesthetics=
 of the bit lengths of those matter outside their security and performance =
effects, and I don't think it'll have an appreciable effect on adoption eit=
her way.

How many customers have you talked to about crypto?

Most people who use crypto will use the crypto that the CA industry
tells them to use. And we will pick crypto on the basis of arguments
we can explain to our customers.

And that is the way it should be. The choice of Twisted-Montgomery
versus Do-Whap Weinerschnitzel is not something we need to explain
even exists. But they do understand bit lengths even if they don't
understand the implications.


I can make a really solid marketing argument for Curve25519 and I can
make a really solid argument for NUMS-512-569.

To argue for E521 I have to make the case that 'Dan Bernstein told me
he likes it' which is not very convincing to the people who don't know
who he is.


From nobody Fri Aug  1 07:06:22 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 84D8F1A0653 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 07:06:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.122
X-Spam-Level: 
X-Spam-Status: No, score=0.122 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 hVjJBqMTfqyP for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 07:06:18 -0700 (PDT)
Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010: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 B754C1A004A for <cfrg@irtf.org>; Fri,  1 Aug 2014 07:06:17 -0700 (PDT)
Received: by mail-la0-f43.google.com with SMTP id hr17so3303262lab.30 for <cfrg@irtf.org>; Fri, 01 Aug 2014 07:06:16 -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=Znes3QlBzMTmZU67tHGRHkosU8R7LYP+PghJC0w7SRI=; b=hY0XER+Ev2PbJ3EI0I0g6qzu6U/Un3WQ4eafz7eM/hrCrMtD4UwRtlJrPeEgOT1a2n IGTBjeHaVW14kUcrsf8nPdJqUkDxstpk2ZwgbvdeOrMIWFDK1F3eVddoERLBVCHi/Kmc 04uANb9iIiAhlCP8Ce23IioKiUVj/3akOfArMlG6wEhiPHdIQvcclyH+1dncN6w9tv7p kZOKZyC/RT2LOkKNDDHrO1pOupSNHpT0X69o/lxDyeX+GJFOay8MI8iD/BHTy5hdxofc McW/jCvWxE/bLVgoTL1VbF7eVmqIYtc0F8T/FqIhf6qnW/r8X/LtKK+QEieB4krUTD0Z mQVQ==
MIME-Version: 1.0
X-Received: by 10.112.139.196 with SMTP id ra4mr5801887lbb.28.1406901975562; Fri, 01 Aug 2014 07:06:15 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Fri, 1 Aug 2014 07:06:15 -0700 (PDT)
Date: Fri, 1 Aug 2014 10:06:15 -0400
X-Google-Sender-Auth: zmi6NNLqpqPe7x69us7X8zTn-fE
Message-ID: <CAMm+LwjJ+f7VgugkhD1psYMiofBpNMHThWj7CVOHjFRgA2etgA@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/G29bF-4dEMPE7xn651U66mVPY70
Subject: [Cfrg] Server hardware acceleration....
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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 14:06:20 -0000

One issue that I had overlooked in earlier messages is that while ECC
is generally faster than RSA this is only true if we are comparing
like with like, i.e. ECDH with DH, ECDSA with DSA.

The rub here is that while RSA is fast for public values and slow for
private, DSA is the other way around.  RSA2048 signature verification
is actually faster than DSA with the 512 bit NIST curves by a factor
of 8 roughly. Key agreement is a lot faster though.

Another difference that is likely to have a large impact on the APIs
is that we are not talking about doing ECC encryption, nor do we need
it. We are actually talking about ECC key agreement. So unlike in the
RSA case, the encryption and decryption routines are not direct
inverses. We don't 'encrypt with the private key' to sign as some
people describe it.


Now the performance difference might actually be better. The decision
to deploy TLS is taken by the server, not the client. And since we can
do 600 signature verifications/sec on a middling box on the slow NIST
curves, the disadvantage to the client is not a major concern.

I don't have figures for how much faster the server operations get but
it looks like its at least 20 times faster on the NIST curves and
thats before we start choosing the curves cleverly or doing
precalculations on the static keys.

So the need for hardware acceleration is arguably open.


But if we do want hardware acceleration:
https://www.pgroup.com/lit/articles/insider/v2n1a5.htm

Most machines sold today already have a co-processor with a 512 bit
data bus on them. Going above 512 is going to be really hard for a
long time and if you miss and have to do two fetches you take twice as
long.

I think that is a convincing argument against E521 if we accept the
need for hardware acceleration. But as I point out, that might not be
a major concern.

Those processors could be a good way to provide side channel
resistance though. If you have 1024 cores at 32 bits each and you gang
16 of them together to do one 512 bit ECC calculation, you can do 64
operations in parallel. That could be 64 operations with the same key
or 64 operations with 63 dummy keys.


From nobody Fri Aug  1 08:39:14 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 0B7441A0169 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 08:39:13 -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 9DCup1lusJxa for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 08:39:11 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id ACDBC1A007A for <cfrg@irtf.org>; Fri,  1 Aug 2014 08:39:10 -0700 (PDT)
Received: from smtp-pop.rim.net (HELO XCT103CNC.rim.net) ([10.65.161.203]) by mhs215cnc.rim.net with ESMTP/TLS/AES128-SHA; 01 Aug 2014 11:39:09 -0400
Received: from XCT112CNC.rim.net (10.65.161.212) by XCT103CNC.rim.net (10.65.161.203) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 1 Aug 2014 11:39:08 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT112CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 1 Aug 2014 11:39:08 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] matching AES security
Thread-Index: AQHPq/wDi7poN5/oe0uofIOe1Kztcpu7t08AgABF4QCAAAgdAP//yeDA
Date: Fri, 1 Aug 2014 15:39:07 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC64E1@XMB116CNC.rim.net>
References: <20140730123336.29011.qmail@cr.yp.to> <2776234.venKYWsbWt@arkadios> <836aeec8-62be-4cc7-8c43-9bc4518b5d9e@email.android.com> <CAMm+LwiLCnx=ZfwgoCkY4Gn9fvcL+rACDxF9Cvc+eQSe9eFjMQ@mail.gmail.com>
In-Reply-To: <CAMm+LwiLCnx=ZfwgoCkY4Gn9fvcL+rACDxF9Cvc+eQSe9eFjMQ@mail.gmail.com>
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_002B_01CFAD7D.33E1D870"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/yq2ct7rlCLO7LyXW47X6M88bZno
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 15:39:13 -0000

------=_NextPart_000_002B_01CFAD7D.33E1D870
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: 7bit

I mostly agree with the discussions on this thread, but want to add one more 
theoretical (*) point.

(*) This is not something to lose sleep over, rather something for insomniacs 
to ponder at night.

It seems to me that even in the single-key setting, a 256-bit ECC key fares 
better than a 128-bit AES key, because of the tradeoff between computation and 
success rate.

To make it concrete, consider a TLS session protected with a one-use ECDHE key 
and a one-use AES key.

The following simplistic back-of-the-envelope calculation shows that a typical 
adversary would far prefer to attack the AES key.

Some variables:
- v = value of session plaintext to adversary
- s = success rate of adversary
- g = sv = expected gain of adversary
- c = computational cost of adversary
- r = g/c = sv/c = overall return on investment for adversary [left as an 
exercise]
- j = dg/dc = incremental return on investment for adversary computation

Consider a form of exhaustive search algorithm: pick a random 128-bit key AES 
against a target session ciphertext, decrypting it to confirm the guessed key. 
This assumes that the plaintext has an easily checkable form of redundancy of 
at least 128 bits, enabling the adversary to confirm the correctness of a 
guessed key.  Repeat ~c times.  This algorithm is such that

c/s ~ 2^128

So, s ~ c / 2^128.  I'm using ~ for proportional: so multiply the RHS by the 
cost of AES decryption plus plaintext redundancy verification.

Now, ignoring memory costs, Shank's baby-step-giant-step algorithm against a 
256-bit ECC is such that

c^2 / s ~ 2^256

against with other constants of proportion to be multiplied onto the RHS.  I'm 
guessing that memory-efficient algorithms like Pollard rho have the similar 
tradeoff, but please correct me if I'm wrong.

Solving for s gives s ~ c^2 / 2^256.

Plugging this back into the incremental ROI per computation gives

j_aes128 ~ v / 2^128
j_ecc256 ~ 2vc / 2^256

So, when c ~ 2^128 these are about the same, but for smaller c values, 
j_ecc256 is smaller, and thus the adversary gets more return from attacking 
the AES128 key.

In other words, the adversary's initial computation are most effectively spent 
on the AES key, because if the adversary gets lucky.  That is, *IF* the 
adversary has the computational power such that it pays off to try exhaustive 
search on AES128, then this pays off much more than trying to solve the DLP on 
ECC256 using a generic algorithm.  Of course, that's a big if.

Note that I used a heuristic of differentiation to get the j values.  This is 
inaccurate, especially for j_aes128 as c approaches 2^128.  More precisely, a 
better exhaustive search algorithm than above does try random keys, but rather 
loops through keys, never repeating, so the incremental return on investment 
actually improves per guessed key.  This means that even for large c ~2^128, 
it may still be better to run the algorithm against AES128 instead of DLP 
ECC256.

Note that in the setting above, the DH and AES keys are used once only for the 
same purpose.  In other situations, such as key transport or DH key re-use, 
the value of v would differ for the different keys, and thus may significantly 
alter the adversary's optimal strategy.

Note that the 256-bit ECC DLP algorithm cost can also be written as c/ sqrt(s) 
~ 2^128, hence the label 128-bit security for 256-bit ECC.

Note that I ignored the option of using the MAC tag to confirm AES128 key 
guesses.  Since the MAC would use a different key, I deferred its use to 
further discussion.

------=_NextPart_000_002B_01CFAD7D.33E1D870
Content-Type: application/pkcs7-signature; name="smime.p7s"
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+MG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYAVI6tMbpG/cZq3aBh01OK39l/rMwBA
ucjiwZbgNu7TltuHb3NAzweaM6LZpL2lESJ7x4Ty6gyC0SsRisKwOYH3CZPAIvuHH3y1BYovvYIB
fhvS3qi2qTzPuBQ3gabnZ3HawL95pEd6GdT21+81XVyIrpO6PYVrhlhYfEcmE5WSQQAAAAAAAA==

------=_NextPart_000_002B_01CFAD7D.33E1D870--


From nobody Fri Aug  1 09:21:48 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 2C8301B27A6 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 09:21:47 -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 3DI9IKa9nyrW for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 09:21:45 -0700 (PDT)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 6AD961A04F6 for <cfrg@irtf.org>; Fri,  1 Aug 2014 09:21:45 -0700 (PDT)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id C7D3310224008; Fri,  1 Aug 2014 09:21:44 -0700 (PDT)
Received: from 199.127.104.10 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Fri, 1 Aug 2014 09:21:45 -0700 (PDT)
Message-ID: <d1df688a6a2ef663b216ddb4e0fd60cd.squirrel@www.trepanning.net>
In-Reply-To: <CAFewVt4jNUVK5PBDUoMJ0y4YzZ1e5okztV3qpT6J5aK0KmC0wg@mail.gmail.com>
References: <20140730123336.29011.qmail@cr.yp.to> <CAFewVt4jNUVK5PBDUoMJ0y4YzZ1e5okztV3qpT6J5aK0KmC0wg@mail.gmail.com>
Date: Fri, 1 Aug 2014 09:21:45 -0700 (PDT)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Brian Smith" <brian@briansmith.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/H-JJBtK2skHIV-kZkWyn_ccZtk4
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: Fri, 01 Aug 2014 16:21:47 -0000

On Thu, July 31, 2014 8:57 am, Brian Smith wrote:
> 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.

  That's basically the SIV mode of AES (RFC 5297). Perhaps that
deserves another look (I tried interesting the TLS WG in that mode
ages ago).

  Dan.



From nobody Fri Aug  1 10:47:03 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 B5FF41B2883 for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 10:46: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 4R4sbARCfdis for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 10:46: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 F1D091A028A for <cfrg@irtf.org>; Fri,  1 Aug 2014 10:46:52 -0700 (PDT)
Received: from xct108cnc.rim.net ([10.65.161.208]) by mhs210cnc.rim.net with ESMTP/TLS/AES128-SHA; 01 Aug 2014 13:46:50 -0400
Received: from XCT114CNC.rim.net (10.65.161.214) by XCT108CNC.rim.net (10.65.161.208) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 1 Aug 2014 13:46:49 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT114CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 1 Aug 2014 13:46:49 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] A downside of deterministic DL signatures?
Thread-Index: Ac+rb+PUesNdwNFqRVehQhB5J3d3gQBEciMAAAyh2gAAE9xHAAAAfjaAAAfkJwAAIdFssA==
Date: Fri, 1 Aug 2014 17:46:47 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC6690@XMB116CNC.rim.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> <CAHOTMVKb8w2TeTpoZsMnJHtspp+xZrO-Ug7YpqUqW2Bc5itNmQ@mail.gmail.com>
In-Reply-To: <CAHOTMVKb8w2TeTpoZsMnJHtspp+xZrO-Ug7YpqUqW2Bc5itNmQ@mail.gmail.com>
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_0035_01CFAD8F.0A05BAF0"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/jU3q5zL5LOK_OZG631Bw-hSflwg
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: Fri, 01 Aug 2014 17:46:55 -0000

------=_NextPart_000_0035_01CFAD8F.0A05BAF0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0036_01CFAD8F.0A05BAF0"


------=_NextPart_001_0036_01CFAD8F.0A05BAF0
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: 7bit

I was also asking if pre-computing kG is useful as a secondary side-channel 
countermeasure, which occurred to me upon skimming:



http://eprint.iacr.org/2011/232



As I understand the abstract of that paper, the implemented form Montgomery 
ladder was not constant time. This resulted in an exploitable side channel. 
They describe a simple fix.  But in the event of other possible side channels, 
such as those arising from bugs and underlying system quirks (whatever 
acceleration the system tries to provide), does it make sense to use some 
secondary independent side-channel countermeasures?  For example, does 
computing the ECDSA signature component kG at the start of the TLS handshake 
in parallel with other operations, such as the ECDHE computations and so on, 
have any potential help by blurring any timing information?



Best regards,



Dan





From: Tony Arcieri [mailto:bascule@gmail.com]
Sent: Thursday, July 31, 2014 5:09 PM
To: Daniel Kahn Gillmor
Cc: Michael Hamburg; Dan Brown; IRTF Crypto Forum Research Group
Subject: Re: [Cfrg] A downside of deterministic DL signatures?



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


------=_NextPart_001_0036_01CFAD8F.0A05BAF0
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;}
span.EmailStyle17
	{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'>I was also asking if pre-computing kG is useful as a secondary =
side-channel countermeasure, which occurred to me upon =
skimming:<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'><a =
href=3D"http://eprint.iacr.org/2011/232">http://eprint.iacr.org/2011/232<=
/a><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'>As I understand the abstract of that paper, the implemented form =
Montgomery ladder was not constant time. This resulted in an exploitable =
side channel.=C2=A0 They describe a simple fix.=C2=A0 But in the event =
of other possible side channels, such as those arising from bugs and =
underlying system quirks (whatever acceleration the system tries to =
provide), does it make sense to use some secondary independent =
side-channel countermeasures?=C2=A0 For example, does computing the =
ECDSA signature component kG at the start of the TLS handshake in =
parallel with other operations, such as the ECDHE computations and so =
on, have any potential help by blurring any timing =
information?<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'>Best regards,<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'>Dan<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'><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"'> =
Tony Arcieri [mailto:bascule@gmail.com] <br><b>Sent:</b> Thursday, July =
31, 2014 5:09 PM<br><b>To:</b> Daniel Kahn Gillmor<br><b>Cc:</b> Michael =
Hamburg; Dan Brown; IRTF Crypto Forum Research Group<br><b>Subject:</b> =
Re: [Cfrg] A downside of deterministic DL =
signatures?<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p =
class=3DMsoNormal>On Thu, Jul 31, 2014 at 10:23 AM, Daniel Kahn Gillmor =
&lt;<a href=3D"mailto:dkg@fifthhorseman.net" =
target=3D"_blank">dkg@fifthhorseman.net</a>&gt; =
wrote:<o:p></o:p></p><div><p class=3DMsoNormal>neither of these required =
nationstate-level effort, and they date back<o:p></o:p></p></div><p =
class=3DMsoNormal>to 2008.<o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Okay, let me put it this way =
instead:<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Collisions:<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>- =
Can be used to alter the content of individual =
messages<o:p></o:p></p></div><div><p class=3DMsoNormal>- This requires =
that the design of the hash function itself be =
broken&nbsp;<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Bad nonces:<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>- =
Leak the private key which can then be used to forge as many messages as =
you wish<o:p></o:p></p></div><div><p class=3DMsoNormal>- Can be the =
result of bad RNGs/implementation errata even if the algorithm and the =
rest of its implementation is sound<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Which is worse?<o:p></o:p></p></div></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><p class=3DMsoNormal>-- =
<br>Tony Arcieri<o:p></o:p></p></div></div></div></div></body></html>
------=_NextPart_001_0036_01CFAD8F.0A05BAF0--

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOF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cABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYDGe/LUpaTgir0Fd+xl6CYU/EtoXrkH
zdxROaGrCX9dmXqgvhqesc1QCrOIxHXzZAJF0cYZc6//GDmiUc7nnIvAE4MUQmskNuZsOosuFwHO
v1Cm5K5GtX06iKBgLRAAprsE19nA+Ko1H6JQYQ0OpyxsK4I+4NUxoU6ur1+Y/6jyQAAAAAAAAA==

------=_NextPart_000_0035_01CFAD8F.0A05BAF0--


From nobody Fri Aug  1 19:55:58 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 9E6221A035F for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 19:55:56 -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, HTML_MESSAGE=0.001, 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 FIDwDLWNwneO for <cfrg@ietfa.amsl.com>; Fri,  1 Aug 2014 19:55:53 -0700 (PDT)
Received: from nm5-vm6.access.bullet.mail.gq1.yahoo.com (nm5-vm6.access.bullet.mail.gq1.yahoo.com [216.39.63.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B285C1A020A for <cfrg@irtf.org>; Fri,  1 Aug 2014 19:55:53 -0700 (PDT)
Received: from [216.39.60.166] by nm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 02 Aug 2014 02:55:53 -0000
Received: from [67.195.23.144] by tm2.access.bullet.mail.gq1.yahoo.com with NNFMP; 02 Aug 2014 02:55:53 -0000
Received: from [127.0.0.1] by smtp116.sbc.mail.gq1.yahoo.com with NNFMP; 02 Aug 2014 02:55:53 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1406948153; bh=vZuATxJVpyEqM+xEh5lhg+BixlM9BAleSdO+U+w3QZM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type; b=fV3+2f01nzHTEjHvrx/Lw2LRzU2cwZP9cjaWVd1bErP4h0awQO2PjvvaXisEASRv22sYLSD6wuTtBPHHBtEX4oGT9gJOw0UCwU0+3HazXHeg/yJzewcDskLo9MFio2dO/1Q/VTkc20DTsvlx2+UYYk+aqjitlZz7SLmQPwBcmYE=
X-Yahoo-Newman-Id: 70853.42210.bm@smtp116.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: ZqZmW2UVM1mY3Y7MjmimubDs8BQOq9h1jiX7XoYdH.wbVbn EtyeI.1C1kiYdCKn4pdR5ItCWWa6uW.WaaL1JaGgMCN69p9xFx79dhyn2eQH ZOzZSjtMMGYVAe3ds6jJTjxvQ4B9pyl6rSL5XKebRB9UuzATBYq.T6yhQRlw Y5qGkRAxdkiGQRSR7Ezcl_.Fp2sQEIhXMnBxIauiKXv3Isk4x4Oa30pwhZmb vg.uAbkQWvTdQgc1Rx1beHKjNfanHzvfr_cE1KtC9BSC.BTZ_4SsT1A38Z8w 5FNlvyguSslFyN2LWMcNZN9B69e02SGLLIbydzMEyNqp95Ap2jzP.ql3ontn 6xIgu9hh41XFRnukQLDqyQ58z_wb2UXD49azSJbKjceg9E3uqrXdkx6V3gT8 JKvkLKRoKOwJ6bMyrAlJbymUYzJeOvKgzQU8TcyxeOkyX6T.pQfXIkloksnq 3XTJ42h0ZtOe_Xxgg5I0zgzcvsQUOy3oVMd6o.4VNfuP.lfI_tom4gPGc4rV OUGdmQJwJL9i3mOjRxOgf5s98QgXMzyInO6qhBgCQ9KFAZ2uglns.D7mGfGU UOgDUCoMaSxsTqTcfu3cxpwn_yMNIOwuR5kaZXeeyxJG7onqimXdfzjdp6w- -
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
X-Rocket-Received: from Davids-iMac.local (dmjacobson@99.120.97.155 with plain [67.195.15.5]) by smtp116.sbc.mail.gq1.yahoo.com with SMTP; 02 Aug 2014 02:55:53 +0000 UTC
Message-ID: <53DC5337.9070501@sbcglobal.net>
Date: Fri, 01 Aug 2014 19:55:51 -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: Dan Brown <dbrown@certicom.com>, "cfrg@irtf.org" <cfrg@irtf.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> <53DA7B79.70709@fifthhorseman.net> <CAHOTMVKb8w2TeTpoZsMnJHtspp+xZrO-Ug7YpqUqW2Bc5itNmQ@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5CC6690@XMB116CNC.rim.net>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CC6690@XMB116CNC.rim.net>
Content-Type: multipart/alternative; boundary="------------060705070609090107060907"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OE5KNuQvb5LOL03LIZvcngU8cJE
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: Sat, 02 Aug 2014 02:55:56 -0000

This is a multi-part message in MIME format.
--------------060705070609090107060907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

It is easy to blind k.  Remember you compute something like

k^-1 * (z + r*d)

You also compute k*G.    You do that with the Montgomery ladder, so it 
doesn't leak.

The next problem is to computing k^-1.  We might use the binary inverse 
method, but it has zillions of data-dependent branches and doesn't run 
in anything even close to constant time.  He is how we solve that.

Let b be a fresh for each computation uniform random value in the range 
[1, n-1].

Compute instead

(k * b)^-1 * b * (z + r * d)

Even though the inverse is full of data-dependent branches and isn't at 
all constant time, that doesn't matter, because all values of b are 
equally likely, so it is kind of like encrypting k with a one-time-pad: 
you get information-theoretic security.

I thought about distributing b inside stuff to the right like this:

(k*b)^-1 * (b*z + r * (b*d))

to also avoid a multiplication of d with r, which is both random and 
known to the attacker---generally considered favorable for DPA attacks.  
And if that multiplication could be attacked it would leak d, the 
private key.  But I'm worried because there is a multiplication of b*z, 
and z (basically H(msg)) is known by the attacker.  (I only know enough 
about DPA to get myself into trouble.  So I'll stop before making a 
blunder.)

     --David Jacobson


On 8/1/14 10:46 AM, Dan Brown wrote:
>
> I was also asking if pre-computing kG is useful as a secondary 
> side-channel countermeasure, which occurred to me upon skimming:
>
> http://eprint.iacr.org/2011/232
>
> As I understand the abstract of that paper, the implemented form 
> Montgomery ladder was not constant time. This resulted in an 
> exploitable side channel.  They describe a simple fix.  But in the 
> event of other possible side channels, such as those arising from bugs 
> and underlying system quirks (whatever acceleration the system tries 
> to provide), does it make sense to use some secondary independent 
> side-channel countermeasures?  For example, does computing the ECDSA 
> signature component kG at the start of the TLS handshake in parallel 
> with other operations, such as the ECDHE computations and so on, have 
> any potential help by blurring any timing information?
>
> Best regards,
>
> Dan
>
> *From:*Tony Arcieri [mailto:bascule@gmail.com]
> *Sent:* Thursday, July 31, 2014 5:09 PM
> *To:* Daniel Kahn Gillmor
> *Cc:* Michael Hamburg; Dan Brown; IRTF Crypto Forum Research Group
> *Subject:* Re: [Cfrg] A downside of deterministic DL signatures?
>
> On Thu, Jul 31, 2014 at 10:23 AM, Daniel Kahn Gillmor 
> <dkg@fifthhorseman.net <mailto: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
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--------------060705070609090107060907
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">It is easy to blind k.&nbsp; Remember you
      compute something like<br>
      <br>
      k^-1 * (z + r*d)<br>
      <br>
      You also compute k*G.&nbsp;&nbsp;&nbsp; You do that with the Montgomery ladder,
      so it doesn't leak. <br>
      <br>
      The next problem is to computing k^-1.&nbsp; We might use the binary
      inverse method, but it has zillions of data-dependent branches and
      doesn't run in
      anything even close to constant time.&nbsp; He is how we solve that.<br>
      <br>
      Let b be a fresh for each computation uniform random value in the
      range [1, n-1].<br>
      <br>
      Compute instead<br>
      <br>
      (k * b)^-1 * b * (z + r * d)<br>
      <br>
      Even though the inverse is full of data-dependent branches and
      isn't at all constant time, that doesn't matter, because all
      values of b are equally likely, so it is kind of like encrypting k
      with a one-time-pad: you get information-theoretic security.<br>
      <br>
      I thought about distributing b inside stuff to the right like
      this:<br>
      <br>
      (k*b)^-1 * (b*z + r * (b*d)) <br>
      <br>
      to also avoid a multiplication of d with r, which is both random
      and known to the attacker---generally considered favorable for DPA
      attacks.&nbsp; And if that multiplication could be attacked it would
      leak d, the private key.&nbsp; But I'm worried because there is a
      multiplication of b*z, and z (basically H(msg)) is known by the
      attacker.&nbsp; (I only know enough about DPA to get myself into
      trouble.&nbsp; So I'll stop before making a blunder.)<br>
      <br>
      &nbsp;&nbsp;&nbsp; --David Jacobson<br>
      <br>
      <br>
      On 8/1/14 10:46 AM, Dan Brown wrote:<br>
    </div>
    <blockquote
      cite="mid:810C31990B57ED40B2062BA10D43FBF5CC6690@XMB116CNC.rim.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="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;}
span.EmailStyle17
	{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="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I
            was also asking if pre-computing kG is useful as a secondary
            side-channel countermeasure, which occurred to me upon
            skimming:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><a
              moz-do-not-send="true"
              href="http://eprint.iacr.org/2011/232">http://eprint.iacr.org/2011/232</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">As
            I understand the abstract of that paper, the implemented
            form Montgomery ladder was not constant time. This resulted
            in an exploitable side channel.&nbsp; They describe a simple
            fix.&nbsp; But in the event of other possible side channels, such
            as those arising from bugs and underlying system quirks
            (whatever acceleration the system tries to provide), does it
            make sense to use some secondary independent side-channel
            countermeasures?&nbsp; For example, does computing the ECDSA
            signature component kG at the start of the TLS handshake in
            parallel with other operations, such as the ECDHE
            computations and so on, have any potential help by blurring
            any timing information?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Best
            regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Dan<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0in
          0in 0in 4.0pt">
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
                  Tony Arcieri [<a class="moz-txt-link-freetext" href="mailto:bascule@gmail.com">mailto:bascule@gmail.com</a>] <br>
                  <b>Sent:</b> Thursday, July 31, 2014 5:09 PM<br>
                  <b>To:</b> Daniel Kahn Gillmor<br>
                  <b>Cc:</b> Michael Hamburg; Dan Brown; IRTF Crypto
                  Forum Research Group<br>
                  <b>Subject:</b> Re: [Cfrg] A downside of deterministic
                  DL signatures?<o:p></o:p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
          <div>
            <div>
              <div>
                <p class="MsoNormal">On Thu, Jul 31, 2014 at 10:23 AM,
                  Daniel Kahn Gillmor &lt;<a moz-do-not-send="true"
                    href="mailto:dkg@fifthhorseman.net" target="_blank">dkg@fifthhorseman.net</a>&gt;
                  wrote:<o:p></o:p></p>
                <div>
                  <p class="MsoNormal">neither of these required
                    nationstate-level effort, and they date back<o:p></o:p></p>
                </div>
                <p class="MsoNormal">to 2008.<o:p></o:p></p>
                <div>
                  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">Okay, let me put it this way
                    instead:<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">Collisions:<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">- Can be used to alter the
                    content of individual messages<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">- This requires that the design
                    of the hash function itself be broken&nbsp;<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">Bad nonces:<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">- Leak the private key which can
                    then be used to forge as many messages as you wish<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">- Can be the result of bad
                    RNGs/implementation errata even if the algorithm and
                    the rest of its implementation is sound<o:p></o:p></p>
                </div>
                <div>
                  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
                </div>
                <div>
                  <p class="MsoNormal">Which is worse?<o:p></o:p></p>
                </div>
              </div>
              <div>
                <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
              </div>
              <p class="MsoNormal">-- <br>
                Tony Arcieri<o:p></o:p></p>
            </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>
  </body>
</html>

--------------060705070609090107060907--


From nobody Sat Aug  2 07:51:18 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 3788F1A0AEB for <cfrg@ietfa.amsl.com>; Sat,  2 Aug 2014 07:51:15 -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, 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 zETDXEzfydcI for <cfrg@ietfa.amsl.com>; Sat,  2 Aug 2014 07:51:12 -0700 (PDT)
Received: from emh02.mail.saunalahti.fi (emh02.mail.saunalahti.fi [62.142.5.108]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4F9C1A0653 for <cfrg@irtf.org>; Sat,  2 Aug 2014 07:51:11 -0700 (PDT)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh02.mail.saunalahti.fi (Postfix) with ESMTP id D97EF817FC; Sat,  2 Aug 2014 17:51:08 +0300 (EEST)
Date: Sat, 2 Aug 2014 17:51:08 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Message-ID: <20140802145108.GA10125@LK-Perkele-VII>
References: <20140730123336.29011.qmail@cr.yp.to> <2776234.venKYWsbWt@arkadios> <836aeec8-62be-4cc7-8c43-9bc4518b5d9e@email.android.com> <CAMm+LwiLCnx=ZfwgoCkY4Gn9fvcL+rACDxF9Cvc+eQSe9eFjMQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CAMm+LwiLCnx=ZfwgoCkY4Gn9fvcL+rACDxF9Cvc+eQSe9eFjMQ@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/j4YxrgwwCyc2AjDbtYEAwvXwPTU
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: Sat, 02 Aug 2014 14:51:15 -0000

On Fri, Aug 01, 2014 at 09:32:58AM -0400, Phillip Hallam-Baker wrote:
> On Fri, Aug 1, 2014 at 9:03 AM, Alyssa Rowan <akr@akr.io> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA512
> >
> > On 1 August 2014 09:53:50 BST, Alex Elsayed <eternaleye@gmail.com> wrote:
> >
> >>Matching bit-lengths has value not in the _technicals_, but because it's a Schelling point.
> >
> > I think recommendations need to be made on solid technical and practical grounds, not fluffy marketing and psychological ones.
> 
> Such as?
> 
> Yesterday someone claimed in another forum that 'performance' was an
> objective factor, as if every algorithm executed as fast (or at least
> relatively) on each architecture. The likelihood of a split decision
> with algorithm A faster on Intel and B faster on AMD didn't occur to
> them.

For better argument, try Intel vs. ARM (There are way more ARM CPUs
shipped than x86 CPUs).

The platforms I see as most relevant are:
- amd64 (a.k.a. x86-64)
- arm32 (there will likely be billions of these not yet manufactured).
- arm64 (a.k.a. aarch64)

As to how similar arm32 and arm64 are optimization-wise, I don't know. 

As for AMD, their amd64 CPUs should have relatively similar performance
characteristics as Intel ones, but of course, their ARMs are a different
story.

> The needs of marketechture align perfectly with the goal of rigidity.
> There is absolutely no way that any of the academics can tell us that
> we need exactly 123 or 129 bits. So we stick to round multiples of
> 128.

So does "speed, speed, speed".

This comes to threat model: Given random curve meeting state-of-the-art
criteria, what is the probablity it is actually weak?

Of course, that is unknowable. But if that probability is not very
low (the highest such probabilites I have heard thrown around are
on order of 10^-6), things get problematic anyway.

How many very fast curves you think there are?

> Now curve 25519 is not perfectly rigid, but as I pointed out
> previously, rigidity is a better argument than performance at the
> WF256 level and performance is a better argument than rigidity at the
> WF128 level

This assumes there is some conflict between rigidity and speed.

I don't think such conflict exists, because I don't think big class
of efficient primes exist.

And pushing out such class is useless, because there will be internal
performance differences, making it very difficult to steer selection
in any sort of "useful" direction.

The primes that have been thrown around are PMs and STs. There aren't
a lot of those at all, and very few are standouts in terms of
performance.

Taking the Curve25519 generation process explained in the paper and
replacing k=8 with k=16, as to get WF256 curve will give a prime of
2^510+15 [1]. 

On WF192-level, there is also 2^379-19. [1]

If one only has 32-bit multiplier, those constants quickly become
troublesome (64-bit one gives much more freedom).

> And that is the way it should be. The choice of Twisted-Montgomery
> versus Do-Whap Weinerschnitzel is not something we need to explain
> even exists.

Those choices are internal mathematical details, because one can just
mix and match the forms (if one has curve where the needed forms are
valid).

E.g. If doing ECDH, start with (Twisted) Edwards and then switch to
Montgomery. Or for ECDSA, do calculations using (Twisted) Edwards and
use Weierstrass on wire.


Also, while WF256 might be a good idea for CA certificates, where
performance doesn't matter that much (all signing is offline, and
verification is dumped on clients[2]), servers, even with high
security might want to run WF192 since need to deal with ECC
for every connection (and more usual servers with WF128).

Note that WF128 is regarded as quite a bit above RSA2048 in difficulty
of breaking (I think it is regarded as about equivalent with RSA3072).

Security levels above 2^210 curve ops seem to have very very
little actual usage.


BTW: The relative performance difference between P-384 and P-521
seems about similar as AES-192 vs. AES-256. Which says something
about how bad the P-384 prime is. But of course, because ECC is
so much heavier than AES, in practice it matters much more.


[1] Dunno if it is any good performance-wise.
[2] Client certs are rare.


-Ilari


From nobody Sat Aug  2 10:10:11 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 688F21B27A6 for <cfrg@ietfa.amsl.com>; Sat,  2 Aug 2014 10:10:09 -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_50=0.8, 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 LmuEXeBiYDnn for <cfrg@ietfa.amsl.com>; Sat,  2 Aug 2014 10:10:05 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id DFD7D1A02FB for <cfrg@irtf.org>; Sat,  2 Aug 2014 10:10:03 -0700 (PDT)
Received: (qmail 11089 invoked by uid 1011); 2 Aug 2014 17:10:04 -0000
Received: from unknown (unknown) by unknown with QMTP; 2 Aug 2014 17:10:04 -0000
Received: (qmail 8052 invoked by uid 1001); 2 Aug 2014 17:09:52 -0000
Date: 2 Aug 2014 17:09:52 -0000
Message-ID: <20140802170952.8050.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <CAMm+LwgZp4sgLaFZeWV05UDvN=x7FUNbM5Gi32fJRRrKmais+A@mail.gmail.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Do1NkGC_v4oaJ9DoZycrARzJa74
Subject: [Cfrg] A few good primes
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Aug 2014 17:10:09 -0000

Phillip Hallam-Baker writes:
> 2^512 is a round number in crypto, 2^521 is a very odd one.

2^521-1 is a Mersenne prime. This has undisputed benefits for speed and
simplicity of modular reduction. That's why three research teams
independently searched for safe curves mod 2^521-1, all coming up with
the same curve E-521. (The whole story is that Lange and I were the
first to start the computation; Hamburg used more computers and was the
first to find the curve coefficient 376014; the curve name comes from
Aranha, Barreto, Pereira, and Ricardini, who were the second to find
376014 but were the first to announce it.)

The next smaller Mersenne prime is 2^127-1. Primes so close to a power
of 2 are really quite rare! Unfortunately, 127-bit ECC is too small to
be secure. (You _can_ get reasonable security out of ECC over a field of
size (2^127-1)^2, or genus-2 HECC over a field of size 2^127-1, which is
exactly why 2^127-1 appears in papers at Eurocrypt 2013, Eurocrypt 2014,
etc. Because of various complications I doubt that anybody will make
serious proposals of these options to CFRG---but the point I'm making is
that the benefits of Mersenne primes are firmly established.)

What about primes big enough for an acceptable security level but
smaller than 2^521-1? Properly optimized implementations (see

   https://moderncrypto.org/mail-archive/curves/2014/000237.html

for a summary of the techniques) can still take advantage of exactly how
close the prime is to a power of 2. The top tier---since there aren't
any Mersenne primes in this range---is

   2^452-3, 2^336-3, 2^266-3.

There also aren't any 2^n-5 or 2^n-7. The next tiers are

   2^321-9, 2^285-9, 2^251-9;
   2^322-11;
   2^338-15;
   2^488-17, 2^468-17, 2^444-17, 2^414-17, 2^336-17;
   2^379-19, 2^291-19, 2^255-19.

If you continue this analysis then you start seeing more and more
examples of primes that flunk what economists call "Pareto-optimality".
For example, 2^336-17 is in the above list but is obviously a bad choice
because it isn't Pareto-optimal: you can switch to 2^336-3 for better
speed and no loss in security. As a fancier example, 2^254-245 is the
largest prime below 2^254, but it still isn't Pareto-optimal: you can
switch to 2^255-19 for better speed (assuming proper optimization on
typical platforms) and no loss in security. 

I'm not saying that 2^254-245 is terribly slow. I'm also not saying that
most users would notice this cost issue. I'm just saying that 2^255-19
is faster, and of course doesn't lose any security. Insisting on the
_best_ cross-platform performance therefore ends up excluding 2^254-245.
Merely insisting on something _close_ would give more flexibility to the
person choosing primes, in particular allowing 2^254-245---measurably
worse performance, less rigidity, no benefit.

The set of primes becomes even more limited if you start going beyond
Pareto-optimality and acknowledging that very small differences in
quantitative security levels aren't meaningful to anybody. If someone
has enough computer power to break a prime p, does it make any sense to
respond by switching to another prime q with an extra bit---just 1.4x
the attack cost---or two extra bits---just 2x the attack cost?

Specifically, suppose we say that a prime, even if Pareto-optimal, isn't
good if we can gain cross-platform performance by switching to another
prime that's within 1 bit of the same size (or larger). The dependence
of speed upon c is strong enough that this rule still leaves some good
primes, such as 2^255-19 and 2^266-3 and 2^414-17 and 2^521-1. It
_doesn't_ allow 2^254-245 or 2^256-189 or 2^384-317 or 2^512-569. This
rule limits the prime choice in a much more fundamental way than having
to make up marketing arguments for particular primes---the prime choice
is being driven by performance. If you read the Curve25519 paper then
you can see that this is how 2^255-19 was chosen.

Surely we can all agree that security, speed, and simplicity are the top
desiderata to be considered by CFRG. If it's really necessary to include
marketing requirements such as "make sure to use multiples of 128 in the
name" then these requirements should be handled by renaming rather than
by compromising the top desiderata. We can have an adult discussion here
of what the best crypto actually is, and a separate discussion of how to
present the best crypto to the children---or simply skip the paternalism
and treat the users as adults, which is what I recommend.

> All of the curve choices on offer are significantly faster than
> RSA2048

That depends on the application. For example, DNSSEC people say that
signature-verification speed is critical, and if you look at (e.g.) the
Haswell benchmarks near the top of

   http://bench.cr.yp.to/results-sign.html

then you'll see just 60533 cycles (using OpenSSL) for verification in
"ronald2048" (a typical 2048-bit RSA signature system). That's faster
than the 165939 cycles for Ed25519, and it's 50 times faster than the
3027399 cycles for "ecdonaldp521" (P-521 ECDSA, again with OpenSSL). An
E-521 version of Ed25519 would be much faster than ecdonaldp521 (and,
like Ed25519, would allow faster verification through batching, not
included in these benchmarks), but would be much slower than RSA-2048.

Furthermore, most web pages and other Internet services are _not_
cryptographically protected. Obviously the hassle of setting up SSL is a
major factor, but there are many cases where SSL is _already_ set up
and where speed is the only excuse for not running it (or for running
it at a security level that's feasible to break today). For example,

   * https://sourceforge.net/account is fully functional, while
   * https://sourceforge.net/develop redirects to HTTP.

This has no explanation other than SSL being too slow. Slow public-key
crypto isn't the only contributor to slow SSL, but the other problems
are being fixed too, and I see ample room for optimism that this will
drastically increase the deployment of crypto across the Internet.

It's of course nice to hear that _you_ don't have cost problems for
crypto, but my understanding is that CFRG is looking at a much wider
range of use cases, including cases where crypto speed is important.

  [ RSA-2048 ]
> is what every major application doing public key is
> using today.

Let me make sure I understand what you're saying.

Most DNSSEC signatures use RSA-1024 (for performance reasons) rather
than RSA-2048, so DNSSEC is not a "major application doing public key"?
Tor, which recently upgraded from RSA-1024 to Curve25519, is not a
"major application doing public key"? DNSCrypt, which compared to DNSSEC
is actually doing far more to protect DNS integrity and infinitely more
to protect DNS privacy, is not a "major application doing public key"?
Out of all of the Curve25519 applications listed in

   http://www.apple.com/ipad/business/docs/iOS_Security_Feb14.pdf
   http://en.wikipedia.org/wiki/Curve25519#Notable_uses
   http://ianix.com/pub/curve25519-deployment.html

the only ones that can qualify as "major applications doing public key"
are the ones that are also using RSA-2048?

Perhaps you meant to comment only on IETF protocols, but maybe one of
the reasons that Curve25519 is being deployed in so many non-IETF
applications is that IETF protocols don't do what those applications
want, and maybe CFRG can help IETF do a better job there. Furthermore,
DNSSEC is an IETF protocol, and surely you can't be suggesting that CFRG
should ignore DNSSEC.

> WF256 - High security delivering a confidence factor of 50+ years.
> 2^256 work factor

Nobody can plausibly claim "a confidence factor of 50+ years" for ECC
given the serious risk posed by quantum computers. AES-256 isn't so
seriously affected but is still broken in 2^128 simple operations by
Grover's algorithm. My impression is that CFRG's current agenda does not
include 512-bit ciphers, the McEliece system, NTRU, etc.; it does
include hash-based signatures, but this is only one part of post-quantum
security.

Even in these pre-quantum times, AES-256 fails to provide a 2^256 "work
factor"; see the separate "matching AES security" thread. This means
that a curve that achieves "WF256" against pre-quantum attacks would
still fail to achieve "WF256" for applications such as TLS.

> Yesterday someone claimed in another forum that 'performance' was an
> objective factor, as if every algorithm executed as fast (or at least
> relatively) on each architecture.

Fortunately, experience shows that any plausible averaging of
state-of-the-art ECC speeds across architectures leads to the same basic
conclusions regarding the importance of taking primes very close to a
power of 2, the importance of taking curves with points of order 4, etc.

It's of course possible that CFRG will end up facing some sort of tricky
decision---for example, I've seen speculation that software people might
prefer one curve while hardware people prefer another (this would be the
case if CFRG were considering binary curves, but evidently it isn't),
and speculation that signature people might prefer one curve while DH
people prefer another. So far there's no evidence of such complications.

> DJB: Speed! Speed! Speed!

I'm not sure which talk you're referring to. Here are the slides that I
presented at the CFRG meeting in Toronto:

   http://cr.yp.to/talks.html#2014.07.23

I started by saying that I was going to talk not about speed but rather
about simplicity and security. What I spent most of my time explaining
was how implementors are pressured to screw up security---but also how
careful cryptographic choices can eliminate many of these pressures. I
did spend a few seconds on slide 13 mentioning that the 2012 NEON
implementation of Curve25519 is 8 times faster than the 2014 OpenSSL
NIST P-256 on ARM Cortex-A8 (a typical smartphone/tablet CPU), but in
general I said very little about Curve25519's performance.

> 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.

I don't recall Microsoft claiming to "eliminate subjective choices
completely." Unless they speak up to make this claim, I would suggest
that you retract this statement and refrain from overstating their
position in the future.

> Explaining the choice.

Every proposal on the table has an explanation. Having an explanation
from first principles (speed, simplicity, and security) leaves far less
wiggle room than having an explanation from the marketing department
("Wow, 256!").

> Compatibility with legacy crypto HSMs

Obviously one can manufacture platforms that reward some curves. But do
you seriously think that someone saying "I have an HSM that supports
only ECDSA NIST P-256!" should count as an objection to settling on
better curves for everybody else? There doesn't seem to be a current
proposal to _eliminate_ P-256, so why can't that HSM just stick to P-256
while a better curve helps enable crypto for the mass market?

As a more subtle example, do you think that someone saying "I have an
HSM that supports arbitrary curves but only for the NIST P-256 prime!
Please stick to the NIST P-256 prime!" should be able to outweigh

   https://www.imperialviolet.org/2010/12/21/eccspeed.html

illustrating the huge speed advantages of 2^255-19 on widespread CPUs?
This is all speculative---as I said, so far there's no evidence of any
such conflicts---but surely you'll agree that requiring top performance
on each platform separately would be unreasonable in case there _are_
conflicts between platforms. Someone arguing for curve choice on the
basis of one unusual platform is going to, and should, have a tough job.

As a side note, even within the HSM market, it's not at all clear that
_legacy_ HSM support for ECC is anywhere near as important as _future_
HSM support for ECC. If you care about ECC in this market then you
shouldn't be asking merely what the legacy hardware supports, but also
what would help enable future hardware.

> Compatibility with standard data paths

So, after the study

   https://www.hgi.rub.de/hgi/publikationen/curve25519/

showed that the standard 18-bit data path for FPGA multipliers works
very well with splitting 255-bit integers into 17-bit pieces (note that
255 = 17*15), you're saying that the poor alignment of 256 with this
standard rules out 256? Similarly, since standard "lazy reduction" fits
into standard 256-bit data paths for addition of 255-bit integers but
not for addition of 256-bit integers, CFRG must exclude 256-bit primes?

There's an extensive literature quantifying the performance of ECC on
various platforms. You seem to think that this literature misrepresents
some important platform with a 512-bit data path. If you can defend this
by naming the platform, pointing to the documentation, saying where the
platform is used, saying what the users' performance requirements are,
and explaining why you don't think E-521 could meet those requirements
(while you seem to think that 512-bit ECC is obviously fast enough),
then maybe this will influence the E-521 evaluation---but stating this
"compatibility" as a yes/no requirement is clearly wrong.

---Dan


From nobody Sat Aug  2 23:56:13 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 9C4E51A01AF for <cfrg@ietfa.amsl.com>; Sat,  2 Aug 2014 23:56:11 -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 wxjmIuj73WVk for <cfrg@ietfa.amsl.com>; Sat,  2 Aug 2014 23:56:08 -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 2CF4F1A01AE for <cfrg@irtf.org>; Sat,  2 Aug 2014 23:56:07 -0700 (PDT)
Received: from [192.168.1.148] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id EB4C03AA12; Sat,  2 Aug 2014 23:55:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407048935; bh=9wA8JZ4CIq/lRyDohAkgSgmZKmlSjxZtDkLmd1KJAFQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ZSKhjtqgCQ0adTbakq50ycCvTAOif+PWZ88OqCbrgWTk5TGlZDqy835rtcCbvPBJV WErxGOYoe7TVXiBLmWpN/tQ71i8sX9vqPFHuN3G4a8z6K88dM6+w0zS5RVdStfxapg bc0HhHqLSR15YYUQX0WEabuyW8geORhenbfqWHDg=
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: <20140802170952.8050.qmail@cr.yp.to>
Date: Sat, 2 Aug 2014 23:56:05 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <909BD38C-6DA5-4119-ABE0-2F4D0AAD1120@shiftleft.org>
References: <20140802170952.8050.qmail@cr.yp.to>
To: "D. J. Bernstein" <djb@cr.yp.to>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ddOjar_SVcjwW5XW2Jj2tYZkjH0
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] A few good primes
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Aug 2014 06:56:11 -0000

I think this can be distilled down to a simpler point.

In this project, we are not required to choose a curve which matches the =
AES (single-target) work factors.  We were given this instruction =
explicitly.  Joe Salowey told us, "We leave it up to the CFRG to =
determine what ECC key strengths are appropriate above 128-bit symmetric =
key strength=E2=80=9D.  Benjamin Black asked Joe Salowey explicitly =
whether pairings such as 384-bit ECC with 256-bit AES should be allowed, =
and Joe responded that "The CFRG has the cryptographic expertise to =
determine what pairings are appropriate.=E2=80=9D  (Jul 18).  Yet, some =
members of this group have fixated on those AES security levels.

Each proposed set of curves has its own strengths and weaknesses.  Some =
match the AES work factors more exactly, some less, some not at all.  =
The different curves reflect different trade-offs between performance, =
work factor, ridigity, simplicity, compatibility, aesthetics, etc.  None =
of the curves were chosen with any of these goals exclusive to all the =
others.  In particular, the Microsoft Ed-512-mers curve was heavily =
skewed toward an aesthetic =E2=80=9Cround=E2=80=9D modulus.  But it also =
required a 2-mod-4 d, for Montgomery compatibility.  It is in twisted =
Edwards form instead of untwisted for performance reasons, despite the =
incomplete addition formula.  It was not chosen purely for rigidity =E2=80=
=94 in fact, it=E2=80=99s only one of the 10 ~512-bit curves in that =
paper.

I submit that we should not add =E2=80=9Cmust exactly match an AES work =
factor=E2=80=9D as a requirement for this process, though it should =
count for something since some members of this forum value it highly.  =
Furthermore, performance and simplicity of implementation should be =
considered as well as rigidity and work factor.  In particular, =
Curve41417, Ed448-Goldilocks, Ed480-Ridinghood and E-521 should be =
considered as options in addition to the NUMS curves.

None of these curves should be considered insufficiently rigid.  If =
rigidity were our only concern, I believe that E-521 would be the =
default choice, not the Microsoft NUMS curves, since this curve was =
found independently by 3 groups.

Finally, note that it is entirely possible to quantify the performance =
vs security tradeoff even if not every curve is designed for the same =
strength, either by using the n ^ (1 + log 3 / log 2) heuristic, or just =
by making a graph and looking for outliers.

Cheers,
=E2=80=94 Mike


> On Aug 2, 2014, at 10:09 AM, D. J. Bernstein <djb@cr.yp.to> wrote:
>=20
> Phillip Hallam-Baker writes:
>> 2^512 is a round number in crypto, 2^521 is a very odd one.
>=20
> 2^521-1 is a Mersenne prime. This has undisputed benefits for speed =
and
> simplicity of modular reduction. That's why three research teams
> independently searched for safe curves mod 2^521-1, all coming up with
> the same curve E-521. (The whole story is that Lange and I were the
> first to start the computation; Hamburg used more computers and was =
the
> first to find the curve coefficient 376014; the curve name comes from
> Aranha, Barreto, Pereira, and Ricardini, who were the second to find
> 376014 but were the first to announce it.)
>=20
> The next smaller Mersenne prime is 2^127-1. Primes so close to a power
> of 2 are really quite rare! Unfortunately, 127-bit ECC is too small to
> be secure. (You _can_ get reasonable security out of ECC over a field =
of
> size (2^127-1)^2, or genus-2 HECC over a field of size 2^127-1, which =
is
> exactly why 2^127-1 appears in papers at Eurocrypt 2013, Eurocrypt =
2014,
> etc. Because of various complications I doubt that anybody will make
> serious proposals of these options to CFRG---but the point I'm making =
is
> that the benefits of Mersenne primes are firmly established.)
>=20
> What about primes big enough for an acceptable security level but
> smaller than 2^521-1? Properly optimized implementations (see
>=20
>   https://moderncrypto.org/mail-archive/curves/2014/000237.html
>=20
> for a summary of the techniques) can still take advantage of exactly =
how
> close the prime is to a power of 2. The top tier---since there aren't
> any Mersenne primes in this range---is
>=20
>   2^452-3, 2^336-3, 2^266-3.
>=20
> There also aren't any 2^n-5 or 2^n-7. The next tiers are
>=20
>   2^321-9, 2^285-9, 2^251-9;
>   2^322-11;
>   2^338-15;
>   2^488-17, 2^468-17, 2^444-17, 2^414-17, 2^336-17;
>   2^379-19, 2^291-19, 2^255-19.
>=20
> If you continue this analysis then you start seeing more and more
> examples of primes that flunk what economists call =
"Pareto-optimality".
> For example, 2^336-17 is in the above list but is obviously a bad =
choice
> because it isn't Pareto-optimal: you can switch to 2^336-3 for better
> speed and no loss in security. As a fancier example, 2^254-245 is the
> largest prime below 2^254, but it still isn't Pareto-optimal: you can
> switch to 2^255-19 for better speed (assuming proper optimization on
> typical platforms) and no loss in security.=20
>=20
> I'm not saying that 2^254-245 is terribly slow. I'm also not saying =
that
> most users would notice this cost issue. I'm just saying that 2^255-19
> is faster, and of course doesn't lose any security. Insisting on the
> _best_ cross-platform performance therefore ends up excluding =
2^254-245.
> Merely insisting on something _close_ would give more flexibility to =
the
> person choosing primes, in particular allowing 2^254-245---measurably
> worse performance, less rigidity, no benefit.
>=20
> The set of primes becomes even more limited if you start going beyond
> Pareto-optimality and acknowledging that very small differences in
> quantitative security levels aren't meaningful to anybody. If someone
> has enough computer power to break a prime p, does it make any sense =
to
> respond by switching to another prime q with an extra bit---just 1.4x
> the attack cost---or two extra bits---just 2x the attack cost?
>=20
> Specifically, suppose we say that a prime, even if Pareto-optimal, =
isn't
> good if we can gain cross-platform performance by switching to another
> prime that's within 1 bit of the same size (or larger). The dependence
> of speed upon c is strong enough that this rule still leaves some good
> primes, such as 2^255-19 and 2^266-3 and 2^414-17 and 2^521-1. It
> _doesn't_ allow 2^254-245 or 2^256-189 or 2^384-317 or 2^512-569. This
> rule limits the prime choice in a much more fundamental way than =
having
> to make up marketing arguments for particular primes---the prime =
choice
> is being driven by performance. If you read the Curve25519 paper then
> you can see that this is how 2^255-19 was chosen.
>=20
> Surely we can all agree that security, speed, and simplicity are the =
top
> desiderata to be considered by CFRG. If it's really necessary to =
include
> marketing requirements such as "make sure to use multiples of 128 in =
the
> name" then these requirements should be handled by renaming rather =
than
> by compromising the top desiderata. We can have an adult discussion =
here
> of what the best crypto actually is, and a separate discussion of how =
to
> present the best crypto to the children---or simply skip the =
paternalism
> and treat the users as adults, which is what I recommend.
>=20
>> All of the curve choices on offer are significantly faster than
>> RSA2048
>=20
> That depends on the application. For example, DNSSEC people say that
> signature-verification speed is critical, and if you look at (e.g.) =
the
> Haswell benchmarks near the top of
>=20
>   http://bench.cr.yp.to/results-sign.html
>=20
> then you'll see just 60533 cycles (using OpenSSL) for verification in
> "ronald2048" (a typical 2048-bit RSA signature system). That's faster
> than the 165939 cycles for Ed25519, and it's 50 times faster than the
> 3027399 cycles for "ecdonaldp521" (P-521 ECDSA, again with OpenSSL). =
An
> E-521 version of Ed25519 would be much faster than ecdonaldp521 (and,
> like Ed25519, would allow faster verification through batching, not
> included in these benchmarks), but would be much slower than RSA-2048.
>=20
> Furthermore, most web pages and other Internet services are _not_
> cryptographically protected. Obviously the hassle of setting up SSL is =
a
> major factor, but there are many cases where SSL is _already_ set up
> and where speed is the only excuse for not running it (or for running
> it at a security level that's feasible to break today). For example,
>=20
>   * https://sourceforge.net/account is fully functional, while
>   * https://sourceforge.net/develop redirects to HTTP.
>=20
> This has no explanation other than SSL being too slow. Slow public-key
> crypto isn't the only contributor to slow SSL, but the other problems
> are being fixed too, and I see ample room for optimism that this will
> drastically increase the deployment of crypto across the Internet.
>=20
> It's of course nice to hear that _you_ don't have cost problems for
> crypto, but my understanding is that CFRG is looking at a much wider
> range of use cases, including cases where crypto speed is important.
>=20
>  [ RSA-2048 ]
>> is what every major application doing public key is
>> using today.
>=20
> Let me make sure I understand what you're saying.
>=20
> Most DNSSEC signatures use RSA-1024 (for performance reasons) rather
> than RSA-2048, so DNSSEC is not a "major application doing public =
key"?
> Tor, which recently upgraded from RSA-1024 to Curve25519, is not a
> "major application doing public key"? DNSCrypt, which compared to =
DNSSEC
> is actually doing far more to protect DNS integrity and infinitely =
more
> to protect DNS privacy, is not a "major application doing public key"?
> Out of all of the Curve25519 applications listed in
>=20
>   http://www.apple.com/ipad/business/docs/iOS_Security_Feb14.pdf
>   http://en.wikipedia.org/wiki/Curve25519#Notable_uses
>   http://ianix.com/pub/curve25519-deployment.html
>=20
> the only ones that can qualify as "major applications doing public =
key"
> are the ones that are also using RSA-2048?
>=20
> Perhaps you meant to comment only on IETF protocols, but maybe one of
> the reasons that Curve25519 is being deployed in so many non-IETF
> applications is that IETF protocols don't do what those applications
> want, and maybe CFRG can help IETF do a better job there. Furthermore,
> DNSSEC is an IETF protocol, and surely you can't be suggesting that =
CFRG
> should ignore DNSSEC.
>=20
>> WF256 - High security delivering a confidence factor of 50+ years.
>> 2^256 work factor
>=20
> Nobody can plausibly claim "a confidence factor of 50+ years" for ECC
> given the serious risk posed by quantum computers. AES-256 isn't so
> seriously affected but is still broken in 2^128 simple operations by
> Grover's algorithm. My impression is that CFRG's current agenda does =
not
> include 512-bit ciphers, the McEliece system, NTRU, etc.; it does
> include hash-based signatures, but this is only one part of =
post-quantum
> security.
>=20
> Even in these pre-quantum times, AES-256 fails to provide a 2^256 =
"work
> factor"; see the separate "matching AES security" thread. This means
> that a curve that achieves "WF256" against pre-quantum attacks would
> still fail to achieve "WF256" for applications such as TLS.
>=20
>> Yesterday someone claimed in another forum that 'performance' was an
>> objective factor, as if every algorithm executed as fast (or at least
>> relatively) on each architecture.
>=20
> Fortunately, experience shows that any plausible averaging of
> state-of-the-art ECC speeds across architectures leads to the same =
basic
> conclusions regarding the importance of taking primes very close to a
> power of 2, the importance of taking curves with points of order 4, =
etc.
>=20
> It's of course possible that CFRG will end up facing some sort of =
tricky
> decision---for example, I've seen speculation that software people =
might
> prefer one curve while hardware people prefer another (this would be =
the
> case if CFRG were considering binary curves, but evidently it isn't),
> and speculation that signature people might prefer one curve while DH
> people prefer another. So far there's no evidence of such =
complications.
>=20
>> DJB: Speed! Speed! Speed!
>=20
> I'm not sure which talk you're referring to. Here are the slides that =
I
> presented at the CFRG meeting in Toronto:
>=20
>   http://cr.yp.to/talks.html#2014.07.23
>=20
> I started by saying that I was going to talk not about speed but =
rather
> about simplicity and security. What I spent most of my time explaining
> was how implementors are pressured to screw up security---but also how
> careful cryptographic choices can eliminate many of these pressures. I
> did spend a few seconds on slide 13 mentioning that the 2012 NEON
> implementation of Curve25519 is 8 times faster than the 2014 OpenSSL
> NIST P-256 on ARM Cortex-A8 (a typical smartphone/tablet CPU), but in
> general I said very little about Curve25519's performance.
>=20
>> 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.
>=20
> I don't recall Microsoft claiming to "eliminate subjective choices
> completely." Unless they speak up to make this claim, I would suggest
> that you retract this statement and refrain from overstating their
> position in the future.
>=20
>> Explaining the choice.
>=20
> Every proposal on the table has an explanation. Having an explanation
> from first principles (speed, simplicity, and security) leaves far =
less
> wiggle room than having an explanation from the marketing department
> ("Wow, 256!").
>=20
>> Compatibility with legacy crypto HSMs
>=20
> Obviously one can manufacture platforms that reward some curves. But =
do
> you seriously think that someone saying "I have an HSM that supports
> only ECDSA NIST P-256!" should count as an objection to settling on
> better curves for everybody else? There doesn't seem to be a current
> proposal to _eliminate_ P-256, so why can't that HSM just stick to =
P-256
> while a better curve helps enable crypto for the mass market?
>=20
> As a more subtle example, do you think that someone saying "I have an
> HSM that supports arbitrary curves but only for the NIST P-256 prime!
> Please stick to the NIST P-256 prime!" should be able to outweigh
>=20
>   https://www.imperialviolet.org/2010/12/21/eccspeed.html
>=20
> illustrating the huge speed advantages of 2^255-19 on widespread CPUs?
> This is all speculative---as I said, so far there's no evidence of any
> such conflicts---but surely you'll agree that requiring top =
performance
> on each platform separately would be unreasonable in case there _are_
> conflicts between platforms. Someone arguing for curve choice on the
> basis of one unusual platform is going to, and should, have a tough =
job.
>=20
> As a side note, even within the HSM market, it's not at all clear that
> _legacy_ HSM support for ECC is anywhere near as important as _future_
> HSM support for ECC. If you care about ECC in this market then you
> shouldn't be asking merely what the legacy hardware supports, but also
> what would help enable future hardware.
>=20
>> Compatibility with standard data paths
>=20
> So, after the study
>=20
>   https://www.hgi.rub.de/hgi/publikationen/curve25519/
>=20
> showed that the standard 18-bit data path for FPGA multipliers works
> very well with splitting 255-bit integers into 17-bit pieces (note =
that
> 255 =3D 17*15), you're saying that the poor alignment of 256 with this
> standard rules out 256? Similarly, since standard "lazy reduction" =
fits
> into standard 256-bit data paths for addition of 255-bit integers but
> not for addition of 256-bit integers, CFRG must exclude 256-bit =
primes?
>=20
> There's an extensive literature quantifying the performance of ECC on
> various platforms. You seem to think that this literature =
misrepresents
> some important platform with a 512-bit data path. If you can defend =
this
> by naming the platform, pointing to the documentation, saying where =
the
> platform is used, saying what the users' performance requirements are,
> and explaining why you don't think E-521 could meet those requirements
> (while you seem to think that 512-bit ECC is obviously fast enough),
> then maybe this will influence the E-521 evaluation---but stating this
> "compatibility" as a yes/no requirement is clearly wrong.
>=20
> ---Dan
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Aug  4 12:42:32 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 546F01A0305 for <cfrg@ietfa.amsl.com>; Mon,  4 Aug 2014 12:42:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.203
X-Spam-Level: 
X-Spam-Status: No, score=-4.203 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 wvJ2_csX4pWj for <cfrg@ietfa.amsl.com>; Mon,  4 Aug 2014 12:42:26 -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 C12E51A0302 for <cfrg@irtf.org>; Mon,  4 Aug 2014 12:42:26 -0700 (PDT)
Received: from men75-11-88-175-104-179.fbx.proxad.net ([88.175.104.179] helo=[192.168.1.49]) by jay.w3.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <hhalpin@w3.org>) id 1XEO9I-0002UO-DG; Mon, 04 Aug 2014 15:42:24 -0400
Message-ID: <53DFE219.4020702@w3.org>
Date: Mon, 04 Aug 2014 21:42:17 +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: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <53CD9D23.6030401@w3.org> <CFF422C0.28814%kenny.paterson@rhul.ac.uk>
In-Reply-To: <CFF422C0.28814%kenny.paterson@rhul.ac.uk>
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/na7ybDQjE-LHGRpfwHTL1bmWQnQ
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: Mon, 04 Aug 2014 19:42:30 -0000

On 07/22/2014 08:26 PM, Paterson, Kenny wrote:
> 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.


I believe Wendy managed to discuss this in the CFRG AOB. Just to
confirm, we will produce an Informational RFC for the consideration of
CFRG as soon as possible for the per-algorithm security considerations.
The W3C appreciates the support of the CFRG in this matter, which we
agree may have wider applicability than the W3C Web Cryptography API.

  thanks,
       harry


> 
> Regards,
> 
> Kenny 
> 
> 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=25607
>> [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 Mon Aug  4 19:27:57 2014
Return-Path: <cfrg@whittington.net.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 AEA3C1A8BB4 for <cfrg@ietfa.amsl.com>; Mon,  4 Aug 2014 19:27:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.906
X-Spam-Level: 
X-Spam-Status: No, score=-0.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RELAY_IS_203=0.994] 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 haA65Kv3kwjP for <cfrg@ietfa.amsl.com>; Mon,  4 Aug 2014 19:27:53 -0700 (PDT)
Received: from mailfilter2.ihug.co.nz (mailfilter2.ihug.co.nz [203.109.136.2]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D9F51A0BE8 for <cfrg@ietf.org>; Mon,  4 Aug 2014 19:27:53 -0700 (PDT)
X-Cloudmark-SP-Filtered: true
X-Cloudmark-SP-Result: v=1.1 cv=cbLuaX5g+LySQmqRE9f7l6k+XfJf4QnluFbQeSLmSR0= c=1 sm=2 a=AhvBnSalKPwA:10 a=5rYUUro_XKAA:10 a=N659UExz7-8A:10 a=xqWC_Br6kY4A:10 a=48vgC7mUAAAA:8 a=YlDpyLmHAAAA:8 a=RehFWjLUiUovX4E7yc0A:9 a=pILNOxqGKmIA:10 a=lZB815dzVvQA:10 a=WZiKUSCcF5cA:10
X-IronPort-AV: E=Sophos;i="5.01,802,1399982400"; d="scan'208";a="135325009"
Received: from host.colocrossing.com (HELO [IPv6:::1]) ([198.23.226.83]) by cust.filter2.content.vf.net.nz with ESMTP/TLS/AES128-SHA; 05 Aug 2014 14:27:51 +1200
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Tim Whittington <cfrg@whittington.net.nz>
In-Reply-To: <20140723213400.18686.14504.idtracker@ietfa.amsl.com>
Date: Tue, 5 Aug 2014 14:27:44 +1200
Content-Transfer-Encoding: quoted-printable
Message-Id: <535F2867-E8C6-42B9-940C-891FC452EC88@whittington.net.nz>
References: <20140723213400.18686.14504.idtracker@ietfa.amsl.com>
To: cfrg@ietf.org
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Fr2fL0TvfL7Tk70YdgeiZwWBpD8
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-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, 05 Aug 2014 02:27:56 -0000

I note that there is a repeated error in the HEX <-> ASCII conversion =
for the test vectors that use the phrase "'Twas brillig, and the slithy =
roves=85=94:
 - A.2, Test Vector #3
 - A.3, Test Vector #4

I can verify the test vectors using the hex plaintext, but this is not =
representative of the actual text.
Specifically all but the last period (ASCII 0x2e) in the text are 0x0A =
in the hex representation.

The error is also in draft-nir-cfrg-chacha20-poly1305.

cheers
tim



On 24/07/2014, at 9:34 am, 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-irtf-cfrg-chacha20-poly1305-00.txt
> 	Pages           : 38
> 	Date            : 2014-07-23
>=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-irtf-cfrg-chacha20-poly1305/
>=20
> There's also a htmlized version available at:
> http://tools.ietf.org/html/draft-irtf-cfrg-chacha20-poly1305-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
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Aug  4 23:06:48 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 045581B28F5 for <cfrg@ietfa.amsl.com>; Mon,  4 Aug 2014 23:06:44 -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 iSu6qt5Z1zpY for <cfrg@ietfa.amsl.com>; Mon,  4 Aug 2014 23:06:41 -0700 (PDT)
Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B8F7C1B2839 for <cfrg@ietf.org>; Mon,  4 Aug 2014 23:06:40 -0700 (PDT)
Received: by mail-wi0-f176.google.com with SMTP id bs8so6305293wib.3 for <cfrg@ietf.org>; Mon, 04 Aug 2014 23:06:39 -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=2PEF4IuBcwdNTSKE17oN/hyDzSRar0Ii1uyJDN4elSw=; b=zQ1LKevR7azAjawHIEyu7iEDyHqKXVpUPl7EyNPll6guVy5zr7iuhFe96XHVqGuTtf MO2o5FXhf5Irffsjk18a+knP8SJNDlo2Mvq6x1ml4mPm9vvc+GYyPJAFwZb0fhFbfvEP 9p6W8oDQlsaZ2xGDuKABbeaoDD0wLpLzVkpem09jRHYYtvRQ73CVO4nEM4dSacWF/OC7 kz6Yn3GREtnLWSEXkVXeadWtRJGmJ+oD056DOSDsmPrGCD4Wyutxi6TLRJKgQx5t2si6 48ipu8HkXvN/bUBUgU1hRU0u4xF1HznpAgqz1smASBF8Ys0Ia9i+h/LJfCaXJha7paOn CUKQ==
X-Received: by 10.194.100.34 with SMTP id ev2mr2417176wjb.76.1407218799237; Mon, 04 Aug 2014 23:06:39 -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 bf3sm4370661wib.18.2014.08.04.23.06.37 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 23:06:38 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_1B3FEC80-8AD1-44E5-9726-B1E5D8C1355E"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <535F2867-E8C6-42B9-940C-891FC452EC88@whittington.net.nz>
Date: Tue, 5 Aug 2014 09:06:36 +0300
Message-Id: <54F95F99-AE4D-4934-8054-C04C2E248671@gmail.com>
References: <20140723213400.18686.14504.idtracker@ietfa.amsl.com> <535F2867-E8C6-42B9-940C-891FC452EC88@whittington.net.nz>
To: Tim Whittington <cfrg@whittington.net.nz>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/K52WjViBIdANUxARy1rsXyTeQBM
Cc: cfrg@ietf.org
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-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, 05 Aug 2014 06:06:45 -0000

--Apple-Mail=_1B3FEC80-8AD1-44E5-9726-B1E5D8C1355E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hi, Tim.

The original text (copied from some page Google turned up by searching =
for =93Jabberwocky=94 is as follows:

'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.

The hex representation shows any non-printable character (code<32 or =
code>=3D127) as a period.
So only the last character in the test vector is an actual period.

Hope this helps

Yoav

On Aug 5, 2014, at 5:27 AM, Tim Whittington <cfrg@whittington.net.nz> =
wrote:

> I note that there is a repeated error in the HEX <-> ASCII conversion =
for the test vectors that use the phrase "'Twas brillig, and the slithy =
roves=85=94:
> - A.2, Test Vector #3
> - A.3, Test Vector #4
>=20
> I can verify the test vectors using the hex plaintext, but this is not =
representative of the actual text.
> Specifically all but the last period (ASCII 0x2e) in the text are 0x0A =
in the hex representation.
>=20
> The error is also in draft-nir-cfrg-chacha20-poly1305.
>=20
> cheers
> tim
>=20
>=20
>=20
> On 24/07/2014, at 9:34 am, internet-drafts@ietf.org wrote:
>=20
>>=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-irtf-cfrg-chacha20-poly1305-00.txt
>> 	Pages           : 38
>> 	Date            : 2014-07-23
>>=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-irtf-cfrg-chacha20-poly1305/
>>=20
>> There's also a htmlized version available at:
>> http://tools.ietf.org/html/draft-irtf-cfrg-chacha20-poly1305-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
>> _______________________________________________
>> 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


--Apple-Mail=_1B3FEC80-8AD1-44E5-9726-B1E5D8C1355E
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;">Hi, =
Tim.<div><br></div><div>The original text (copied from some page Google =
turned up by searching for =93Jabberwocky=94 is as =
follows:</div><div><br></div><div><div style=3D"margin: 0px;">'Twas =
brillig, and the slithy toves</div><div style=3D"margin: 0px;">Did gyre =
and gimble in the wabe:</div><div style=3D"margin: 0px;">All mimsy were =
the borogoves,</div><div style=3D"margin: 0px;">And the mome raths =
outgrabe.</div><div style=3D"margin: 0px;"><br></div><div style=3D"margin:=
 0px;">The hex representation shows any non-printable character =
(code&lt;32 or code&gt;=3D127) as a period.</div><div style=3D"margin: =
0px;">So only the last character in the test vector is an actual =
period.</div><div style=3D"margin: 0px;"><br></div><div style=3D"margin: =
0px;">Hope this helps</div><div style=3D"margin: 0px;"><br></div><div =
style=3D"margin: 0px;">Yoav</div><div style=3D"margin: 0px; font-size: =
11px; font-family: Menlo;"><br></div><div><div>On Aug 5, 2014, at 5:27 =
AM, Tim Whittington &lt;<a =
href=3D"mailto:cfrg@whittington.net.nz">cfrg@whittington.net.nz</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">I note that there is a repeated error in the HEX &lt;-&gt; =
ASCII conversion for the test vectors that use the phrase "'Twas =
brillig, and the slithy roves=85=94:<br> - A.2, Test Vector #3<br> - =
A.3, Test Vector #4<br><br>I can verify the test vectors using the hex =
plaintext, but this is not representative of the actual =
text.<br>Specifically all but the last period (ASCII 0x2e) in the text =
are 0x0A in the hex representation.<br><br>The error is also in =
draft-nir-cfrg-chacha20-poly1305.<br><br>cheers<br>tim<br><br><br><br>On =
24/07/2014, at 9:34 am, <a =
href=3D"mailto:internet-drafts@ietf.org">internet-drafts@ietf.org</a> =
wrote:<br><br><blockquote type=3D"cite"><br>A New Internet-Draft is =
available from the on-line Internet-Drafts directories.<br>This draft is =
a work item of the Crypto Forum Research Group Working Group of the =
IETF.<br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Title =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ChaCha20 =
and Poly1305 for IETF protocols<br> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Authors =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: Yoav Nir<br> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adam=
 Langley<br><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>Filename &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: =
draft-irtf-cfrg-chacha20-poly1305-00.txt<br><span class=3D"Apple-tab-span"=
 style=3D"white-space:pre">	</span>Pages =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: =
38<br><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>Date =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: =
2014-07-23<br><br>Abstract:<br> &nbsp;This document defines the ChaCha20 =
stream cipher, as well as the use<br> &nbsp;of the Poly1305 =
authenticator, both as stand-alone algorithms, and as<br> &nbsp;a =
"combined mode", or Authenticated Encryption with Additional Data<br> =
&nbsp;(AEAD) algorithm.<br><br> &nbsp;This document does not introduce =
any new crypto, but is meant to<br> &nbsp;serve as a stable reference =
and an implementation guide.<br><br><br>The IETF datatracker status page =
for this draft is:<br><a =
href=3D"https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305=
/">https://datatracker.ietf.org/doc/draft-irtf-cfrg-chacha20-poly1305/</a>=
<br><br>There's also a htmlized version available =
at:<br>http://tools.ietf.org/html/draft-irtf-cfrg-chacha20-poly1305-00<br>=
<br><br>Please note that it may take a couple of minutes from the time =
of submission<br>until the htmlized version and diff are available at =
tools.ietf.org.<br><br>Internet-Drafts are also available by anonymous =
FTP =
at:<br>ftp://ftp.ietf.org/internet-drafts/<br><br>________________________=
_______________________<br>Cfrg mailing =
list<br>Cfrg@irtf.org<br>http://www.irtf.org/mailman/listinfo/cfrg<br></bl=
ockquote><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></div><br></div></body></html>=

--Apple-Mail=_1B3FEC80-8AD1-44E5-9726-B1E5D8C1355E--


From nobody Wed Aug  6 03:16:56 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 17B421B2D12 for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 03:16:55 -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 4dslfJgS7bEf for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 03:16:52 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0081.outbound.protection.outlook.com [213.199.154.81]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E94CB1B28B9 for <cfrg@irtf.org>; Wed,  6 Aug 2014 03:16:51 -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; Wed, 6 Aug 2014 10:16:48 +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; Wed, 6 Aug 2014 10:16:48 +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+o0SvSKtW2u0xbZusJ3QAgBTGf4CAApdjAA==
Date: Wed, 6 Aug 2014 10:16:47 +0000
Message-ID: <D007BF01.295A3%kenny.paterson@rhul.ac.uk>
References: <53CD9D23.6030401@w3.org> <CFF422C0.28814%kenny.paterson@rhul.ac.uk> <53DFE219.4020702@w3.org>
In-Reply-To: <53DFE219.4020702@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: [134.219.227.30]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 02951C14DC
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(377454003)(479174003)(24454002)(52604005)(199002)(51704005)(189002)(36756003)(66066001)(4396001)(31966008)(101416001)(79102001)(107046002)(107886001)(19580405001)(77982001)(83322001)(19580395003)(561944003)(85306004)(19273905006)(80022001)(64706001)(86362001)(83506001)(15975445006)(21056001)(20776003)(81342001)(2656002)(87936001)(74502001)(74482001)(74662001)(15202345003)(106116001)(83072002)(81542001)(105586002)(106356001)(76176999)(50986999)(54356999)(76482001)(46102001)(15395725005)(92566001)(92726001)(99396002)(563064011); 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: <5F870EB610FA5D418C35CD04DFB0C3AE@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/NkTQOauKesgCAX95KoZlgCfPM7E
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: Wed, 06 Aug 2014 10:16:55 -0000

Harry

Excellent, thanks for confirming. We await your draft with interest!

Cheers,

Kenny=20

On 04/08/2014 20:42, "Harry Halpin" <hhalpin@w3.org> wrote:

>On 07/22/2014 08:26 PM, Paterson, Kenny wrote:
>> Dear Harry,
>>=20
>> 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.
>>=20
>> 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.
>
>
>I believe Wendy managed to discuss this in the CFRG AOB. Just to
>confirm, we will produce an Informational RFC for the consideration of
>CFRG as soon as possible for the per-algorithm security considerations.
>The W3C appreciates the support of the CFRG in this matter, which we
>agree may have wider applicability than the W3C Web Cryptography API.
>
>  thanks,
>       harry
>
>
>>=20
>> Regards,
>>=20
>> Kenny=20
>>=20
>> On 21/07/2014 19:07, "Harry Halpin" <hhalpin@w3.org> wrote:
>>=20
>>> 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
>>>
>>=20
>


From nobody Wed Aug  6 07:12:29 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 54F6E1B2C42; Wed,  6 Aug 2014 07:12:16 -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 hBz0WGUhPBms; Wed,  6 Aug 2014 07:12:11 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D09C1B27D3; Wed,  6 Aug 2014 07:12:08 -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.p5
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20140806141208.29148.79482.idtracker@ietfa.amsl.com>
Date: Wed, 06 Aug 2014 07:12:08 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/FvrL9djdz7eLHoqVwTUQjUe8yqI
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-augpake-02.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, 06 Aug 2014 14:12:16 -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           : Augmented Password-Authenticated Key Exchange (AugPAKE)
        Authors         : SeongHan Shin
                          Kazukuni Kobara
	Filename        : draft-irtf-cfrg-augpake-02.txt
	Pages           : 20
	Date            : 2014-08-06

Abstract:
   This document describes a secure and highly-efficient augmented
   password-authenticated key exchange (AugPAKE) protocol where a user
   remembers a low-entropy password and its verifier is registered in
   the intended server.  In general, the user password is chosen from a
   small set of dictionary whose space is within the off-line dictionary
   attacks.  The AugPAKE protocol described here is secure against
   passive attacks, active attacks and off-line dictionary attacks (on
   the obtained messages with passive/active attacks).  Also, this
   protocol provides resistance to server compromise in the context that
   an attacker, who obtained the password verifier from the server, must
   at least perform off-line dictionary attacks to gain any advantage in
   impersonating the user.  The AugPAKE protocol is not only provably
   secure in the random oracle model but also the most efficient over
   the previous augmented PAKE protocols (SRP and AMP).


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-augpake/

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02

A diff from the previous version is available at:
http://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-augpake-02


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 Aug  6 07:55:14 2014
Return-Path: <seonghan.shin@aist.go.jp>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 050E01B2D6C for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 07:55:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.678
X-Spam-Level: 
X-Spam-Status: No, score=-3.678 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, HTML_MESSAGE=0.001, 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 GIqBgBWyd-5v for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 07:55:09 -0700 (PDT)
Received: from na3sys010aog110.obsmtp.com (na3sys010aog110.obsmtp.com [74.125.245.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC9CA1B2A4A for <cfrg@ietf.org>; Wed,  6 Aug 2014 07:55:08 -0700 (PDT)
Received: from mail-la0-f53.google.com ([209.85.215.53]) (using TLSv1) by na3sys010aob110.postini.com ([74.125.244.12]) with SMTP ID DSNKU+JBzK7ubgidGY6ELx8bQL7uGz5ftaGD@postini.com; Wed, 06 Aug 2014 07:55:09 PDT
Received: by mail-la0-f53.google.com with SMTP id gl10so2188544lab.12 for <cfrg@ietf.org>; Wed, 06 Aug 2014 07:55:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aist.go.jp; s=google;  h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wWLhrxoR4y/ViXIBMmwT0W+XXpmw+SJiwDRjkjnjWzo=; b=S46PKOPA44saGpZp2RmMEXLplJ7JLHTd7/Y1lfuEhqR+wmQi0gz7TsOgAkLHWp267l xOD795vCX2iWU0xVphMU32Tjfca1gquhOb6KAYEHU9yBHtDh2+F8f+jWH1UYdd32zKSg ahEf2+HwEYKbFHTObD9eRwPqAU42C1y1SlIsw=
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:cc:content-type; bh=wWLhrxoR4y/ViXIBMmwT0W+XXpmw+SJiwDRjkjnjWzo=; b=Jz4HHADo4VX2zvbo2WriMLJYBV5IRb726RqfOeApj604SoIk4so9BC4+FCd0ZSENUR 3AN/oTyYukph8ENou3KBBOFstB3MTv23WBPY+tqdx/rvLzRsq8eM56hjwLwuOt5r8jcH VWkiXYoXAr8ZmNph1QmhWflVeudTJC3OR5UmFnZgeKouUlZ6xDHFYJE3n6eZ/YHB24lE cizOiNPlf58FtI8EawzB2ZX6I1LAYr5sw9oJxj1OffPBCIfltBNmbcaTE+lNSXLzUZX2 UkQ2BeQ+OYmjRm9V9ZzFGUMNINKj+2Kv+cgDf2y+Oei/rFHq45uROp7Z/zzN1UmuQmPu HwDw==
X-Gm-Message-State: ALoCoQklCcEnUtWp3KcjNXAhPh+lmEFQPT/9mH32VXcmrsWVXernv66hbEdl8/UGuWXFoAicWffzOSKTExEvqocYI+NUf7ltsQ3IUbsSgOFwbbDaFb1k0rscdvIUqKAQMtCtccRuBZkU
X-Received: by 10.112.30.39 with SMTP id p7mr10966253lbh.35.1407336907013; Wed, 06 Aug 2014 07:55:07 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.112.30.39 with SMTP id p7mr10966246lbh.35.1407336906900; Wed, 06 Aug 2014 07:55:06 -0700 (PDT)
Received: by 10.112.171.38 with HTTP; Wed, 6 Aug 2014 07:55:06 -0700 (PDT)
In-Reply-To: <20140806141208.29148.79482.idtracker@ietfa.amsl.com>
References: <20140806141208.29148.79482.idtracker@ietfa.amsl.com>
Date: Wed, 6 Aug 2014 23:55:06 +0900
Message-ID: <CAEKgtqkXd9-wkeXtXuo+FuXiiX4FhzUr27V=fUVv6tL0TNXOFA@mail.gmail.com>
From: SeongHan Shin <seonghan.shin@aist.go.jp>
To: cfrg@ietf.org
Content-Type: multipart/alternative; boundary=001a113475686a5d5604fff728d8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/18Tu0bVmBz9Zzzhgo-JH0BCAF0k
Cc: =?UTF-8?B?5Y+k5Y6f5ZKM6YKm?= <k-kobara@aist.go.jp>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-augpake-02.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, 06 Aug 2014 14:55:12 -0000

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

Dear all,

I've submitted a new version of the I-D.
I added AugPAKE in the EC setting to Appendix C.

Any comments are welcome!
Best regards,
Shin



On Wed, Aug 6, 2014 at 11:12 PM, <internet-drafts@ietf.org> wrote:

>
> 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           : Augmented Password-Authenticated Key Exchange
> (AugPAKE)
>         Authors         : SeongHan Shin
>                           Kazukuni Kobara
>         Filename        : draft-irtf-cfrg-augpake-02.txt
>         Pages           : 20
>         Date            : 2014-08-06
>
> Abstract:
>    This document describes a secure and highly-efficient augmented
>    password-authenticated key exchange (AugPAKE) protocol where a user
>    remembers a low-entropy password and its verifier is registered in
>    the intended server.  In general, the user password is chosen from a
>    small set of dictionary whose space is within the off-line dictionary
>    attacks.  The AugPAKE protocol described here is secure against
>    passive attacks, active attacks and off-line dictionary attacks (on
>    the obtained messages with passive/active attacks).  Also, this
>    protocol provides resistance to server compromise in the context that
>    an attacker, who obtained the password verifier from the server, must
>    at least perform off-line dictionary attacks to gain any advantage in
>    impersonating the user.  The AugPAKE protocol is not only provably
>    secure in the random oracle model but also the most efficient over
>    the previous augmented PAKE protocols (SRP and AMP).
>
>
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-irtf-cfrg-augpake/
>
> There's also a htmlized version available at:
> http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02
>
> A diff from the previous version is available at:
> http://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-augpake-02
>
>
> 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/
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>



-- 
------------------------------------------------------------------
SeongHan Shin
Research Institute for Secure Systems (RISEC),
National Institute of Advanced Industrial Science and Technology (AIST),
Central 2, 1-1-1, Umezono, Tsukuba City, Ibaraki 305-8568 Japan
Tel : +81-29-861-2670/5284
Fax : +81-29-861-5285
E-mail : seonghan.shin@aist.go.jp
------------------------------------------------------------------

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

<div dir=3D"ltr"><div><div><div><div><div>Dear all,<br><br></div>I&#39;ve s=
ubmitted a new version of the I-D.<br></div>I added AugPAKE in the EC setti=
ng to Appendix C.<br><br></div>Any comments are welcome!<br></div>Best rega=
rds,<br>
</div>Shin<br><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail_qu=
ote">On Wed, Aug 6, 2014 at 11:12 PM,  <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:internet-drafts@ietf.org" target=3D"_blank">internet-drafts@ietf.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"><br>
A New Internet-Draft is available from the on-line Internet-Drafts director=
ies.<br>
=C2=A0This draft is a work item of the Crypto Forum Research Group Working =
Group of the IETF.<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Title =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Augm=
ented Password-Authenticated Key Exchange (AugPAKE)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Authors =C2=A0 =C2=A0 =C2=A0 =C2=A0 : SeongHan =
Shin<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 Kazukuni Kobara<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Filename =C2=A0 =C2=A0 =C2=A0 =C2=A0: draft-irt=
f-cfrg-augpake-02.txt<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Pages =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : 20<b=
r>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Date =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:=
 2014-08-06<br>
<br>
Abstract:<br>
=C2=A0 =C2=A0This document describes a secure and highly-efficient augmente=
d<br>
=C2=A0 =C2=A0password-authenticated key exchange (AugPAKE) protocol where a=
 user<br>
=C2=A0 =C2=A0remembers a low-entropy password and its verifier is registere=
d in<br>
=C2=A0 =C2=A0the intended server. =C2=A0In general, the user password is ch=
osen from a<br>
=C2=A0 =C2=A0small set of dictionary whose space is within the off-line dic=
tionary<br>
=C2=A0 =C2=A0attacks. =C2=A0The AugPAKE protocol described here is secure a=
gainst<br>
=C2=A0 =C2=A0passive attacks, active attacks and off-line dictionary attack=
s (on<br>
=C2=A0 =C2=A0the obtained messages with passive/active attacks). =C2=A0Also=
, this<br>
=C2=A0 =C2=A0protocol provides resistance to server compromise in the conte=
xt that<br>
=C2=A0 =C2=A0an attacker, who obtained the password verifier from the serve=
r, must<br>
=C2=A0 =C2=A0at least perform off-line dictionary attacks to gain any advan=
tage in<br>
=C2=A0 =C2=A0impersonating the user. =C2=A0The AugPAKE protocol is not only=
 provably<br>
=C2=A0 =C2=A0secure in the random oracle model but also the most efficient =
over<br>
=C2=A0 =C2=A0the previous augmented PAKE protocols (SRP and AMP).<br>
<br>
<br>
The IETF datatracker status page for this draft is:<br>
<a href=3D"https://datatracker.ietf.org/doc/draft-irtf-cfrg-augpake/" targe=
t=3D"_blank">https://datatracker.ietf.org/doc/draft-irtf-cfrg-augpake/</a><=
br>
<br>
There&#39;s also a htmlized version available at:<br>
<a href=3D"http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02" target=3D=
"_blank">http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02</a><br>
<br>
A diff from the previous version is available at:<br>
<a href=3D"http://www.ietf.org/rfcdiff?url2=3Ddraft-irtf-cfrg-augpake-02" t=
arget=3D"_blank">http://www.ietf.org/rfcdiff?url2=3Ddraft-irtf-cfrg-augpake=
-02</a><br>
<br>
<br>
Please note that it may take a couple of minutes from the time of submissio=
n<br>
until the htmlized version and diff are available at <a href=3D"http://tool=
s.ietf.org" target=3D"_blank">tools.ietf.org</a>.<br>
<br>
Internet-Drafts are also available by anonymous FTP at:<br>
<a href=3D"ftp://ftp.ietf.org/internet-drafts/" target=3D"_blank">ftp://ftp=
.ietf.org/internet-drafts/</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>
</blockquote></div><br><br clear=3D"all"><br>-- <br><div style=3D"MARGIN:0m=
m 0mm 0pt"><span style=3D"FONT-FAMILY:&#39;MS UI Gothic&#39;;FONT-SIZE:10pt=
" lang=3D"EN-US">----------------------------------------------------------=
--------<br>
SeongHan Shin<br></span><span style=3D"FONT-FAMILY:&#39;MS UI Gothic&#39;;F=
ONT-SIZE:10pt" lang=3D"EN-US">Research Institute for Secure Systems (RISEC)=
,<br>National Institute of Advanced Industrial Science and Technology (AIST=
),<br>
Central 2, 1-1-1, Umezono, Tsukuba City, Ibaraki 305-8568 Japan<br>Tel : +8=
1-29-861-2670/5284<br>Fax : +81-29-861-5285<br>E-mail : <a href=3D"mailto:s=
eonghan.shin@aist.go.jp" target=3D"_blank"><font color=3D"#0000ff">seonghan=
.shin@aist.go.jp</font></a><br>
------------------------------------------------------------------</span></=
div>
</div></div>

--001a113475686a5d5604fff728d8--


From nobody Wed Aug  6 08:17:03 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 21A6C1B27D3 for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 08:17:00 -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 270hEGlEaZcO for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 08:16:54 -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 81CB31A07A1 for <cfrg@ietf.org>; Wed,  6 Aug 2014 08:16:53 -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 8C8F63FD5; Wed,  6 Aug 2014 18:16:49 +0300 (EEST)
Date: Wed, 6 Aug 2014 18:16:49 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: cfrg@ietf.org
Message-ID: <20140806151649.GA20212@LK-Perkele-VII>
References: <20140806141208.29148.79482.idtracker@ietfa.amsl.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20140806141208.29148.79482.idtracker@ietfa.amsl.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/yr2rHQ3D168pGyY0kxKb-gOYS-U
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-augpake-02.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, 06 Aug 2014 15:17:00 -0000

On Wed, Aug 06, 2014 at 07:12:08AM -0700, internet-drafts@ietf.org wrote:
> 
> 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           : Augmented Password-Authenticated Key Exchange (AugPAKE)
>         Authors         : SeongHan Shin
>                           Kazukuni Kobara
> 	Filename        : draft-irtf-cfrg-augpake-02.txt
> 	Pages           : 20
> 	Date            : 2014-08-06
> 
> There's also a htmlized version available at:
> http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02
> 
> A diff from the previous version is available at:
> http://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-augpake-02

Did a quick read of changes:

Appendix C:

"If the received X from user U is not a point on E or [2^n] * X = 0_E,"

Should this be:

If the received X from user U is not a point on E or [k] * X = 0_E,

Similarly, there is:

"If the received Y from server S is not a point on E or	[2^n] * Y = 0_E,"

Should this be:

"If the received Y from server S is not a point on E or [k] * Y = 0_E,"


Rationale:

k is the cofactor, which may be ("optionally") power of two, it may
not be 2^n.


Also:

"The cofactor k is the value (#E / q) satisfying k = 2^n * q_1 * q_2	
...  q_t where n = {0,1,2} and every primes q_i > q for i = 1, 2,	
..., t."

q_i are bigger than q? Isn't q usually chosen to be the biggest prime
factor of #E?

Also, for some curves one might want to use (due to good performance
and security), k=8.



-Ilari


From nobody Wed Aug  6 11:06:06 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 E40091A03F6 for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 11:06:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.5
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.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 Y2Avye6QEZgr for <cfrg@ietfa.amsl.com>; Wed,  6 Aug 2014 11:06:00 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 0ADDE1A03E3 for <cfrg@irtf.org>; Wed,  6 Aug 2014 11:05:59 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs211cnc.rim.net with ESMTP/TLS/AES128-SHA; 06 Aug 2014 14:05:59 -0400
Received: from XCT113CNC.rim.net (10.65.161.213) by XCT107CNC.rim.net (10.65.161.207) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 6 Aug 2014 14:05:58 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT113CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Wed, 6 Aug 2014 14:05:58 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Progress on curve recommendations for TLS WG
Thread-Index: AQHPrSkVFDDUD0tW0keHIpwhcB27wpvDv/sw
Date: Wed, 6 Aug 2014 18:05:57 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC878E@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to>
In-Reply-To: <20140801013659.11640.qmail@cr.yp.to>
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_0081_01CFB17F.8B506B20"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lZ2RhaU98BczuZiRVpYMbCoPSVw
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: Wed, 06 Aug 2014 18:06:04 -0000

------=_NextPart_000_0081_01CFB17F.8B506B20
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of D. J. Bernstein
<snip>

> 
> > 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 do not want to delay the standardization of Curve25519, but I do not want
to close the door (*) on even-lower-risk curves.

(*no pun intended, note to self: avoid metaphors)

> 
> 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

Yes it's true that I was not completely specific in that email, partly
because my comment was a generic one, but also because of the context of the
existing practice and standards, aka state-of-the-art, especially P256
(minus the unexplained seed choice, of course).  E.g. selecting one of the
coefficients randomly (or by proxy, pseudorandomly), in such a way that to
obtain a random (but perhaps non-uniform) j-invariant, filtering the choice
based on a set of well-accepted criteria.   I felt that was implicit in most
of my messages to IETF: I don't think I ever proposed to overturning that
practice, perhaps just refining it.

Regardless, I'll try to be more specific. The class would be a subset of
those resisting all known attacks.  This subset could be determined by
narrowing based on potential security risks and efficiency benefits.  We
might narrow the set used for P256 further to account for more recent
discoveries: improved side channel resistance and efficiency and perhaps
various esoteric variants of DH problems.

> 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;

Choosing special parameters to avoid known attacks or potential attacks is
something I agree with. [[So, it is not something that I ignore, at least
generally.]]

The reason to choose special nearly-prime-order curves is to avoid the
Pohlig--Hellman attacks. 

For 256-bit order curve, the specialness of having a prime order removes
about 7.5 bits of choice from the class.  Heuristically, this does not seem
as large as a degree specialness as MOV-weak and SASS-weak curves, which may
be up at around 120 bits of specialness, but maybe I've miscalculated.

One could even avoid specialness of prime-order-curves by using random
curves with half-larger bit size, (e.g. 384 instead of 256) while, of
course, still checking resistance all known attack, including
Pohlig--Hellman and Pollard rho, so that the curve order has a prime factor
of at least 256 bits.  But these curves would be significantly slower.
Also, in the case, the curve group becomes more like a finite field group
with some small subgroups, so one would often need to do either cofactor
multiplication or order-checking, i.e. to avoid small-subgroup attacks, both
of which are costly.  

So, the slight specialness of nearly-prime order curves seems justifiable
for security and efficiency reasons.  

I'd suggest that, when choosing a random curve, we continue the practice of
using a (nearly) prime-order random curve.

> 
>    * the fact that we now take even more "special" curves that also have
>      unusually small twist cofactors, for the same reason; and

Requiring twist security seems like a good backup to, or even workaround to,
public key validation, and does not add much more specialness, again about
another 7 bits.  Relying on twist-security by allowing a static private key
to be applied to a point on the twist, is another interesting strategy whose
security I asked about in a different thread.  

I'd suggest that requiring twist-secure curves should be optional criteria
in selecting a random curve, because the benefit is rather small, and so is
the specialness.

This optionality introduces one bit of manipulability into the selection
criteria.

>    * 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.

Sure, their hypothesis are believable, but the MOV and SASS attacks are
actual attacks that work on prime-field curves, not binary-field elliptic
curves or higher genus (non-elliptic) curves.  

Also, some of the [KKM] examples seem to describe flukes.  I agree with
[KKM] that is possible that a special curve could resist some attack that
most random curves would not.  But selecting the special curve that resist
such an attack without knowing the attack would be a fluke, as I see it.
Anyway, the possibility [KKM] justifies having a special curve supported and
ready as a backup option in case of a disaster: aka algorithm agility.

//

Now to focus on the specialness of Curve25519. 

I understand (and trust) that special fields can lead to the best side
channel resistance and efficiency, so a special field is very justifiable.
Also, I'm not aware of any attacks based on the special fields.

I see the main benefit of the small size of A coefficient in the Curve25519
to help achieve the goal of rigidity, aka nothing-up-my-sleeve, aka
non-manipulability, aka no-back-door, aka non-malicious, aka
trustworthiness.  Again, this is justifiable.

Beyond rigidity, I see the smallness of A as making Curve25519 special.  In
bits, I'd estimate that it's special by a degree of (255-15)/2 = 120 bits.
I subtracted 15, for the small cofactor of the curve and its twist, and then
divided by two to account for isomorphisms of curves (because many different
A are isomorphic), but that's probably wrong, so please correct me.  I see
that a notably special.  To be fair, the MOV and SASS attacks on special
curves do not depend on coefficient size, so that's a good reason not to
worry about the specialness of the small A in Curve25519.  Again, I'm not
saying the specialness of Curve25519 is enough to delay its standardization.


If we could rigidly choose a random A, then not much of efficiency or side
channel resistance of Curve25519 would be lost, so this randomized A would
make Curve25519 even less risky, assuming the same level of rigidity.  

Granted: getting to such a similar level of rigidity might be hard.  I don't
think it would be feasible in the short time frame (one or two months) CFRG
is now aiming for.  But I think we could be possibly decide to undertake
such an endeavour, and then discuss options, which could take a long time, a
year maybe.

Best regards,

---Dan

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQ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FKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYApbZ3a7++wyRThh5QXrITLHgsxNtuj
Tmx9vPZnHiUjXG6wH0AY7QpQD/kaB5QRGzjbYoOSRxGQQRDqTBwFOeBo3KiJ3YEVuYGzKz4GwUzk
8S31DJa5IAxPCri6HSvKDCoL1kkMlt7WYGdHiWOLi3YtD1UHzuv/5XTSShW2vCS+tgAAAAAAAA==

------=_NextPart_000_0081_01CFB17F.8B506B20--


From nobody Thu Aug  7 07:20: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 F172D1B2B5B for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 07:20:49 -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 9VquRhmNO1Dc for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 07:20:43 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0235.outbound.protection.outlook.com [207.46.163.235]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B2D881B2B57 for <cfrg@ietf.org>; Thu,  7 Aug 2014 07:20: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.1005.10; Thu, 7 Aug 2014 14:20:36 +0000
Received: from BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.249]) by BL2PR03MB242.namprd03.prod.outlook.com ([169.254.8.249]) with mapi id 15.00.1005.008; Thu, 7 Aug 2014 14:20:36 +0000
From: Brian LaMacchia <bal@microsoft.com>
To: "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: Proposed requirements for curve candidate evaluation
Thread-Index: Ac+ySg7q5TOrqZzkQMGYGLgu8opTBA==
Date: Thu, 7 Aug 2014 14:20:36 +0000
Message-ID: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [173.191.95.130]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:;
x-forefront-prvs: 029651C7A1
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(189002)(164054003)(78114003)(21056001)(101416001)(31966008)(87936001)(77096002)(95666004)(83322001)(83072002)(2656002)(107046002)(107886001)(74502001)(81342001)(86612001)(20776003)(105586002)(106356001)(99286002)(64706001)(92566001)(46102001)(4396001)(110136001)(66066001)(99396002)(74316001)(33646002)(81542001)(76576001)(76482001)(80022001)(54356999)(229853001)(85852003)(86362001)(2351001)(85306004)(77982001)(50986999)(79102001)(2501001)(42262001)(24736002)(108616003); 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="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/PKLn5s-ayveEvJQD4ou8BOXz9Wc
Subject: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 14:20:51 -0000

Folks,
=20
As we are still in the requirements-generation phase of this exercise, I'm =
going to focus on just requirements in this email.  During my presentation =
at the Toronto meeting I described the requirements that drove the initial =
NUMS project research and proposed that CFRG adopt those requirements.  Her=
e are what I believe to be the most important of those requirements (revise=
d based on the conversation to date):
=20
1.	CFRG-recommended curves should be generated by as rigid and deterministi=
c a procedure as possible.=20
=20
As I stated at the beginning of my talk, our most important goal is to reco=
mmend new elliptic curves for the IETF that will restore trust and transpar=
ency in our protocols' use of elliptic curve cryptography.  Lowered confide=
nce in NIST/NSA has moved IETF working groups (starting with TLS) to re-eva=
luate the elliptic curves in their standards based on the past 15 years of =
ECC research and seek additional curves which are rigid in their generation=
 and more secure.  Other goals that have been suggested on this list, such =
as improving the overall performance of ECC operations for TLS, are certain=
ly worthwhile but those additional goals do not address the primary concern=
 of our collective customers. =20
=20
Each of the candidate curves that have been proposed to date have a rationa=
le behind their choice -- no one has suggested a curve without a rational j=
ustification for it.  But there are differences among those rationales and =
variations in how rigid the generation procedure for a specific curve is.  =
All of the curves suggested started with a reasonable set of security crite=
ria, but the amount of "wiggle room" invoked in order to get other desirabl=
e properties varies across the curves.  Having a lot of wiggle room in your=
 generation process is certainly OK if your primary goal is one of the othe=
r desirable properties, but it makes it harder to rebuild trust and confide=
nce among customers.  Requiring as rigid and deterministic a curve generati=
on procedure as possible is the overriding requirement to address the prima=
ry goal. =20
=20
Additionally, I believe it is highly desirable to have a common, consistent=
 generation mechanism across a range of security levels.  While TLS's reque=
st to CFRG focused on curve lengths of approximately 256, 384 and 512 bits,=
 other IETF working groups may need curves at other security levels.  For e=
xample, if CFRG was asked by another WG to specify a 400-bit curve, a rigid=
, deterministic generation mechanism would yield such a curve.  Yes, the ou=
tput might not be the overall most optimal choice at 400 bits -- it might b=
e possible to search around that curve for something nearby that might be a=
 bit faster -- but it would be a *consistent* choice and I believe that rig=
idity and consistency are the most important properties we need right now t=
o address the loss of trust.=20
=20
2.	At each security level, the CFRG-recommended curve must be specified in =
a single curve model that is used for both digital signatures and key excha=
nge algorithms (in particular ECDSA and ECDHE), without transformation to o=
ther models.

We have already discussed on the list the desire that the specified curve f=
orm should be used for both digital signatures and key exchange. We need to=
 remember that we are choosing curves for Internet protocols that will be i=
mplemented by a wide variety of products, services, systems and devices. Re=
quiring multiple curve forms, particularly in combination, significantly in=
creases the complexity of implementation. Complex implementations are more =
likely to have subtle errors which compromise the security of the protocols=
.  As such, there is significant engineering benefit to using curve arithme=
tic corresponding to the same curve model for both digital signatures and k=
ey exchange.=20

3.	The CFRG-recommended curves must be specified using the same curve model=
 for all security levels.

This requirement achieves similar engineering benefits to Requirement 2 abo=
ve.=20
=20
4.	When evaluating candidate curves for use in ECDHE, "ephemeral" should be=
 defined as "use exactly once in a key exchange" (or for TLS "use in exactl=
y one handshake").=20
=20
During the second TLS meeting in Toronto, Kenny Paterson gave a presentatio=
n summarizing where CFRG was on this question at that time and one of the p=
oints he mentioned was that there was not consensus as to what "ephemeral" =
should mean for purposes of evaluating candidates.  Russ Housley then comme=
nted at the microphone that "ephemeral" should mean "used in exactly one ha=
ndshake".  I strongly concur with Russ's position and suggest that we forma=
lly adopt that definition now during the Requirements phase.  The concrete =
implication of adopting this proposed requirement is that it means when we =
evaluate ECDHE performance for curve candidates we must include one fixed-b=
ase and one variable-base operation.=20
=20
I believe these proposed requirements are all necessary and should be adopt=
ed as official Requirements when this phase of the process concludes. =20
=20
Finally, I would remind folks that the overall goal of the process we are p=
ursuing here in the CFRG is to first reach consensus on a list of requireme=
nts for whatever curves we're going to recommend to TLS, and then evaluate =
candidate curves against those requirements.  It is possible, of course, th=
at none of the current set of candidate curves will satisfy all of the requ=
irements the group decides are necessary and we'll have to go look for more=
 candidates, but that is exactly how a requirements-driven process works an=
d if it happens in this case so be it.  We must not weaken our requirements=
 in order to make them fit the current set of candidates - our requirements=
 must be generated independent of the candidates submitted. =20
=20
Thanks,
=20
--bal


From nobody Thu Aug  7 10:33:03 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 488B01A006C for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 10:32:49 -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 4Zc2c0Ar8SsN for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 10:32:45 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 552B01A00A3 for <cfrg@irtf.org>; Thu,  7 Aug 2014 10:31:43 -0700 (PDT)
Received: from xct107cnc.rim.net ([10.65.161.207]) by mhs214cnc.rim.net with ESMTP/TLS/AES128-SHA; 07 Aug 2014 13:31:39 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT107CNC.rim.net ([fe80::b815:71ef:9f8f:e07c%16]) with mapi id 14.03.0174.001; Thu, 7 Aug 2014 13:31:39 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Bad and Rigid Curve (Rigid << NUMS)
Thread-Index: Ac+yZV061zJBRCm1Snqh2IxrFgU7ng==
Date: Thu, 7 Aug 2014 17:31:38 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC9264@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: application/pkcs7-mime; smime-type=signed-data; name="smime.p7m"
Content-Disposition: attachment; filename="smime.p7m"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pDqR9MLwj_0M_mkPjrUp96nyxJg
Subject: [Cfrg] Bad and Rigid Curve (Rigid << NUMS)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 17:32:49 -0000

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEggEOQ29u
dGVudC1UeXBlOiBtdWx0aXBhcnQvYWx0ZXJuYXRpdmU7DQoJYm91bmRhcnk9Ii0tLS09X05leHRQ
YXJ0XzAwMF8wMDE1XzAxQ0ZCMjQzLkVBQzg5MkMwIg0KDQpUaGlzIGlzIGEgbXVsdGl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8Snjdyv1ArtoV63TOvtC2/Yvoy76/
WyYEE1dSaAR+twPcJjk1ztoOlAqqmCRGsZN23w3rt0ZXaI+UhtM5+xS1Hu6OCCb35eovUAH/YFQG
NedO0KRurgIUAAAAAAAA


From nobody Thu Aug  7 11:57:52 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 C2D101A040E for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 11:57:49 -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 dsfmHPlOCFvi for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 11:57:48 -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 07CE01A03FA for <cfrg@ietf.org>; Thu,  7 Aug 2014 11:57:47 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 8D5603AA27; Thu,  7 Aug 2014 11:56:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407437819; bh=2a/7Qesq/wspx1tYOymPlBylOAN+crwjcKQ6DY65EpA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Z+/EGiFOnKo1CHb0QvwTBJTVuGH29YyZHNY6lYozbJlPQtdfAFk7go4WelPEq54ym 674Bf9QVtNuzylaMlTiYqDJFjrD12mluxIaN3/ktFeL+GNSAzoGu0nlNWgTayfiaLJ voTppryqWvQHYvup8GCxymHWM+9KqDPvTtidv3KQ=
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: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
Date: Thu, 7 Aug 2014 11:57:45 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
To: Brian LaMacchia <bal@microsoft.com>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Edjm5O90i98EAxYoj7HWeMdAdoo
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 18:57:49 -0000

> On Aug 7, 2014, at 7:20 AM, Brian LaMacchia <bal@microsoft.com> wrote:
> 2.	At each security level, the CFRG-recommended curve must be =
specified in a single curve model that is used for both digital =
signatures and key exchange algorithms (in particular ECDSA and ECDHE), =
without transformation to other models.

To be clear, this =E2=80=9Crequirement=E2=80=9D means that the curve =
must be specified in short Weierstrass form, right?

You=E2=80=99re suggesting that CFRG disregard the state of the art in =
ECC simplicity, security and performance (Edwards curves) because it=E2=80=
=99s too complicated to compute (y+1)/(y-1) + k?

I believe that this should absolutely not be a requirement for curve =
candidate evaluation.

> 4.	When evaluating candidate curves for use in ECDHE, "ephemeral" =
should be defined as "use exactly once in a key exchange" (or for TLS =
"use in exactly one handshake").=20
>=20
> During the second TLS meeting in Toronto, Kenny Paterson gave a =
presentation summarizing where CFRG was on this question at that time =
and one of the points he mentioned was that there was not consensus as =
to what "ephemeral" should mean for purposes of evaluating candidates.  =
Russ Housley then commented at the microphone that "ephemeral" should =
mean "used in exactly one handshake".  I strongly concur with Russ's =
position and suggest that we formally adopt that definition now during =
the Requirements phase.  The concrete implication of adopting this =
proposed requirement is that it means when we evaluate ECDHE performance =
for curve candidates we must include one fixed-base and one =
variable-base operation.=20

I agree that this is what =E2=80=9Cephemeral=E2=80=9D should mean for =
evaluation.  But I don=E2=80=99t understand how this clarification could =
possibly change anything.

You can use a fixed-based precomputed combset (or similar table) for any =
elliptic curve.  It will pretty much always cost about a third of what =
the variable-base scalar multiply costs.  This is true for Edwards =
curves, Montgomery curves, short Weierstrass curves, Hessian curves, =
Jacobi quartics =E2=80=A6 anything that is an Elliptic curve and not =
just a Kummer surface.

You=E2=80=99re driving awfully hard for a definition which doesn=E2=80=99t=
 matter, particularly considering that the first half of your email =
argues strenuously against performance considerations.  Can you explain =
why we should care about this at all?  Is this going to turn into a =
convoluted argument against Curve25519?

Cheers,
=E2=80=94 Mike=


From nobody Thu Aug  7 12:01: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 3E0271A03BB for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 12:01:32 -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 I4416gtS1K5f for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 12:01:30 -0700 (PDT)
Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A927E1A063C for <cfrg@ietf.org>; Thu,  7 Aug 2014 12:01:27 -0700 (PDT)
Received: by mail-wi0-f169.google.com with SMTP id n3so1484928wiv.4 for <cfrg@ietf.org>; Thu, 07 Aug 2014 12:01: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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=9P1RWOFNYo7jcvtwOVTOHzlZLWlfifdtpCmpWgHO0tg=; b=UOoadSlWJUirsimt7SAIU72Kinj7X/Hb0Q0CX1I9xk3AMgKtWaeagnUOzvpTxjC3lV 2XglGq2tojPvMB82oYsYIJZ28w/l9UmgKPkoiUx0ygKdGBnN8HESgL1tlyka437Xqbn2 wrQqJuBDrC761/4/FLICnPLkN2ph16sj/r09sNMG4VuGTvkDCwnt3Z0Uf30SataQVmVY YSkPobps1c7ANI6aum4Ln48mBbwZlfrIhSeiZzqekSZqJkEc3WFNgrq0C5MsuxI+HXuN fgfZE5SGQBMFZk0rmeYKwwtjlRALxLDlKzA/QxjrLLpsWV9HSzpnZ4WdqJahBjWGzSLn KJmA==
X-Gm-Message-State: ALoCoQmS0N8udDRQeEUV1qPnVhfuvyRqI2LZYdA6So9g++eN3JjF5cxmoofor/qzdLcQ2ptuBOS4
X-Received: by 10.180.94.234 with SMTP id df10mr61418427wib.76.1407438086120;  Thu, 07 Aug 2014 12:01:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Thu, 7 Aug 2014 12:01:06 -0700 (PDT)
In-Reply-To: <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com> <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org>
From: Benjamin Black <b@b3k.us>
Date: Thu, 7 Aug 2014 12:01:06 -0700
Message-ID: <CA+Vbu7xEQzXBdc8R6YYaeu0bQSTUo93ppJp+cUJVr9WGs0sjPQ@mail.gmail.com>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: multipart/alternative; boundary=f46d0444ea9f2ad03a05000eb796
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/0y3WMySb0AgT8YsElUSuKAZ66H0
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 19:01:32 -0000

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

On Thu, Aug 7, 2014 at 11:57 AM, Michael Hamburg <mike@shiftleft.org> wrote=
:

>
> > On Aug 7, 2014, at 7:20 AM, Brian LaMacchia <bal@microsoft.com> wrote:
> > 2.    At each security level, the CFRG-recommended curve must be
> specified in a single curve model that is used for both digital signature=
s
> and key exchange algorithms (in particular ECDSA and ECDHE), without
> transformation to other models.
>
> To be clear, this =E2=80=9Crequirement=E2=80=9D means that the curve must=
 be specified in
> short Weierstrass form, right?
>
>
This requirement permits twisted Edwards. What it excludes is using
different models for different purposes.


Ben

--f46d0444ea9f2ad03a05000eb796
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, Aug 7, 2014 at 11:57 AM, Michael Hamburg <span dir=3D"ltr">&lt;<a href=
=3D"mailto:mike@shiftleft.org" target=3D"_blank">mike@shiftleft.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"><div class=3D""><br>
&gt; On Aug 7, 2014, at 7:20 AM, Brian LaMacchia &lt;<a href=3D"mailto:bal@=
microsoft.com">bal@microsoft.com</a>&gt; wrote:<br>
&gt; 2. =C2=A0 =C2=A0At each security level, the CFRG-recommended curve mus=
t be specified in a single curve model that is used for both digital signat=
ures and key exchange algorithms (in particular ECDSA and ECDHE), without t=
ransformation to other models.<br>


<br>
</div>To be clear, this =E2=80=9Crequirement=E2=80=9D means that the curve =
must be specified in short Weierstrass form, right?<br>
<br></blockquote><div><br></div><div>This requirement permits twisted Edwar=
ds. What it excludes is using different models for different purposes.</div=
><div><br></div><div><br></div><div>Ben</div></div></div></div>

--f46d0444ea9f2ad03a05000eb796--


From nobody Thu Aug  7 12:19:33 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 03DE81A0601 for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 12:19:32 -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, 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 Vk0I8pqUZ_LL for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 12:19:30 -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 278E91A0076 for <cfrg@ietf.org>; Thu,  7 Aug 2014 12:19:30 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 826A947590; Thu,  7 Aug 2014 19:19:29 +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 7412F47588; Thu,  7 Aug 2014 19:19:29 +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 6A5BA80051; Thu,  7 Aug 2014 19:19:29 +0000 (GMT)
Received: from USMBX1.msg.corp.akamai.com ([172.27.107.26]) by USMA1EX-CASHUB5.kendall.corp.akamai.com ([172.27.105.21]) with mapi; Thu, 7 Aug 2014 15:19:29 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Benjamin Black <b@b3k.us>, Michael Hamburg <mike@shiftleft.org>
Date: Thu, 7 Aug 2014 15:19:27 -0400
Thread-Topic: [Cfrg] Proposed requirements for curve candidate evaluation
Thread-Index: Ac+ycgsJu9xdNgs2SO66343RIz1SCwAAmbiw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2B@USMBX1.msg.corp.akamai.com>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com> <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org> <CA+Vbu7xEQzXBdc8R6YYaeu0bQSTUo93ppJp+cUJVr9WGs0sjPQ@mail.gmail.com>
In-Reply-To: <CA+Vbu7xEQzXBdc8R6YYaeu0bQSTUo93ppJp+cUJVr9WGs0sjPQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2BUSMBX1msgcorp_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/yO732OnZ6NGsf_BsydD630DlKGQ
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 19:19:32 -0000

--_000_2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2BUSMBX1msgcorp_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

PiBUaGlzIHJlcXVpcmVtZW50IHBlcm1pdHMgdHdpc3RlZCBFZHdhcmRzLiBXaGF0IGl0IGV4Y2x1
ZGVzIGlzIHVzaW5nIGRpZmZlcmVudCBtb2RlbHMgZm9yIGRpZmZlcmVudCBwdXJwb3Nlcy4NCg0K
QW5kIHdoeSBpcyB0aGF0IGltcG9ydGFudD8gIFRvIHJlZHVjZSBjb2RlIHNpemU/DQoNCi0tDQpQ
cmluY2lwYWwgU2VjdXJpdHkgRW5naW5lZXINCkFrYW1haSBUZWNobm9sb2dpZXMsIENhbWJyaWRn
ZSBNQQ0KSU06IHJzYWx6QGphYmJlci5tZTxtYWlsdG86cnNhbHpAamFiYmVyLm1lPiBUd2l0dGVy
OiBSaWNoU2Fseg0K

--_000_2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2BUSMBX1msgcorp_
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64

PGh0bWwgeG1sbnM6dj0idXJuOnNjaGVtYXMtbWljcm9zb2Z0LWNvbTp2bWwiIHhtbG5zOm89InVy
bjpzY2hlbWFzLW1pY3Jvc29mdC1jb206b2ZmaWNlOm9mZmljZSIgeG1sbnM6dz0idXJuOnNjaGVt
YXMtbWljcm9zb2Z0LWNvbTpvZmZpY2U6d29yZCIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWlj
cm9zb2Z0LmNvbS9vZmZpY2UvMjAwNC8xMi9vbW1sIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
VFIvUkVDLWh0bWw0MCI+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu
dD0idGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij48bWV0Y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SBocmVmPSJtYWls
dG86cnNhbHpAamFiYmVyLm1lIj48c3BhbiBzdHlsZT0nY29sb3I6Ymx1ZSc+cnNhbHpAamFiYmVy
Lm1lPC9zcGFuPjwvYT4gVHdpdHRlcjogUmljaFNhbHo8bzpwPjwvbzpwPjwvc3Bhbj48L3A+PC9k
aXY+PC9ib2R5PjwvaHRtbD4=

--_000_2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2BUSMBX1msgcorp_--


From nobody Thu Aug  7 13:32:35 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 DDBE61A0314 for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:32: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, 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 9ZqZeG8q7G_D for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:32:31 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id E30FA1A00D7 for <cfrg@irtf.org>; Thu,  7 Aug 2014 13:32:30 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 13D1EBE8A for <cfrg@irtf.org>; Thu,  7 Aug 2014 21:32:30 +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 gyO0U48rm5t5 for <cfrg@irtf.org>; Thu,  7 Aug 2014 21:32:29 +0100 (IST)
Received: from [10.87.48.11] (unknown [86.46.26.242]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id E7DC2BE16 for <cfrg@irtf.org>; Thu,  7 Aug 2014 21:32:28 +0100 (IST)
Message-ID: <53E3E25C.8090408@cs.tcd.ie>
Date: Thu, 07 Aug 2014 21:32:28 +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: "cfrg@irtf.org" <cfrg@irtf.org>
References: <810C31990B57ED40B2062BA10D43FBF5CC9264@XMB116CNC.rim.net>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CC9264@XMB116CNC.rim.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/HE10b0XBkNPkcLW6RbM8k849yyU
Subject: [Cfrg] Maturity vs. Novelty consensus documentation requirement (was:Re: Bad and Rigid Curve (Rigid << NUMS))
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 20:32:33 -0000

Speaking as an interested non-cryptographer... but with
no hats as well, so a bare headed non-cryptographer:-)

On 07/08/14 18:31, Dan Brown wrote:
> Rather, we should be placing
> much more emphasis on the maturity of cryptanalysis.

As I mentioned in Toronto, I think it'd be great if CFRG
documented its consensus on this point too. That is, I'd
like to pose a requirement that CFRG explicitly attempt
to reach consensus on the value or non-value of selecting
curves that have been known for some time and that that
be documented. (Not in 100's of pages of formulae mind
you, a paragraph or two of consensus text should be all
that's needed, if such a consensus exists.)

For new algorithms, I think being new is a very obvious
downside, but its less clear to me if that also applies
to some or all newish curves. And I think there will be
other IETF folk who could also do with some documentation
of that aspect too.

For example, if CFRG conclude that this is a non-issue,
and decided to generate some brand new curve(s), then
documenting the consensus that that is ok would really be
needed I think, since the concern about novelty would be
raised later on for sure.

Equally, if CFRG think a bit of aging in oak is valuable
then saying that would be good. Or, if there's no consensus
on this point (which I could imagine given how it might put
a finger on the scales) then some documentation of the
arguments would be useful.

Thanks,
S.


From nobody Thu Aug  7 13:33:42 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 EC9341B2907 for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:33:41 -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 tkoye1zpvn5E for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:33:40 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id A7D0E1A00D7 for <cfrg@irtf.org>; Thu,  7 Aug 2014 13:33:39 -0700 (PDT)
Received: from xct103cnc.rim.net ([10.65.161.203]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 07 Aug 2014 16:33:39 -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, 7 Aug 2014 16:33:38 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: Bad and Rigid Curve (Rigid << NUMS)
Thread-Index: Ac+yZV061zJBRCm1Snqh2IxrFgU7ngAFWV8A
Date: Thu, 7 Aug 2014 20:33:37 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC953B@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5CC9264@XMB116CNC.rim.net>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CC9264@XMB116CNC.rim.net>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.250]
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/ljnOs_qhrtgE6q29YePTOpHy97I
Subject: Re: [Cfrg] Bad and Rigid Curve (Rigid << NUMS)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 20:33:42 -0000

Resending, because I received a version from CFRG with an empty text.

Let p=3D2^127-1.
Define a curve by y^2 =3D x^3 + x.
Note that this is a Montgomery curve over a Mersenne prime.
There appears to be little room for manipulation, so it seems rigid.
I presume this curve is quite speedy and side-channel resistant because of =
its similarity to Curve25519.

Now let's imagine being back at a time before the Pollard rho [P], Pohlig-H=
ellman [PH], and Menezes-Okamoto-Vanstone [MOV] attacks were published.  Th=
ese attacks were eventually discovered, so it is quite possible that our ad=
versary discovers them before we do.  Perhaps the adversary is also the one=
 proposing these curves to us, saying "Don't worry, you don't have to trust=
 us, this curve is rigid, and we could not have manipulated it."

The purpose of this convoluted back-in-time exercise is to provide model of=
 today's value of rigidity against possible secret attacks.

Since we do not yet know about [P], we would think that exhaustive search i=
s the best attack, and think that solving the DLP in this curve requires ab=
out 2^128 operations.  But:

If our adversary knows the [P] attack, then s/he can solve the DLP in 2^64 =
steps.
If our adversary knows the [MOV] attack, then s/he can use pairings and map=
 this DLP into the field GF(p^2), and use an index calculus, which to be co=
nsiderably faster than 2^128 steps.
If our adversary knows the [PH] attack, then s/he can exploit the curve ord=
er 2^128, and solve the DLP in something like 128 group operations.=20

Aside: the reason that the [MOV] and [PH] attacks work with this curve is b=
ecause it is supersingular due to a theorem p =3D 3 mod 4, which implies th=
e curve has order p+1 =3D 2^128.  Actually, it's elementary to verify the o=
rder by noting that if nonzero x admits a y solution, then -x does not, bec=
ause -1 is a quadratic non-residue mod p, which shows that the order is p+1=
: the point at infinity, the point (0,0), and a two points (x,y), (x,-y) fo=
r each of the (p-1)/2 sets of the form {x,-x}.

To find this curve, I relied on half-remembering the relevant number-theore=
tic results, and then used Wikipedia (and Menezes's thesis and Silverman's =
text) to remind me about the details of the theorem above, whose details I =
had forgotten.  In other words, I did not run any computations, and instead=
 relied upon a basic knowledge base.  So, it would have been super-easy for=
 an adversary to find this curve, and quite natural for a benevolent person=
 not knowing the three attacks and seeking a rigid curve to propose this pa=
rticular curve.  I presume somebody with a better understanding of EC theor=
y using and better computational tools could find more sophisticated bad an=
d rigid curves.

Anyway, the rigidity of this curve would not have helped prevent any of thr=
ee major attacks on the DLP.    (Sorry: I did not also arrange the SASS att=
ack, but it seems incompatible with the MOV attack.)

My interpretation of this bad and rigid curve is that rigidity does not buy=
 us the NUMS property (or whatever better name you want). So, we should not=
 overestimate the value of rigidity.  Rather, we should be placing much mor=
e emphasis on the maturity of cryptanalysis.  More precisely, I think rigid=
ity helps only to the extent that secret attacks require the adversary to u=
se trial-and-error curve selection, but trial-and-error attacks are not the=
 only kind of attacks possible.

Now some comparisons to other curve selections:

If we honestly self-selected a random curve (or pseudorandom curve with a r=
igid seed) in the sense of y^2 =3D x^3 + Rx + x, where R is some rigid rand=
om value, we would have resisted the [MOV] with high probability, fared sli=
ghtly better against [PH], but not any better against [P].  So, randomness =
has provided extra protection against a sparse attack, but we still have ne=
eded to rely on good cryptanalysis to resist dense attacks like [P] and [PH=
].

If we had honestly selected a different rigid curve such as the curves defi=
ned by y^2 =3D x^3 + 1 or y^2 =3D x^3 + x^2 + x (though minutely less rigid=
) then I expect we would fared just as well as the random curve above.  Ent=
husiasts might try counting the points on these curves to see if they resis=
t [PH] better than a random curve.  If so, I argue heuristically, that woul=
d have just been a fluke, not a basis for recommending special curves.  Thi=
s also shows how minute differences in rigidity can make or break the curve=
.

If the adversary was selecting the curve and only knew about the [MOV] atta=
ck, then the adversary would presumably suggest y^2 =3D x^3 + x and not y^2=
 =3D x^3 + x^2 + x (unless the latter is also supersingular). In particular=
, the adversary could have something up his/her sleeve, the [P], [PH], or [=
MOV] attack, when proposing a rigid curve. So, as I said above, rigidity is=
 definitely less than nothing-up-my-sleeve (NUMS).

If the adversary was also selecting the curve but using the pseudorandom me=
thod (with a free seed like P256) and knew about the [MOV] attack, s/he wou=
ld have a harder time searching for a random R to make [MOV] work.  This se=
ems hard to me: I don't know how to find R, or even R exists, unless R is c=
ommon.   My current understanding is that about p/12 values of R should exi=
st but that these R could belong GF(p^2) instead of GF(p). This suggests th=
at there's a heuristic that 1/12 chance of an R existing in GF(p).  Even af=
ter finding R, how does one find a pre-image of one's pseudorandom function=
?  If the seed to the pseudorandom function could be made sufficiently rigi=
d, then it should be even harder.

I agree that rigidity's value of thwarting trial-and-error search seems ver=
y appealing because of the potential trial-and-error attack on P256.  But j=
ust because it would stop a possible P256 attack, it won't stop all NUMS at=
tacks on special curves. So, overall, I would recommend combining rigidity =
with some form of pseudorandomness, since pseudorandomness seems to force t=
he adversary to use trial-and-error (in the space over which pseudorandom f=
unction is applied).

Best regards,

--Dan

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Dan Brown
> Sent: Thursday, August 07, 2014 1:32 PM
> To: cfrg@irtf.org
> Subject: [Cfrg] Bad and Rigid Curve (Rigid << NUMS)
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Thu Aug  7 13:46:10 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 DBAEF1A0185 for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:46:07 -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 Cpx_OuebxhYv for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:46:06 -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 9E11A1A0535 for <cfrg@ietf.org>; Thu,  7 Aug 2014 13:46:06 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 738E33AA27; Thu,  7 Aug 2014 13:45:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407444317; bh=2AL9myJpd2quLWvJnhfriylZvfQpM3WuGJcYeTGvriw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=b5NKUPHETRTizzBLNB1n5lqSs1FP42dmUyTrRahwwrZDvNScLqKfQfov3l9zj7ESA y+KSyKCf8aFGmNZkwVxExD13l724hZQvZj5cnwAqPr0YQDDrrVKPDDBvdcZ+R6Rpnm uuHhxVsUbBXOFtVRJfe24cYBJtjROS2VqJLt1HJw=
Content-Type: multipart/alternative; boundary="Apple-Mail=_4A576F4E-D95B-4B81-86BA-69DB13089771"
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2B@USMBX1.msg.corp.akamai.com>
Date: Thu, 7 Aug 2014 13:46:03 -0700
Message-Id: <97AA7854-2BCD-4A37-B26F-850C8F9C9A7F@shiftleft.org>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com> <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org> <CA+Vbu7xEQzXBdc8R6YYaeu0bQSTUo93ppJp+cUJVr9WGs0sjPQ@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2B@USMBX1.msg.corp.akamai.com>
To: "Salz, Rich" <rsalz@akamai.com>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_hdInaPgBKplrxMO8ZprM-mrU08
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 20:46:08 -0000

--Apple-Mail=_4A576F4E-D95B-4B81-86BA-69DB13089771
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Aug 7, 2014, at 12:19 PM, Salz, Rich <rsalz@akamai.com> wrote:

> [Benjamin Black wrote:]
> > This requirement permits twisted Edwards. What it excludes is using =
different models for different purposes.


Does it?  ANSI X9.62 specifies ECDSA only over curves in short =
Weierstrass form.

If this requirement is not intended to force short Weierstrass, perhaps =
it should be rephrased as:

=E2=80=9C=E2=80=9D"
At each security level, the CFRG-recommended curve must be specified in =
a single curve model that is used for both digital signatures and key =
exchange algorithms without transformation to other models.  It must be =
suitable for ECDSA and ECDHE with a straightforward transformation to =
and from short Weierstrass form.
=E2=80=9C=E2=80=9D"

> And why is that important?  To reduce code size?


Or perhaps for simplicity of specification?

Interestingly, I think that in combination with Requirement 1, this =
might nix both Curve25519 and the Microsoft NUMS curves.

=E2=80=94 Mike=

--Apple-Mail=_4A576F4E-D95B-4B81-86BA-69DB13089771
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;"><br><div><blockquote type=3D"cite"><div>On Aug 7, =
2014, at 12:19 PM, Salz, Rich &lt;<a =
href=3D"mailto:rsalz@akamai.com">rsalz@akamai.com</a>&gt; =
wrote:</div></blockquote><br><blockquote type=3D"cite">[Benjamin Black =
wrote:]<br class=3D"Apple-interchange-newline"><div><div =
class=3D"WordSection1" style=3D"page: WordSection1; 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 style=3D"margin: 0in 0in 0.0001pt; =
font-size: 12pt; font-family: 'Times New Roman', serif;"><span =
style=3D"font-size: 11pt; font-family: Calibri, sans-serif; color: =
rgb(31, 73, 125);">&gt;</span><span =
class=3D"Apple-converted-space">&nbsp;</span>This requirement permits =
twisted Edwards. What it excludes is using different models for =
different =
purposes.</div></div></div></blockquote><div><br></div><div><br></div><div=
><div>Does it? &nbsp;ANSI X9.62 specifies ECDSA only over curves in =
short Weierstrass form.</div><div><br></div><div>If this requirement is =
not intended to force short Weierstrass, perhaps it should be rephrased =
as:</div><div><br></div><div>=E2=80=9C=E2=80=9D"</div><div><div =
dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div =
class=3D"">At each security level, the CFRG-recommended curve must be =
specified in a single curve model that is used for both digital =
signatures and key exchange algorithms without transformation to other =
models. &nbsp;It must be suitable for ECDSA and ECDHE with a =
straightforward transformation to and from short Weierstrass =
form.</div><div =
class=3D"">=E2=80=9C=E2=80=9D"</div></div></div></div></div></div><br><blo=
ckquote type=3D"cite"><div class=3D"WordSection1" style=3D"page: =
WordSection1; 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 =
style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times =
New Roman', serif;"><span style=3D"font-size: 11pt; font-family: =
Calibri, sans-serif; color: rgb(31, 73, 125);">And why is that =
important?&nbsp; To reduce code =
size?</span></div></div></blockquote></div><div><br></div><div>Or =
perhaps for simplicity of =
specification?</div><div><br></div><div>Interestingly, I think that in =
combination with Requirement 1, this might nix both Curve25519 and the =
Microsoft NUMS curves.</div><div><br></div><div>=E2=80=94 =
Mike</div></body></html>=

--Apple-Mail=_4A576F4E-D95B-4B81-86BA-69DB13089771--


From nobody Thu Aug  7 13:48: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 584221B2893 for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:48: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 cbucrNZaABSJ for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 13:48:40 -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 3928A1B27D2 for <cfrg@ietf.org>; Thu,  7 Aug 2014 13:48:38 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 956B14759C; Thu,  7 Aug 2014 20:48:37 +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 8856447598; Thu,  7 Aug 2014 20:48:37 +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 85CCB80055; Thu,  7 Aug 2014 20:48:37 +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, 7 Aug 2014 16:48:37 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Michael Hamburg <mike@shiftleft.org>
Date: Thu, 7 Aug 2014 16:48:36 -0400
Thread-Topic: [Cfrg] Proposed requirements for curve candidate evaluation
Thread-Index: Ac+ygJ7dRA4s1Md+RkCSMGGSO3jUIQAACVfQ
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C71859CD7EC8@USMBX1.msg.corp.akamai.com>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com> <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org> <CA+Vbu7xEQzXBdc8R6YYaeu0bQSTUo93ppJp+cUJVr9WGs0sjPQ@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C71859CD7E2B@USMBX1.msg.corp.akamai.com> <97AA7854-2BCD-4A37-B26F-850C8F9C9A7F@shiftleft.org>
In-Reply-To: <97AA7854-2BCD-4A37-B26F-850C8F9C9A7F@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="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/FwLJ2U5eS65bonYwHtG3AMsXe7g
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 07 Aug 2014 20:48:42 -0000

QXMgdGhlIHBlcnNvbiB3aG8gcHJvcG9zZWQgdGhlIHJlcXVpcmVtZW50LCBJIHJlYWxseSB3YW50
IHRvIGtub3cgd2h5IEJlbmphbWluIHdhbnRzIHRvIGRvIHRoaXM6DQoNCj4gV2hhdCBpdCBleGNs
dWRlcyBpcyB1c2luZyBkaWZmZXJlbnQgbW9kZWxzIGZvciBkaWZmZXJlbnQgcHVycG9zZXMuDQoN
Ci0tICANClByaW5jaXBhbCBTZWN1cml0eSBFbmdpbmVlcg0KQWthbWFpIFRlY2hub2xvZ2llcywg
Q2FtYnJpZGdlIE1BDQpJTTogcnNhbHpAamFiYmVyLm1lIFR3aXR0ZXI6IFJpY2hTYWx6DQoNCg0K


From nobody Thu Aug  7 18:03:54 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 5015F1A01AC for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 18:03:50 -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 q3-qG56SZvTs for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 18:03:47 -0700 (PDT)
Received: from mail-yk0-x22f.google.com (mail-yk0-x22f.google.com [IPv6:2607:f8b0:4002:c07::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C47711A00FA for <cfrg@ietf.org>; Thu,  7 Aug 2014 18:03:46 -0700 (PDT)
Received: by mail-yk0-f175.google.com with SMTP id q200so3370626ykb.34 for <cfrg@ietf.org>; Thu, 07 Aug 2014 18:03:46 -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=O8Bh6CQ8xFpTvrcvfCQw6X79eXOP8cr+mM9hTMLdL8s=; b=sMJ0wB6KfxrHN865beW6iJCjV4r0mzF9X7P6AYE9qKASO6C1DbZEa2IbE8BAe7jF6t uHYMmWzb7ysYSb/wTxaxXZI1b1MnA2+nJfCMTQmkthnnXakdDCf3tPs39dqaKngICDyO orY5qxusCUHK8Clpf9tA3nGbJOyARZDhDiDlZR5bB+VsNa703lsp/vsNE2+8ZxGSWD6x a1ewW1TLCXp/xNlbMLZugaL/3T4r5zS4Sqr0EOeSvIsy7gVFabFyEvO6EcgZzbtU9hYo afW3KanEM+tTSGKvgvQZepEu881QRBLjsrxkFN+VGpLlwMObBmr6ZX/HrPwH/Os6fgW7 uAiw==
MIME-Version: 1.0
X-Received: by 10.236.70.229 with SMTP id p65mr9758834yhd.50.1407459826011; Thu, 07 Aug 2014 18:03:46 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Thu, 7 Aug 2014 18:03:45 -0700 (PDT)
In-Reply-To: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
Date: Thu, 7 Aug 2014 18:03:45 -0700
Message-ID: <CACsn0cmf65eV1dhX84fpkC3B5HvPCtfrwur2vAMCiZ0ZD1ya2w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Brian LaMacchia <bal@microsoft.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/4WtUSWS43ADQF8uW5yf4kwqzw2g
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 01:03:51 -0000

On Thu, Aug 7, 2014 at 7:20 AM, Brian LaMacchia <bal@microsoft.com> wrote:
> Folks,
>
> As we are still in the requirements-generation phase of this exercise, I'=
m going to focus on just requirements in this email.  During my presentatio=
n at the Toronto meeting I described the requirements that drove the initia=
l NUMS project research and proposed that CFRG adopt those requirements.  H=
ere are what I believe to be the most important of those requirements (revi=
sed based on the conversation to date):
>
> 1.      CFRG-recommended curves should be generated by as rigid and deter=
ministic a procedure as possible.
>
> As I stated at the beginning of my talk, our most important goal is to re=
commend new elliptic curves for the IETF that will restore trust and transp=
arency in our protocols' use of elliptic curve cryptography.  Lowered confi=
dence in NIST/NSA has moved IETF working groups (starting with TLS) to re-e=
valuate the elliptic curves in their standards based on the past 15 years o=
f ECC research and seek additional curves which are rigid in their generati=
on and more secure.  Other goals that have been suggested on this list, suc=
h as improving the overall performance of ECC operations for TLS, are certa=
inly worthwhile but those additional goals do not address the primary conce=
rn of our collective customers.

The reason I don't trust the use of ECC in the IETF is that I have
repeatedly found flaws in standards and implementations that use ECC.
This has nothing to do with any hidden weaknesses of the NIST curves.
Furthermore, the biggest weakness of the NIST curves is the low
performance of the fastest addition laws, leading to no cryptography
instead of some on constrained devices.

>
> Each of the candidate curves that have been proposed to date have a ratio=
nale behind their choice -- no one has suggested a curve without a rational=
 justification for it.  But there are differences among those rationales an=
d variations in how rigid the generation procedure for a specific curve is.=
  All of the curves suggested started with a reasonable set of security cri=
teria, but the amount of "wiggle room" invoked in order to get other desira=
ble properties varies across the curves.  Having a lot of wiggle room in yo=
ur generation process is certainly OK if your primary goal is one of the ot=
her desirable properties, but it makes it harder to rebuild trust and confi=
dence among customers.  Requiring as rigid and deterministic a curve genera=
tion procedure as possible is the overriding requirement to address the pri=
mary goal.

E-521 was discovered by three groups independently. There are not that
many primes near a power of two, and not that many choices of curve
shape. How would we make the process "more rigid?"

>
> Additionally, I believe it is highly desirable to have a common, consiste=
nt generation mechanism across a range of security levels.  While TLS's req=
uest to CFRG focused on curve lengths of approximately 256, 384 and 512 bit=
s, other IETF working groups may need curves at other security levels.  For=
 example, if CFRG was asked by another WG to specify a 400-bit curve, a rig=
id, deterministic generation mechanism would yield such a curve.  Yes, the =
output might not be the overall most optimal choice at 400 bits -- it might=
 be possible to search around that curve for something nearby that might be=
 a bit faster -- but it would be a *consistent* choice and I believe that r=
igidity and consistency are the most important properties we need right now=
 to address the loss of trust.
>
> 2.      At each security level, the CFRG-recommended curve must be specif=
ied in a single curve model that is used for both digital signatures and ke=
y exchange algorithms (in particular ECDSA and ECDHE), without transformati=
on to other models.
>
> We have already discussed on the list the desire that the specified curve=
 form should be used for both digital signatures and key exchange. We need =
to remember that we are choosing curves for Internet protocols that will be=
 implemented by a wide variety of products, services, systems and devices. =
Requiring multiple curve forms, particularly in combination, significantly =
increases the complexity of implementation. Complex implementations are mor=
e likely to have subtle errors which compromise the security of the protoco=
ls.  As such, there is significant engineering benefit to using curve arith=
metic corresponding to the same curve model for both digital signatures and=
 key exchange.

The biggest part of any implementation is the field arithmetic. Adding
an implementation of one shape or another is a handful of lines and
some constants. Furthermore, this isn't a constraint on the curve: any
curve  with points of the right order can be used for any shape. This
has not slowed adoption of curve25519 measurably: it's a nonissue for
many users.

>
> 3.      The CFRG-recommended curves must be specified using the same curv=
e model for all security levels.
>
> This requirement achieves similar engineering benefits to Requirement 2 a=
bove.
>
> 4.      When evaluating candidate curves for use in ECDHE, "ephemeral" sh=
ould be defined as "use exactly once in a key exchange" (or for TLS "use in=
 exactly one handshake").
>
> During the second TLS meeting in Toronto, Kenny Paterson gave a presentat=
ion summarizing where CFRG was on this question at that time and one of the=
 points he mentioned was that there was not consensus as to what "ephemeral=
" should mean for purposes of evaluating candidates.  Russ Housley then com=
mented at the microphone that "ephemeral" should mean "used in exactly one =
handshake".  I strongly concur with Russ's position and suggest that we for=
mally adopt that definition now during the Requirements phase.  The concret=
e implication of adopting this proposed requirement is that it means when w=
e evaluate ECDHE performance for curve candidates we must include one fixed=
-base and one variable-base operation.

Any curve with a point of order 2 and a point of order 4 can be used
in Montgomery form, Weierstrass form, or Edwards form, so the
performance of the multiplication law with fixed vs. variable base is
irrelevant to picking a curve. DJB pointed this out last week.

Even if we adopt Edwards point format, ignoring the existing adoption
of Curve25519 in Montgomery form that still leaves the question of
which parameters open. I would prefer a complete addition law on the
points for increased security, but even that still leaves the question
of which parameters open. We could say minimal Edwards parameter d
over the prime nearest the power of two such that -1 is a QR (so the
fast twisted addition formula is complete), but the reason to pick
this choice is primarily for performance and security.

1:
>
> I believe these proposed requirements are all necessary and should be ado=
pted as official Requirements when this phase of the process concludes.
>
> Finally, I would remind folks that the overall goal of the process we are=
 pursuing here in the CFRG is to first reach consensus on a list of require=
ments for whatever curves we're going to recommend to TLS, and then evaluat=
e candidate curves against those requirements.  It is possible, of course, =
that none of the current set of candidate curves will satisfy all of the re=
quirements the group decides are necessary and we'll have to go look for mo=
re candidates, but that is exactly how a requirements-driven process works =
and if it happens in this case so be it.  We must not weaken our requiremen=
ts in order to make them fit the current set of candidates - our requiremen=
ts must be generated independent of the candidates submitted.

Remember, this started because Leif Johansson had a draft for
curve25519 in TLS. If at the end of this we say "well, we made the
requirements so demanding because of applications your draft was never
intended to cover that your draft failed, and we don't have a
replacement for you until next year" people, including myself, are
going to be very, very unhappy. Furthermore, people are not waiting
from 2006 to 2014 for us to get our act together to start deployment.

Just flip a coin if we have to: I don't see that much difference
between the various options, and to the extent people have preferences
for shape or standards, they can be accommodated via isogenies
trivially. We don't have requirements that discriminate among curves,
because you can always adjust to the correct shape.

Sincerely,
Watson Ladd

>
> Thanks,
>
> --bal
>
> _______________________________________________
> 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 Thu Aug  7 18:23:08 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 7A75B1B28AC for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 18:23: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 Uo_OZobfMNjH for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 18:23:06 -0700 (PDT)
Received: from mail-yh0-x22d.google.com (mail-yh0-x22d.google.com [IPv6:2607:f8b0:4002:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 057AE1A02EB for <cfrg@irtf.org>; Thu,  7 Aug 2014 18:23:05 -0700 (PDT)
Received: by mail-yh0-f45.google.com with SMTP id 29so3577856yhl.18 for <cfrg@irtf.org>; Thu, 07 Aug 2014 18:23: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; bh=rK5H3jeYZZPp9X8gd6NNGZuSRJmd80A9UeUbZa++6zI=; b=tE6OAczi166dmBWLGWYJdIjR+LMcgGdU3rM8grQH80sL/nK/0+Vy0vbhKq8TE9bvyG I6qmsXXOmmoNWduoEaJKpfzaJ+7MCXTCeTonjc176qL8mg6EGh9CL+HcbNlt5xg0+ED/ fAdQ45Truk0HGqyjm1BX2tiMLb2+rM2FJwhJ+QZGK0geTaruwuui4gPb9/yeCN91fm7E nTd+5hgrI1P/063K/evj295F2nHxaUNdyS2xZXVjgh7rjjp+SzQ+AgcvBj3e2fWNMszN buxatfAO7UlIUKeGCsp7NTJtXw+koJ057Oo628p7oUpI562Fvl0Vfsilu+Ims4JRgTBh 9y0w==
MIME-Version: 1.0
X-Received: by 10.236.47.201 with SMTP id t49mr9863234yhb.123.1407460985354; Thu, 07 Aug 2014 18:23:05 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Thu, 7 Aug 2014 18:23:05 -0700 (PDT)
Date: Thu, 7 Aug 2014 18:23:05 -0700
Message-ID: <CACsn0cmUg1A1wxgOuubfPNg2XJGVq6BNFkARkv_eCSYqvqWRCA@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/ZgohKhMJnoOSswNBmWIbtitx5AY
Subject: [Cfrg] ChaCha20
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 01:23:07 -0000

Dear all,
In the past 6 years only one cryptanalysis result has been published
against ChaCha, and that was against a variant before the final
version was announced. While Salsa20 was an eStream finalist, ChaCha
wasn't.

The ChaCha20+Poly1305 mode we are considering could have been
submitted to CAESER, but wasn't. I thought about submitting it instead
of McMambo, but ended up winning a durian instead for my troubles.
ChaCha was used in BLAKE, so the differential characteristics of the
round function should work. Unfortunately BLAKE changed ChaCha just
enough to make comparison hard.

I'd like to see some more cryptanalytic attention on ChaCha: in
particular are the differentials from "Latin Dances" still valid for
the published version of ChaCha? What are the best differential
characteristics? And can we figure this out quickly?

Using Salsa20 instead of ChaCha20 would solve this problem somewhat:
at least it won eStream, so we have someone else to blame. However, it
comes at a slight performance loss: how much I don't know. There also
are concerns about nonce size. However, XSalsa20 solves these, while
having the same strength as Salsa20.

(Note that this is the only issue: the Poly1305 security reduces to
PRF security of ChaCha, at least the last time I took a look)

Sincerely,
Watson Ladd


From nobody Thu Aug  7 18:24:21 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 D62A61B28AC for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 18:24:20 -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 ykgDpDvXJC9K for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 18:24:19 -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 C921A1A02EB for <cfrg@ietf.org>; Thu,  7 Aug 2014 18:24:19 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id EB2BB3AA27; Thu,  7 Aug 2014 18:23:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407461010; bh=uXkH7GoMGzpqEQGjf3sO3aDNjzaHbMiQQeBW5+kA4RA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=InJLxJVSsH//DyphkW1slP3P0QVglbFOrBqkEl8k9sCCiHV9xQ5lja/PLALI6/Sz6 P++8d+a47kCTR5G4nCbyEvKjlQHRYeIhfJq2sc6hWgIhFyIPTjw+279+kUqxsAkBP6 cyLRzcBcBe3yi6lYnIxbZdGKCPVIpi3xVYCak7wQ=
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: <CACsn0cmf65eV1dhX84fpkC3B5HvPCtfrwur2vAMCiZ0ZD1ya2w@mail.gmail.com>
Date: Thu, 7 Aug 2014 18:24:16 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <8E0A820C-051E-4A3A-85EB-0216FF697F23@shiftleft.org>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com> <CACsn0cmf65eV1dhX84fpkC3B5HvPCtfrwur2vAMCiZ0ZD1ya2w@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/c2pwaaLuEchzvgmDDayxXrHXZtk
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 01:24:21 -0000

> On Aug 7, 2014, at 6:03 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>=20
> E-521 was discovered by three groups independently. There are not that
> many primes near a power of two, and not that many choices of curve
> shape. How would we make the process "more rigid?=E2=80=9D

On a related note, Brian, do you know why E-521 (or rather, a curve =
isogenous to E-521 or its twist) isn=E2=80=99t the Microsoft ed-521-mers =
curve?  Is there something simple I=E2=80=99m missing here?  It seems =
like that gives a smaller d0 coefficient than the one you chose.

=E2=80=94 Mike=


From nobody Thu Aug  7 19:22:21 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 536391B2925 for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 19:22: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, 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 3_WE875cvcxb for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 19:22:18 -0700 (PDT)
Received: from qmta07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:64]) by ietfa.amsl.com (Postfix) with ESMTP id DB9BE1B2924 for <cfrg@irtf.org>; Thu,  7 Aug 2014 19:22:18 -0700 (PDT)
Received: from omta14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by qmta07.emeryville.ca.mail.comcast.net with comcast id c0kz1o0031HpZEsA72NJ8S; Fri, 08 Aug 2014 02:22:18 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by omta14.emeryville.ca.mail.comcast.net with comcast id c2NH1o00D4uhcbK8a2NHS7; Fri, 08 Aug 2014 02:22:18 +0000
Message-ID: <53E43459.4030305@brainhub.org>
Date: Thu, 07 Aug 2014 19:22:17 -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: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
In-Reply-To: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.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=1407464538; bh=dGcWTer4fUGMKyO2pF5RT0P2gSEh3dzdLFw9s1WR3bc=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=MtUfT7Q2Z5Z8Lnti7SdAGdkiynrgoKeWCX3ARy68DPy0ZGungEXaUBULW00QH91yn FSA4yEqQr/ZrQ5XxsKQ8tNMuXJ9V59IsVJYGGlouPH3Zf8eeTl0mpLYpeL+YjrAt+u 7oWIL/mZ/3MPCvuW5hVeWIPQ0LqZoCxSVFfSZYHQYN6S8gE+t61FvDnRRUzmzK5P+w J6CspyME7i2+zVUahQn5k09LVCrLZYl4uGjd7lO8tp4dz8KLRs5JY+Sp7t50jS85aw hwx2q/WTl40Bf6IE0xIbK9bf4rTJV0NoNqlSqFwAx6FDpPllIwTFpj00N+CWBC8I04 AgLlRltzXLf/w==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/bxWQyejlQ0QoTAIvKn9aroax9fc
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 02:22:20 -0000

On 08/07/2014 07:20 AM, Brian LaMacchia wrote:
> 4.	When evaluating candidate curves for use in ECDHE, "ephemeral" should be defined as "use exactly once in a key exchange" (or for TLS "use in exactly one handshake").
>
> During the second TLS meeting in Toronto, Kenny Paterson gave a presentation summarizing where CFRG was on this question at that time and one of the points he mentioned was that there was not consensus as to what "ephemeral" should mean for purposes of evaluating candidates.  Russ Housley then commented at the microphone that "ephemeral" should mean "used in exactly one handshake".  I strongly concur with Russ's position and suggest that we formally adopt that definition now during the Requirements phase.  The concrete implication of adopting this proposed requirement is that it means when we evaluate ECDHE performance for curve candidates we must include one fixed-base and one variable-base operation.

IMO I would prefer to see the actual numbers, i.e. the break-down of 
performance measurements instead of assuming some "package" of a likely 
usage pattern or combination of fixed-based+variable-based operations.

There is always one variable-base operation (time A).

In addition, there is either of these:
* a fixed-based operation or (a textbook case, time B)
* a fixed based operation plus the precomputation time attributed to the 
fixed base optimization (a short-lived context case, time B+P)
* an (un-optimized) fixed-based operation that uses the same code as 
variable-based operation (a small-footprint case, time A)
* reuse (time ~0)
( + There are other middle-of the road cases... )

A is the most important metric. B<A; the ratio B/A is needed to 
evaluate if the extra implementation effort and complexity is worth it. 
P is penalty and is important in some cases.



From nobody Thu Aug  7 23:01:21 2014
Return-Path: <seonghan.shin@aist.go.jp>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AA1B61A02DF for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 23:01:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.678
X-Spam-Level: 
X-Spam-Status: No, score=-3.678 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, HTML_MESSAGE=0.001, 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 Cma8gn747WQO for <cfrg@ietfa.amsl.com>; Thu,  7 Aug 2014 23:01:16 -0700 (PDT)
Received: from na3sys010aog106.obsmtp.com (na3sys010aog106.obsmtp.com [74.125.245.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 993AE1A02DD for <cfrg@ietf.org>; Thu,  7 Aug 2014 23:01:15 -0700 (PDT)
Received: from mail-lb0-f179.google.com ([209.85.217.179]) (using TLSv1) by na3sys010aob106.postini.com ([74.125.244.12]) with SMTP ID DSNKU+RnqpgbvjNxBMbZBWUEH4HmDmz1KCRS@postini.com; Thu, 07 Aug 2014 23:01:15 PDT
Received: by mail-lb0-f179.google.com with SMTP id v6so3379801lbi.24 for <cfrg@ietf.org>; Thu, 07 Aug 2014 23:01:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aist.go.jp; s=google;  h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=c5iFhRKqh6xenuGnjZuVKRr+205/uAnOSQ9ZFGmYLeQ=; b=f0IHfhHPCckQqzCWCAR1lnlFwlrC7cA5bVskOmL+wgOYuSZWqSnbsMrC7X8Y6K+DP3 OZhTiv85bGClypsZDeEY13RxIfQfzV4b++Plwm8CPId8SAmecTLRmXtkKnUwQkOa7wmd 5z1Abj57z1w+M1aVFIPJttj7cAhQuJp+B0RfE=
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:cc:content-type; bh=c5iFhRKqh6xenuGnjZuVKRr+205/uAnOSQ9ZFGmYLeQ=; b=HVABLIidfhM2rEfETlUaSuMEoPmerwBiFQFCcDZw8308m5H8PR2QX9siNsRDaQpktw XpQiajSw6kQYYi2HVOoaCiICMpyXIT52fgx2R1YO0XwegWK1/KoXchwGsGY8jrbNSHYD YAF7My4oT3xGimWrLYxBBqsvjJpPMvVpj3bWiGmd8sxNU7PLjliqWep5HoPDgkABv+rq h9tQkDGclDa+N2uFwMoX8zSCVUfy5q5L1vflHaG7na8eLe0aAwc6qrlBFmnevMoS+z5k 4NH/2jgfGHBsCalfP8gQnAJS8ol8t7/H30pNEydh0FEwsghl1aEtMDOcz2L+jgA/MODi meSA==
X-Gm-Message-State: ALoCoQm7RUuEtvzJAC/VnPD3W88I8C1K1E5plou52V6wgpL/mI6H63/qP7nGIs87cK8R81M4ZsaG/tb6i1Bsy7RwrnE3acerJN4q0tm4hVW9f1Q17NrMuAYyUm21e1w9bbNyWS/IfIa1
X-Received: by 10.112.72.3 with SMTP id z3mr19081032lbu.30.1407477673641; Thu, 07 Aug 2014 23:01:13 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.112.72.3 with SMTP id z3mr19081021lbu.30.1407477673516; Thu, 07 Aug 2014 23:01:13 -0700 (PDT)
Received: by 10.112.3.169 with HTTP; Thu, 7 Aug 2014 23:01:13 -0700 (PDT)
In-Reply-To: <20140806151649.GA20212@LK-Perkele-VII>
References: <20140806141208.29148.79482.idtracker@ietfa.amsl.com> <20140806151649.GA20212@LK-Perkele-VII>
Date: Fri, 8 Aug 2014 15:01:13 +0900
Message-ID: <CAEKgtqms2E+L_5ZGp2YG27-LUSe7XwjbB9u5YF-iSAuw3PVbbw@mail.gmail.com>
From: SeongHan Shin <seonghan.shin@aist.go.jp>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Content-Type: multipart/alternative; boundary=001a11c34140c27a7d050017ee29
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/5uV3W3uhvT24cjVY28vbdnA9rM4
Cc: =?UTF-8?B?5Y+k5Y6f5ZKM6YKm?= <k-kobara@aist.go.jp>, cfrg@ietf.org
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-augpake-02.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, 08 Aug 2014 06:01:18 -0000

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

Dear Ilari,

Thank you for your comments!

>"If the received X from user U is not a point on E or [2^n] * X = 0_E,"
>Should this be:
>If the received X from user U is not a point on E or [k] * X = 0_E,
>Similarly, there is:
>"If the received Y from server S is not a point on E or [2^n] * Y = 0_E,"
>Should this be:
>"If the received Y from server S is not a point on E or [k] * Y = 0_E,"
>
>Rationale:
>k is the cofactor, which may be ("optionally") power of two, it may
>not be 2^n.

In Appendix C, we set k = 2^n * q_1 * q_2 ...  q_t where n = {0,1,2} and
every primes q_i > q for i = 1, 2, ..., t (or optionally k = 2^n).
With this cofactor k, checking [2^n] * X =/ 0_E and [2^n] * Y =/ 0_E is
enough to exclude elements whose
group order is smaller than q. Now, X and Y are elements whose group order
is q or greater than q.

Of course, if k = 2^n * M where M is a composite integer whose factors are
< q,
the check should be [k] * X =/ 0_E and [k] * Y =/ 0_E as you recommended.


>Also:
>"The cofactor k is the value (#E / q) satisfying k = 2^n * q_1 * q_2
>...  q_t where n = {0,1,2} and every primes q_i > q for i = 1, 2,
>..., t."
>
>q_i are bigger than q? Isn't q usually chosen to be the biggest prime
>factor of #E?
As above, by using this cofactor k (or k = 2^n)
one can avoid the order check of elements received from the other party.


>Also, for some curves one might want to use (due to good performance
>and security), k=8.
I'll add this to the I-D.


Best regards,
Shin


On Thu, Aug 7, 2014 at 12:16 AM, Ilari Liusvaara <
ilari.liusvaara@elisanet.fi> wrote:

> On Wed, Aug 06, 2014 at 07:12:08AM -0700, internet-drafts@ietf.org wrote:
> >
> > 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           : Augmented Password-Authenticated Key Exchange
> (AugPAKE)
> >         Authors         : SeongHan Shin
> >                           Kazukuni Kobara
> >       Filename        : draft-irtf-cfrg-augpake-02.txt
> >       Pages           : 20
> >       Date            : 2014-08-06
> >
> > There's also a htmlized version available at:
> > http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02
> >
> > A diff from the previous version is available at:
> > http://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-augpake-02
>
> Did a quick read of changes:
>
> Appendix C:
>
> "If the received X from user U is not a point on E or [2^n] * X = 0_E,"
>
> Should this be:
>
> If the received X from user U is not a point on E or [k] * X = 0_E,
>
> Similarly, there is:
>
> "If the received Y from server S is not a point on E or [2^n] * Y = 0_E,"
>
> Should this be:
>
> "If the received Y from server S is not a point on E or [k] * Y = 0_E,"
>
>
> Rationale:
>
> k is the cofactor, which may be ("optionally") power of two, it may
> not be 2^n.
>
>
> Also:
>
> "The cofactor k is the value (#E / q) satisfying k = 2^n * q_1 * q_2
> ...  q_t where n = {0,1,2} and every primes q_i > q for i = 1, 2,
> ..., t."
>
> q_i are bigger than q? Isn't q usually chosen to be the biggest prime
> factor of #E?
>
> Also, for some curves one might want to use (due to good performance
> and security), k=8.
>
>
>
> -Ilari
>



-- 
------------------------------------------------------------------
SeongHan Shin
Research Institute for Secure Systems (RISEC),
National Institute of Advanced Industrial Science and Technology (AIST),
Central 2, 1-1-1, Umezono, Tsukuba City, Ibaraki 305-8568 Japan
Tel : +81-29-861-2670/5284
Fax : +81-29-861-5285
E-mail : seonghan.shin@aist.go.jp
------------------------------------------------------------------

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

<div dir=3D"ltr"><div>Dear Ilari,<br><br></div>Thank you for your comments!=
<br><br>&gt;&quot;If the received X from user U is not a point on E or [2^n=
] * X =3D 0_E,&quot;<br>
&gt;Should this be:<br>
&gt;If the received X from user U is not a point on E or [k] * X =3D 0_E,<b=
r>
&gt;Similarly, there is:<br>
&gt;&quot;If the received Y from server S is not a point on E or [2^n] * Y =
=3D 0_E,&quot;<br>
&gt;Should this be:<br>
&gt;&quot;If the received Y from server S is not a point on E or [k] * Y =
=3D 0_E,&quot;<br>
&gt;<br>&gt;Rationale:<br>
&gt;k is the cofactor, which may be (&quot;optionally&quot;) power of two, =
it may<br>
&gt;not be 2^n.<br><div><div><div class=3D"gmail_extra"><br></div><div clas=
s=3D"gmail_extra">In Appendix C, we set k =3D 2^n * q_1 * q_2 ... =C2=A0q_t=
 where n =3D {0,1,2} and every primes q_i &gt; q for i =3D 1, 2, ..., t (or=
 optionally k =3D 2^n).<br>
</div><div class=3D"gmail_extra">
With this cofactor k, checking [2^n] * X =3D/ 0_E and [2^n] * Y =3D/ 0_E is=
 enough to exclude elements whose<br>group order is smaller than q. Now, X =
and Y are elements whose group order is q or greater than q.<br><br></div>
<div class=3D"gmail_extra">
Of course, if k =3D 2^n * M where M is a composite integer whose factors ar=
e &lt; q, <br>the check should be [k] * X =3D/ 0_E and [k] * Y =3D/ 0_E as =
you recommended. <br><br><br>&gt;Also:<br>
&gt;&quot;The cofactor k is the value (#E / q) satisfying k =3D 2^n * q_1 *=
 q_2<br>&gt;... =C2=A0q_t where n =3D {0,1,2} and every primes q_i &gt; q f=
or i =3D 1, 2,<br>
&gt;..., t.&quot;<br>
&gt;<br>&gt;q_i are bigger than q? Isn&#39;t q usually chosen to be the big=
gest prime<br>
&gt;factor of #E?<br></div><div class=3D"gmail_extra">As above, by using th=
is cofactor k (or k =3D 2^n) <br>one can avoid the order check of elements =
received from the other party.<br><br></div><div class=3D"gmail_extra"><br>=
&gt;Also, for some curves one might want to use (due to good performance<br=
>

&gt;and security), k=3D8.<br></div><div class=3D"gmail_extra">I&#39;ll add =
this to the I-D.<br><br><br></div><div class=3D"gmail_extra">Best regards,<=
br></div><div class=3D"gmail_extra">Shin<br><br></div><div class=3D"gmail_e=
xtra">

<br><div class=3D"gmail_quote">On Thu, Aug 7, 2014 at 12:16 AM, Ilari Liusv=
aara <span dir=3D"ltr">&lt;<a href=3D"mailto:ilari.liusvaara@elisanet.fi" t=
arget=3D"_blank">ilari.liusvaara@elisanet.fi</a>&gt;</span> wrote:<br><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex">

<div>On Wed, Aug 06, 2014 at 07:12:08AM -0700, <a href=3D"mailto:internet-d=
rafts@ietf.org" target=3D"_blank">internet-drafts@ietf.org</a> wrote:<br>
&gt;<br>
&gt; A New Internet-Draft is available from the on-line Internet-Drafts dir=
ectories.<br>
&gt; =C2=A0This draft is a work item of the Crypto Forum Research Group Wor=
king Group of the IETF.<br>
&gt;<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Title =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :=
 Augmented Password-Authenticated Key Exchange (AugPAKE)<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Authors =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Seon=
gHan Shin<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 Kazukuni Kobara<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Filename =C2=A0 =C2=A0 =C2=A0 =C2=A0: draft-irtf-=
cfrg-augpake-02.txt<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Pages =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : 20<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Date =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: 2=
014-08-06<br>
&gt;<br>
</div><div>&gt; There&#39;s also a htmlized version available at:<br>
&gt; <a href=3D"http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02" targ=
et=3D"_blank">http://tools.ietf.org/html/draft-irtf-cfrg-augpake-02</a><br>
&gt;<br>
&gt; A diff from the previous version is available at:<br>
&gt; <a href=3D"http://www.ietf.org/rfcdiff?url2=3Ddraft-irtf-cfrg-augpake-=
02" target=3D"_blank">http://www.ietf.org/rfcdiff?url2=3Ddraft-irtf-cfrg-au=
gpake-02</a><br>
<br>
</div>Did a quick read of changes:<br>
<br>
Appendix C:<br>
<br>
&quot;If the received X from user U is not a point on E or [2^n] * X =3D 0_=
E,&quot;<br>
<br>
Should this be:<br>
<br>
If the received X from user U is not a point on E or [k] * X =3D 0_E,<br>
<br>
Similarly, there is:<br>
<br>
&quot;If the received Y from server S is not a point on E or [2^n] * Y =3D =
0_E,&quot;<br>
<br>
Should this be:<br>
<br>
&quot;If the received Y from server S is not a point on E or [k] * Y =3D 0_=
E,&quot;<br>
<br>
<br>
Rationale:<br>
<br>
k is the cofactor, which may be (&quot;optionally&quot;) power of two, it m=
ay<br>
not be 2^n.<br>
<br>
<br>
Also:<br>
<br>
&quot;The cofactor k is the value (#E / q) satisfying k =3D 2^n * q_1 * q_2=
<br>
... =C2=A0q_t where n =3D {0,1,2} and every primes q_i &gt; q for i =3D 1, =
2,<br>
..., t.&quot;<br>
<br>
q_i are bigger than q? Isn&#39;t q usually chosen to be the biggest prime<b=
r>
factor of #E?<br>
<br>
Also, for some curves one might want to use (due to good performance<br>
and security), k=3D8.<br>
<span><font color=3D"#888888"><br>
<br>
<br>
-Ilari<br>
</font></span></blockquote></div><br><br clear=3D"all"><br>-- <br><div styl=
e=3D"margin:0mm 0mm 0pt"><span style=3D"font-family:&#39;MS UI Gothic&#39;;=
font-size:10pt" lang=3D"EN-US">--------------------------------------------=
----------------------<br>

SeongHan Shin<br></span><span style=3D"font-family:&#39;MS UI Gothic&#39;;f=
ont-size:10pt" lang=3D"EN-US">Research Institute for Secure Systems (RISEC)=
,<br>National Institute of Advanced Industrial Science and Technology (AIST=
),<br>

Central 2, 1-1-1, Umezono, Tsukuba City, Ibaraki 305-8568 Japan<br>Tel : <a=
 href=3D"tel:%2B81-29-861-2670" value=3D"+81298612670" target=3D"_blank">+8=
1-29-861-2670</a>/5284<br>Fax : <a href=3D"tel:%2B81-29-861-5285" value=3D"=
+81298615285" target=3D"_blank">+81-29-861-5285</a><br>
E-mail : <a href=3D"mailto:seonghan.shin@aist.go.jp" target=3D"_blank"><fon=
t color=3D"#0000ff">seonghan.shin@aist.go.jp</font></a><br>
------------------------------------------------------------------</span></=
div>
</div></div></div></div>

--001a11c34140c27a7d050017ee29--


From nobody Fri Aug  8 06:36:23 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 28CDC1B27AB for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 06:36:21 -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 rjQs4TrVAxB9 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 06:36:18 -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 8B94B1A026E for <cfrg@irtf.org>; Fri,  8 Aug 2014 06:36:17 -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 2E7CE3FE9; Fri,  8 Aug 2014 16:36:15 +0300 (EEST)
Date: Fri, 8 Aug 2014 16:36:14 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Watson Ladd <watsonbladd@gmail.com>
Message-ID: <20140808133614.GA24182@LK-Perkele-VII>
References: <CACsn0cmUg1A1wxgOuubfPNg2XJGVq6BNFkARkv_eCSYqvqWRCA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CACsn0cmUg1A1wxgOuubfPNg2XJGVq6BNFkARkv_eCSYqvqWRCA@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/niM9QMM9tR0K2UzCLoDpeSZlTqo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] ChaCha20
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 13:36:21 -0000

On Thu, Aug 07, 2014 at 06:23:05PM -0700, Watson Ladd wrote:
> Dear all,
> In the past 6 years only one cryptanalysis result has been published
> against ChaCha, and that was against a variant before the final
> version was announced. While Salsa20 was an eStream finalist, ChaCha
> wasn't.
> 
> I'd like to see some more cryptanalytic attention on ChaCha: in
> particular are the differentials from "Latin Dances" still valid for
> the published version of ChaCha? What are the best differential
> characteristics? And can we figure this out quickly?

Trying to find paper about "Latin Dances", I ran into these:

https://eprint.iacr.org/2007/472
https://eprint.iacr.org/2012/065

Both seem to analyze final version of Chacha, and seemingly make
worse job than on Salsa (e.g. the first "breaks" Salsa8, but not
Chacha8).


-Ilari


From nobody Fri Aug  8 07:15:22 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 13FC41B2BB3 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 07:15: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, 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 HtVQQvGNaQFj for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 07:15:11 -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 018931B2BE3 for <cfrg@irtf.org>; Fri,  8 Aug 2014 07:15:10 -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 232D1188791; Fri,  8 Aug 2014 17:15:06 +0300 (EEST)
Date: Fri, 8 Aug 2014 17:15:06 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Message-ID: <20140808141506.GA24645@LK-Perkele-VII>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk>
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/mqgZ1wZsnfeLE92YHBaitjoj3VY
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: Fri, 08 Aug 2014 14:15:15 -0000

On Sun, Jul 27, 2014 at 08:04:45PM +0000, Paterson, Kenny wrote:

> - 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 split the question to two parts: Prime and parameters

a) Prime

Picking prime randomly has _devastating_ impact on performance. Nobody will
seriously use the curve. This is THE reason why Brainpool is not used much
in the wild.

If one picks prime for performance (the prime is the dominant factor in
performance), there are very few primes that perform well[1].

This would force high degree of rigridity if performance is a major goal.

b) Parameters

While bad parameters aren't devastating for performance, badly picked ones
are still significantly slower (e.g. loses that ~0.75M advantage from small
parameter on addition or Montgomery step).

With parameters, random choice is not wise, given that there are very few
(I think 4 or 2 depending on bitlength[2][3]) rational choices for
deterministic curve per prime. It would be very hard to reach similar
rigidity via random process.


[1] The "contestants" all seem to be (pseudo) Mersennes with small c and
Solinas trinomials. I think some have tried to develop metrics to measure
the effectiveness of various primes.


[2] Complete Edwards (minimal |d|) vs. Complete Montgomery (minimal |a24|),
q < 2^n vs. q > 2^n.


[3] I think that shrinks to 2 on higher bitlengths, since using windowing
on Edwards curve becomes faster than using Montgomery ladder on Montgomery
curve.


-Ilari


From nobody Fri Aug  8 07:40:21 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 A30C51B2A77 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 07:40:19 -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 8XuxCi-YlrFu for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 07:40:18 -0700 (PDT)
Received: from mail-qa0-x233.google.com (mail-qa0-x233.google.com [IPv6:2607:f8b0:400d:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B8A41B2A54 for <cfrg@irtf.org>; Fri,  8 Aug 2014 07:40:18 -0700 (PDT)
Received: by mail-qa0-f51.google.com with SMTP id k15so5628477qaq.10 for <cfrg@irtf.org>; Fri, 08 Aug 2014 07:40: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=oKr+25/58A4clnKFLORPiHNlm/BJpNFeBHKq5lsnn08=; b=mXtnBoQ3UfTTURsEVpqdQHGPOApdcu9dPe2TT2lSc1dNaGVVgZW5ve7aRHb6CNsRjM lIfK8kp8Q9BxWvvqm/7wFIc5L/opkGWmC4ZXL+WlabVOiK00qQFUM3XOA6L08Og4ihZ6 qAmlejX7vi7J/ctPAiLSuCzTa7tl2kmvcOeUoQUrqMLJSFYgkh/wsVQzBN/zP0FwAk4A mUM24ZH5gHf5GxShGUs+ns6HIW3xy4QzGqd0qgmpEPmD3aO/524PkyZrO3LsYy1fp+YK zVRNH0wruciYiOynEl9WTTFwZK75FNjadyAr6Irn8KjQbRRSL81Jyxg7la8LAiFbpvnF IEuQ==
MIME-Version: 1.0
X-Received: by 10.224.86.5 with SMTP id q5mr39492979qal.36.1407508817482; Fri, 08 Aug 2014 07:40:17 -0700 (PDT)
Received: by 10.140.86.135 with HTTP; Fri, 8 Aug 2014 07:40:17 -0700 (PDT)
In-Reply-To: <20140808141506.GA24645@LK-Perkele-VII>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII>
Date: Fri, 8 Aug 2014 07:40:17 -0700
Message-ID: <CABqy+soiwptz+Vi-nT3GJgg-FrHGPXUc-wDYe1+Pb-b0CZXDog@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hopy-wJOGxohzpQjidG2nS_S7Mo
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: Fri, 08 Aug 2014 14:40:19 -0000

On 8/8/14, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:

> b) Parameters

> With parameters, random choice is not wise, given that there are very few
> (I think 4 or 2 depending on bitlength[2][3]) rational choices for
> deterministic curve per prime. It would be very hard to reach similar
> rigidity via random process.

> [2] Complete Edwards (minimal |d|) vs. Complete Montgomery (minimal |a24|),
> q < 2^n vs. q > 2^n.

There is no trade-off between efficiency in Edwards form and
efficiency in Montgomery form -- a curve with small-integer Edwards d
has its Montgomery (A+2)/4 as the reciprocal of a small integer, which
is as efficient as having (A+2)/4 be a small integer itself.  *ALL*
new curves should be specified with small-integer Edwards d.  (I've
repeated this already recently, and included a link to formulas in
that message.)


The remaining less-than-perfectly rigid aspects that I know of in
selecting a deterministic curve parameter, given the coordinate-field
order p, are:

* cofactors (For p = 3 mod 4, do you settle for curve and twist having
cofactor 8 (as Curve3617 does), or insist on the minimal cofactor 4
(as Microsoft does; note that E-521 also has cofactor 4)?  For p = 5
mod 8, where either the curve or twist must have cofactor 8, do you
operate on the one with cofactor 8 (as Curve25519 does) or the one
with cofactor 4?)

* group size (For p = 3 mod 4, do you operate on the group with
smaller order (as Curve3617 and E-521 do, perhaps by accident, and as
the MSR curves do), or operate on the group with larger order (I don't
think anyone does this)?  For p = 5 mod 8, do you insist that both
groups have order greater than the power of 2 closest to p/8 (as
Curve25519 does, in order to make key generation hard to screw up)?)

* multiplicative embedding degree (Exactly how large, or how close to
maximal, do you insist that the curve's embedding degree be?)

There may be a few others.


Robert Ransom


From nobody Fri Aug  8 09:08:03 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 90C8C1B2B6C for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 09:08:00 -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 pqkhRTsradlO for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 09:07:56 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 34C431B2B54 for <cfrg@irtf.org>; Fri,  8 Aug 2014 09:07:55 -0700 (PDT)
Received: (qmail 16440 invoked by uid 1011); 8 Aug 2014 16:07:54 -0000
Received: from unknown (unknown) by unknown with QMTP; 8 Aug 2014 16:07:54 -0000
Received: (qmail 7252 invoked by uid 1001); 8 Aug 2014 16:07:44 -0000
Date: 8 Aug 2014 16:07:44 -0000
Message-ID: <20140808160744.7250.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/2m2XRMbcGGy4TGfNOsptb29Aeuk
Subject: [Cfrg] ECC desiderata
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 16:08:00 -0000

Suggestions are summarized at the bottom. These are mainly tweaks to the
list suggested by David McGrew and discussed by quite a few people. I'll
send a separate message to comment on Brian's new list from yesterday.

Benjamin Black writes:
> 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.

Surely everyone would agree that we want crypto implementations to be
secure, and in particular to

   * work correctly for all valid inputs, and
   * avoid compromising security when inputs are invalid, and
   * avoid all data flow from secrets to timing.

Would anyone argue that an implementation flunking these requirements
is "production-quality" or "appropriate for large scale deployment"?

On the other hand, there clearly isn't agreement that crypto should

   * be written in JavaScript, or
   * trust typical compilers, or
   * avoid vector intrinsics, or
   * avoid assembly language, or
   * be written as "completely portable" code,

even though for each of these items I've seen people in various venues
vociferously arguing that the item is critical for "production" or
"deployment" or some similar phrase. As an example of the subtlety of
these issues, the strongest formally verified guarantees available today
for ECC software are for software written in assembly language, and this
situation is likely to persist.

I think it's perfectly legitimate to ask how much simplicity is
sacrificed from, e.g., having F_p arithmetic tuned separately for Intel
chips and for ARM chips. However, for many people the resulting speedups
are more important than the loss of simplicity, and it would be crazy to
demand that those people ignore those speedups just because someone else
refers to multiple implementations as not being "appropriate for large
scale deployment".

I conclude that the concept of "production-quality" should not appear in
a list of ECC requirements (or desiderata): it includes some items that
are uncontroversial but other items that compromise security and speed.

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

I don't think that "amenable" works as a yes/no requirement: every
cryptographic function _can_ be implemented in constant time. What we
care about is how simple and fast the resulting implementations are---
and the extent to which non-constant-time implementations would have
been simpler or faster, creating bad incentives for implementors.

I'd suggest stating the core desiderata as follows (where "secure"
includes the first three items I listed above):

   D1. Speed and simplicity (and speed-simplicity combinations) for
   secure implementations.

   D2. Avoiding speed incentives and simplicity incentives towards
   insecure implementations.

Curves with cofactor 1 obviously score so badly on these axes---without
having any compensating advantages---that I think they should be taken
off the table. Each new curve should have a unique point of order 2 and
points of order 4, for compatibility with the Montgomery ladder and
complete Edwards addition. Such curves should still be quantitatively
evaluated against the same desiderata.

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

I again don't think that "amenable" works as a yes/no requirement. The
processor comment applies to any mention of speed (e.g., both D1 and
D2 above), so I'd suggest turning R2 into a modular statement:

   "Speed" includes speed on many different platforms: e.g., speed on
   64-bit desktop CPUs, speed on 32-bit smartphone CPUs, speed on
   embedded microcontrollers, and speed of hardware implementations.
   
As for "compact": Obviously small implementations can contribute to
speed (avoiding cache misses, fitting into available chip area for a
hardware accelerator, etc.), and there's a huge correlation between
compactness and simplicity. Is there an argument to identify compactness
per se as a separate desideratum---something where compactness will help
select ECC mechanisms in ways that simplicity and speed won't?

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

I would suggest naming more of the important operations:

   "Speed" includes speed of many important ECC operations inside TLS,
   PKIX, SSH, IKE, and other protocols: e.g., key generation, signing,
   verification, and DH shared-secret computation. "Simplicity" includes
   the simplicity of implementations supporting all of these operations,
   the simplicity of implementations supporting only DH, the simplicity
   of implementations supporting only signatures, etc.

It's important for the metric to be simplicity rather than reuse. For
example, it's obviously much better to have

   * complexity 300 for DH implementation (keygen+sharedsecret)
   * complexity 500 for signatures implementation (keygen+sign+verify)
   * complexity 600 for combined implementation

than to have

   * complexity 10000 for DH implementation
   * complexity 10000 for signatures implementation
   * complexity 11000 for combined implementation

even though the second option would score better on any "reuse" metric.

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

This is one aspect of simplicity. Is there evidence that different types
of ECC simplicity are in conflict? If not then I'd suggest simply saying
"simplicity" and not getting caught up in weighing the details.

> R9.  Required: resist twist attacks [2]

The reason that this is important is that

   * _with_ twist-security the simplest secure DH implementation is the
     Montgomery ladder, while

   * _without_ twist-security the simplest secure DH implementation is
     the Montgomery ladder _plus_ checking that the input is on the
     curve---omitting the check produces security problems.

I think this is adequately covered by D2 ("Avoiding speed incentives and
simplicity incentives towards insecure implementations"). Furthermore,
if someone comes up with an argument that twist-security is outweighed
by something else then D2 will handle the variation better than a
separate requirement would.

> 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.)

This was later clarified as covering "implementation attacks in general,
not just invalid curve attacks"; and again I think this is covered by D1
and D2.

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

I see indistinguishability as being more important for simplifying
anti-censorship protocols than for simplifying PAKE protocols. However,
I would suggest that CFRG not bother making separate requirements along
these lines, primarily because I don't see how it could actually end up
making a difference in CFRG's selection of ECC mechanisms.

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

Suppose an implementation is limited to the NIST P-256 prime---including
the ECDSA-specified NIST P-256 reduction procedure, which looks quite
different from the reduction procedure for better primes. Does CFRG want
this implementor objecting to any prime other than the NIST P-256 prime,
on the basis of the code changes required?

Obviously there is some value in being able to reuse existing code. For
example, suppose

   * a server wants the speed benefits of optimized code for a new
     curve, or the security benefits of simple code for that new curve,
     or both; and
     
   * the client already has secure code, doesn't care about speed, and
     can support the new curve with a very small code change, making the
     server happy.

This code reuse can allow faster deployment than demanding a more
serious code change from the client. However, if the client's existing
code is _not_ secure, then it's actually better for security to pressure
the client to throw that code away.

Let me suggest a different way to handle R6:

   "Simplicity" includes the simplicity of new implementations, and the
   simplicity of modifying preexisting implementations.

This works nicely with both D1 and D2. For example, if it's simple to
modify a preexisting implementation to obtain a secure implementation of
a new ECC mechanism---for example, "using different curve parameters"
without further effort---then that's positively valued under D1. If it's
simpler to modify a preexisting implementation to obtain an _insecure_
implementation, then that's negatively valued under D2.

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

As a desideratum for new _curves_ this is content-free: all of the
proposed _curves_ can be used with the existing standards. See my
"curves, coordinates, and computations" message.

My understanding is that CFRG isn't considering replacement _algorithms_
such as Schnorr signatures. However, there are strong reasons for CFRG
to consider recommending better _coordinates_ on the wire, because this
has clear benefits for simplicity of implementations. Obviously this has
a transition cost---but the whole reason for CFRG to consider it is that
it's desirable _despite_ this cost!

Something to keep in mind is that the cost of redeploying software has
very little to do with the amount of code changed. There isn't some
magical dividing line between deploying a new curve with an old
coordinate system and deploying a new curve with a new coordinate
system. Both of these are code changes (including whatever protocol
extensions are necessary) and incur very similar deployment costs.

Something else to keep in mind is that only a small fraction of the
Internet is cryptographically protected today. This suggests that CFRG
should put a high value on simplifying new implementations that will do
a better job at protecting the Internet than today's implementations.

David Jacobson writes:
> Performance needs to be measured with the defenses deployed.

Right. D1 makes this explicit ("Speed ... for secure implementations").

As I wrote earlier, 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. All of the major sources of timing variation in
software are documented in various attack papers and defense papers
(despite the caveat in http://blog.cr.yp.to/20140517-insns.html).

Simon Josefsson writes:
> 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.

Every proposal will be resistant to brute-force attacks, side-channel
attacks (with enough implementation effort), invalid-input attacks (with
enough implementation effort), and twist attacks (with enough
implementation effort). But this has a cost, in speed and in simplicity,
and the variations in these costs are exactly what make some proposals
better than others.

Michael Hamburg writes:
> complete addition laws should probably be on the list as nice-to-have

The importance of a complete addition law is that it allows a simpler
secure implementation of (e.g.) signature verification. This is
analogous to twist-security and is similarly covered by D2.

> it’s important that the constructs should allow relatively simple
> and efficient secure implementations.

Agreed (and David also indicated that he agrees). This is what I'm
labelling D1.

Putting all of this together, I'd suggest replacing R1+R2+R3,
R6+R7+R8+R9, and R11+R12 with the statement of desiderata shown below.

---Dan


D1. Speed and simplicity (and speed-simplicity combinations) for
secure implementations.

D2. Avoiding speed incentives and simplicity incentives towards insecure
implementations.

"Secure" includes the following properties: an implementation works
correctly for all valid inputs; avoids compromising security when
inputs are invalid; and avoids all data flow from secrets to timing.

"Speed" includes speed on many different platforms: e.g., speed on
64-bit desktop CPUs, speed on 32-bit smartphone CPUs, speed on
embedded microcontrollers, and speed of hardware implementations.

"Speed" includes speed of many important ECC operations inside TLS,
PKIX, SSH, IKE, and other protocols: e.g., key generation, signing,
verification, and DH shared-secret computation. "Simplicity" includes
the simplicity of implementations supporting all of these operations,
the simplicity of implementations supporting only DH, the simplicity
of implementations supporting only signatures, etc.

"Simplicity" includes the simplicity of new implementations, and the
simplicity of modifying preexisting implementations.


From nobody Fri Aug  8 09:43:21 2014
Return-Path: <ietf-ipr@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 0C7A01B2C5B; Fri,  8 Aug 2014 09:43:16 -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 ujS-PM0UXedh; Fri,  8 Aug 2014 09:43:08 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id F19811B2C4F; Fri,  8 Aug 2014 09:43:03 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: IETF Secretariat <ietf-ipr@ietf.org>
To: seonghan.shin@aist.go.jp,kobara_conf-ml@aist.go.jp
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.2.p5
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20140808164303.27768.32568.idtracker@ietfa.amsl.com>
Date: Fri, 08 Aug 2014 09:43:03 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/4Ns9VOcNP5LpcWrcs9X6bJ9tfUc
Cc: cfrg@ietf.org, ipr-announce@ietf.org
Subject: [Cfrg] IPR Disclosure: National Institute of Advanced Industrial Science and Technology (AIST)'s Statement about IPR related to RFC 6628, draft-shin-tls-augpake-03, and draft-irtf-cfrg-augpake-02
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, 08 Aug 2014 16:43:16 -0000

Dear SeongHan Shin, Kazukuni Kobara:

 An IPR disclosure that pertains to your Internet-Draft entitled "Augmented
Password-Authenticated Key Exchange (AugPAKE)" (draft-irtf-cfrg-augpake) was
submitted to the IETF Secretariat on 2014-08-06 and has been posted on the "IETF
Page of Intellectual Property Rights Disclosures"
(https://datatracker.ietf.org/ipr/2411/). The title of the IPR disclosure is
"National Institute of Advanced Industrial Science and Technology (AIST)'s
Statement about IPR related to RFC 6628, draft-shin-tls-augpake-03, and draft-
irtf-cfrg-augpake-02."");

The IETF Secretariat


From nobody Fri Aug  8 11:06:19 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 989A71A001B for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:06:05 -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 cKutWV-RayCx for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:06:02 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0084.outbound.protection.outlook.com [213.199.154.84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 266741A0019 for <cfrg@irtf.org>; Fri,  8 Aug 2014 11:05:53 -0700 (PDT)
Received: from DBXPR03MB384.eurprd03.prod.outlook.com (10.141.10.20) by DBXPR03MB096.eurprd03.prod.outlook.com (10.242.139.26) with Microsoft SMTP Server (TLS) id 15.0.995.14; Fri, 8 Aug 2014 18:05:47 +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.1005.10; Fri, 8 Aug 2014 18:05: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.1005.008; Fri, 8 Aug 2014 18:05:46 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Watson Ladd <watsonbladd@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] ChaCha20
Thread-Index: AQHPsqdXpEywOv9BiECEvLxIuw9bb5vHEi2A
Date: Fri, 8 Aug 2014 18:05:46 +0000
Message-ID: <D00ACF82.29AC4%kenny.paterson@rhul.ac.uk>
References: <CACsn0cmUg1A1wxgOuubfPNg2XJGVq6BNFkARkv_eCSYqvqWRCA@mail.gmail.com>
In-Reply-To: <CACsn0cmUg1A1wxgOuubfPNg2XJGVq6BNFkARkv_eCSYqvqWRCA@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: [134.219.227.30]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:;
x-forefront-prvs: 02973C87BC
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(199002)(189002)(479174003)(51704005)(24454002)(95666004)(107046002)(54356999)(21056001)(92566001)(81342001)(36756003)(105586002)(74482001)(83072002)(106356001)(85852003)(86362001)(74502001)(31966008)(107886001)(106116001)(74662001)(76176999)(92726001)(99396002)(50986999)(20776003)(64706001)(101416001)(2656002)(19580395003)(83322001)(19580405001)(15975445006)(83506001)(85306004)(4396001)(76482001)(66066001)(81542001)(80022001)(15202345003)(77982001)(19273905006)(87936001)(79102001)(46102001)(2501001)(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: <7B8667902AFA6F45ABCF9700F70F82EF@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/cde8HVX9Ck3fei04qRMQnttKwqw
Subject: Re: [Cfrg] ChaCha20
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 18:06:05 -0000

Watson,

Thanks for this summary. I agree that more cryptanalysis of ChaCha20 would
be very welcome in the very short term.

So has anyone else out there had a look at the design for ChaCha and the
existing analysis of Salsa? Even a summary of the existing analysis work
on ChaCha would be most welcome.

Regards

Kenny


On 08/08/2014 02:23, "Watson Ladd" <watsonbladd@gmail.com> wrote:

>Dear all,
>In the past 6 years only one cryptanalysis result has been published
>against ChaCha, and that was against a variant before the final
>version was announced. While Salsa20 was an eStream finalist, ChaCha
>wasn't.
>
>The ChaCha20+Poly1305 mode we are considering could have been
>submitted to CAESER, but wasn't. I thought about submitting it instead
>of McMambo, but ended up winning a durian instead for my troubles.
>ChaCha was used in BLAKE, so the differential characteristics of the
>round function should work. Unfortunately BLAKE changed ChaCha just
>enough to make comparison hard.
>
>I'd like to see some more cryptanalytic attention on ChaCha: in
>particular are the differentials from "Latin Dances" still valid for
>the published version of ChaCha? What are the best differential
>characteristics? And can we figure this out quickly?
>
>Using Salsa20 instead of ChaCha20 would solve this problem somewhat:
>at least it won eStream, so we have someone else to blame. However, it
>comes at a slight performance loss: how much I don't know. There also
>are concerns about nonce size. However, XSalsa20 solves these, while
>having the same strength as Salsa20.
>
>(Note that this is the only issue: the Poly1305 security reduces to
>PRF security of ChaCha, at least the last time I took a look)
>
>Sincerely,
>Watson Ladd
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Fri Aug  8 11:06:47 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 4EFBE1A0019 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:06:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 uR-SAMqiiWcV for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:06:39 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 593841B2CB4 for <cfrg@irtf.org>; Fri,  8 Aug 2014 11:06:32 -0700 (PDT)
Received: (qmail 16669 invoked by uid 1011); 8 Aug 2014 18:06:30 -0000
Received: from unknown (unknown) by unknown with QMTP; 8 Aug 2014 18:06:30 -0000
Received: (qmail 24426 invoked by uid 1001); 8 Aug 2014 18:06:23 -0000
Date: 8 Aug 2014 18:06:23 -0000
Message-ID: <20140808180623.24424.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ql5Mdl-Sa2G7nIfCo6r_GX-TLH0
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 18:06:45 -0000

Brian LaMacchia writes:
> 1. CFRG-recommended curves should be generated by as rigid and
> deterministic a procedure as possible.

If one "procedure" allows 26 different curves, and another "procedure"
allows only 23 different curves, then requiring the maximum rigidity
would prohibit the first procedure.

Is this really what you meant? If this isn't what you meant, then what
exactly _did_ you mean?

Also, do you expect CFRG to evaluate "as rigid as possible" on the basis
of advertisements, or on the basis of actual analyses of wiggle room?
For example, if Brainpool were a proposal rather than an existing RFC,
would you expect CFRG to start from Brainpool's advertisement of being
"generated in a systematic and comprehensive way", or to start from
analyses showing that this "way" actually allows >1 million curves?

> As I stated at the beginning of my talk, our most important goal is to
> recommend new elliptic curves for the IETF that will restore trust and
> transparency in our protocols' use of elliptic curve cryptography.

So you're saying that using a "procedure" that allows 26 different
curves wouldn't restore "trust and transparency" if there's another
"procedure" that allows only 23 different curves?

> 2. At each security level, the CFRG-recommended curve must be
> specified in a single curve model that is used for both digital
> signatures and key exchange algorithms (in particular ECDSA and
> ECDHE), without transformation to other models.

The ECDSA standard uses short-Weierstrass coordinates to specify the
transmission format for public keys, so you're saying that all curves
must be specified in short-Weierstrass coordinates, and that CFRG can't
consider other coordinates for digital signatures and key-exchange
algorithms. (If this isn't what you meant, please clarify!)

For choosing _curves_ this requirement is content-free. For example,
Curve25519 is Y^2 = X^3-(236839902241/3)X+(230521961007359098/27) in
short-Weierstrass form---simply shift the x-coordinate by 486662/3.

For choosing _coordinates_ this requirement has content---and that
content is contrary to the fundamental goals of security, simplicity,
and speed. See my "curves, coordinates, and computations" message for
much more detail.

> 3. The CFRG-recommended curves must be specified using the same
> curve model for all security levels.

This is a superficial presentation requirement, of no help in choosing
curves. Also, the previous requirement forced short Weierstrass in all
cases, so this requirement is redundant.

> 4. When evaluating candidate curves for use in ECDHE, "ephemeral"
> should be defined as "use exactly once in a key exchange" (or for TLS
> "use in exactly one handshake").

https://www.imperialviolet.org/2013/06/27/botchingpfs.html explains how
keys can be kept around for months---despite meeting your definition of
"ephemeral". These keys are clearly _not_ ephemeral and do _not_ provide
perfect forward secrecy.

As I explained in a previous message, "use for exactly one session" is
the wrong policy; "use for exactly one connection" is the wrong policy;
and Microsoft's current reuse-for-two-hours is also the wrong policy.
These all fail to accomplish what the user wants, namely for keys to be
erased very soon---I suggested 10 seconds as an upper limit.

An implementation that reuses keys for just 1 second will have
negligible keygen time on typical CPUs, even if the implementor uses a
simple Montgomery ladder rather than a more complicated keygen method.
Concretely, http://bench.cr.yp.to/results-dh.html shows one of the
curves under discussion taking 145907 cycles for Montgomery-ladder
variable-base-point scalar multiplication on a 3.5GHz Intel Haswell CPU.
That's just 0.000042 seconds on a single core, completely unnoticeable
even if it's repeated every second.

This implementation strategy is simpler _and_ faster than the strategy
you're talking about, and there's no security problem with it, so it's a
perfectly valid benchmark target. I don't mean to suggest that it's the
only valid benchmark target; I'm just saying that there's no basis for
insisting that this target be ignored.

As a side note, cryptographers for years have known a better protocol
design in which "use a long-term signing key to sign a short-term DH
key" is replaced by "use a long-term DH key to authenticate a short-term
DH key". This makes variable-base-point scalar multiplication much more
frequent while reducing overall costs. My understanding is that the
dns-privacy group is already evaluating some protocols that use this
better design, and I wouldn't be surprised to see TLS eventually moving
in this direction. But I also think that the current TLS situation, in
which key reuse is widespread and has obvious performance benefits, is
already ample justification for carrying out relevant benchmarks.

---Dan


From SRS0=XLB+=5C=acm.org=bmoeller@srs.kundenserver.de  Fri Aug  8 11:07:39 2014
Return-Path: <SRS0=XLB+=5C=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 8F5FD1B2CA4 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:07:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.693
X-Spam-Level: **
X-Spam-Status: No, score=2.693 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FM_FORGED_GMAIL=0.622, HELO_EQ_DE=0.35, HTML_MESSAGE=0.001, RAZOR2_CHECK=0.922, 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 kv1gCeK43tou for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:07:37 -0700 (PDT)
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (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 83C8D1A0021 for <cfrg@irtf.org>; Fri,  8 Aug 2014 11:07:37 -0700 (PDT)
Received: from mail-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0Mbb9R-1Wwue20JSn-00J3XP; Fri, 08 Aug 2014 20:07:35 +0200
Received: by mail-yk0-f177.google.com with SMTP id 79so4069044ykr.22 for <cfrg@irtf.org>; Fri, 08 Aug 2014 11:07:33 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.236.101.138 with SMTP id b10mr17262564yhg.91.1407521253884;  Fri, 08 Aug 2014 11:07:33 -0700 (PDT)
Received: by 10.170.129.17 with HTTP; Fri, 8 Aug 2014 11:07:33 -0700 (PDT)
In-Reply-To: <20140808160744.7250.qmail@cr.yp.to>
References: <20140808160744.7250.qmail@cr.yp.to>
Date: Fri, 8 Aug 2014 14:07:33 -0400
Message-ID: <CADMpkcKRvi7WcbR==XF1G5b94jN7Y5+a2j_zDE8AZFTzy_UERg@mail.gmail.com>
From: Bodo Moeller <bmoeller@acm.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=20cf301b606f5a08e805002214ce
X-Provags-ID: V02:K0:HQovlRfzq0YWVMzit8cqcEgOG5Q8sOZoBwPjHK2adr1 xx4Gc/Mj2O8+cq0kWF41k66ZehtFfflV1fOE8Jrw8fUr7s04LJ O2mxxhe8bTjDZYyPoMAa6GBR00wH45e+C6lwsggJ0Xh3uvwUHW tc2Kt/h5K82fRhIIsqcaViuKPMqZ/0PIScyOwzVg4avTKLyQME LXWQCytLQ59LGc5Or/1XVf0rPsBR5MOHEYqg8vEH0eL/p2Kgnb 8AwWht7db8Czn7RYZf2gsQ4eeIy2vB26gQmzTVEP6hRXR1Bp5y LrYD1uaRyEwB7inxg8M+UP85cxcmYIJi5v79S3kfSMzb7VRqYN Oc7IPBnQGkKD5vadtiJdDjybTzBeX61/TtVgDVrKubEch/zT91 sIJerkV0VSn7fB0/KmudcXaLO4UU4NBRRQA4hhnJfcWJSZ1FIM qxsuW
X-UI-Out-Filterresults: notjunk:1;
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/rpN0vJlaoPqBvG9c5-RhBJPaQqw
Subject: Re: [Cfrg] ECC desiderata
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 18:08:27 -0000

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

D. J. Bernstein <djb@cr.yp.to>:


>    D1. Speed and simplicity (and speed-simplicity combinations) for
>    secure implementations.
>
>    D2. Avoiding speed incentives and simplicity incentives towards
>    insecure implementations.
>
> Curves with cofactor 1 obviously score so badly on these axes---without
> having any compensating advantages---that I think they should be taken
> off the table.


The speed advantages are pretty compelling, but I don't agree that curves
with cofactor 1 don't have *any* compensating advantages.

As the example of TLS with its protocol flaws shows (see the unknown
key-share attacks in https://secure-resumption.com/tlsauth.pdf), it is
possible to end up in a situation in which public-key validation *does*
matter; it's easier to get right with cofactor 1.  Using a cryptographic
scheme that normally has no need for this can turn into a disadvantage,
unless you "redundantly" do such checks anyway.
=E2=80=8B
Bodo

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

<div dir=3D"ltr"><div class=3D"gmail_quote" style=3D"font-family:arial,sans=
-serif;font-size:13px">D. J. Bernstein=C2=A0<span dir=3D"ltr">&lt;<a href=
=3D"mailto:djb@cr.yp.to">djb@cr.yp.to</a>&gt;</span>:</div><div class=3D"gm=
ail_quote" style=3D"font-family:arial,sans-serif;font-size:13px">
<div class=3D"im"><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">=C2=A0 =C2=A0D1. Speed=
 and simplicity (and speed-simplicity combinations) for<br>
=C2=A0 =C2=A0secure implementations.<br><br>=C2=A0 =C2=A0D2. Avoiding speed=
 incentives and simplicity incentives towards<br>=C2=A0 =C2=A0insecure impl=
ementations.<br><br>Curves with cofactor 1 obviously score so badly on thes=
e axes---without<br>having any compensating advantages---that I think they =
should be taken<br>
off the table.</blockquote><div><br></div></div><div>The speed advantages a=
re pretty compelling, but I don&#39;t agree that curves with cofactor 1 don=
&#39;t have *any* compensating advantages.</div><div><br></div><div>As the =
example of TLS with its protocol flaws shows (see the unknown key-share att=
acks in=C2=A0<a href=3D"https://secure-resumption.com/tlsauth.pdf">https://=
secure-resumption.com/tlsauth.pdf</a>), it is possible to end up in a situa=
tion in which public-key validation *does* matter; it&#39;s easier to get r=
ight with cofactor 1. =C2=A0Using a cryptographic scheme that normally has =
no need for this can turn into a disadvantage, unless you &quot;redundantly=
&quot; do such checks anyway.</div>
</div>=E2=80=8B<div>Bodo</div><div><br></div></div>

--20cf301b606f5a08e805002214ce--


From nobody Fri Aug  8 11:08:55 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 E440F1B2CAC for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:08:46 -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 7Vw88mPuGFav for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:08:40 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0078.outbound.protection.outlook.com [213.199.154.78]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EC7E81A0021 for <cfrg@irtf.org>; Fri,  8 Aug 2014 11:08:39 -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.1005.10; Fri, 8 Aug 2014 18:08:37 +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.1005.008; Fri, 8 Aug 2014 18:08:37 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "D. J. Bernstein" <djb@cr.yp.to>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] ECC desiderata
Thread-Index: AQHPsyL4KE0zW1XBXkWO7nNCXXVftZvHEgOA
Date: Fri, 8 Aug 2014 18:08:37 +0000
Message-ID: <D00AD023.29ACF%kenny.paterson@rhul.ac.uk>
References: <20140808160744.7250.qmail@cr.yp.to>
In-Reply-To: <20140808160744.7250.qmail@cr.yp.to>
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: [134.219.227.30]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:;
x-forefront-prvs: 02973C87BC
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(66654002)(479174003)(52604005)(51704005)(189002)(199002)(24454002)(83506001)(105586002)(107046002)(19580405001)(19580395003)(83322001)(15975445006)(20776003)(95666004)(99396002)(106116001)(64706001)(50986999)(21056001)(81342001)(76176999)(54356999)(85306004)(36756003)(81542001)(66066001)(80022001)(4396001)(2656002)(87936001)(83072002)(85852003)(86362001)(92726001)(92566001)(74662001)(77982001)(15202345003)(561944003)(101416001)(107886001)(74482001)(79102001)(74502001)(106356001)(76482001)(46102001)(31966008)(2501001); 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="utf-8"
Content-ID: <83CFF9EB41596F41A19057E161A42A6D@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/mrWuWmKlyXbO7yTBB7KhQ6DK14M
Subject: Re: [Cfrg] ECC desiderata
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 18:08:47 -0000

RGFuLA0KDQpNYW55IHRoYW5rcyBmb3IgcH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nRpbmcg
YWxsIG9mIHRoZXNlIG9wZXJhdGlvbnMsDQo+dGhlIHNpbXBsaWNpdHkgb2YgaW1wbGVtZW50YXRp
b25zIHN1cHBvcnRpbmcgb25seSBESCwgdGhlIHNpbXBsaWNpdHkNCj5vZiBpbXBsZW1lbnRhdGlv
bnMgc3VwcG9ydGluZyBvbmx5IHNpZ25hdHVyZXMsIGV0Yy4NCj4NCj4iU2ltcGxpY2l0eSIgaW5j
bHVkZXMgdGhlIHNpbXBsaWNpdHkgb2YgbmV3IGltcGxlbWVudGF0aW9ucywgYW5kIHRoZQ0KPnNp
bXBsaWNpdHkgb2YgbW9kaWZ5aW5nIHByZWV4aXN0aW5nIGltcGxlbWVudGF0aW9ucy4NCj4NCg0K


From nobody Fri Aug  8 11:16:18 2014
Return-Path: <prvs=32978e657e=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 ACE851A0004 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:16:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.277
X-Spam-Level: 
X-Spam-Status: No, score=-3.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RAZOR2_CHECK=0.922, 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 mnovWpwc0Vmx for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:16:15 -0700 (PDT)
Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by ietfa.amsl.com (Postfix) with ESMTP id 60D4C1A0008 for <cfrg@irtf.org>; Fri,  8 Aug 2014 11:16:14 -0700 (PDT)
Received: from LLE2K10-HUB02.mitll.ad.local (LLE2K10-HUB02.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id s78IFxaP031691 for <cfrg@irtf.org>; Fri, 8 Aug 2014 14:16:14 -0400
From: "Blumenthal, Uri - 0668 - MITLL" <uri@ll.mit.edu>
Content-Type: multipart/alternative; boundary="Apple-Mail=_A4E90612-4229-4EB7-9B5D-D27D2CD3EC09"
Message-ID: <5AC6A085-5E1B-4A1E-B950-6E230ED04DF2@ll.mit.edu>
MIME-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
Date: Fri, 8 Aug 2014 14:15:50 -0400
References: <20140808160744.7250.qmail@cr.yp.to> <CADMpkcKRvi7WcbR==XF1G5b94jN7Y5+a2j_zDE8AZFTzy_UERg@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
In-Reply-To: <CADMpkcKRvi7WcbR==XF1G5b94jN7Y5+a2j_zDE8AZFTzy_UERg@mail.gmail.com>
X-Mailer: Apple Mail (2.1510)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.27,  0.0.0000 definitions=2014-08-08_05:2014-08-08,2014-08-08,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-1408080219
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OthqZTqC3xQG64h6rr26PbmqJMg
Subject: Re: [Cfrg] ECC desiderata
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 18:16:17 -0000

--Apple-Mail=_A4E90612-4229-4EB7-9B5D-D27D2CD3EC09
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"

On Aug 8, 2014, at 14:07 , Bodo Moeller <bmoeller@acm.org> wrote:
> D. J. Bernstein <djb@cr.yp.to>:
> Curves with cofactor 1 obviously score so badly on these =
axes---without
> having any compensating advantages---that I think they should be taken
> off the table.
>=20
> The speed advantages are pretty compelling, but I don't agree that =
curves with cofactor 1 don't have *any* compensating advantages.
>=20
> As the example of TLS with its protocol flaws shows (see the unknown =
key-share attacks in https://secure-resumption.com/tlsauth.pdf), it is =
possible to end up in a situation in which public-key validation *does* =
matter; it's easier to get right with cofactor 1.  Using a cryptographic =
scheme that normally has no need for this can turn into a disadvantage, =
unless you "redundantly" do such checks anyway.

+1

I'd much rather deal with cofactor 1 curves.=

--Apple-Mail=_A4E90612-4229-4EB7-9B5D-D27D2CD3EC09
Content-Transfer-Encoding: 7bit
Content-Type: text/html; charset="us-ascii"

<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Aug 8, 2014, at 14:07 , Bodo Moeller &lt;<a href="mailto:bmoeller@acm.org">bmoeller@acm.org</a>&gt;&nbsp;wrote:</div><blockquote type="cite"><div dir="ltr"><div class="gmail_quote" style="font-family:arial,sans-serif;font-size:13px">D. J. Bernstein&nbsp;<span dir="ltr">&lt;<a href="mailto:djb@cr.yp.to">djb@cr.yp.to</a>&gt;</span>:</div><div class="gmail_quote" style="font-family:arial,sans-serif;font-size:13px">
<div class="im"><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; position: static; z-index: auto; ">Curves with cofactor 1 obviously score so badly on these axes---without<br>having any compensating advantages---that I think they should be taken<br>
off the table.</blockquote><div><br></div></div><div>The speed advantages are pretty compelling, but I don't agree that curves with cofactor 1 don't have *any* compensating advantages.</div><div><br></div><div>As the example of TLS with its protocol flaws shows (see the unknown key-share attacks in&nbsp;<a href="https://secure-resumption.com/tlsauth.pdf">https://secure-resumption.com/tlsauth.pdf</a>), it is possible to end up in a situation in which public-key validation *does* matter; it's easier to get right with cofactor 1. &nbsp;Using a cryptographic scheme that normally has no need for this can turn into a disadvantage, unless you "redundantly" do such checks anyway.</div></div></div></blockquote><div><br></div></div>+1<div><br></div><div>I'd much rather deal with cofactor 1 curves.</div></body></html>
--Apple-Mail=_A4E90612-4229-4EB7-9B5D-D27D2CD3EC09--


From nobody Fri Aug  8 11:44:30 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 BD23A1A008C for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:44:21 -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 aSTzrs_N8ff9 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 11:44:18 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id D26E21A009E for <cfrg@ietf.org>; Fri,  8 Aug 2014 11:44:17 -0700 (PDT)
Received: (qmail 16690 invoked from network); 8 Aug 2014 18:44:07 -0000
Received: from pcdhz005.win.tue.nl (HELO hyperelliptic.org) (131.155.71.33) by mace.cs.uic.edu with SMTP; 8 Aug 2014 18:44:07 -0000
Received: (qmail 12809 invoked by uid 1000); 8 Aug 2014 18:44:04 -0000
Date: Fri, 8 Aug 2014 20:44:04 +0200
From: Tanja Lange <tanja@hyperelliptic.org>
To: Michael Hamburg <mike@shiftleft.org>
Message-ID: <20140808184404.GN28679@cph.win.tue.nl>
References: <f9d9c886d08e4a4eb09c4a57584f950b@BL2PR03MB242.namprd03.prod.outlook.com> <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <4EBC943C-77A4-417C-B29C-D18E00F1AEAD@shiftleft.org>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/iXvdoYLobd_dMK0RXhDhgFkyMVc
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 18:44:21 -0000

On Thu, Aug 07, 2014 at 11:57:45AM -0700, Michael Hamburg wrote:
> 
> > On Aug 7, 2014, at 7:20 AM, Brian LaMacchia <bal@microsoft.com> wrote:
[..]
 
> > 4.	When evaluating candidate curves for use in ECDHE, "ephemeral" should be defined as "use exactly once in a key exchange" (or for TLS "use in exactly one handshake"). 
> > 
> > During the second TLS meeting in Toronto, Kenny Paterson gave a presentation summarizing where CFRG was on this question at that time and one of the points he mentioned was that there was not consensus as to what "ephemeral" should mean for purposes of evaluating candidates.  Russ Housley then commented at the microphone that "ephemeral" should mean "used in exactly one handshake".  I strongly concur with Russ's position and suggest that we formally adopt that definition now during the Requirements phase.  The concrete implication of adopting this proposed requirement is that it means when we evaluate ECDHE performance for curve candidates we must include one fixed-base and one variable-base operation. 
> 
> I agree that this is what “ephemeral” should mean for evaluation.  But I don’t understand how this clarification could possibly change anything.
>

I would like to clarify that we're talking about different kinds of 
evaluations:
a) For performance evaluations one can argue that ephemeral means
   one handshake (or a short time or a small number of connections).
b) For security evaluations we must take into account that users
   may keep reusing the same key; this must not be a problem for the
   security of the curve or the implementation.

	Tanja


From nobody Fri Aug  8 12:17:12 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 C16741A0380 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 12:17:10 -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 XeoAqAMuW3q0 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 12:17:08 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 5B9DF1A029C for <cfrg@irtf.org>; Fri,  8 Aug 2014 12:17:08 -0700 (PDT)
Received: from smtp-pop.rim.net (HELO XCT103CNC.rim.net) ([10.65.161.203]) by mhs210cnc.rim.net with ESMTP/TLS/AES128-SHA; 08 Aug 2014 15:17:07 -0400
Received: from XCT114CNC.rim.net (10.65.161.214) by XCT103CNC.rim.net (10.65.161.203) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 8 Aug 2014 15:17:06 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT114CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 8 Aug 2014 15:17:06 -0400
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Extra ECC desideratum: hard static DH and q-strong DH problems
Thread-Index: Ac+zO2olqd6fcUhCTcKUsaKirkBrtw==
Date: Fri, 8 Aug 2014 19:17:05 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC9D28@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_005B_01CFB31B.D0689F00"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/uXVgV30OoAAsLl4n2AZ6yDkD1d0
Subject: [Cfrg] Extra ECC desideratum: hard static DH and q-strong DH problems
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 19:17:10 -0000

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

Three reasons that static ECDH key agreement should still be considered in
the CFRG curve recommendation:

1. Existing versions of TLS allow static DH for sever authentication, and
allow ephemeral re-use in DHE, and if I understand, these allowance would
carry if implemented with ECC.  Also, IKE allows ephemeral reuse.  
2. Other IETF protocols using ECC, e.g. CMS, may require static DH keys, due
to less interaction being available.  Perhaps JOSE uses static ECDH too?
3. Perhaps future versions of TLS will drop signature uses for
authentication, and instead use static DH keys for authentication.
(Something like in MQV or some other key agreement scheme.) Or, maybe IETF
will later adopt protocols that use the esoteric blinding properties of raw
static DH.

So, I think it desirable for the choice of curve to be one that fares well
static DH keys are used.  

In particular, there are two variants of the Diffie--Hellman problem related
to static DH keys whose difficulty potentially varies with the curve:

1. The static DHP from (http://eprint.iacr.org/2004/306).  If the static DHP
is easy for a given target public key, then the static DH applications above
are insecure for the target public key.
2. A variant (*) of the q-strong DHP from (http://eprint.iacr.org/2004/171).
If the q-strong DHP is hard, then static DH applications above resist a
total break attack in the sense that it is infeasible the adversary to
extract the static DH private key.

(*) the variant I have in mind is one in which that adversary succeeds when
it recovers the static private key, rather than performing some special
operation with it.

An algorithm from the 2004/306 eprint, and extended by Cheon, has opposite
effects on these two problem: making the q-strong easier, but providing
evidence that the static DHP is hard.  This effectiveness algorithm depends
on the factorization of n-1 and n+1 where n is the large prime factor in the
order of the group. I think it is desirable for both of these problem to be
hard, and I think that if n has the right properties, then we can get good
assurances for both problems.

If I had to choose which of the two problems to accommodate, I'd choose the
q-strong DHP, because one can just make a strong, but plausible assumption
that the static DHP is hard.  In other words, instead of assuming that the
DHP is hard, as usual, we further assume that the DHP is hard for every
single key, i.e. the DHP has no negligible fraction weak keys.  Assuming
this covers that case that your static DHP has enough entropy to be
unguessable, but not enough to escape falling into a subset that is
negligible fraction of all keys.  E.g. suppose your 256-bit key has only
128-bits of entropy (but is pseudorandom of course).

I also add that one of the security proof for TLS
(http://eprint.iacr.org/2013/339) relies on some assumptions PRF-ODH and a
similarly-named problem Strong DH from (http://eprint.iacr.org/1999/007)
which may have may relationship with the q-strong DH problem.  For example,
I've got a hunch that if we assume the variant of the q-strong DHP is hard,
then I think that imply the hardness of PRF-ODH and the ABR StrongDH
problems.  Because of the short time frame, I sharing this thought before
really confirming it.

Of course, this desideratum is a theoretical one, but some of the other
desiderata seem to be better-safe-than-sorry or helpful to make
implementations more robust, so I wanted to add it the list.

Also, Certicom has some IPR around the method.

Best regards,

Daniel Brown
Research In Motion Limited


------=_NextPart_000_005B_01CFB31B.D0689F00
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/q7bf399cskpx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vL4R+zAzQAAAAAAAA==

------=_NextPart_000_005B_01CFB31B.D0689F00--


From nobody Fri Aug  8 12:28:53 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 9F1211A0386 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 12:28:52 -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 ZCHTbkHZ3DPe for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 12:28:50 -0700 (PDT)
Received: from mail-yk0-x231.google.com (mail-yk0-x231.google.com [IPv6:2607:f8b0:4002:c07::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C174F1A00A8 for <cfrg@irtf.org>; Fri,  8 Aug 2014 12:28:49 -0700 (PDT)
Received: by mail-yk0-f177.google.com with SMTP id 79so4143919ykr.22 for <cfrg@irtf.org>; Fri, 08 Aug 2014 12:28: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=oSlNgyLaI7pVB6eV3a3S3yms4RBHm6HBUrhggefRY0g=; b=xgBr/SFnHXtvQZS7O3QVuX8xbNTmM1Fa3NiJyIP+PjPdZ+UtYq3VZbmkgoKODUq0Rj /FCbH9d5I0dKte1iXvk8bLZ8EFS+kJvJzRyfqylflDefjwnMBH7iVHTkOwzDRiR2N97S 261zBgip1xUs3SzWEf8AdZ7XqKF9HsFEvpSl6MTe8FK3mUE35Trw1FDMjr8g80pW244l yr7697/d7NduFGC/zB3Ta0keCEYY7mIe+ZYSSCM7c3VcxEajx31HGbsjUCRBh2A0W2nB O5uq5z7ztWfXsyXzxK7EAVp1W3vr9DZx2QYq2Drqgj34tHZx6AO/5uJSqGnWiHKjnX6N Rc4A==
MIME-Version: 1.0
X-Received: by 10.236.134.208 with SMTP id s56mr17492860yhi.4.1407526128969; Fri, 08 Aug 2014 12:28:48 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Fri, 8 Aug 2014 12:28:48 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Fri, 8 Aug 2014 12:28:48 -0700 (PDT)
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CC9D28@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5CC9D28@XMB116CNC.rim.net>
Date: Fri, 8 Aug 2014 12:28:48 -0700
Message-ID: <CACsn0cnuowCYmpnikmO094Qzw1yvCa_QognhTJTBe1KmSNz=DA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: multipart/alternative; boundary=20cf303a2bbbedf24b05002336d2
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/5LzJm4KFFqlholw5yjw6cYWDDdA
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Extra ECC desideratum: hard static DH and q-strong DH problems
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 19:28:52 -0000

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

On Aug 8, 2014 12:17 PM, "Dan Brown" <dbrown@certicom.com> wrote:
>
> Three reasons that static ECDH key agreement should still be considered in
> the CFRG curve recommendation:
>
> 1. Existing versions of TLS allow static DH for sever authentication, and
> allow ephemeral re-use in DHE, and if I understand, these allowance would
> carry if implemented with ECC.  Also, IKE allows ephemeral reuse.
> 2. Other IETF protocols using ECC, e.g. CMS, may require static DH keys,
due
> to less interaction being available.  Perhaps JOSE uses static ECDH too?
> 3. Perhaps future versions of TLS will drop signature uses for
> authentication, and instead use static DH keys for authentication.
> (Something like in MQV or some other key agreement scheme.) Or, maybe IETF
> will later adopt protocols that use the esoteric blinding properties of
raw
> static DH.
>
> So, I think it desirable for the choice of curve to be one that fares well
> static DH keys are used.
>

This was mentioned prior to the CFRG interim. As I pointed out at that
meeting, hashing points renders the paper of Cheon irrelevent.

> In particular, there are two variants of the Diffie--Hellman problem
related
> to static DH keys whose difficulty potentially varies with the curve:
>
> 1. The static DHP from (http://eprint.iacr.org/2004/306).  If the static
DHP
> is easy for a given target public key, then the static DH applications
above
> are insecure for the target public key.
> 2. A variant (*) of the q-strong DHP from (http://eprint.iacr.org/2004/171
).
> If the q-strong DHP is hard, then static DH applications above resist a
> total break attack in the sense that it is infeasible the adversary to
> extract the static DH private key.
>
> (*) the variant I have in mind is one in which that adversary succeeds
when
> it recovers the static private key, rather than performing some special
> operation with it.
>
> An algorithm from the 2004/306 eprint, and extended by Cheon, has opposite
> effects on these two problem: making the q-strong easier, but providing
> evidence that the static DHP is hard.  This effectiveness algorithm
depends
> on the factorization of n-1 and n+1 where n is the large prime factor in
the
> order of the group. I think it is desirable for both of these problem to
be
> hard, and I think that if n has the right properties, then we can get good
> assurances for both problems.
>
> If I had to choose which of the two problems to accommodate, I'd choose
the
> q-strong DHP, because one can just make a strong, but plausible assumption
> that the static DHP is hard.  In other words, instead of assuming that the
> DHP is hard, as usual, we further assume that the DHP is hard for every
> single key, i.e. the DHP has no negligible fraction weak keys.  Assuming
> this covers that case that your static DHP has enough entropy to be
> unguessable, but not enough to escape falling into a subset that is
> negligible fraction of all keys.  E.g. suppose your 256-bit key has only
> 128-bits of entropy (but is pseudorandom of course).
>
> I also add that one of the security proof for TLS
> (http://eprint.iacr.org/2013/339) relies on some assumptions PRF-ODH and a
> similarly-named problem Strong DH from (http://eprint.iacr.org/1999/007)
> which may have may relationship with the q-strong DH problem.  For
example,
> I've got a hunch that if we assume the variant of the q-strong DHP is
hard,
> then I think that imply the hardness of PRF-ODH and the ABR StrongDH
> problems.  Because of the short time frame, I sharing this thought before
> really confirming it.
>
> Of course, this desideratum is a theoretical one, but some of the other
> desiderata seem to be better-safe-than-sorry or helpful to make
> implementations more robust, so I wanted to add it the list.
>
> Also, Certicom has some IPR around the method.
>
> Best regards,
>
> Daniel Brown
> Research In Motion Limited
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

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

<p dir=3D"ltr"><br>
On Aug 8, 2014 12:17 PM, &quot;Dan Brown&quot; &lt;<a href=3D"mailto:dbrown=
@certicom.com">dbrown@certicom.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Three reasons that static ECDH key agreement should still be considere=
d in<br>
&gt; the CFRG curve recommendation:<br>
&gt;<br>
&gt; 1. Existing versions of TLS allow static DH for sever authentication, =
and<br>
&gt; allow ephemeral re-use in DHE, and if I understand, these allowance wo=
uld<br>
&gt; carry if implemented with ECC. =C2=A0Also, IKE allows ephemeral reuse.=
<br>
&gt; 2. Other IETF protocols using ECC, e.g. CMS, may require static DH key=
s, due<br>
&gt; to less interaction being available. =C2=A0Perhaps JOSE uses static EC=
DH too?<br>
&gt; 3. Perhaps future versions of TLS will drop signature uses for<br>
&gt; authentication, and instead use static DH keys for authentication.<br>
&gt; (Something like in MQV or some other key agreement scheme.) Or, maybe =
IETF<br>
&gt; will later adopt protocols that use the esoteric blinding properties o=
f raw<br>
&gt; static DH.<br>
&gt;<br>
&gt; So, I think it desirable for the choice of curve to be one that fares =
well<br>
&gt; static DH keys are used.<br>
&gt;</p>
<p dir=3D"ltr">This was mentioned prior to the CFRG interim. As I pointed o=
ut at that meeting, hashing points renders the paper of Cheon irrelevent.</=
p>
<p dir=3D"ltr">&gt; In particular, there are two variants of the Diffie--He=
llman problem related<br>
&gt; to static DH keys whose difficulty potentially varies with the curve:<=
br>
&gt;<br>
&gt; 1. The static DHP from (<a href=3D"http://eprint.iacr.org/2004/306">ht=
tp://eprint.iacr.org/2004/306</a>). =C2=A0If the static DHP<br>
&gt; is easy for a given target public key, then the static DH applications=
 above<br>
&gt; are insecure for the target public key.<br>
&gt; 2. A variant (*) of the q-strong DHP from (<a href=3D"http://eprint.ia=
cr.org/2004/171">http://eprint.iacr.org/2004/171</a>).<br>
&gt; If the q-strong DHP is hard, then static DH applications above resist =
a<br>
&gt; total break attack in the sense that it is infeasible the adversary to=
<br>
&gt; extract the static DH private key.<br>
&gt;<br>
&gt; (*) the variant I have in mind is one in which that adversary succeeds=
 when<br>
&gt; it recovers the static private key, rather than performing some specia=
l<br>
&gt; operation with it.<br>
&gt;<br>
&gt; An algorithm from the 2004/306 eprint, and extended by Cheon, has oppo=
site<br>
&gt; effects on these two problem: making the q-strong easier, but providin=
g<br>
&gt; evidence that the static DHP is hard. =C2=A0This effectiveness algorit=
hm depends<br>
&gt; on the factorization of n-1 and n+1 where n is the large prime factor =
in the<br>
&gt; order of the group. I think it is desirable for both of these problem =
to be<br>
&gt; hard, and I think that if n has the right properties, then we can get =
good<br>
&gt; assurances for both problems.<br>
&gt;<br>
&gt; If I had to choose which of the two problems to accommodate, I&#39;d c=
hoose the<br>
&gt; q-strong DHP, because one can just make a strong, but plausible assump=
tion<br>
&gt; that the static DHP is hard. =C2=A0In other words, instead of assuming=
 that the<br>
&gt; DHP is hard, as usual, we further assume that the DHP is hard for ever=
y<br>
&gt; single key, i.e. the DHP has no negligible fraction weak keys. =C2=A0A=
ssuming<br>
&gt; this covers that case that your static DHP has enough entropy to be<br=
>
&gt; unguessable, but not enough to escape falling into a subset that is<br=
>
&gt; negligible fraction of all keys. =C2=A0E.g. suppose your 256-bit key h=
as only<br>
&gt; 128-bits of entropy (but is pseudorandom of course).<br>
&gt;<br>
&gt; I also add that one of the security proof for TLS<br>
&gt; (<a href=3D"http://eprint.iacr.org/2013/339">http://eprint.iacr.org/20=
13/339</a>) relies on some assumptions PRF-ODH and a<br>
&gt; similarly-named problem Strong DH from (<a href=3D"http://eprint.iacr.=
org/1999/007">http://eprint.iacr.org/1999/007</a>)<br>
&gt; which may have may relationship with the q-strong DH problem. =C2=A0Fo=
r example,<br>
&gt; I&#39;ve got a hunch that if we assume the variant of the q-strong DHP=
 is hard,<br>
&gt; then I think that imply the hardness of PRF-ODH and the ABR StrongDH<b=
r>
&gt; problems. =C2=A0Because of the short time frame, I sharing this though=
t before<br>
&gt; really confirming it.<br>
&gt;<br>
&gt; Of course, this desideratum is a theoretical one, but some of the othe=
r<br>
&gt; desiderata seem to be better-safe-than-sorry or helpful to make<br>
&gt; implementations more robust, so I wanted to add it the list.<br>
&gt;<br>
&gt; Also, Certicom has some IPR around the method.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Daniel Brown<br>
&gt; Research In Motion Limited<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>

--20cf303a2bbbedf24b05002336d2--


From nobody Fri Aug  8 13:43:24 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 E79EF1A0417 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 13:43:22 -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 pF1NTiJYtTw3 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 13:43:20 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 56B9E1A04B1 for <cfrg@irtf.org>; Fri,  8 Aug 2014 13:43:19 -0700 (PDT)
Received: from xct103cnc.rim.net ([10.65.161.203]) by mhs210cnc.rim.net with ESMTP/TLS/AES128-SHA; 08 Aug 2014 16:43:19 -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; Fri, 8 Aug 2014 16:43:18 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Extra ECC desideratum: hard static DH and q-strong DH problems
Thread-Index: Ac+zO2olqd6fcUhCTcKUsaKirkBrtwAJRbgAAAc48XA=
Date: Fri, 8 Aug 2014 20:43:17 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CC9EC5@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5CC9D28@XMB116CNC.rim.net> <CACsn0cnuowCYmpnikmO094Qzw1yvCa_QognhTJTBe1KmSNz=DA@mail.gmail.com>
In-Reply-To: <CACsn0cnuowCYmpnikmO094Qzw1yvCa_QognhTJTBe1KmSNz=DA@mail.gmail.com>
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_0073_01CFB327.DB0A8570"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/RZOQ5FhfeT0cSfZVEb0fzvyMQYI
Subject: Re: [Cfrg] Extra ECC desideratum: hard static DH and q-strong DH problems
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 20:43:23 -0000

------=_NextPart_000_0073_01CFB327.DB0A8570
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: 7bit


From: Watson Ladd [mailto:watsonbladd@gmail.com]
>> On Aug 8, 2014 12:17 PM, "Dan Brown" <dbrown@certicom.com> wrote:
>
> Three reasons that static ECDH key agreement should still be considered in
> the CFRG curve recommendation:
>
> 1. Existing versions of TLS allow static DH for sever authentication, and
> allow ephemeral re-use in DHE, and if I understand, these allowance would
> carry if implemented with ECC.  Also, IKE allows ephemeral reuse.
> 2. Other IETF protocols using ECC, e.g. CMS, may require static DH keys, due
> to less interaction being available.  Perhaps JOSE uses static ECDH too?
> 3. Perhaps future versions of TLS will drop signature uses for
> authentication, and instead use static DH keys for authentication.
> (Something like in MQV or some other key agreement scheme.) Or, maybe IETF
> will later adopt protocols that use the esoteric blinding properties of raw
> static DH.
>
> So, I think it desirable for the choice of curve to be one that fares well
> static DH keys are used.
>

I don't remember if I mentioned all of the above previously CFRG, but I 
thought it worth reviewing.

>> This was mentioned prior to the CFRG interim. As I pointed out at that 
>> meeting, hashing points renders the paper of Cheon irrelevent.

Below this paragraph, my previous email mentioned a few ideas and a few other 
papers, not just the paper of Cheon.  Specifically, the text below tries to 
explain the relevance of Cheon's algorithm towards theoretical security 
assumptions about hashed Diffie--Hellman, not towards a practical attack. 
Should I assume you think all of the text, or at least its gist, below is 
irrelevant?

> In particular, there are two variants of the Diffie--Hellman problem related
> to static DH keys whose difficulty potentially varies with the curve:
>
> 1. The static DHP from (http://eprint.iacr.org/2004/306).  If the static DHP
> is easy for a given target public key, then the static DH applications above
> are insecure for the target public key.
> 2. A variant (*) of the q-strong DHP from (http://eprint.iacr.org/2004/171).
> If the q-strong DHP is hard, then static DH applications above resist a
> total break attack in the sense that it is infeasible the adversary to
> extract the static DH private key.
>
> (*) the variant I have in mind is one in which that adversary succeeds when
> it recovers the static private key, rather than performing some special
> operation with it.
>
> An algorithm from the 2004/306 eprint, and extended by Cheon, has opposite
> effects on these two problem: making the q-strong easier, but providing
> evidence that the static DHP is hard.  This effectiveness algorithm depends
> on the factorization of n-1 and n+1 where n is the large prime factor in the
> order of the group. I think it is desirable for both of these problem to be
> hard, and I think that if n has the right properties, then we can get good
> assurances for both problems.
>
> If I had to choose which of the two problems to accommodate, I'd choose the
> q-strong DHP, because one can just make a strong, but plausible assumption
> that the static DHP is hard.  In other words, instead of assuming that the
> DHP is hard, as usual, we further assume that the DHP is hard for every
> single key, i.e. the DHP has no negligible fraction weak keys.  Assuming
> this covers that case that your static DHP has enough entropy to be
> unguessable, but not enough to escape falling into a subset that is
> negligible fraction of all keys.  E.g. suppose your 256-bit key has only
> 128-bits of entropy (but is pseudorandom of course).
>
> I also add that one of the security proof for TLS
> (http://eprint.iacr.org/2013/339) relies on some assumptions PRF-ODH and a
> similarly-named problem Strong DH from (http://eprint.iacr.org/1999/007)
> which may have may relationship with the q-strong DH problem.  For example,
> I've got a hunch that if we assume the variant of the q-strong DHP is hard,
> then I think that imply the hardness of PRF-ODH and the ABR StrongDH
> problems.  Because of the short time frame, I sharing this thought before
> really confirming it.
>
> Of course, this desideratum is a theoretical one, but some of the other
> desiderata seem to be better-safe-than-sorry or helpful to make
> implementations more robust, so I wanted to add it the list.
>
> Also, Certicom has some IPR around the method.
>
> Best regards,
>
> Daniel Brown
> Research In Motion Limited
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

------=_NextPart_000_0073_01CFB327.DB0A8570
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
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEF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3IHNnTMvEMmGyLxI
3ehuHiorG3xNbsqT+ZjQWSfOJrBOMpeXLOpHeF2k+C7Tx+QvEPfAYkUfIfxWspCNUSBppWkOGfvR
lmuYQ/eHEmnTFBEa3kgduGzjrbWyuB4uE7rbT8qWJsb4fl0D8rPGP6NTDUxhkTNboQAAAAAAAA==

------=_NextPart_000_0073_01CFB327.DB0A8570--


From nobody Fri Aug  8 14:38:38 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 7D0391A0AE8 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 14:38:32 -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 l5gRa0pZuoUl for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 14:38:30 -0700 (PDT)
Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0FD51A00E2 for <cfrg@irtf.org>; Fri,  8 Aug 2014 14:38:29 -0700 (PDT)
Received: by mail-wg0-f51.google.com with SMTP id b13so6117780wgh.10 for <cfrg@irtf.org>; Fri, 08 Aug 2014 14:38:28 -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=8hOveBR7oKmu1LUnhz47BKYMuNZxJYV6Be+r/54RBJI=; b=M1Pb9KicuLpyr6FWzleJwdOrgSDjXl6+pmnsO5naVWHJZ0sYZ4zE4KoS5sI8SNcISv sNF1bNAHJliH2C1THIU64HdjmizH5h+NTzm5vxVafMmogzQ46J526gSUYiukhHTujTA9 ep3/FeK4x/XQQK+cG8avknxBusIGN6j5y7iMBEdKiLonKzJtPJ9VfhFCSWTabvlycAvi sKau4FZ0VmxY5m71T9g/fJx8nO8W7NCGuoZfIqqiyEcqCRMJIKQF8VZ7F+0fa0/bV0sh iarUVFouHsh/T0tx1+zfKrwQeRGXZa4qF11CP2O+JLun3D2IkNoANT4RJzZlSpu2ibIG PKTw==
X-Received: by 10.194.219.225 with SMTP id pr1mr35704199wjc.34.1407533908469;  Fri, 08 Aug 2014 14:38:28 -0700 (PDT)
Received: from [192.168.1.100] (bzq-84-109-50-18.red.bezeqint.net. [84.109.50.18]) by mx.google.com with ESMTPSA id w6sm20018579wjq.39.2014.08.08.14.38.27 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 14:38:28 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <20140808133614.GA24182@LK-Perkele-VII>
Date: Sat, 9 Aug 2014 00:38:27 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <026EAED2-09A4-48E8-9DA9-DC533151720D@gmail.com>
References: <CACsn0cmUg1A1wxgOuubfPNg2XJGVq6BNFkARkv_eCSYqvqWRCA@mail.gmail.com> <20140808133614.GA24182@LK-Perkele-VII>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/XQ7StOedAMHFCOvuDL9wiM5HnK0
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] ChaCha20
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 21:38:32 -0000

On Aug 8, 2014, at 4:36 PM, Ilari Liusvaara =
<ilari.liusvaara@elisanet.fi> wrote:

> On Thu, Aug 07, 2014 at 06:23:05PM -0700, Watson Ladd wrote:
>> Dear all,
>> In the past 6 years only one cryptanalysis result has been published
>> against ChaCha, and that was against a variant before the final
>> version was announced. While Salsa20 was an eStream finalist, ChaCha
>> wasn't.
>>=20
>> I'd like to see some more cryptanalytic attention on ChaCha: in
>> particular are the differentials from "Latin Dances" still valid for
>> the published version of ChaCha? What are the best differential
>> characteristics? And can we figure this out quickly?
>=20
> Trying to find paper about "Latin Dances", I ran into these:
>=20
> https://eprint.iacr.org/2007/472
> https://eprint.iacr.org/2012/065
>=20
> Both seem to analyze final version of Chacha, and seemingly make
> worse job than on Salsa (e.g. the first "breaks" Salsa8, but not
> Chacha8).

Thanks, Ilari

The second of those is not (yet) referenced in the draft. I will add =
this to the next revision.

Yoav=


From nobody Fri Aug  8 15:36:35 2014
Return-Path: <stebila@qut.edu.au>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E69F61A0107 for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 15:36:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.598
X-Spam-Level: 
X-Spam-Status: No, score=-0.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, J_CHICKENPOX_22=0.6, 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 XGqucUahkHtb for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 15:36:32 -0700 (PDT)
Received: from ex10ed04.qut.edu.au (ex10ed04.qut.edu.au [131.181.191.17]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD1941A00F2 for <cfrg@ietf.org>; Fri,  8 Aug 2014 15:36:30 -0700 (PDT)
Received: from EX10HT04.qut.edu.au (131.181.108.102) by ex10ed04.qut.edu.au (131.181.191.17) with Microsoft SMTP Server (TLS) id 14.3.123.3; Sat, 9 Aug 2014 08:36:26 +1000
Received: from EX10MB4.qut.edu.au ([169.254.6.9]) by EX10HT04.qut.edu.au ([131.181.108.102]) with mapi id 14.03.0158.001; Sat, 9 Aug 2014 08:36:26 +1000
From: Douglas Stebila <stebila@qut.edu.au>
To: "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: Curves as groups
Thread-Index: AQHPs1kvhy7XhGBvZEi1zyqXq6aFeA==
Date: Fri, 8 Aug 2014 22:36:25 +0000
Message-ID: <0C413841-D0E9-4D74-B390-8996C7EE77D2@qut.edu.au>
Accept-Language: en-CA, en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [131.181.118.223]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <9F97B71E92B93D46944FF71EC2CAA2D3@exchange.qut.edu.au>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/WSGVmmMSEW2J9jyamMgoXevl_k4
Subject: [Cfrg] Curves as groups
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Aug 2014 22:36:34 -0000

Do members of CFRG think it important that the curve(s) we recommend be usa=
ble as arbitrary groups?  By this I mean that the implementations readily e=
xpose both a scalar point multiplication operation and a point addition ope=
ration. =20

Utility as arbitrary groups would I think imply criteria R3 (Desired: re-us=
e components between signatures and key exchange algorithms) but the revers=
e is not necessarily true. =20

Curve25519+Ed25519 together give key exchange and signatures, but are high-=
level cryptographic functions, not groups.  The Curve25519 private API has =
scalar point multiplication functions but not point addition; the Ed25519 p=
rivate API has both.  The NUMS library has public interfaces for scalar poi=
nt multiplication and kP+lQ, but arbitrary point addition is only in the pr=
ivate API with a disclaimer on context of use.  To what extent are these a =
choice by implementers to only implement the functions needed to achieve th=
eir desired cryptographic scheme versus inherent to the mathematical design=
?

While criteria R3 will ensure we have something that we can use for key exc=
hange and signatures immediately, I think it would be good for cryptographe=
rs to also have good, plain old groups from elliptic curves, for whatever n=
ew schemes we may invent or try to implement over the next 10 years.  Prior=
 IETF initiatives (RFC 3526, RFC 5114) seem to have focused on groups rathe=
r than key exchange / signature functions.

Douglas=


From nobody Fri Aug  8 18:15: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 6E2F31A02FB for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 18:15:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.156
X-Spam-Level: **
X-Spam-Status: No, score=2.156 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, J_CHICKENPOX_22=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 z4ECkja3g0He for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 18:15:01 -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 6D6D31A02F9 for <cfrg@ietf.org>; Fri,  8 Aug 2014 18:15:01 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 1C8C83AA27; Fri,  8 Aug 2014 18:14:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407546847; bh=/Q7Fu1xe46S5+BnT66EUjsO9dmpspWQP5XcK44vg8gM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=P3l6sloLOt6uVeCjimxWLQa2hGaBE+npAgW+/yXzyv0h/rOZL6g5/ge1lNZViscrB /98mzmSfr2urda8WL3taCw6ZdHoJ7XI0LpWn07rNMZQATHqTYlNCr4YpYdDFQwze67 sIGzL15bBl8req8JAtbFwXj1aMDwvV6JsNlOvDeQ=
Content-Type: multipart/alternative; boundary="Apple-Mail=_9D3EC503-1DF8-475D-A29A-31E66FC6FC50"
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <0C413841-D0E9-4D74-B390-8996C7EE77D2@qut.edu.au>
Date: Fri, 8 Aug 2014 18:14:58 -0700
Message-Id: <798E796F-EE52-4EC5-A003-1C1EF07C2AA9@shiftleft.org>
References: <0C413841-D0E9-4D74-B390-8996C7EE77D2@qut.edu.au>
To: Douglas Stebila <stebila@qut.edu.au>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/RoUNnyD4WXob_cGzHOlf5CyhJdo
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Curves as groups
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Aug 2014 01:15:03 -0000

--Apple-Mail=_9D3EC503-1DF8-475D-A29A-31E66FC6FC50
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Aug 8, 2014, at 3:36 PM, Douglas Stebila <stebila@qut.edu.au> =
wrote:
>=20
> Do members of CFRG think it important that the curve(s) we recommend =
be usable as arbitrary groups?  By this I mean that the implementations =
readily expose both a scalar point multiplication operation and a point =
addition operation. =20

I think that=E2=80=99s a good idea.

> Utility as arbitrary groups would I think imply criteria R3 (Desired: =
re-use components between signatures and key exchange algorithms) but =
the reverse is not necessarily true. =20

Right.  For example, you can do Schnorr signatures with Curve25519=E2=80=99=
s scalar multiplication API, so long as the signature is in (kG, s) =
form.

> Curve25519+Ed25519 together give key exchange and signatures, but are =
high-level cryptographic functions, not groups.  The Curve25519 private =
API has scalar point multiplication functions but not point addition; =
the Ed25519 private API has both.  The NUMS library has public =
interfaces for scalar point multiplication and kP+lQ, but arbitrary =
point addition is only in the private API with a disclaimer on context =
of use.  To what extent are these a choice by implementers to only =
implement the functions needed to achieve their desired cryptographic =
scheme versus inherent to the mathematical design?

It=E2=80=99s some and some.  Exposing only a kP+lQ allows you to expose =
an API that deals only with affine points, or even only serialized =
points, which avoids committing to the internal point representation =
format.  Furthermore, the curve might be specified one way for safety or =
clarity, but implemented another way for speed.

The MSR NUMS library operates on Twisted Edwards curves over a 3 mod 4 =
field, which have an incomplete addition formula.  This formula can be =
used safely only if the protocol is is designed to avoid the troublesome =
points, eg by clearing the cofactor.  The kP+lQ actually computes k(4P) =
+ l(4Q) or something similar to avoid this problem.  So there=E2=80=99s =
a good reason not to expose the point addition function in the API.

Likewise, my own curve, Ed448-Goldilocks, is specified as an Edwards =
curve.  But internally my implementation uses an isogenous twisted =
Edwards curve for speed.  The isogeny clears the cofactor, so this =
approach is also completely safe.  The library doesn=E2=80=99t need to =
add points on the untwisted curve, so it doesn=E2=80=99t have that API, =
but it would be easy and safe to write if it were needed.  By the way, =
specifying untwisted and implementing twisted is a carefully thought out =
strategy, and I would recommend adopting it for any CFRG-approved =
cofactor-4 curves; see http://eprint.iacr.org/2014/027 .

> While criteria R3 will ensure we have something that we can use for =
key exchange and signatures immediately, I think it would be good for =
cryptographers to also have good, plain old groups from elliptic curves, =
for whatever new schemes we may invent or try to implement over the next =
10 years.  Prior IETF initiatives (RFC 3526, RFC 5114) seem to have =
focused on groups rather than key exchange / signature functions.
>=20
> Douglas

Agreed.

Cheers,
=E2=80=94 Mike


--Apple-Mail=_9D3EC503-1DF8-475D-A29A-31E66FC6FC50
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;"><br><div><blockquote type=3D"cite"><div>On Aug 8, =
2014, at 3:36 PM, Douglas Stebila &lt;<a =
href=3D"mailto:stebila@qut.edu.au">stebila@qut.edu.au</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div>Do members of =
CFRG think it important that the curve(s) we recommend be usable as =
arbitrary groups? &nbsp;By this I mean that the implementations readily =
expose both a scalar point multiplication operation and a point addition =
operation. &nbsp;<br></div></blockquote><div><br></div><div>I think =
that=E2=80=99s a good idea.</div><br><blockquote =
type=3D"cite"><div>Utility as arbitrary groups would I think imply =
criteria R3 (Desired: re-use components between signatures and key =
exchange algorithms) but the reverse is not necessarily true. =
&nbsp;<br></div></blockquote><div><br></div><div>Right. &nbsp;For =
example, you can do Schnorr signatures with Curve25519=E2=80=99s scalar =
multiplication API, so long as the signature is in (kG, s) =
form.</div><br><blockquote type=3D"cite"><div>Curve25519+Ed25519 =
together give key exchange and signatures, but are high-level =
cryptographic functions, not groups. &nbsp;The Curve25519 private API =
has scalar point multiplication functions but not point addition; the =
Ed25519 private API has both. &nbsp;The NUMS library has public =
interfaces for scalar point multiplication and kP+lQ, but arbitrary =
point addition is only in the private API with a disclaimer on context =
of use. &nbsp;To what extent are these a choice by implementers to only =
implement the functions needed to achieve their desired cryptographic =
scheme versus inherent to the mathematical =
design?<br></div></blockquote><div><br></div><div>It=E2=80=99s some and =
some. &nbsp;Exposing only a kP+lQ allows you to expose an API that deals =
only with affine points, or even only serialized points, which avoids =
committing to the internal point representation format. =
&nbsp;Furthermore, the curve might be specified one way for safety or =
clarity, but implemented another way for =
speed.</div><div><br></div><div>The MSR NUMS library operates on Twisted =
Edwards curves over a 3 mod 4 field, which have an incomplete addition =
formula. &nbsp;This formula can be used safely only if the protocol is =
is designed to avoid the troublesome points, eg by clearing the =
cofactor. &nbsp;The kP+lQ actually computes k(4P) + l(4Q) or something =
similar to avoid this problem. &nbsp;So there=E2=80=99s a good reason =
not to expose the point addition function in the =
API.</div><div><br></div><div>Likewise, my own curve, Ed448-Goldilocks, =
is specified as an Edwards curve. &nbsp;But internally my implementation =
uses an isogenous twisted Edwards curve for speed. &nbsp;The isogeny =
clears the cofactor, so this approach is also completely safe. &nbsp;The =
library doesn=E2=80=99t need to add points on the untwisted curve, so it =
doesn=E2=80=99t have that API, but it would be easy and safe to write if =
it were needed. &nbsp;By the way, specifying untwisted and implementing =
twisted is a carefully thought out strategy, and I would recommend =
adopting it for any CFRG-approved cofactor-4 curves; see&nbsp;<a =
href=3D"http://eprint.iacr.org/2014/027">http://eprint.iacr.org/2014/027</=
a>&nbsp;.</div><br><blockquote type=3D"cite"><div>While criteria R3 will =
ensure we have something that we can use for key exchange and signatures =
immediately, I think it would be good for cryptographers to also have =
good, plain old groups from elliptic curves, for whatever new schemes we =
may invent or try to implement over the next 10 years. &nbsp;Prior IETF =
initiatives (RFC 3526, RFC 5114) seem to have focused on groups rather =
than key exchange / signature =
functions.<br><br>Douglas<br></div></blockquote><br></div><div>Agreed.</di=
v><div><br></div><div>Cheers,</div><div>=E2=80=94 =
Mike</div><br></body></html>=

--Apple-Mail=_9D3EC503-1DF8-475D-A29A-31E66FC6FC50--


From nobody Fri Aug  8 18:38:52 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 E6F011A035A for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 18:38:50 -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 5nfeXEp7thmr for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 18:38:48 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id D82041A035C for <cfrg@irtf.org>; Fri,  8 Aug 2014 18:38:47 -0700 (PDT)
Received: (qmail 16949 invoked by uid 1011); 9 Aug 2014 01:38:46 -0000
Received: from unknown (unknown) by unknown with QMTP; 9 Aug 2014 01:38:46 -0000
Received: (qmail 13848 invoked by uid 1001); 9 Aug 2014 01:38:35 -0000
Date: 9 Aug 2014 01:38:35 -0000
Message-ID: <20140809013835.13846.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <CA+Vbu7wwSUOJgHmGZu3ii1sn9ZfmqsWUHimYVd3wNX=RgxbaBg@mail.gmail.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6Nq1C5uzns8RN-NZtzg911bAPxE
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: Sat, 09 Aug 2014 01:38:51 -0000

Benjamin Black writes:
> The goal is matching security levels of the suite components as designed

I understand that you have this goal. What I'm saying is that---never
mind the disputes about whether this goal is appropriate---pairing
AES-128 with 256-bit ECC is failing to achieve this goal. It isn't even
close. Compared to the quantitative security level of 256-bit ECC, there
are _huge_ and undisputed weaknesses in AES-128. Similar comments apply
to AES-256 and 512-bit ECC.

> 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.

Replacing AES-128 with another 128-bit cipher, or replacing AES-256 with
another 256-bit cipher, has no effect on my point here.

Blumenthal, Uri - 0558 - MITLL writes:
> "Multiple-key attacks" reference please?

The central idea comes from Hellman's classic "Cryptanalytic time-memory
trade-off". After Hellman there were many followup papers on improved
algorithms that exploit multiple inputs ("time-memory-data tradeoffs"),
reduce precomputation, reduce communication cost, reduce other
overheads, etc. Public multiple-target attacks tend to use Oechslin's
"rainbow tables", but attackers carrying out mass exploitation obtain
lower cost from Rivest's "distinguished points".

The word "tradeoff" turned out to be misleading in this context: a
properly optimized multiple-target parallel machine using these ideas is
fundamentally better for the attacker than any single-target machine can
possibly be. http://cr.yp.to/snuffle/bruteforce-20050425.pdf contains a
detailed cost evaluation and various references. 

Peter Gutmann writes:
> a custom device with 2^42 bytes of memory and 2^32 keysearch engines
> that required 2^36 inputs. That's 100 terabytes of RAM, 4 billion
> keysearch engines, and around 70 billion sets of input data.
> I'm not overly concerned.

http://blog.cr.yp.to/20140602-saber.html shows how we put together a
cluster from off-the-shelf components with around 1TB RAM and more than
100000 ALUs, each running at nearly 1GHz, for a total of just 50000 EUR.
You're talking about 100x more RAM and 40000x more ALUs, raising the
cost to about 2 billion EUR, but this is well within the supercomputing
budget of some existing adversaries. At that scale it's also no problem
to build application-specific chips. The attack parallelizes without
trouble and has very low communication costs.

As for "sets of input data": If you check what the paper actually says,
you'll see that this example is targeting 1024 keys. The "inputs" are
generated internally. Even for such a small number of keys, the
effective security level of AES-128 drops from 2^128 to just 2^118.

More importantly, RFC 7258 says

   The IETF community has expressed strong agreement that PM [pervasive
   monitoring] is an attack that needs to be mitigated where possible,
   via the design of protocols that make PM significantly more expensive
   or infeasible.
   
Surely you're not arguing that 70 billion encryptions would be
_infeasible_ (or even hard!) for this type of attacker to collect---and
the security consequences seem to be something where IETF needs advice
from IRTF, specifically CFRG.

ECC doesn't have the same weakness. One way to think about this is that
"random self-reduction" already turns one ECC target into many targets
(see http://cr.yp.to/talks/2007.09.03-2/slides-djb-20070903-2-a4.pdf),
producing square-root attacks; this is the reason that ECC keys are
chosen to be larger than 128 bits in the first place. For the same
reason, having more ECC targets doesn't improve the attacker's success
chance---the attacker already had as many targets as desired---while
having more AES targets makes an important difference in security level.

Paul Lambert writes:
> So, would this attack be mitigated by a change in algorithm mode?

Sufficient input randomization would stop the basic AES attack---but it
would also make the cryptography unnecessarily complex, unnecessarily
hard to test, and unnecessarily error-prone, not to mention issues of
randomness as a covert channel (see http://eprint.iacr.org/2014/438 and
http://blog.cr.yp.to/20140205-entropy.html), performance problems, etc.
Switching to a larger cipher key is almost certainly cheaper, and is
clearly much more robust system engineering.

More to the point, we _already have_ standard, widely deployed, provably
secure cipher modes that provide predictable input blocks to ciphers
(such as input block 0 in counter mode), and it's not as if these modes
are going away. Anyone proposing AES-128 as part of a general-purpose
"2^128 security" cipher suite is ignoring the undisputed fact that
AES-128 used in these standard modes will leak some user keys to an
attack costing vastly less than 2^128.

Dan Brown writes:
> It seems to me that even in the single-key setting, a 256-bit ECC key
> fares better than a 128-bit AES key, because of the tradeoff between
> computation and success rate.

Correct. One reference for this success-rate comparison is

   http://cr.yp.to/talks/2005.09.19/slides.pdf

particularly the last slide. This is also what I was alluding to when I
mentioned "lucky attacks" in my CFRG slides.

---Dan


From nobody Fri Aug  8 20:06:59 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 2D11D1A03FF for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 20:06:55 -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 ZHkeK83DSlJH for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 20:06:53 -0700 (PDT)
Received: from nm15-vm4.access.bullet.mail.gq1.yahoo.com (nm15-vm4.access.bullet.mail.gq1.yahoo.com [216.39.63.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E96B11A003A for <cfrg@irtf.org>; Fri,  8 Aug 2014 20:06:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1407553612; bh=/dgSE3UNPUFf3SL5VDmKw2kVuu32uKa72CeuDIXtcOg=; 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=dCP+DxIiXrQKY7EJ+wkZiXSEaXdsT6I99wnCyUItwyiq1wN2ViS2AyBZEOf5wPxhAGCEslwMedSfZ9qYEE9vqLKDpHddTiPHHeEB64s4TS9JxcLmB1alMhaRdm1FnVNvfWQWSL0A43GLRooqdxxF5VmbYfW9tN9JCQGkcCUqjvqcxL5M0PryfRavkpxuTq9qldFREi++rm+yO4ZmGw0d8p0JRM2opySJ2LSR+Ds07ic82gVgtoZBftReDmsAjJchNtLqwl3vtC3OP7aG/TgGPYGHCYcbuodYlJ791K8UH5oEA4DpPjPi8bwZUQv/X1+nzhYbJ4aHtbIEokMT+CTY2w==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=gR0zpgrmNiT0mDt4hjMfC/kcLQuzgCm4HJh9as/T2m2s/zplQVkHUBzJNPC6006BakF/K1igpHiC4u8fI8cy5bXYt6TZVSCImewFdd6KKHE+3m5Ixnz1S6t8kU2wGn0or8RAqX+GNH9AwUaQ6cVafmv9XVsDWENnvLu+WPDZGzhJw/LzLELpC/x+wE/9RK1hjiTGealV4GOpCmW1a3YpvCCZMuewGcZN+S51GhP72OyRdQ1cvOoIG5UOcOW1BY+SsTCTauFS9pCHiuFn7vyCD/1eB7uQ60i+rqjdyLctCSHvI9hfaq0HWG4QuiEza6Nm6RAwvOpLrNyg+6gRf0+T0Q==;
Received: from [216.39.60.169] by nm15.access.bullet.mail.gq1.yahoo.com with NNFMP; 09 Aug 2014 03:06:52 -0000
Received: from [67.195.23.148] by tm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 09 Aug 2014 03:06:52 -0000
Received: from [127.0.0.1] by smtp120.sbc.mail.gq1.yahoo.com with NNFMP; 09 Aug 2014 03:06:52 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1407553612; bh=/dgSE3UNPUFf3SL5VDmKw2kVuu32uKa72CeuDIXtcOg=; 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=LtN2689j2a0TYOzgkqErgTU3k0PvBmq5xfEDDWUxftr6GSk2Kht9/Fxg7IAlAItUCd0KgFr5gdVC5eGgrqVAxQ64ohnTxv58gkTy4LJ0aCkyobuugSQuq5PmtyVQ9FWzVskqARWN/ptgZqbihCGLJ2j8xwOGI/B+DYqlyWPGLWI=
X-Yahoo-Newman-Id: 339645.43189.bm@smtp120.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: 4E82ZIoVM1m.FUiehYYaqTOjg8RRpZ.BtP7jHma2.f9OZi7 VkZfP57qwjuUiPKK7CU6YjIS4WhCDWIZFjOsp5FFd3w53HmbqXxbuvNWwRH0 i21cqGSpzQhhQKJqnp9g4v6t5fCeEb3rYWi2VNKHxtfOX1omLm2d0OdFMhoF pImbOd9f53S7m6xlM1zfOiivEgztlmG1iqKlDenw6vuiBfKhTs5fq6KxnigE 9NSUSoMPu9ehNCk1XIVzMe.ygcIW6LuzFTfbzJiCA2ow1Z_AgcBKS6YwCpHg MSWaIDTHsdT8Pv2nxG97ckzrRy7Byn6ed9HujZQojcRuHk3q6dW7eTA8JyLv Vimv637YHyWk05InqsiExhwtzSjMMdP2bklfUC.xj8dnjcZW_aVxGNQqfWfo AyU.C0lrSRPgEaD2uxtqTf5nYVBtgqdBoOpR8XrzD5TJWZGMh.k31XQgo5bw ZhqKOP7aMMuWfeHO8_h5Ofa61Cpdej4GB3e8SI7xwt7wpa8azIWhzbcTK5u7 R3WPg4RFmCIjzNCx7fQzquGrLEqXjBmgprnu6edXKZ8ntm18R18iYD4KBlb. TSWkIvOaqpcAwwQ0QAevantSXOY3hmM_4.QGxlQVT8lSBJ5IZinTOX9DCFcd V460p0SaZWKrtqOVF8Of4v2N07l5vdI2_qcgwLdxr821ba2SHDE00
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53E5904B.1020709@sbcglobal.net>
Date: Fri, 08 Aug 2014 20:06:51 -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: <20140808180623.24424.qmail@cr.yp.to>
In-Reply-To: <20140808180623.24424.qmail@cr.yp.to>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/UoiABxZiV3q2n2B9Nkk9WWgnmHc
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Aug 2014 03:06:55 -0000

On 8/8/14 11:06 AM, D. J. Bernstein wrote:
> Brian LaMacchia writes:
> <snip>
>> 4. When evaluating candidate curves for use in ECDHE, "ephemeral"
>> should be defined as "use exactly once in a key exchange" (or for TLS
>> "use in exactly one handshake").
> https://www.imperialviolet.org/2013/06/27/botchingpfs.html explains how
> keys can be kept around for months---despite meeting your definition of
> "ephemeral". These keys are clearly _not_ ephemeral and do _not_ provide
> perfect forward secrecy.
>
> As I explained in a previous message, "use for exactly one session" is
> the wrong policy; "use for exactly one connection" is the wrong policy;
> and Microsoft's current reuse-for-two-hours is also the wrong policy.
> These all fail to accomplish what the user wants, namely for keys to be
> erased very soon---I suggested 10 seconds as an upper limit.
> <snip>
> ---Dan
>
Dan is actually doing something much more fundamental that one might at 
first think.  He is changing the threat model.

Most people probably have the idea that ephemeral keys are more secure 
that longer term keys because they limit they amount of data relating to 
a particular key that a passive eavesdropper has access to, and thus 
make a cryptanalytic attack harder.  (I had that idea.)  But Dan is 
changing the treat model.    The threat is an attacker who can from time 
to time grab some amount of system state.  By Little's Law, the mean 
number of sensitive keys in the system is the throughput (sessions 
established per second) times the mean residence time of each key (in 
seconds), so the shorter the residence time, the fewer keys are there to 
get snitched.

Note that this depends on attacks grabbing some system info from time to 
time, perhaps by something like Heartbleed.  It also applies to things 
like the system state getting paged to swap, or written out in a crash 
dump.  It does not apply to an attacker who has thoroughly gotten 
control of the system and can grab and export data from every crypto 
operation.  In that scenario, the attacker gets everything, and 
shortening the residence time provides no benefit. (This is not an 
argument against Dan's proposal, rather just an observation.)

      --David Jacobson





From nobody Fri Aug  8 21:31:31 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 842481A0AAD for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 21:31:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.677
X-Spam-Level: 
X-Spam-Status: No, score=-1.677 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RAZOR2_CHECK=0.922, RCVD_IN_DNSWL_LOW=-0.7, 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 XQY7l7rlF_vv for <cfrg@ietfa.amsl.com>; Fri,  8 Aug 2014 21:31:26 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 220531A0AA4 for <cfrg@irtf.org>; Fri,  8 Aug 2014 21:31:25 -0700 (PDT)
Received: (qmail 17191 invoked by uid 1011); 9 Aug 2014 04:31:25 -0000
Received: from unknown (unknown) by unknown with QMTP; 9 Aug 2014 04:31:25 -0000
Received: (qmail 10800 invoked by uid 1001); 9 Aug 2014 04:31:16 -0000
Date: 9 Aug 2014 04:31:16 -0000
Message-ID: <20140809043116.10798.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <CADMpkcKRvi7WcbR==XF1G5b94jN7Y5+a2j_zDE8AZFTzy_UERg@mail.gmail.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/jN_JOChWkuSUkxhi-j_XZaeP2RM
Subject: Re: [Cfrg] ECC desiderata
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Aug 2014 04:31:30 -0000

Bodo Moeller writes:
> As the example of TLS with its protocol flaws shows (see the unknown
> key-share attacks in https://secure-resumption.com/tlsauth.pdf), it is
> possible to end up in a situation in which public-key validation
> *does* matter; it's easier to get right with cofactor 1.

Are you sure that patching this protocol with (patented) public-key
validation is actually easier to get right with cofactor 1 than with,
e.g., Curve25519? For Curve25519 a simple check for ladder output 0
detects all "non-contributory" inputs, thanks to

   (1) the theorem guaranteeing that scalar multiplication works for all
       inputs and
   (2) the factor 8 in the local scalar.

For cofactor 1 the implementor has to go digging through obscure, poorly
tested code to figure out how the point at infinity might end up being
communicated (e.g., does the implementation treat input points off the
curve as infinity?) and then represented internally.

Isn't TLS actually moving to something much more confidence-inspiring
than such patches, namely hashing more inputs? Hashing stops the attack
without public-key validation and without the implementor having an
oportunity to screw up public-key validation. Isn't hashing also what
the attack authors recommended?

Anyway, these are evaluation questions, and all of them fit within my
suggested statement of desiderata:

   D1. Speed and simplicity (and speed-simplicity combinations) for
   secure implementations.

   D2. Avoiding speed incentives and simplicity incentives towards
   insecure implementations.

When you argue that in some situations cofactor 1 produces secure
implementations more simply than larger cofactors do, you're arguing
that to some extent cofactor 1 scores well on simplicity for secure
implementations and avoids simplicity incentives towards insecure
implementations (whereas I'm arguing that this evaluation is incorrect
and in any case is outweighed by the much more common situations in
which cofactor 1 scores very badly). This seems to be a confirming
example of D1+D2 as capturing the real desiderata: we're discussing the
simplicity of secure implementations and of insecure implementations.

---Dan


From nobody Sat Aug  9 04:45:32 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 B9C4D1B27CC for <cfrg@ietfa.amsl.com>; Sat,  9 Aug 2014 04:45:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.699
X-Spam-Level: 
X-Spam-Status: No, score=0.699 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, J_CHICKENPOX_12=0.6, J_CHICKENPOX_22=0.6, 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 RXPA3nSLmfWd for <cfrg@ietfa.amsl.com>; Sat,  9 Aug 2014 04:45:29 -0700 (PDT)
Received: from emh02.mail.saunalahti.fi (emh02.mail.saunalahti.fi [62.142.5.108]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C57C1B27CA for <cfrg@ietf.org>; Sat,  9 Aug 2014 04:45:27 -0700 (PDT)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh02.mail.saunalahti.fi (Postfix) with ESMTP id 9419581870; Sat,  9 Aug 2014 14:45:23 +0300 (EEST)
Date: Sat, 9 Aug 2014 14:45:22 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Michael Hamburg <mike@shiftleft.org>
Message-ID: <20140809114522.GA21774@LK-Perkele-VII>
References: <0C413841-D0E9-4D74-B390-8996C7EE77D2@qut.edu.au> <798E796F-EE52-4EC5-A003-1C1EF07C2AA9@shiftleft.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <798E796F-EE52-4EC5-A003-1C1EF07C2AA9@shiftleft.org>
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/ytDiu2ZmnUmRXKxo-jCii0fg5DY
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Curves as groups
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Aug 2014 11:45:31 -0000

On Fri, Aug 08, 2014 at 06:14:58PM -0700, Michael Hamburg wrote:
> 
> It’s some and some.  Exposing only a kP+lQ allows you to expose an API
> that deals only with affine points, or even only serialized points,
> which avoids committing to the internal point representation format.
> Furthermore, the curve might be specified one way for safety or clarity,
> but implemented another way for speed.
> 
> The MSR NUMS library operates on Twisted Edwards curves over a 3 mod 4
> field, which have an incomplete addition formula.  This formula can be
> used safely only if the protocol is is designed to avoid the troublesome
> points, eg by clearing the cofactor.  The kP+lQ actually computes
> k(4P) + l(4Q) or something similar to avoid this problem.  So there’s a
> good reason not to expose the point addition function in the API.

Some I-D (and probably some RFCs too) have ECC algorithms that need
point addition and scalar multiplication without extra factors.

Eg, equations of type: Y = a(Z + bX).

Yes, one could premultiply scalars to cancel out extra factors, but:
- There may be not-premultiplied points (e.g. Z above).
- Applications would probably not appriciate having to do the premults.[1]

So the library should also expose:
- Point addition without prefactors
- Scalar multiply without prefactors

And these need to to be correct w.r.t. projection along <G>[2], and result
in points in <G> if inputs are in <G>.


Also: The primary curve specified SHOULD be complete.


Rationale: Using incomplete primary curves awards bad implementations as
it is not at all obvious what the exact failure cases are, probably resulting
in lots of bad implementations (that appear to work, until attacker appears).

MSR "NUMS" Edwards curves fail this (all are incomplete twisted Edwards).
-x^2+y^2=1+(1-1/121666)*x^2*y^2 (mod 2^255-19) would pass, since it is
complete despite being twisted.

Library taking shortcuts is another matter, and then the library maker
should know what they can get away with.


Here's my own list of functions that I think ECC lib should provode for
each Edwards curve (all constant time except failures or if said otherwise,
group ops produce correct projection along <G>, produce elements in <G> if
given inputs in <G>[3]):

- Get curve by name (and possibly by OID).
- Compute X=kG, where X is in Montgomery-x integer form (DH first step)
- Compute Y=kX, where X and Y are in Montgomery-x integer form (DH second
  step)
- Load (un)compressed group element in native/Weierstrss coordinates,
  erroring out on invalid point.
- Save (un)compressed group element in native/Weierstrss coordinates
- Get base prime
- Get number of bits in base prime
- Get order field size
- Get number of bits in order field size
- Group generator (actually generator of order-l subgroup)
- Group (i.e. E) addition
- Group substraction
- Group scalar multiply
- Group scalar multiply with G as base.
- Group double-scalar multiply (can be variable-time?)
- Check for low-order element in group (hX = 0? Edwards curves have
  tricks to do this fast, might not be constant-time)
- Are two group elements equal?
- Get native X coordinate as integer.
- Get native Y coordinate as integer.
- Get Weierstrass X coordinate as integer.
- Load integer as (nonzero) scalar field[2] element, erroring out on
  invalid value
- Reduce integer to (nonzero) scalar field (Z_l) element (timing depends
  on input length)
- Are scalar field elements equal?
- Is scalar field element zero?
- Scalar field addition
- Scalar field substraction
- Scalar field negation
- Scalar field multiplication
- Scalar field reciproal
- Convert scalar field element to integer

The underlying types should depend on kind of thing but not the curve
and can be opaque (hint: don't inline the sizes of various structures
into whatever uses the library[4]).

Additionally, the methods should wipe all temporaries from memory after
completion, including from the stack[5].

This list was chosen so that widest variety of different ECC algorithms
(excluding very specialized ones like pairing-based ones[6]) can be
supported with minimum knowledge about curves or annoying[7] math in the
application, and supporting multiple curves is as easy as possible.

The Weierstrss coordinate methods are there in order to support legacy
algorithms like ECDSA.


[1] Those mults are in order field, which tends to be nastier to work with
than the base field (due to the prime not being too close to power of two).

[2] All practical ECC curves have well-defined projections along <G> and
scalar fields (nobody uses the pathologic or infinite curves that don't).

[3] This is weaker condition than producing correct answers for ever curve
point, but should be sufficient to handle bad inputs safely.

[4] Such inlining creates maintenance problems later.

[5] Yes, I heard somebody complain about this loudly.

[6] These also need specialized MOV-weak curves.

[7] Any such math is likely done using bignum library. Which will be a
disaster if it is e.g. calculation of S for ECDSA.


-Ilari


From nobody Mon Aug 11 14:13:45 2014
Return-Path: <craigco@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 9E2221A0114 for <cfrg@ietfa.amsl.com>; Mon, 11 Aug 2014 14:13: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 K-iTNxh6s86Y for <cfrg@ietfa.amsl.com>; Mon, 11 Aug 2014 14:13:33 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0183.outbound.protection.outlook.com [207.46.163.183]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61FC01A010D for <cfrg@ietf.org>; Mon, 11 Aug 2014 14:13:33 -0700 (PDT)
Received: from BL2PR03MB482.namprd03.prod.outlook.com (10.141.92.142) by BL2PR03MB481.namprd03.prod.outlook.com (10.141.92.140) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Mon, 11 Aug 2014 21:13:31 +0000
Received: from BL2PR03MB482.namprd03.prod.outlook.com ([10.141.92.142]) by BL2PR03MB482.namprd03.prod.outlook.com ([10.141.92.142]) with mapi id 15.00.1005.008; Mon, 11 Aug 2014 21:13:31 +0000
From: Craig Costello <craigco@microsoft.com>
To: "mike@shiftleft.org" <mike@shiftleft.org>
Thread-Topic: [Cfrg] Proposed requirements for curve candidate evaluation
Thread-Index: Ac+1p8M4TlgY/Wd0SkayoAdFUTPGxw==
Date: Mon, 11 Aug 2014 21:13:31 +0000
Message-ID: <429089c7cbe24a86a4a81032ae86a151@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:ed31::2]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:;
x-forefront-prvs: 03008837BD
x-forefront-antispam-report: SFV:NSPM; SFS:(979002)(6009001)(51704005)(377454003)(24454002)(199002)(189002)(13464003)(74662001)(74502001)(31966008)(99396002)(80022001)(107046002)(20776003)(64706001)(77982001)(86362001)(4396001)(2351001)(21056001)(83072002)(105586002)(99286002)(79102001)(81542001)(95666004)(81342001)(85306004)(76482001)(15202345003)(106356001)(33646002)(83322001)(50986999)(101416001)(54356999)(87936001)(46102001)(92566001)(85852003)(74316001)(110136001)(19580405001)(86612001)(19580395003)(15975445006)(2656002)(76576001)(2501001)(24736002)(3826002)(108616003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB481; H:BL2PR03MB482.namprd03.prod.outlook.com; FPR:; MLV:ovrnspm; 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/WS52zy2TaBUAAqVq6hBBtfdFgLY
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 11 Aug 2014 21:13:40 -0000

SGV5IE1pa2UsDQoNCkdvb2QgcXVlc3Rpb24sIEnigJlsbCBleHBsYWluIHRoZSBkaWZmZXJlbmNl
IGJldHdlZW4gdGhlIOKAnGVkLTUyMS1tZXJz4oCdIGN1cnZlIGFuZCBFLTUyMS4NCg0KT3ZlciBh
bnkgY2hvc2VuIHByaW1lIGZpZWxkLCB3ZSBzZWFyY2hlZCBmb3IgdGhlIHR3aXN0ZWQgRWR3YXJk
cyBjdXJ2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BsaWtl
IHRoYXQgZ2l2ZXMgYSBzbWFsbGVyIGQwIGNvZWZmaWNpZW50IHRoYW4gdGhlIG9uZSB5b3UgY2hv
c2UuDQoNCuKAlCBNaWtlDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fXw0KQ2ZyZyBtYWlsaW5nIGxpc3QNCkNmcmdAaXJ0Zi5vcmcNCmh0dHA6Ly93d3cuaXJ0
Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9jZnJnDQo=


From nobody Mon Aug 11 14:39:20 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 CA0171A0142 for <cfrg@ietfa.amsl.com>; Mon, 11 Aug 2014 14:39:19 -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 SJ484oKhH8p6 for <cfrg@ietfa.amsl.com>; Mon, 11 Aug 2014 14:39:18 -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 8E1661A013B for <cfrg@ietf.org>; Mon, 11 Aug 2014 14:39:18 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 77EB53AA27; Mon, 11 Aug 2014 14:38:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407793093; bh=w4HmYPXODkh5DBsmjLoTmpY+GR6/ENAH0qwXxUGq76I=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=QDjUxMkP8R9kAF+kCUoFrI3DcBMZP1lE3XlnMha/Kw5tOMHuFx/EN7Fe+tlT2UI5k DkK+uTQJUGl8KPH+2zzYaIBTPMgOVuJYY6vD9q6NETwFNB5VY9uYmRgVBFqZh4in7c +sWwDrsNa41CA3TGP7UufnnCoqhMpAnJhSRfaDTs=
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: <429089c7cbe24a86a4a81032ae86a151@BL2PR03MB482.namprd03.prod.outlook.com>
Date: Mon, 11 Aug 2014 14:39:14 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <FC03FB27-968C-44A4-8034-6B3DDBCC0A86@shiftleft.org>
References: <429089c7cbe24a86a4a81032ae86a151@BL2PR03MB482.namprd03.prod.outlook.com>
To: Craig Costello <craigco@microsoft.com>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_v4tYHzIiV575Chfnm2GBOMA7MI
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Proposed requirements for curve candidate evaluation
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 11 Aug 2014 21:39:19 -0000

Ah, I see.  And the original has d =3D 78296 for ed-512-mers, which I =
was also wondering about.  Thanks.

> On Aug 11, 2014, at 2:13 PM, Craig Costello <craigco@microsoft.com> =
wrote:
>=20
> Hey Mike,
>=20
> Good question, I=E2=80=99ll explain the difference between the =
=E2=80=9Ced-521-mers=E2=80=9D curve and E-521.
>=20
> Over any chosen prime field, we searched for the twisted Edwards curve =
E:=E2=80=93x^2+y^2=3D1+d*x^2*y^2 with smallest *positive* d such that =
#E<#E=E2=80=99, where E=E2=80=99 is the quadratic twist of E. Many of =
our chosen primes in the preprint are 64-bit aligned, so we always take =
E to be the twist with the positive trace; enforcing that means that #E =
is also 64-bit aligned. The reason we want the smaller sized twist to =
correspond to the small positive d is that we wanted our implementations =
to be modular across different security levels =E2=80=93 we wanted the =
formulas to take advantage of the =E2=80=9Csmallness=E2=80=9D of d =
without worrying about its sign, so our condition became the smallest =
d>0 such that tr(E)>0 and both twists have cofactor 4.=20
>=20
> The condition d>0 with tr(E)>0 was something we decided on when =
working on modular implementations for the 6 NUMS curves in the MSR =
ECCLib release, where we also decided it was best to focus only on the =
twisted Edwards form of cofactor 4 curves. Originally, when we were also =
researching the performance of the Montgomery form, our searches =
prioritized curves with the smallest Montgomery constant (A+2)/4 without =
caring which twist it was on, so you will notice that in Table 2 of the =
first version of our preprint (eprint.iacr.org/2014/130 =E2=80=93 posted =
Feb 24th), the curve =E2=80=9Ced-521-mers=E2=80=9D is presented in =
Montgomery form y^2=3Dx^3+A*x^2+x with A=3D1504058. This original curve =
is isogenous to E-521 (Section 3.3 of our latest preprint shows why the =
smallest constants coincide when p=3D=3D3 mod 4), but its twisted =
Edwards form has the negative d, so we had to search a little higher to =
satisfy the d>0 requirement.=20
>=20
> Cheers,
> Craig
>=20
> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Michael Hamburg
> Sent: Thursday, August 7, 2014 6:24 PM
> To: Watson Ladd
> Cc: cfrg@ietf.org
> Subject: Re: [Cfrg] Proposed requirements for curve candidate =
evaluation
>=20
>=20
>> On Aug 7, 2014, at 6:03 PM, Watson Ladd <watsonbladd@gmail.com> =
wrote:
>>=20
>> E-521 was discovered by three groups independently. There are not =
that=20
>> many primes near a power of two, and not that many choices of curve=20=

>> shape. How would we make the process "more rigid?=E2=80=9D
>=20
> On a related note, Brian, do you know why E-521 (or rather, a curve =
isogenous to E-521 or its twist) isn=E2=80=99t the Microsoft ed-521-mers =
curve?  Is there something simple I=E2=80=99m missing here?  It seems =
like that gives a smaller d0 coefficient than the one you chose.
>=20
> =E2=80=94 Mike
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Tue Aug 12 06:18:45 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 701A01A08A4 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 06:18:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.107
X-Spam-Level: 
X-Spam-Status: No, score=0.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FSL_HELO_BARE_IP_2=1.674, 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 vZD63Aso6bJL for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 06:18:41 -0700 (PDT)
Received: from gateway08.websitewelcome.com (gateway08.websitewelcome.com [69.56.212.17]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4FEFC1A0751 for <cfrg@irtf.org>; Tue, 12 Aug 2014 06:18:41 -0700 (PDT)
Received: by gateway08.websitewelcome.com (Postfix, from userid 5007) id 5D98B35DBC4A7; Tue, 12 Aug 2014 08:18:40 -0500 (CDT)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway08.websitewelcome.com (Postfix) with ESMTP id 48D0235DBC479 for <cfrg@irtf.org>; Tue, 12 Aug 2014 08:18:40 -0500 (CDT)
Received: from [96.231.227.95] (port=54424 helo=192.168.1.6) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <TurnerS@ieca.com>) id 1XHByJ-0006nC-Oy for cfrg@irtf.org; Tue, 12 Aug 2014 08:18:39 -0500
From: Sean Turner <TurnerS@ieca.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Date: Tue, 12 Aug 2014 09:18:38 -0400
References: <20140812131651.17483.68057.idtracker@ietfa.amsl.com>
To: cfrg@irtf.org
Message-Id: <47B3925A-7D95-4877-8F60-409D506884D5@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: 1XHByJ-0006nC-Oy
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: (192.168.1.6) [96.231.227.95]:54424
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 2
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fsl-HvvBAtuK8M0k5aa5Au9ex7U
Subject: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-01.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, 12 Aug 2014 13:18:44 -0000

Hi!

Please note that we=92ve submitted a new version to incorporate the =
comments received to date.

The github repo is located here:
https://github.com/seanturner/draft-turner-thecurve25519function

spt

Begin forwarded message:

> From: internet-drafts@ietf.org
> Subject: I-D Action: draft-turner-thecurve25519function-01.txt
> Date: August 12, 2014 at 09:16:51 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-01.txt
> 	Pages           : 7
> 	Date            : 2014-08-12
>=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-01
>=20
> A diff from the previous version is available at:
> http://www.ietf.org/rfcdiff?url2=3Ddraft-turner-thecurve25519function-01=

>=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 Aug 12 09:50:28 2014
Return-Path: <rlb@ipv.sx>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5D4FC1A0322 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 09:50:25 -0700 (PDT)
X-Quarantine-ID: <ClhvenECowiV>
X-Virus-Scanned: amavisd-new at amsl.com
X-Amavis-Alert: BANNED, message contains text/plain,.exe
X-Spam-Flag: NO
X-Spam-Score: 0.323
X-Spam-Level: 
X-Spam-Status: No, score=0.323 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MANGLED_OFF=2.3, 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 ClhvenECowiV for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 09:50:23 -0700 (PDT)
Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 19A991A030B for <cfrg@irtf.org>; Tue, 12 Aug 2014 09:50:23 -0700 (PDT)
Received: by mail-oi0-f50.google.com with SMTP id a141so6859444oig.9 for <cfrg@irtf.org>; Tue, 12 Aug 2014 09:50:22 -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:cc:content-type; bh=Oux0G3Rb+OPuqRJT3xusAbTsegWy7/G5lkPYivH932s=; b=BWHnKA9cLWbHpigPrGAZqCv15Z3LVU9AZv40DXuR6VtwMaTDL5YL/rKvm2iBEY7SD8 D4LBYGGnB15BvXbzFgqm3PaT6uiGQrr5FYwbVT5qK3Sz0ONBhsoppwQfk1G16q6Exi5k gO+qIwX/Mfwws2LaoZtURwqjkaOtufWRpuiUiDOzARtjkwxsLdm1g7WjaFLjI2oUpyy5 HuNAOfXs20TZHwvXRkvCdFU4cHfJYK6yMNI26evN1qxo2V1Yc2FVsZ0eAYBSuPSGUcE+ U4vqMCWoIQ1diS9IpYCrEBhujOUZRbgy9UV/0AItjkXd7FyEnlzSDuLfKL3pDga2ptI0 fvug==
X-Gm-Message-State: ALoCoQm9IrXc5Ap12TifISf7PtH54dt4jK8ycsm10Gvg/fAZhjUbdUbESq5LvQx3bhdfxXCQcovC
MIME-Version: 1.0
X-Received: by 10.182.94.230 with SMTP id df6mr6254094obb.36.1407862222500; Tue, 12 Aug 2014 09:50:22 -0700 (PDT)
Received: by 10.76.106.202 with HTTP; Tue, 12 Aug 2014 09:50:22 -0700 (PDT)
In-Reply-To: <47B3925A-7D95-4877-8F60-409D506884D5@ieca.com>
References: <20140812131651.17483.68057.idtracker@ietfa.amsl.com> <47B3925A-7D95-4877-8F60-409D506884D5@ieca.com>
Date: Tue, 12 Aug 2014 12:50:22 -0400
Message-ID: <CAL02cgSgDZ-ZrAvemyKOR=VBnLqOMAEZbzTamhzjH0xito9QzA@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Sean Turner <TurnerS@ieca.com>
Content-Type: multipart/alternative; boundary=e89a8fb1f488aa4d9d05007177ab
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Nv9OGTCa7Ro6ztjIU_bzVHUTKhg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-01.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, 12 Aug 2014 16:50:25 -0000

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

A few minor comments below:

"""
   Proper implementations use a
   restricted set of integers for s and only x-coordinates of points Q
   defined over GF(p).
"""
Assuming these restrictions are elaborated in detail elsewhere, a forward
reference would be helpful.


Looks like you need some line breaks here:
"""
   cswap(s_t, x_2, x_3) dummy =3D s_t * (x_2 - x_3) x_2 =3D x_2 - dummy x_3
   =3D x_3 + dummy Return (x_2, x_3)
"""

The document uses "leftmost" and "rightmost" to refer to bits.  It might be
clearer to refer to "most significant" and "least significant".

There are a couple of magic values that appear, a24 in Section 4 and 9 in
Section 5.  For a24, it would be helpful just to say "(see [Curve25519])"
to reinforce that this document isn't making it up.  For 9, it would be
helpful to note that this fixed value is simply the chosen base point for
Curve25519 (in the language of traditional ECDH).

"""
   Alice generates 32 random bytes in f[0] to f[31].  She masks the
   three rightmost bits of f[0] and the leftmost bit of f[31] to zero
   and sets the second leftmost bit of f[31] to 1.  This means that f is
   of the form 2^254 + 8 * {0, 1, ..., 2^(251) - 1} as a little-endian
   integer.
"""
My preference would be for this to be stated less constructively, e.g., as
"Alice generates a random integer f in the range [2^254, 2^255-8]
inclusive, such that f =3D 0 (mod 8).  For example ... [current procedure]"=
.


"""
   where 9 is the number 9
"""
I assume this is "the number 9, represented as a 32-byte integer in the
little-endian representation described in Section 3"


"""
  Protocols that require contributory behavior...
"""
This phrase is new to me.  Could you expand?





On Tue, Aug 12, 2014 at 9:18 AM, Sean Turner <TurnerS@ieca.com> wrote:

> Hi!
>
> Please note that we=E2=80=99ve submitted a new version to incorporate the=
 comments
> received to date.
>
> The github repo is located here:
> https://github.com/seanturner/draft-turner-thecurve25519function
>
> spt
>
> Begin forwarded message:
>
> > From: internet-drafts@ietf.org
> > Subject: I-D Action: draft-turner-thecurve25519function-01.txt
> > Date: August 12, 2014 at 09:16:51 EDT
> > To: i-d-announce@ietf.org
> > Reply-To: internet-drafts@ietf.org
> >
> >
> > A New Internet-Draft is available from the on-line Internet-Drafts
> directories.
> >
> >
> >        Title           : The Curve25519 Function
> >        Authors         : Watson Ladd
> >                          Rich Salz
> >                          Sean Turner
> >       Filename        : draft-turner-thecurve25519function-01.txt
> >       Pages           : 7
> >       Date            : 2014-08-12
> >
> > 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.
> >
> >
> > The IETF datatracker status page for this draft is:
> > https://datatracker.ietf.org/doc/draft-turner-thecurve25519function/
> >
> > There's also a htmlized version available at:
> > http://tools.ietf.org/html/draft-turner-thecurve25519function-01
> >
> > A diff from the previous version is available at:
> > http://www.ietf.org/rfcdiff?url2=3Ddraft-turner-thecurve25519function-0=
1
> >
> >
> > 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/
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

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

<div dir=3D"ltr"><div>A few minor comments below:<br><br>&quot;&quot;&quot;=
<br>=C2=A0=C2=A0 Proper implementations use a<br>=C2=A0=C2=A0 restricted se=
t of integers for s and only x-coordinates of points Q<br>=C2=A0=C2=A0 defi=
ned over GF(p).<br>&quot;&quot;&quot;<br>
</div><div>Assuming these restrictions are elaborated in detail elsewhere, =
a forward reference would be helpful.<br></div><div><br><br>Looks like you =
need some line breaks here:<br>&quot;&quot;&quot;<br>=C2=A0=C2=A0 cswap(s_t=
, x_2, x_3) dummy =3D s_t * (x_2 - x_3) x_2 =3D x_2 - dummy x_3<br>
=C2=A0=C2=A0 =3D x_3 + dummy Return (x_2, x_3)<br>&quot;&quot;&quot;<br><br=
></div><div>The document uses &quot;leftmost&quot; and &quot;rightmost&quot=
; to refer to bits.=C2=A0 It might be clearer to refer to &quot;most signif=
icant&quot; and &quot;least significant&quot;.<br>
<br></div><div>There are a couple of magic values that appear, a24 in Secti=
on 4 and 9 in Section 5.=C2=A0 For a24, it would be helpful just to say &qu=
ot;(see [Curve25519])&quot; to reinforce that this document isn&#39;t makin=
g it up.=C2=A0 For 9, it would be helpful to note that this fixed value is =
simply the chosen base point for Curve25519 (in the language of traditional=
 ECDH).<br>
<br>&quot;&quot;&quot;<br>=C2=A0=C2=A0 Alice generates 32 random bytes in f=
[0] to f[31].=C2=A0 She masks the<br>=C2=A0=C2=A0 three rightmost bits of f=
[0] and the leftmost bit of f[31] to zero<br>=C2=A0=C2=A0 and sets the seco=
nd leftmost bit of f[31] to 1.=C2=A0 This means that f is<br>
=C2=A0=C2=A0 of the form 2^254 + 8 * {0, 1, ..., 2^(251) - 1} as a little-e=
ndian<br>=C2=A0=C2=A0 integer.<br>&quot;&quot;&quot;<br></div><div>My prefe=
rence would be for this to be stated less constructively, e.g., as &quot;Al=
ice generates a random integer f in the range [2^254, 2^255-8] inclusive, s=
uch that f =3D 0 (mod 8).=C2=A0 For example ... [current procedure]&quot;.<=
br>
</div><div><br><br>&quot;&quot;&quot;<br>=C2=A0=C2=A0 where 9 is the number=
 9<br>&quot;&quot;&quot;<br></div><div>I assume this is &quot;the number 9,=
 represented as a 32-byte integer in the little-endian representation descr=
ibed in Section 3&quot;<br>
<br><br>&quot;&quot;&quot;<br>=C2=A0 Protocols that require contributory be=
havior...<br>&quot;&quot;&quot;<br></div><div>This phrase is new to me.=C2=
=A0 Could you expand?<br><br><br></div><div><div><br></div></div></div><div=
 class=3D"gmail_extra">
<br><br><div class=3D"gmail_quote">On Tue, Aug 12, 2014 at 9:18 AM, Sean Tu=
rner <span dir=3D"ltr">&lt;<a href=3D"mailto:TurnerS@ieca.com" target=3D"_b=
lank">TurnerS@ieca.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">
Hi!<br>
<br>
Please note that we=E2=80=99ve submitted a new version to incorporate the c=
omments received to date.<br>
<br>
The github repo is located here:<br>
<a href=3D"https://github.com/seanturner/draft-turner-thecurve25519function=
" target=3D"_blank">https://github.com/seanturner/draft-turner-thecurve2551=
9function</a><br>
<br>
spt<br>
<br>
Begin forwarded message:<br>
<br>
&gt; From: <a href=3D"mailto:internet-drafts@ietf.org">internet-drafts@ietf=
.org</a><br>
&gt; Subject: I-D Action: draft-turner-thecurve25519function-01.txt<br>
&gt; Date: August 12, 2014 at 09:16:51 EDT<br>
&gt; To: <a href=3D"mailto:i-d-announce@ietf.org">i-d-announce@ietf.org</a>=
<br>
&gt; Reply-To: <a href=3D"mailto:internet-drafts@ietf.org">internet-drafts@=
ietf.org</a><br>
&gt;<br>
&gt;<br>
&gt; A New Internet-Draft is available from the on-line Internet-Drafts dir=
ectories.<br>
&gt;<br>
&gt;<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0Title =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : =
The Curve25519 Function<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0Authors =C2=A0 =C2=A0 =C2=A0 =C2=A0 : Watso=
n Ladd<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0Rich Salz<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0Sean Turner<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Filename =C2=A0 =C2=A0 =C2=A0 =C2=A0: draft-turne=
r-thecurve25519function-01.txt<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Pages =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : 7<br>
&gt; =C2=A0 =C2=A0 =C2=A0 Date =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: 2=
014-08-12<br>
&gt;<br>
&gt; Abstract:<br>
&gt; =C2=A0 This document specifies the Curve25519 function, an ECDH (Ellip=
tic-<br>
&gt; =C2=A0 Curve Diffie-Hellman) key-agreement scheme for use in cryptogra=
phic<br>
&gt; =C2=A0 applications. =C2=A0It was designed with performance and securi=
ty in mind.<br>
&gt; =C2=A0 This document is based on information in the public domain.<br>
&gt;<br>
&gt;<br>
&gt; The IETF datatracker status page for this draft is:<br>
&gt; <a href=3D"https://datatracker.ietf.org/doc/draft-turner-thecurve25519=
function/" target=3D"_blank">https://datatracker.ietf.org/doc/draft-turner-=
thecurve25519function/</a><br>
&gt;<br>
&gt; There&#39;s also a htmlized version available at:<br>
&gt; <a href=3D"http://tools.ietf.org/html/draft-turner-thecurve25519functi=
on-01" target=3D"_blank">http://tools.ietf.org/html/draft-turner-thecurve25=
519function-01</a><br>
&gt;<br>
&gt; A diff from the previous version is available at:<br>
&gt; <a href=3D"http://www.ietf.org/rfcdiff?url2=3Ddraft-turner-thecurve255=
19function-01" target=3D"_blank">http://www.ietf.org/rfcdiff?url2=3Ddraft-t=
urner-thecurve25519function-01</a><br>
&gt;<br>
&gt;<br>
&gt; Please note that it may take a couple of minutes from the time of subm=
ission<br>
&gt; until the htmlized version and diff are available at <a href=3D"http:/=
/tools.ietf.org" target=3D"_blank">tools.ietf.org</a>.<br>
&gt;<br>
&gt; Internet-Drafts are also available by anonymous FTP at:<br>
&gt; <a href=3D"ftp://ftp.ietf.org/internet-drafts/" target=3D"_blank">ftp:=
//ftp.ietf.org/internet-drafts/</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; I-D-Announce mailing list<br>
&gt; <a href=3D"mailto:I-D-Announce@ietf.org">I-D-Announce@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/i-d-announce" target=
=3D"_blank">https://www.ietf.org/mailman/listinfo/i-d-announce</a><br>
&gt; Internet-Draft directories: <a href=3D"http://www.ietf.org/shadow.html=
" target=3D"_blank">http://www.ietf.org/shadow.html</a><br>
&gt; or <a href=3D"ftp://ftp.ietf.org/ietf/1shadow-sites.txt" target=3D"_bl=
ank">ftp://ftp.ietf.org/ietf/1shadow-sites.txt</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>
</blockquote></div><br></div>

--e89a8fb1f488aa4d9d05007177ab--


From nobody Tue Aug 12 14:59: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 8CFF21A01E4 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 14:59: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 KaTmSKkYVvLB for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 14:59:12 -0700 (PDT)
Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 024181A00D8 for <cfrg@ietf.org>; Tue, 12 Aug 2014 14:59:11 -0700 (PDT)
Received: by mail-wi0-f176.google.com with SMTP id bs8so6536417wib.9 for <cfrg@ietf.org>; Tue, 12 Aug 2014 14:59: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:from:date:message-id:subject:to:cc :content-type; bh=qVbAn8OGujf/k1a7LoQnZbC/Lpe0HNAT8J/uRrwBWwc=; b=X13sCjSVpsevTRWZZ6353+FQIq/Z7M6QVBKfmpd3lQQXPwGCl1WOBA/P0/57rQ6Kpz 3mjkb8fYAnF1Nkstspv+4Nbpd0yLMJ7R+AkmgG+B9XR1S5WaGoZUMlcAN768545VVHul FwmhJYlSM7GAZHrBn1HNmza8ljsN1L+KcEdkmuskPUfwYiMfryd6NwfNKAxFzPD+MtXl MbMJiISaEjimrDNrGJc47FMsEz+AOz+/GajGdfWo1p9KSkh4Rb6MHxZdR1K/EOADLAPE H5dIln8p4ZKrR7XIHUxTslZsoDevUgeqRyAsiehRtWMnQz5jCCzva+Qui7dambqkwNM6 amEQ==
X-Gm-Message-State: ALoCoQmpWzJKAn8ExUd3zBDa547O/xySbNl+CaxQvXAmuwkgJlfo7j1sxfpl3YVD5Ph+vyEAxtnw
X-Received: by 10.194.142.148 with SMTP id rw20mr339011wjb.69.1407880750580; Tue, 12 Aug 2014 14:59:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Tue, 12 Aug 2014 14:58:50 -0700 (PDT)
From: Benjamin Black <b@b3k.us>
Date: Tue, 12 Aug 2014 14:58:50 -0700
Message-ID: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
To: Brian LaMacchia <bal@microsoft.com>
Content-Type: multipart/alternative; boundary=089e013a27c40666a7050075c828
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6XSrIALCXk8yLzHCBllhjLxgNxM
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Aug 2014 21:59:13 -0000

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

 The CFRG, while part of IRTF, cannot separate itself from the practical
demands of IETF. The CFRG brings a different set of skills to bear, but the
outcome of its work must be pragmatic. The original list of requirements in
the request forwarded by Kenny reflected the required pragmatism in asking
only for new curves based on the 15 years of research and deployment
experience with the NIST curves. Every other aspect of the problem was and
is constrained by the existing RFCs, existing installed base, and existing
customer expectations.

Returning to the engineering requirements for new curves, the curves must
take into consideration the well-established fact that many implementations
will not be authored by professional cryptographers and almost no users of
systems relying on them will be professional cryptographers. If we require,
rather than allow, multiple curve models be implemented to support
different algorithms or for different security levels, we are increasing
complexity and hence opportunities for security and interoperability
errors. If we require new security levels, we are again working against the
existing protocols, implementation and deployment experience, customer
expectations, even user interfaces. None of these can simply be dismissed
because they are inconvenient. They are the facts on the ground.

1. Curves must be generated using a rigid process, and the more rigid the
better.

2.  The curves we recommend should only require implementation of a single
curve model, which implies:

  a) ECDHE and ECDSA must be supported with a single curve model.

  b) The same curve model must be used for all security levels.

3. For the purposes of evaluating candidates, ephemeral in ECDHE means used
exactly once per key exchange.

4. The security levels are 128, 192, and 256 bits and each curve will only
be evaluated at one of those levels.

5. No changes to coordinate wire formats.

The outcome of these is that we need 3 rigidly generated  curves in either
short Weierstrass or twisted Edwards form. Anything beyond that should be
addressed at a later point, and should not block progress on this specific
request for new curves.


b

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

<div dir=3D"ltr">







The CFRG, while part of IRTF, cannot separate itself from the practical dem=
ands of IETF. The CFRG brings a different set of skills to bear, but the ou=
tcome of its work must be pragmatic. The original list of requirements in t=
he request forwarded by Kenny reflected the required pragmatism in asking o=
nly for new curves based on the 15 years of research and deployment experie=
nce with the NIST curves. Every other aspect of the problem was and is cons=
trained by the existing RFCs, existing installed base, and existing custome=
r expectations.<br>

<br>Returning to the engineering requirements for new curves, the curves mu=
st take into consideration the well-established fact that many implementati=
ons will not be authored by professional cryptographers and almost no users=
 of systems relying on them will be professional cryptographers. If we requ=
ire, rather than allow, multiple curve models be implemented to support dif=
ferent algorithms or for different security levels, we are increasing compl=
exity and hence opportunities for security and interoperability errors. If =
we require new security levels, we are again working against the existing p=
rotocols, implementation and deployment experience, customer expectations, =
even user interfaces. None of these can simply be dismissed because they ar=
e inconvenient. They are the facts on the ground.<br>

<br>1. Curves must be generated using a rigid process, and the more rigid t=
he better.<br><br>2. =C2=A0The curves we recommend should only require impl=
ementation of a single curve model, which implies:<br><br>=C2=A0 a) ECDHE a=
nd ECDSA must be supported with a single curve model.<br>

<br>=C2=A0 b) The same curve model must be used for all security levels.<br=
><br>3. For the purposes of evaluating candidates, ephemeral in ECDHE means=
 used exactly once per key exchange.<br><br>4. The security levels are 128,=
 192, and 256 bits and each curve will only be evaluated at one of those le=
vels.<br>

<br>5. No changes to coordinate wire formats.<br><br>The outcome of these i=
s that we need 3 rigidly generated =C2=A0curves in either short Weierstrass=
 or twisted Edwards form. Anything beyond that should be addressed at a lat=
er point, and should not block progress on this specific request for new cu=
rves.<div>

<br></div><div><br></div><div>b</div></div>

--089e013a27c40666a7050075c828--


From nobody Tue Aug 12 15:05:50 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 B98791A09E0 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 15:05:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.668
X-Spam-Level: 
X-Spam-Status: No, score=-0.668 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.668] 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 oYEccAz6IY_H for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 15:05:47 -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 592111A00FC for <cfrg@ietf.org>; Tue, 12 Aug 2014 15:05:47 -0700 (PDT)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id D7203474CB; Tue, 12 Aug 2014 22:05:46 +0000 (GMT)
Received: from prod-mail-relay06.akamai.com (prod-mail-relay06.akamai.com [172.17.120.126]) by prod-mail-xrelay07.akamai.com (Postfix) with ESMTP id CB2D8474A8; Tue, 12 Aug 2014 22:05:46 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub6.kendall.corp.akamai.com [172.27.105.22]) by prod-mail-relay06.akamai.com (Postfix) with ESMTP id C81712027; Tue, 12 Aug 2014 22:05:46 +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; Tue, 12 Aug 2014 18:05:46 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Benjamin Black <b@b3k.us>, Brian LaMacchia <bal@microsoft.com>
Date: Tue, 12 Aug 2014 18:05:46 -0400
Thread-Topic: [Cfrg] Requirements for curve candidate evaluation update
Thread-Index: Ac+2eK5TCviBQhfSR4+f6XCWtBNoPwAAJAUg
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
In-Reply-To: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEBUSMBX1msgcorp_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/wZJBibCOvQcsLH2lUfYxRyk-WXk
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Aug 2014 22:05:48 -0000

--_000_2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEBUSMBX1msgcorp_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SSBoYXZlIGFza2VkIGJlZm9yZSwgcGVyaGFwcyB5b3UgbWlzc2VkIGl0Lg0KDQpJIHRha2UgZXhj
ZXB0aW9uIHRvIHlvdXIgY2xhaW1zIHRoYXQg4oCcc2luZ2xlIGN1cnZlIG1vZGVs4oCdIGFuZCDi
gJxubyBjaGFuZ2UgdG8gd2lyZSBmb3JtYXRz4oCdIGFyZSBmYWN0cyBvbiB0aGUgZ3JvdW5kLiAg
Q2FuIHlvdSBqdXN0aWZ5IHRoYXQ/DQoNCi0tDQpQcmluY2lwYWwgU2VjdXJpdHkgRW5naW5lZXIN
CkFrYW1haSBUZWNobm9sb2dpZXMsIENhbWJyaWRnZSBNQQ0KSU06IHJzYWx6QGphYmJlci5tZTxt
YWlsdG86cnNhbHpAamFiYmVyLm1lPiBUd2l0dGVyOiBSaWNoU2Fseg0K

--_000_2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEBUSMBX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FuIHN0eWxlPSdmb250LXNpemU6MTEuMHB0
O2ZvbnQtZmFtaWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7Y29sb3I6IzFGNDk3RCc+UHJpbmNp
cGFsIFNlY3VyaXR5IEVuZ2luZWVyPG86cD48L286cD48L3NwYW4+PC9wPjxwIGNsYXNzPU1zb05v
cm1hbD48c3BhbiBzdHlsZT0nZm9udC1zaXplOjExLjBwdDtmb250LWZhbWlseToiQ2FsaWJyaSIs
InNhbnMtc2VyaWYiO2NvbG9yOiMxRjQ5N0QnPkFrYW1haSBUZWNobm9sb2dpZXMsIENhbWJyaWRn
ZSBNQTxvOnA+PC9vOnA+PC9zcGFuPjwvcD48cCBjbGFzcz1Nc29Ob3JtYWw+PHNwYW4gc3R5bGU9
J2ZvbnQtc2l6ZToxMS4wcHQ7Zm9udC1mYW1pbHk6IkNhbGlicmkiLCJzYW5zLXNlcmlmIjtjb2xv
cjojMUY0OTdEJz5JTTogPGEgaHJlZj0ibWFpbHRvOnJzYWx6QGphYmJlci5tZSI+cnNhbHpAamFi
YmVyLm1lPC9hPiBUd2l0dGVyOiBSaWNoU2FsejxvOnA+PC9vOnA+PC9zcGFuPjwvcD48L2Rpdj48
L2JvZHk+PC9odG1sPg==

--_000_2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEBUSMBX1msgcorp_--


From nobody Tue Aug 12 18: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 497701A6F76 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 18:14:22 -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 ZINAk3rdVx5I for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 18:14:19 -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 B2DD51A6F74 for <cfrg@ietf.org>; Tue, 12 Aug 2014 18:14:19 -0700 (PDT)
Received: by mail-yh0-f49.google.com with SMTP id b6so8216232yha.8 for <cfrg@ietf.org>; Tue, 12 Aug 2014 18:14:19 -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=q5Klhrp35QrUwBPQraq5AG3eY1JZO34vXjAPIFmFjrM=; b=GTDzyd5feyPkIRuSB9we38XFUy4EJR3hwb3rzCnes3wb9fU5Qc5jI0onPTP2vMndzB ebUwU86zBomTKrkJVvfwv6hI9pEJBqaWVcKSVgZA/9MeHaSiVmqmIe9Kd1m3pWuLLN9q CVH7LnzbzMJG7jzQ+4nVdNe1plSAtKky3D8+WmjCg1eCcEyv9jQSW/X5L/MuLRWL2GWc KRloteCloCIy9xB5SatVQfFgvqKguw1lm1YqcYr5spbIUKDR9kQRSCuSyIJA2ZaVMUdv pgqLheUSBqO4og/7ZOIRbfBHsHHB1K/lhVfxMXd87P8U7erW6aJwfYgf2eh1PiNsXNwy w0lw==
MIME-Version: 1.0
X-Received: by 10.236.97.101 with SMTP id s65mr1799418yhf.51.1407892459048; Tue, 12 Aug 2014 18:14:19 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Tue, 12 Aug 2014 18:14:18 -0700 (PDT)
In-Reply-To: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
Date: Tue, 12 Aug 2014 18:14:18 -0700
Message-ID: <CACsn0cmzixM0zUkb9mHuo8eAYXdCpEr_cdvzuj4AbMG4of8PKg@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/hsWZHh4Kp7hE4MEVerMNpsdj5ZY
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 13 Aug 2014 01:14:22 -0000

On Tue, Aug 12, 2014 at 2:58 PM, Benjamin Black <b@b3k.us> wrote:
> The CFRG, while part of IRTF, cannot separate itself from the practical
> demands of IETF. The CFRG brings a different set of skills to bear, but the
> outcome of its work must be pragmatic. The original list of requirements in
> the request forwarded by Kenny reflected the required pragmatism in asking
> only for new curves based on the 15 years of research and deployment
> experience with the NIST curves. Every other aspect of the problem was and
> is constrained by the existing RFCs, existing installed base, and existing
> customer expectations.
>
> Returning to the engineering requirements for new curves, the curves must
> take into consideration the well-established fact that many implementations
> will not be authored by professional cryptographers and almost no users of
> systems relying on them will be professional cryptographers. If we require,
> rather than allow, multiple curve models be implemented to support different
> algorithms or for different security levels, we are increasing complexity
> and hence opportunities for security and interoperability errors. If we
> require new security levels, we are again working against the existing
> protocols, implementation and deployment experience, customer expectations,
> even user interfaces. None of these can simply be dismissed because they are
> inconvenient. They are the facts on the ground.
>
> 1. Curves must be generated using a rigid process, and the more rigid the
> better.
>
> 2.  The curves we recommend should only require implementation of a single
> curve model, which implies:
>
>   a) ECDHE and ECDSA must be supported with a single curve model.
>
>   b) The same curve model must be used for all security levels.

This doesn't distinguish among curves. Read DJB's email "curves,
coordinates and computations" email. It's a question about what
protocols should do: why should we prohibit x-coordinate only
exchanges, if protocols see a security or bandwidth benefit to them?

>
> 3. For the purposes of evaluating candidates, ephemeral in ECDHE means used
> exactly once per key exchange.

How does this help distinguish between curves?

>
> 4. The security levels are 128, 192, and 256 bits and each curve will only
> be evaluated at one of those levels.

Well, this is not what the NIST curves are (P521, not P512). Nor does
Curve25519 fit this model, and yet it continues to be adopted, despite
being against "existing  protocols, implementation and deployment
experience, customer expectations, and even user interfaces". Of
course, what does evaluation at a level mean? Will people get upset if
we give them more security for the same speed? What about the
cofactors? Should we complain about those also?

>
> 5. No changes to coordinate wire formats.

Does this mean just Weierstrass? Or is a change to Edwards somehow not
a change in the wire format? (Of course this doesn't constrain the
curves either)
>
> The outcome of these is that we need 3 rigidly generated  curves in either
> short Weierstrass or twisted Edwards form. Anything beyond that should be
> addressed at a later point, and should not block progress on this specific
> request for new curves.

Except the Microsoft curves send points on a twisted Edwards curve
with a=-1, and q=3 (4), so aren't complete without using an isogeny
and a slower formula. This is a much more serious problem, as it makes
implementation quite a bit more complicated. If we assume implementors
don't know crypto, then complete formulas are very necessary.

Lastly, the requests on the table for TLS and SSH do change the point
format and use new algorithms: clearly these facts aren't actually
facts.

Sincerely,
Watson Ladd
>
>
> b
>
> _______________________________________________
> 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 Tue Aug 12 18:49:07 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 B18A01A6FC1 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 18:49:06 -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 zmejgheWsrOm for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 18:49:05 -0700 (PDT)
Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e: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 8BC7C1A6FBC for <cfrg@ietf.org>; Tue, 12 Aug 2014 18:49:05 -0700 (PDT)
Received: by mail-pa0-f49.google.com with SMTP id hz1so13968514pad.36 for <cfrg@ietf.org>; Tue, 12 Aug 2014 18:49:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=securityinnovation.com; s=google; h=from:references:in-reply-to:thread-index:mime-version:date :message-id:subject:to:cc:content-type; bh=TJktRUpi2r0S1FoIq8izq4VqHJm7pDpORROeKz3mqwU=; b=K9rMehbsQoBUOPYOy0DePljUpbOmQzE4ilSbJZulpFE5ZpoGC43IYCnsEO/yRcMCUm TBn+moG+viBRs5cSrbePHDRnb6LZH8N17REgyATsXEaDPr5cocPuv9QqLU/ofcOczbaa doyb/HrujcEqfjdYG9KlCvS58mt2B7K6/30Ss=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:thread-index :mime-version:date:message-id:subject:to:cc:content-type; bh=TJktRUpi2r0S1FoIq8izq4VqHJm7pDpORROeKz3mqwU=; b=NAyZWskKz+EbTP+7E9BcKWCqgQhHsDHzBPK8N1zHVE7FSTw5ttZUOlA64YULb/Ncl0 Oq7b1/nILXAuJzCl/rvmQBlqfj7UCIdJzkUyLpL92gARpC3y++LE6RtPgU1H0xXkuucu 8y7P4gZHfUItRMRYh1NY99A2JPx0dNAiKJwcZEm+LbxGNhjbvHYYkNuLDd9NoG0BoAkp CmbNJAz3QfJaaX5b49Br21Qr8Es3WokEDFqAKUV6leUa16UqW9yIbgNw5lq8id69siY9 hxPWwibJ5Pu+k9YJ/JiwKM/D2LN7UJk65bj+OTh+bhlsddUOVvT6D1pS7Fdpnf0ySULD QMdw==
X-Gm-Message-State: ALoCoQnOy6JxGr4r9dPyqzqANXDKTR65HxBsw3AjCRYgI7PKVrneLdmxuJQQHf0OpmCK8kiR3Chq
X-Received: by 10.66.220.230 with SMTP id pz6mr51075pac.145.1407894545046; Tue, 12 Aug 2014 18:49:05 -0700 (PDT)
From: William Whyte <wwhyte@securityinnovation.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <CACsn0cmzixM0zUkb9mHuo8eAYXdCpEr_cdvzuj4AbMG4of8PKg@mail.gmail.com>
In-Reply-To: <CACsn0cmzixM0zUkb9mHuo8eAYXdCpEr_cdvzuj4AbMG4of8PKg@mail.gmail.com>
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQIhVhc0dkfrh7tpttcVSPrwLyg8AwGOsYN+mx4OgFA=
MIME-Version: 1.0
Date: Tue, 12 Aug 2014 21:49:03 -0400
Message-ID: <18ebdc0905191cd01ae23058180370b2@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>, Benjamin Black <b@b3k.us>
Content-Type: multipart/mixed; boundary=047d7b5d9a2b3e8135050078fed5
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/S8BNwyaJXNQQSQx6EVna4wB93hY
Cc: cfrg@ietf.org
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 13 Aug 2014 01:49:06 -0000

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

[Benjamin Black]
> 5. No changes to coordinate wire formats.

[Watson Ladd]
> Does this mean just Weierstrass? Or is a change to Edwards somehow not
a change in the wire format? (Of course this doesn't constrain the
curves either)

Requirement 5 strikes me as entirely unnecessary. Why is it important that
two different curves have the same wire format? The wire format can be one
of the things identified by the curve identifier, and each curve will have a
certain amount of custom code anyway; why does it matter if this custom code
includes code to interpret the wire format? I'd like to see this requirement
more thoroughly justified.

William

--047d7b5d9a2b3e8135050078fed5
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64
X-Attachment-Id: b91b61962239d3de_0.1

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoI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24gYW5kIFNlY3VyZSBFbWFpbCBDQQIRAIiN6fWBU8CTj46QL/lN7+0wgbwGCyqGSIb3DQEJEAIL
MYGsoIGpMIGTMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYD
VQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDE5MDcGA1UEAxMwQ09NT0RP
IENsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBAhEAiI3p9YFTwJOPjpAv
+U3v7TANBgkqhkiG9w0BAQEFAASCAQCf5Wbb92M98X93M1JePrrW/aPf63vqe9A5B8slBOyG5Nvw
L/bSl7QUxlVOrQki9ksjdwBnEeQ/FhCuxWDeEJnbBI1T4a+oDkMV1kufc7GtRoVD5eN/I5y/J4wf
PpFAWUc3eN4DhfQvobiDF6l6RKIYBmYhdg81QqK/QqAPMoiW+V84gZrYL9FTdTWxB5FQcDjaEDiu
5W7Cvv6+HjGvou/jk8ItjN/lSWi4zUvKoxTljnDsGOX3j/obULDz7oiF6iYwUtAVBtK3xL7zudBt
ybmFbDQNhb9ydlvhnIbL7KOfz2DvEkVGxNZLADrXknkSX/UpTyt9ivH69u0Z7gsIyMfHAAAAAAAA
--047d7b5d9a2b3e8135050078fed5--


From nobody Tue Aug 12 19:12:10 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 50AD21A6F9F for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 19:12:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.454
X-Spam-Level: ***
X-Spam-Status: No, score=3.454 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 aHsifg1w8JZ5 for <cfrg@ietfa.amsl.com>; Tue, 12 Aug 2014 19:12:07 -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 8FB7D1A6F63 for <cfrg@ietf.org>; Tue, 12 Aug 2014 19:12:07 -0700 (PDT)
Received: from [192.168.1.149] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id F3C673AA27; Tue, 12 Aug 2014 19:10:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1407895857; bh=0/NxJLs9O0dbvs1BO/l1rY/maSSTmYoSRWJ2i80oXKU=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=b8/0OUqjGtyrAXvOTbNJYG7ui1q4Hn56s4fh/jJYbm16SaBTWGl9GaCzVUixL9qW7 PQLKLW1lojh6IBvy5FVoTDjGjh0mvY2hU3faDftGtVXx57X3N76mUGQkG4rzi2R4x8 8WmIlCkX/djuFVnGuy7DEw7Es6D5vg0HZdQKkzqw=
Message-ID: <53EAC96F.5000804@shiftleft.org>
Date: Tue, 12 Aug 2014 19:11:59 -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>, Benjamin Black <b@b3k.us>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <CACsn0cmzixM0zUkb9mHuo8eAYXdCpEr_cdvzuj4AbMG4of8PKg@mail.gmail.com>
In-Reply-To: <CACsn0cmzixM0zUkb9mHuo8eAYXdCpEr_cdvzuj4AbMG4of8PKg@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/h44Ky2jwLyqTWAySYtMTwfWE8UU
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 13 Aug 2014 02:12:08 -0000

On 8/12/2014 6:14 PM, Watson Ladd wrote:
> Except the Microsoft curves send points on a twisted Edwards curve
> with a=-1, and q=3 (4), so aren't complete without using an isogeny
> and a slower formula. This is a much more serious problem, as it makes
> implementation quite a bit more complicated. If we assume implementors
> don't know crypto, then complete formulas are very necessary.
>
Presumably this is not an exhaustive list of desiderata.

If these requirements become final, then surely the complete curves mod 
the Microsoft primes with a=1 and no restriction on the sign of d 
(choose the one with q<p) should be in the running.

Cheers,
-- Mike


From nobody Wed Aug 13 05:22:45 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 756C11A870B for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 05:22:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.422
X-Spam-Level: *
X-Spam-Status: No, score=1.422 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 okrnM0aXGbQH for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 05:22:36 -0700 (PDT)
Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010: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 8E8101A8715 for <cfrg@irtf.org>; Wed, 13 Aug 2014 05:22:17 -0700 (PDT)
Received: by mail-lb0-f175.google.com with SMTP id 10so8064092lbg.20 for <cfrg@irtf.org>; Wed, 13 Aug 2014 05:22:15 -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=GmBJj7xrqyqLT8VEbySJeulYiVXXRwtLTGTbx/dQOO8=; b=lRazEp62C0CrZYUfHxSXtHDHXFdkbwxyuEz8s9WqKaH9Uz2g4dhEi33kwQEC4GqZ17 jAJHcz2MP2/9M8aPpPXtfyUKrbgtje9HJ9qc/bHSyxWv1hMNkwoInTBLhCfF49fGd/Y3 oWWxzeGbsW24D7vyCJJ2aVGF/pTkVyp7r2FeDaVrrYJHirLkIcpeSiUrW5IPKtwP7WZ8 RVVHjIcCbDHV7QKttYWifEGNdDQMf1RGr5HQvV75vUWn7xyMSoZjoBv3EH2KSh671SBt kNjkuc9LpkLEgODGZMs6WG8XWMYjLN+8a46P5urrWfeBeQrQuKZ3II1CSsA3KWQy5O0l MzNQ==
MIME-Version: 1.0
X-Received: by 10.152.8.166 with SMTP id s6mr4214655laa.85.1407932535612; Wed, 13 Aug 2014 05:22:15 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 13 Aug 2014 05:22:15 -0700 (PDT)
Date: Wed, 13 Aug 2014 08:22:15 -0400
X-Google-Sender-Auth: -TSLeQz408UhMTzDp4GJFzfiQ5M
Message-ID: <CAMm+Lwjg2d+qigTuitnCSAggSWf80B9dLu7NCH-1So9QyXoFrw@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/XPfH2jZRTgsSHLVXIfBRK0ctRWE
Subject: [Cfrg] Good and bad 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, 13 Aug 2014 12:22:38 -0000

Certain curves are known to be weaker than other due to attacks that
require the curve meet specific criteria. There are essentially three
ways to address this problem

1) Reject curve choices that are known to be 'weak', i.e. vulnerable
to known attacks.

2) Do 1 and increase the bit length by a safety factor in case the
attack can be extended.

3) Just increase the bit length and do not attempt to reject weak curves.


My preference is for (3) since any attempt to select curves creates an
opening for IPR claims and we are going to need the safety margin
anyway.

The problem we face is not to find the best compromise or speed and
performance as some suggest. None of us know the set of unknown
attacks by definition. Even Fort Meade only knows a subset of unknown
attacks. So none of us is competent to decide on a compromise.


What the known attacks can tell us usefully is how big a safety margin
we need. So if there is an attack against curves formed from
co-factors of warped smooth numbers that reduces the work factor from
x bits to x/2 then we want a safety margin of 2 times the number of
bits regardless. So it would be interesting to see people raise those
attacks.



What this is really about is coming to a defensible choice that can
become the industry consensus. And this gets us to Bruce's observation
that any security signal inevitably gets wound up to one step below
maximum and stays there. Because nobody wants to take responsibility
for lowering the security precautions. [We now have confirmation of
what was suspected at the time, that the DHS scheme only ever went to
yellow when there was a political need to raise it to orange in the
near future],

The industry can't manage a large number of curves. In fact we only
have a need for an orange curve and a red one. Curve 25519 is plenty
fast enough that we don't need to consider alternatives and it is
comfortably secure for use as the orange curve.

We really only need one red curve and the criteria that matters is
defensibility. The 56 bit DES key space was always suspect because it
was such an odd number. 64 bits would have been just as easy, So it
was pretty clear that there was a fix in somewhere. If we go for a 480
bit key we will get similar questions.

If CFRG proposes a 480 bit key and some other group proposes 512 then
the 512 is going to win. Because there is a cost to explaining the
reason 480 bits are 'enough' and there will also be lost sales. And
those matter far more to me than some explanation about a blend of
performance that requires a PhD to fully understand.

The Red curve is going to be 512 bit. I can defend that choice very
easily because it is the largest memory bus size in common use.

Now '512 bit' could mean a prime slightly smaller like 511 or 510
bits. But it can't be suspiciously lower.


There is also a personal career development issue here. I don't think
anyone wants to leave this discussion being known as the guy (or gal)
who persuaded the industry to use the lower security option.


From nobody Wed Aug 13 16:23: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 5A1C71A046D for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 16:23:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.577
X-Spam-Level: 
X-Spam-Status: No, score=-0.577 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 QDLR6E7i2mAP for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 16:23:25 -0700 (PDT)
Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 03A281A0432 for <cfrg@ietf.org>; Wed, 13 Aug 2014 16:22:37 -0700 (PDT)
Received: by mail-wi0-f170.google.com with SMTP id f8so9061515wiw.1 for <cfrg@ietf.org>; Wed, 13 Aug 2014 16:22:36 -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=npwm4M+VoN7LJjbjQuQxwDSD6iZ1xr88JGCMRM+/+bY=; b=dhl331dskyiljdusNedRF7Akh+23KDFoCX9BwYPypdakwnodOkFfzUN4R1Yl20j4Ry fb6WTUjCcH93eL5U9kx5Au3NGysATwqYIiUZJgTekCo41rRqQSH+x8ulYAoDDf9F9++S jD5JDxc98mEaK1ah0qKdXqNzpnr55ge9Uz2lqvhrP7IJgvGfcyx3uUX0czi47R/Xr4Zj 5SQS9qn3tBFU08AJ1Lz5/aGtlDYa16vQpUMYgW4uZnbctdq9QimEYGNLxu4beaVBieBg +V8GRrB77gg7cVINGX597HZvOXyDROrAN9TgeT3EU9dVSIj9X7e++3xYBOw3jgB6Jd4a WG6A==
X-Gm-Message-State: ALoCoQlRb8Z9/82/iAFeG7SeEisYSStstLkYTCJH2FknmvcUDBbwNk/fixA9P6UfiRoyDNMSj+6w
X-Received: by 10.194.179.73 with SMTP id de9mr7177409wjc.87.1407972156610; Wed, 13 Aug 2014 16:22:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Wed, 13 Aug 2014 16:22:16 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com>
From: Benjamin Black <b@b3k.us>
Date: Wed, 13 Aug 2014 16:22:16 -0700
Message-ID: <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com>
To: "Salz, Rich" <rsalz@akamai.com>
Content-Type: multipart/alternative; boundary=089e013c63a63fb5d305008b10e7
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r6LX4dYeDwJZfJ0PNcvqrax_IH0
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 13 Aug 2014 23:23:37 -0000

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

On Tue, Aug 12, 2014 at 3:05 PM, Salz, Rich <rsalz@akamai.com> wrote:
>
> I have asked before, perhaps you missed it.
>
>
>
> I take exception to your claims that =E2=80=9Csingle curve model=E2=80=9D=
 and =E2=80=9Cno change
to wire formats=E2=80=9D are facts on the ground.  Can you justify that?
>
>
>
> --
>
> Principal Security Engineer
>
> Akamai Technologies, Cambridge MA
>
> IM: rsalz@jabber.me Twitter: RichSalz

Rich,

The facts on the ground, as described in my post, are that people
implementing these systems may not be professional cryptographers, and even
if they are, they make mistakes, so requiring implementation of two
different models or transforms between models is a significant burden. If
an implementer wishes to use a different model internally, they can do so.
The difference is not requiring everyone do so.

As illustrated in the NaCl and TweetNaCl libraries having multiple required
models makes implementation more challenging, even for some of the best
cryptographers in the world. From
http://tweetnacl.cr.yp.to/tweetnacl-20131229.pdf :

"However, NaCl=E2=80=99s performance comes at a price. A single NaCl functi=
on
usually consists of several different implementations, often including
multiple assembly-language implementations optimized for different CPUs.
NaCl=E2=80=99s compilation system is correspondingly complicated. Auditing =
the NaCl
source is a time-consuming job. For example, four implementations of the
ed25519 signature system have been publicly available and waiting for
integration into NaCl since 2011, but in total they consist of 5521 lines
of C code and 16184 lines of qhasm code. Partial audits have revealed a bug
in this software (r1 +=3D 0 + carry should be r2 +=3D 0 + carry in
amd64-64-24k) that would not be caught by random tests; this illustrates
the importance of audits."

"In principle we could use the same scalar-multiplication code for both
Curve25519 and Ed25519. This would require conversion of points on M to
points on E and back. If we used the x-coordinate-based differential
addition ladder of Curve25519 also for Ed25519, we would additionally need
code to recover the y-coordinate as described by Okeya and Sakurai in [20].
Conversion code is not substantially shorter than the code required for the
Curve25519 Montgomery ladder, so we decided to not use the same code for
scalar multiplication in Curve25519 and Ed25519."

That requiring multiple models makes implementation more difficult and
implies more code is both intuitively obvious and supported by available
evidence. Again, implementers are allowed, even encouraged, to write
whatever optimizations they like. Requiring them to implement specific
optimizations for small performance gains at a cost of more, and more
difficult, code would be unusual in any IETF proposal, but is especially
out of place when the proposal is for core cryptography primitives.

You, like many of us, have had up close and personal experience with bugs
in crypto code. You know that even the best make mistakes. Requiring a
single model for everything significantly reduces opportunities for
mistakes and the small performance gain of multiple models does not justify
requiring the additional exposure.


b

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

<div dir=3D"ltr">On Tue, Aug 12, 2014 at 3:05 PM, Salz, Rich &lt;<a href=3D=
"mailto:rsalz@akamai.com">rsalz@akamai.com</a>&gt; wrote:<br>&gt;<br>&gt; I=
 have asked before, perhaps you missed it.<br>&gt;<br>&gt; =C2=A0<br>&gt;<b=
r>&gt; I take exception to your claims that =E2=80=9Csingle curve model=E2=
=80=9D and =E2=80=9Cno change to wire formats=E2=80=9D are facts on the gro=
und. =C2=A0Can you justify that?<br>

&gt;<br>&gt; =C2=A0<br>&gt;<br>&gt; -- <br>&gt;<br>&gt; Principal Security =
Engineer<br>&gt;<br>&gt; Akamai Technologies, Cambridge MA<br>&gt;<br>&gt; =
IM: <a href=3D"mailto:rsalz@jabber.me">rsalz@jabber.me</a> Twitter: RichSal=
z<br>

<br><div>Rich,<br><br><div>The facts on the ground, as described in my post=
, are that people implementing these systems may not be professional crypto=
graphers, and even if they are, they make mistakes, so requiring implementa=
tion of two different models or transforms between models is a significant =
burden. If an implementer wishes to use a different model internally, they =
can do so. The difference is not requiring everyone do so. <br>

<br><div>As illustrated in the NaCl and TweetNaCl libraries having multiple=
 required models makes implementation more challenging, even for some of th=
e best cryptographers in the world. From <a href=3D"http://tweetnacl.cr.yp.=
to/tweetnacl-20131229.pdf">http://tweetnacl.cr.yp.to/tweetnacl-20131229.pdf=
</a> :<br>

<br><div>&quot;However, NaCl=E2=80=99s performance comes at a price. A sing=
le NaCl function usually consists of several different implementations, oft=
en including multiple assembly-language implementations optimized for diffe=
rent CPUs. NaCl=E2=80=99s compilation system is correspondingly complicated=
. Auditing the NaCl source is a time-consuming job. For example, four imple=
mentations of the ed25519 signature system have been publicly available and=
 waiting for integration into NaCl since 2011, but in total they consist of=
 5521 lines of C code and 16184 lines of qhasm code. Partial audits have re=
vealed a bug in this software (r1 +=3D 0 + carry should be r2 +=3D 0 + carr=
y in amd64-64-24k) that would not be caught by random tests; this illustrat=
es the importance of audits.&quot;<br>

<br><div>&quot;In principle we could use the same scalar-multiplication cod=
e for both Curve25519 and Ed25519. This would require conversion of points =
on M to points on E and back. If we used the x-coordinate-based differentia=
l addition ladder of Curve25519 also for Ed25519, we would additionally nee=
d code to recover the y-coordinate as described by Okeya and Sakurai in [20=
]. Conversion code is not substantially shorter than the code required for =
the Curve25519 Montgomery ladder, so we decided to not use the same code fo=
r scalar multiplication in Curve25519 and Ed25519.&quot;<br>

<br><div>That requiring multiple models makes implementation more difficult=
 and implies more code is both intuitively obvious and supported by availab=
le evidence. Again, implementers are allowed, even encouraged, to write wha=
tever optimizations they like. Requiring them to implement specific optimiz=
ations for small performance gains at a cost of more, and more difficult, c=
ode would be unusual in any IETF proposal, but is especially out of place w=
hen the proposal is for core cryptography primitives.<br>

<br>You, like many of us, have had up close and personal experience with bu=
gs in crypto code. You know that even the best make mistakes. Requiring a s=
ingle model for everything significantly reduces opportunities for mistakes=
 and the small performance gain of multiple models does not justify requiri=
ng the additional exposure.<br>

=C2=A0<br><br>b<br><div class=3D"gmail_extra">

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

--089e013c63a63fb5d305008b10e7--


From nobody Wed Aug 13 16:48:50 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 48C021A01EA for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 16:48:49 -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 1Bt2omLcS7JJ for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 16:48:47 -0700 (PDT)
Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D79C71A00E9 for <cfrg@ietf.org>; Wed, 13 Aug 2014 16:48:46 -0700 (PDT)
Received: by mail-lb0-f182.google.com with SMTP id z11so377374lbi.13 for <cfrg@ietf.org>; Wed, 13 Aug 2014 16:48:44 -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=SU4azxSjzxVA5C1yRv9pNHycUWGRdwOqR5XjvDu9NE4=; b=WSaKOroA/8QBKagrJTiF6izl9Mh9cG70q0MCqkfSbunHqms/DGjPgas5QQv9DEJbdk r4mwCfrInvAc8A4fiZzjSMAMcqcdo6/704wExtyqG+Ssklvj0nW9ADA27KbkadgCaN65 pGVo+8dsiuhEaobrdVUt0MlcZxzl8r+Ayxc4QerGoTJ6xeiepSDYSF4Cas03nFOCPZec KoXbWXEh3WqemZxvGCfIXgHCtzsmt41bPA1uVc0+ChY4m+IEXTAzRt3edKHyglIIbDMl hMwUpipwi74y6OzfbeSZOUMJV9gmcmiRnuwAFgZKxjsVjzCVM/aLj2E4cPyitUlhNKd6 k2pQ==
MIME-Version: 1.0
X-Received: by 10.152.23.6 with SMTP id i6mr1073520laf.39.1407973724844; Wed, 13 Aug 2014 16:48:44 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 13 Aug 2014 16:48:44 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com>
Date: Wed, 13 Aug 2014 19:48:44 -0400
X-Google-Sender-Auth: enzb_xVNhzhI50cNHysdzYRwOKk
Message-ID: <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@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/iHmbInA-JWYg6AxsmUJOpuiFGMQ
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 13 Aug 2014 23:48:49 -0000

I really could care less about wire formats. They are completely
mutable at this point.

The only place where I have real legacy problems is in HSM support.
Long term signature keys have to be generated and stored in HSMs. And
no, that is not a 'nice to have feature', it is a 'be prepared to be
laughed at and told that you completely wasted your time' if it isn't
met type of feature.

I don't need to be able to use my existing HSMs but if the curves
chosen are not supported by any existing hardware and it takes 3 years
for it to become available then its going to delay everything (apart
from EDH).






On Tue, Aug 12, 2014 at 6:05 PM, Salz, Rich <rsalz@akamai.com> wrote:
> I have asked before, perhaps you missed it.
>
>
>
> I take exception to your claims that =E2=80=9Csingle curve model=E2=80=9D=
 and =E2=80=9Cno change to
> wire formats=E2=80=9D are facts on the ground.  Can you justify that?
>
>
>
> --
>
> Principal Security Engineer
>
> Akamai Technologies, Cambridge MA
>
> IM: rsalz@jabber.me Twitter: RichSalz
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>


From nobody Wed Aug 13 18:42: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 9D5291A06E2 for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 18:42: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 iefNnlR8GDSJ for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 18:42:07 -0700 (PDT)
Received: from nm14-vm9.access.bullet.mail.gq1.yahoo.com (nm14-vm9.access.bullet.mail.gq1.yahoo.com [216.39.63.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E6BA91A06D6 for <cfrg@ietf.org>; Wed, 13 Aug 2014 18:42:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1407980526; bh=5donbBHLqonU/hOAY14wn8sqDLYY3v7WV4Xhu+XUsV8=; 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:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=MRwTYOUKP47ZON8tgRAF6ab5HtWmcHVLQ7wHKkzYHOSbjiUWUw0ODVYgMwg3LIuvcSCZBE9dV6KFKrP5VmPfmMXklx03efKNu5z6ML/3em1H2Ud9XvwGooI0vUAMf23gzNqQrj7uVtwO+Oo32Rz5eCTYbRPtEBnhJRa061WA0vJ111bkiU723yJStwSr1q0WtllfCrAycWZ5NLidrwBobaRW1BEN320zBrcivBDuq7or8XYCYMefkOZdYm8VerabF/MBA8pjn55lbOd71LD+U7wzYOaM3ZNbOUdUbtGDBy0BqRcKf3izbbJLV65ihYNDtB47dws12Sh4kWNdT9E8MQ==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=sbcglobal.net; b=S4FgL9F3NNVmdD3AMUNuQiXlp+Oou1sWpMtS8+xo5n6nZIDubwbfSRkBsOOkXrSZx0+sFmyJBRlicGmcnhBUQFakduLJQ9qIP/CzsNt0c3QJm6CDFYdpB6Z022j0/RJe80oXWshpKn7o+ddQ0zRbwL+XxGy8/Z76f5AMTdVeYZDMN2AmMwZZ93E8e0Pf/f5MqM46lv0xZkE/GAkVJEHvF237Vm7DxnSwT4T14YLR7wuFwJVdUpTAkUVEdFoXDpZk00NX6P5SXFtzBVu6sV2o0FCJSousIjk4uEp5zGNKzAsAoi2HI1eoW5XDBpNLVYKF79ERtO3mhIAgF9a+ctD3tw==;
Received: from [216.39.60.170] by nm14.access.bullet.mail.gq1.yahoo.com with NNFMP; 14 Aug 2014 01:42:06 -0000
Received: from [67.195.23.147] by tm6.access.bullet.mail.gq1.yahoo.com with NNFMP; 14 Aug 2014 01:42:06 -0000
Received: from [127.0.0.1] by smtp119.sbc.mail.gq1.yahoo.com with NNFMP; 14 Aug 2014 01:42:06 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1407980526; bh=5donbBHLqonU/hOAY14wn8sqDLYY3v7WV4Xhu+XUsV8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ntqb+UzMy0mhqRkEXApkLQyyERwrVBJcu2FtaV/EB5OY2DPI01cm3N9z8wjY0Be7ZBrpTKb8Cbriytd/EWKFhXURHRvd7+7cr8EgKBEKdkzeLDg3LeZoHKEB/HDMbZlYth7bgLqMqJPGbyDtbj4TjTpOjhueqV2GtUa+3XqlJII=
X-Yahoo-Newman-Id: 379941.1315.bm@smtp119.sbc.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: fauA8cIVM1kIwNCya3Xgiyt5ERSyxoLiJnjbuMIxaooa_Jl 8mGJD2fiycmKr4XUeIaHyJkd795ZPKeamYmQApUFfenNqAfYPj_c1EOJ8dxD jmnB6moD4xC_SjoyHHtsGImx_RHxs6ZTnQaMDjSXH6dkI2bZYX31bD3LN1n_ 9Wq0rrfyvlDG9RA1R7qAGg0W47C62gb9DGpdaasKlGJ1i.Nn0zylTfLLDtV7 nhhpZ0mtTjVmT7EQeNkczE9praBZJAMnToZmEUxRrWBd.TaWaR.iZLkjdadU RSXzMav9I_dMzbKiN0bKz0REmsx27gg6feYgBmosr0OKloyCbcRRVVMcL5po f5sVhW0vl03PlZQHvESj2ZClyhkIZKu49cGXyiJEI60A0MDEzJWBxbNa3l2C yW_AvGc6TFNdUpiEi7B0hEpHebOEItg6Mvo9VZ7LDqDgVwgGCCQlwS0K.ufa SDpx_ZWT8xiHbIikLv2pEM9FH_3rNdvaz_3QUGu6jHY_.8IUvJRdErqvg6qj T_FnuEmUey1.HfYYfQ78WVGSa_VFGRw9ogZ35PZUxvXbGzVybiFRO
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
Message-ID: <53EC13ED.4010905@sbcglobal.net>
Date: Wed, 13 Aug 2014 18:42:05 -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: Phillip Hallam-Baker <phill@hallambaker.com>,  "Salz, Rich" <rsalz@akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@mail.gmail.com>
In-Reply-To: <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_Z2_7DQSlMkOwXlOSL5T6-yCvLI
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 01:42:08 -0000

I certainly don't agree that we need to be hamstrung by compatibility 
with existing HSM.  Clearly, the existing HSMs will work with NIST P-256.

Let's look at the risks of P-256 on an existing HSM.  The only real 
concern is that the NSA might know a vulnerability. For many users, this 
is not the end of the world.

I would not be surprised if many of the organizations with HSMs are 
financial institutions or government agencies.  These organizations are 
likely also constrained to FIPS 140-2 validated devices.  This means 
they can't escape  FIPS-approved curves, i.e. NIST P-256, etc.  And that 
means that even if we restricted ourselves to short Weierstrass curves, 
these HSM users still wouldn't be able to use their HSMs.

Finally, there is the assumption that the manufacturer of the HSM can't 
or won't upgrade the firmware.  That could be a business decision by the 
HSM manufacturer, but I doubt it is a technical one.  In a past life I 
worked for a company that built HSMs, and those could have their 
firmware updated.  Admittedly there is some possibility that the 
upgraded HSM will be slower, depending on how much of any special silcon 
can be harnessed for the new curve.

    --David Jacobson



On 8/13/14 4:48 PM, Phillip Hallam-Baker wrote:
> I really could care less about wire formats. They are completely
> mutable at this point.
>
> The only place where I have real legacy problems is in HSM support.
> Long term signature keys have to be generated and stored in HSMs. And
> no, that is not a 'nice to have feature', it is a 'be prepared to be
> laughed at and told that you completely wasted your time' if it isn't
> met type of feature.
>
> I don't need to be able to use my existing HSMs but if the curves
> chosen are not supported by any existing hardware and it takes 3 years
> for it to become available then its going to delay everything (apart
> from EDH).
>
>
>
>
>
>
> On Tue, Aug 12, 2014 at 6:05 PM, Salz, Rich <rsalz@akamai.com> wrote:
>> I have asked before, perhaps you missed it.
>>
>>
>>
>> I take exception to your claims that “single curve model” and “no change to
>> wire formats” are facts on the ground.  Can you justify that?
>>
>>
>>
>> --
>>
>> Principal Security Engineer
>>
>> Akamai Technologies, Cambridge MA
>>
>> IM: rsalz@jabber.me Twitter: RichSalz
>>
>>
>> _______________________________________________
>> 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 Wed Aug 13 19:27: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 5A0BB1A0736 for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:27:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.568
X-Spam-Level: 
X-Spam-Status: No, score=-2.568 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.668] 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 tR5F8q2B7L3V for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:27:07 -0700 (PDT)
Received: from prod-mail-xrelay08.akamai.com (prod-mail-xrelay08.akamai.com [96.6.114.112]) by ietfa.amsl.com (Postfix) with ESMTP id 3ED481A0734 for <cfrg@ietf.org>; Wed, 13 Aug 2014 19:27:07 -0700 (PDT)
Received: from prod-mail-xrelay08.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 6026B484DF; Thu, 14 Aug 2014 02:27:06 +0000 (GMT)
Received: from prod-mail-relay08.akamai.com (prod-mail-relay08.akamai.com [172.27.22.71]) by prod-mail-xrelay08.akamai.com (Postfix) with ESMTP id 54E6D48402; Thu, 14 Aug 2014 02:27:06 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub4.kendall.corp.akamai.com [172.27.105.20]) by prod-mail-relay08.akamai.com (Postfix) with ESMTP id 37EB998041; Thu, 14 Aug 2014 02:27:06 +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, 13 Aug 2014 22:27:05 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Wed, 13 Aug 2014 22:27:03 -0400
Thread-Topic: [Cfrg] Requirements for curve candidate evaluation update
Thread-Index: Ac+3USHJRVT0rx6yQxGiRhVRqIb0qAAFgYtw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9093@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@mail.gmail.com>
In-Reply-To: <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@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/vwUkT671H9H4GqFuRh36fqn_P2c
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 02:27:09 -0000

PiBMb25nIHRlcm0gc2lnbmF0dXJlIGtleXMgaGF2ZSB0byBiZSBnZW5lcmF0ZWQgYW5kIHN0b3Jl
ZCBpbiBIU01zDQoNClNvIEVESCBrZXlzIGRvIG5vdCwgYW5kIHRoZXJlZm9yZSBkbyBub3QgbmVl
ZCBIU00gcmVxdWlyZW1lbnRzLCByaWdodD8NCg0KLS0gIA0KUHJpbmNpcGFsIFNlY3VyaXR5IEVu
Z2luZWVyDQpBa2FtYWkgVGVjaG5vbG9naWVzLCBDYW1icmlkZ2UgTUENCklNOiByc2FsekBqYWJi
ZXIubWUgVHdpdHRlcjogUmljaFNhbHoNCg0K


From nobody Wed Aug 13 19:34:52 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 DC6C71A073F for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:34:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.568
X-Spam-Level: 
X-Spam-Status: No, score=-2.568 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.668] 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 1jqZMOEg2erU for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:34:44 -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 8BCA91A073A for <cfrg@ietf.org>; Wed, 13 Aug 2014 19:34:44 -0700 (PDT)
Received: from prod-mail-xrelay06.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id B92F51657F6; Thu, 14 Aug 2014 02:34:43 +0000 (GMT)
Received: from prod-mail-relay08.akamai.com (prod-mail-relay08.akamai.com [172.27.22.71]) by prod-mail-xrelay06.akamai.com (Postfix) with ESMTP id AE1191657F1; Thu, 14 Aug 2014 02:34:43 +0000 (GMT)
Received: from usma1ex-cashub.kendall.corp.akamai.com (usma1ex-cashub6.kendall.corp.akamai.com [172.27.105.22]) by prod-mail-relay08.akamai.com (Postfix) with ESMTP id 967289804A; Thu, 14 Aug 2014 02:34:43 +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, 13 Aug 2014 22:34:43 -0400
From: "Salz, Rich" <rsalz@akamai.com>
To: Benjamin Black <b@b3k.us>
Date: Wed, 13 Aug 2014 22:34:42 -0400
Thread-Topic: [Cfrg] Requirements for curve candidate evaluation update
Thread-Index: Ac+3TXkoDXPp7XxmTwiNe5PtzIEHowAGemjw
Message-ID: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com>
In-Reply-To: <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@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/LHLv6HhCjtaIKPNVJ3ewQIxYp88
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 02:34:51 -0000

PiBSZXF1aXJpbmcgYSBzaW5nbGUgbW9kZWwgZm9yIGV2ZXJ5dGhpbmcgc2lnbmlmaWNhbnRseSBy
ZWR1Y2VzIG9wcG9ydHVuaXRpZXMgZm9yIG1pc3Rha2VzIGFuZCB0aGUgc21hbGwgcGVyZm9ybWFu
Y2UgZ2FpbiBvZiBtdWx0aXBsZSBtb2RlbHMgZG9lcyBub3QganVzdGlmeSByZXF1aXJpbmcgdGhl
IGFkZGl0aW9uYWwgZXhwb3N1cmUuDQrCoA0KVGhhdCdzIGEgdmFsdWUganVkZ2VtZW50LCBhbmQg
ZGlmZmVyZW50IHBlb3BsZSB3aWxsIGNvbWUgdG8gZGlmZmVyZW50IGNvbmNsdXNpb25zLiBJdCdz
IGNlcnRhaW5seSBub3QgYW4gYXhpb21hdGljIHByaW5jaXBsZS4gQW5kIHdoZW4gSSBzZWUgaXQg
cHV0IGZvcnRoIGxpa2UgdGhhdCwgSSBpbnN0YW50bHkgZ2V0IHN1c3BpY2lvdXMgb2YgdGhlIHBl
b3BsZSBkb2luZyB0aGF0LiAgRldJVy4NCg0KVG8gbWUsIGl0J3MgdHJhZGluZyBvZmYgInRoaXMg
aXMgaGFyZCwgYW5kIHNvbWUgcGVvcGxlIHdpbGwgZ2V0IGl0IHdyb25nIiAtLSB3aGVuIHRoZSBj
b21tdW5pdHkgb2YgcGVvcGxlIGRvaW5nIGl0IGlzIG1heWJlIGEgZmV3IGh1bmRyZWQsIGNlcnRh
aW5seSB1bmRlciAxSyAtLSBjb21wYXJlZCB0byB6aWxsaW9ucyBvZiBkZXZpY2VzIGluIHRoZSB3
ZWIgb2YgdGhpbmdzIGZvciB0aGUgbmV4dCBjb3VwbGUgb2YgZGVjYWRlcy4NCg0KCS9yJA0KDQot
LSAgDQpQcmluY2lwYWwgU2VjdXJpdHkgRW5naW5lZXINCkFrYW1haSBUZWNobm9sb2dpZXMsIENh
bWJyaWRnZSBNQQ0KSU06IHJzYWx6QGphYmJlci5tZSBUd2l0dGVyOiBSaWNoU2Fseg0KDQoNCg==


From nobody Wed Aug 13 19:39:40 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 2732B1A074C for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:39:39 -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 OnvU8NFdRtOK for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:39:38 -0700 (PDT)
Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010: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 D3DA61A0747 for <cfrg@ietf.org>; Wed, 13 Aug 2014 19:39:37 -0700 (PDT)
Received: by mail-lb0-f177.google.com with SMTP id s7so462400lbd.8 for <cfrg@ietf.org>; Wed, 13 Aug 2014 19:39:36 -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=//CQjwG4qB0Bg6RDdeMRcuhNLIX9/iPUQkmqKxaDW8Q=; b=U1GU6R8bBolBOtuxpIsiH8gjJM5yE0WBbzPN01es11y/KexR5vXw5F4DenhZXskhp5 cy4DizklPkPJqtB6sE9PsoxQciqpMTMaci6N6BKyZDjQcrKzVnM5YhK5ZYyaboEgEhWl wwdlT7rCmrNEEkgi18Dnkg91x4sieMd1QLnIAjvd71WwRIzmbv6XSk47eOfxvZORl/qE 2qSwo0/HVmDD3BID9EjE1spe5YIQhs8c54BKQYwl4oEgkCLSJQjtkPINXSeh/xbOA4c9 09kmxJQ9ZZIaONWitJSYDobq5eBEfc1uBO1qbzcI4IDOxFRodPjZFIaSKGi3ohYS9aay RlWQ==
MIME-Version: 1.0
X-Received: by 10.152.20.5 with SMTP id j5mr1644318lae.38.1407983976118; Wed, 13 Aug 2014 19:39:36 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 13 Aug 2014 19:39:35 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9093@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9093@USMBX1.msg.corp.akamai.com>
Date: Wed, 13 Aug 2014 22:39:35 -0400
X-Google-Sender-Auth: SEGMBVe_JdsKbo7TcC4IQoZ1L3k
Message-ID: <CAMm+Lwh4DUEOH25sscu07A7FNzwL70xMCEjxRPNLb=6sYZP+EQ@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/1JjodBBOETXCIAYX4F8y8ZxocXM
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 02:39:39 -0000

On Wed, Aug 13, 2014 at 10:27 PM, Salz, Rich <rsalz@akamai.com> wrote:
>> Long term signature keys have to be generated and stored in HSMs
>
> So EDH keys do not, and therefore do not need HSM requirements, right?

I don't see a large field of established use that would make
availability of HSMs a gating factor for EDH. But obviously someone
could come up with one.

What I am trying to do here is to pare down the set of requirements
WITHOUT throwing out any that could be show stoppers or gating
deployment.

The use of ECC to date in open standards based systems is so
insignificant that we really should not think twice about blowing it
all up and starting from scratch. But if we do that then someone has
to tell the HSM vendors where we are going and some of them have to
sign on.


Not wanting to make a big fuss on the HSM requirement but it is
definitely a potential gating factor. Using the same curve model for
encryption and signature does not interest me in the slightest. I
cannot see that as being a necessary requirement, it is just someone
wanting things to be tidy.

The only good reason to go to ECC right now is to get a bigger safety
margin on your crypto. And it really makes no sense to want to do that
and be shooting yourself in both feet by using signature keys for
encryption or vice versa.

The keys are plenty small enough to have separate encryption and
signature keys. It would be no bad thing if we made it algorithmically
impossible to attempt that type of abuse.

I do want to junk the NIST curves though but not for the reason folk
think. The big problem with ECC is the sheer length of time we have
been waiting. Deployment is going to continue to be slow unless we get
some sort of starting gun. One possibility is that the starting gun is
breaking RSA1024 but having a new set of NSA-free curves agreed by
IETF is good as well.


From nobody Wed Aug 13 19:42:48 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 1C5891A0741 for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:42:47 -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 Uho4H31GdAWh for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 19:42:46 -0700 (PDT)
Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CC22B1A0689 for <cfrg@ietf.org>; Wed, 13 Aug 2014 19:42:45 -0700 (PDT)
Received: by mail-lb0-f182.google.com with SMTP id z11so476536lbi.13 for <cfrg@ietf.org>; Wed, 13 Aug 2014 19:42:44 -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=8e+YsQ5lAzrfSDsfMyU0vhilOa3JGGKbAz3TtkWx1mE=; b=aLsY6Ss7AF9fG4m9qUtqgcYx/l9j+Xl+uACf72H0wNbHpHPurQ2WGrN54Brt7MeBxX 67+fRQx6uaiLDw25Stoaa9HcSjdMkVVelxLQZQ99gxObu95tpT/rxAAKuPaznR18fWOU tH5azC9BlVWpeLiA79rG2YNV8hHB7SFDIvpZoRnEIIzlcfBs8vFMpafMqgVdU0+llJHO 7eVQERL2BR7+C5caVnyVOaBx06d95GFpjCeTchkhqztc/2KviIVaPUW3vIPXHd6n+brT kAZ1vT0GPTFmpw/VOX1NFYOizaLHn1o9FgmmU1TSPvfIYnesL/3HlfUBPEkWFTd8W3TB aXLQ==
MIME-Version: 1.0
X-Received: by 10.112.8.99 with SMTP id q3mr1587878lba.85.1407984164046; Wed, 13 Aug 2014 19:42:44 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Wed, 13 Aug 2014 19:42:43 -0700 (PDT)
In-Reply-To: <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com>
Date: Wed, 13 Aug 2014 22:42:43 -0400
X-Google-Sender-Auth: n2tnpjYHxd_o0dKDlG20U5gJuNQ
Message-ID: <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@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/Plm4fNE5fGUGp9LWJxIgUSYONO4
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 02:42:47 -0000

+1

To be clear, I am arguing that we put HSM support way ahead of a
single model. HSM support is essential, a single model is someone's
idea of tidiness.

You might think you are going to share the sign and decrypt code but I
bet you won't.


On Wed, Aug 13, 2014 at 10:34 PM, Salz, Rich <rsalz@akamai.com> wrote:
>> Requiring a single model for everything significantly reduces opportunities for mistakes and the small performance gain of multiple models does not justify requiring the additional exposure.
>
> That's a value judgement, and different people will come to different conclusions. It's certainly not an axiomatic principle. And when I see it put forth like that, I instantly get suspicious of the people doing that.  FWIW.
>
> To me, it's trading off "this is hard, and some people will get it wrong" -- when the community of people doing it is maybe a few hundred, certainly under 1K -- compared to zillions of devices in the web of things for the next couple of decades.
>
>         /r$
>
> --
> Principal Security Engineer
> Akamai Technologies, Cambridge MA
> IM: rsalz@jabber.me Twitter: RichSalz
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Aug 13 20:01:28 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 047301A0746 for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 20:01:26 -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 DcPwRG2ELHBj for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 20:01:21 -0700 (PDT)
Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EC3141A0741 for <cfrg@ietf.org>; Wed, 13 Aug 2014 20:01:20 -0700 (PDT)
Received: by mail-wg0-f48.google.com with SMTP id x13so496704wgg.31 for <cfrg@ietf.org>; Wed, 13 Aug 2014 20:01:19 -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=muJuUblT46Y3mD2lJhfsUbkQ4duVYd0OjMZGjOm0Y0Q=; b=kOiWPdyEexGTd6+v/fMy1kR/WIjcnf5x3EEuo0sOC1wEOnWygjSbRhIBRZt3qmhO10 Cfpqnxjn4nRNnxslq1XVCaiiS9ZlfSIRr7+zJMK0iGwFw+g0J2NMCr+ODSVUjkmBc8q6 W/pN7Thjd1uUgUdq3FJAoi10oTywJsPYmynZwiXSBwp8/UNX5p7r5BuGmhx8ILxI47+z 5RT8KcKe2kp0+FAVr3Tn+i6dCkDLDeGQmUiLObaoAi2Kw4phyejmXE/jnz478j1Q95YZ MMbpM/ywSIHpqqNnCI44ThX7rRpIGCdgRm2TgWMDloilENzpmFTuD7vbDwMlG0UbC7P6 AsCQ==
X-Gm-Message-State: ALoCoQlWPP5XneOoloQ9YHgPOsVSJJZmmaaIkg4eJ+s81b9pkvwSfhtOYtTOkfIe8GQ0X218A7uB
X-Received: by 10.194.76.133 with SMTP id k5mr8370928wjw.28.1407985279564; Wed, 13 Aug 2014 20:01:19 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Wed, 13 Aug 2014 20:00:59 -0700 (PDT)
In-Reply-To: <CAMm+Lwh4DUEOH25sscu07A7FNzwL70xMCEjxRPNLb=6sYZP+EQ@mail.gmail.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9093@USMBX1.msg.corp.akamai.com> <CAMm+Lwh4DUEOH25sscu07A7FNzwL70xMCEjxRPNLb=6sYZP+EQ@mail.gmail.com>
From: Benjamin Black <b@b3k.us>
Date: Wed, 13 Aug 2014 20:00:59 -0700
Message-ID: <CA+Vbu7xbKu+F8NPSjZUgs9ZrwdAkbJadKCRRf22rAX7kU=pNMg@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=047d7bfcf7b07017d805008e1e89
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/xKwyrwd7LeM6FTZMWWKkRAOui90
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 03:01:26 -0000

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

"The use of ECC to date in open standards based systems is so
insignificant that we really should not think twice about blowing it
all up and starting from scratch."

ECDHE is the default kx for Google, Microsoft, Facebook, Twitter, and many
other large service providers. Perhaps you mean ECDSA.

"And it really makes no sense to want to do that
and be shooting yourself in both feet by using signature keys for
encryption or vice versa."

Which encryption do you mean here?


b



On Wed, Aug 13, 2014 at 7:39 PM, Phillip Hallam-Baker <phill@hallambaker.com
> wrote:

> On Wed, Aug 13, 2014 at 10:27 PM, Salz, Rich <rsalz@akamai.com> wrote:
> >> Long term signature keys have to be generated and stored in HSMs
> >
> > So EDH keys do not, and therefore do not need HSM requirements, right?
>
> I don't see a large field of established use that would make
> availability of HSMs a gating factor for EDH. But obviously someone
> could come up with one.
>
> What I am trying to do here is to pare down the set of requirements
> WITHOUT throwing out any that could be show stoppers or gating
> deployment.
>
> The use of ECC to date in open standards based systems is so
> insignificant that we really should not think twice about blowing it
> all up and starting from scratch. But if we do that then someone has
> to tell the HSM vendors where we are going and some of them have to
> sign on.
>
>
> Not wanting to make a big fuss on the HSM requirement but it is
> definitely a potential gating factor. Using the same curve model for
> encryption and signature does not interest me in the slightest. I
> cannot see that as being a necessary requirement, it is just someone
> wanting things to be tidy.
>
> The only good reason to go to ECC right now is to get a bigger safety
> margin on your crypto. And it really makes no sense to want to do that
> and be shooting yourself in both feet by using signature keys for
> encryption or vice versa.
>
> The keys are plenty small enough to have separate encryption and
> signature keys. It would be no bad thing if we made it algorithmically
> impossible to attempt that type of abuse.
>
> I do want to junk the NIST curves though but not for the reason folk
> think. The big problem with ECC is the sheer length of time we have
> been waiting. Deployment is going to continue to be slow unless we get
> some sort of starting gun. One possibility is that the starting gun is
> breaking RSA1024 but having a new set of NSA-free curves agreed by
> IETF is good as well.
>

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

<div dir=3D"ltr">&quot;<span style=3D"font-family:arial,sans-serif;font-siz=
e:13px">The use of ECC to date in open standards based systems is so</span>=
<br style=3D"font-family:arial,sans-serif;font-size:13px"><span style=3D"fo=
nt-family:arial,sans-serif;font-size:13px">insignificant that we really sho=
uld not think twice about blowing it</span><br style=3D"font-family:arial,s=
ans-serif;font-size:13px">

<span style=3D"font-family:arial,sans-serif;font-size:13px">all up and star=
ting from scratch.&quot;</span><div><span style=3D"font-family:arial,sans-s=
erif;font-size:13px"><br></span></div><div><span style=3D"font-family:arial=
,sans-serif;font-size:13px">ECDHE is the default kx for Google, Microsoft, =
Facebook, Twitter, and many other large service providers. Perhaps you mean=
 ECDSA.</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">And i=
t really makes no sense to want to do that</span></div>

<span style=3D"font-family:arial,sans-serif;font-size:13px">and be shooting=
 yourself in both feet by using signature keys for</span><br style=3D"font-=
family:arial,sans-serif;font-size:13px"><span style=3D"font-family:arial,sa=
ns-serif;font-size:13px">encryption or vice versa.</span><span style=3D"fon=
t-family:arial,sans-serif;font-size:13px">&quot;</span><div>

<font face=3D"arial, sans-serif"><br></font></div><div><font face=3D"arial,=
 sans-serif">Which encryption do you mean here?</font></div><div><font face=
=3D"arial, sans-serif"><br></font></div><div><font face=3D"arial, sans-seri=
f"><br>

</font></div><div><font face=3D"arial, sans-serif">b<br></font><div><span s=
tyle=3D"font-family:arial,sans-serif;font-size:13px"><br></span></div></div=
></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed=
, Aug 13, 2014 at 7:39 PM, Phillip Hallam-Baker <span dir=3D"ltr">&lt;<a hr=
ef=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, Aug 13, 2014 at 10:2=
7 PM, Salz, Rich &lt;<a href=3D"mailto:rsalz@akamai.com">rsalz@akamai.com</=
a>&gt; wrote:<br>


&gt;&gt; Long term signature keys have to be generated and stored in HSMs<b=
r>
&gt;<br>
&gt; So EDH keys do not, and therefore do not need HSM requirements, right?=
<br>
<br>
</div>I don&#39;t see a large field of established use that would make<br>
availability of HSMs a gating factor for EDH. But obviously someone<br>
could come up with one.<br>
<br>
What I am trying to do here is to pare down the set of requirements<br>
WITHOUT throwing out any that could be show stoppers or gating<br>
deployment.<br>
<br>
The use of ECC to date in open standards based systems is so<br>
insignificant that we really should not think twice about blowing it<br>
all up and starting from scratch. But if we do that then someone has<br>
to tell the HSM vendors where we are going and some of them have to<br>
sign on.<br>
<br>
<br>
Not wanting to make a big fuss on the HSM requirement but it is<br>
definitely a potential gating factor. Using the same curve model for<br>
encryption and signature does not interest me in the slightest. I<br>
cannot see that as being a necessary requirement, it is just someone<br>
wanting things to be tidy.<br>
<br>
The only good reason to go to ECC right now is to get a bigger safety<br>
margin on your crypto. And it really makes no sense to want to do that<br>
and be shooting yourself in both feet by using signature keys for<br>
encryption or vice versa.<br>
<br>
The keys are plenty small enough to have separate encryption and<br>
signature keys. It would be no bad thing if we made it algorithmically<br>
impossible to attempt that type of abuse.<br>
<br>
I do want to junk the NIST curves though but not for the reason folk<br>
think. The big problem with ECC is the sheer length of time we have<br>
been waiting. Deployment is going to continue to be slow unless we get<br>
some sort of starting gun. One possibility is that the starting gun is<br>
breaking RSA1024 but having a new set of NSA-free curves agreed by<br>
IETF is good as well.<br>
</blockquote></div><br></div>

--047d7bfcf7b07017d805008e1e89--


From nobody Wed Aug 13 20:49:23 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 34B951A0060 for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 20:49:21 -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 n3lAzRiaGs1a for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 20:49:19 -0700 (PDT)
Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 13FBF1A0040 for <cfrg@ietf.org>; Wed, 13 Aug 2014 20:49:18 -0700 (PDT)
Received: by mail-wi0-f179.google.com with SMTP id f8so1676851wiw.6 for <cfrg@ietf.org>; Wed, 13 Aug 2014 20:49:17 -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=etI+eOjGZ0v0BcgWaqx8OGRo+XVzwNAyVOEfKJaH/MI=; b=KZoIXKEQlcbF1JN2GD5L3nSbnEJuxRU2p8cqk3fPvj6Wq/uC3nRlE97gefbph6CSzz /JKrZQu+pw1rRKD2wOBzY1v0wJv0wq5s+irzhdwD4U0570Fr8AwWUOqbxC/KMpQKzwzk fPYWQIGW6RJB0PtZKemM+AMxWTW4l8/cyX67wpY9nXSn64+KBNICneOsIv+W3RCjeR/h BKbY/XMAolVbWZAwLloaNXJibZrLHl/DdTf9SUtL+xz6JemDlDyrY0W5W2s3FyxWhM6N DOa0LUMHGTj4sal9qGGtLGOKNeaYBQg2nuea3kvfCDMecg/PXRIlDprR0QIY7R4BYu5O zqUA==
X-Gm-Message-State: ALoCoQkiBTz+75Wlww4mRLsTkMKStyZQDMNswTgRLPARREkpqaV/PkQqs04uh1zGDgfskIuCkP6Y
X-Received: by 10.180.185.228 with SMTP id ff4mr8842748wic.76.1407988157631; Wed, 13 Aug 2014 20:49:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.44.138 with HTTP; Wed, 13 Aug 2014 20:48:57 -0700 (PDT)
In-Reply-To: <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com> <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com>
From: Benjamin Black <b@b3k.us>
Date: Wed, 13 Aug 2014 20:48:57 -0700
Message-ID: <CA+Vbu7xejfMS5eDHo5f1BRD0Q3-owBGsq3fdPPhmnM1-Dddvgw@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=001a11c35056fbea3805008ec989
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sbiTvdCPvODgF_akBsOZ2uWnO3c
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 03:49:21 -0000

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

"You might think you are going to share the sign and decrypt code but I
bet you won't."

Using the same scalar multiplication code for kx and signatures is the
norm.


On Wed, Aug 13, 2014 at 7:42 PM, Phillip Hallam-Baker <phill@hallambaker.com
> wrote:

> +1
>
> To be clear, I am arguing that we put HSM support way ahead of a
> single model. HSM support is essential, a single model is someone's
> idea of tidiness.
>
> You might think you are going to share the sign and decrypt code but I
> bet you won't.
>
>
> On Wed, Aug 13, 2014 at 10:34 PM, Salz, Rich <rsalz@akamai.com> wrote:
> >> Requiring a single model for everything significantly reduces
> opportunities for mistakes and the small performance gain of multiple
> models does not justify requiring the additional exposure.
> >
> > That's a value judgement, and different people will come to different
> conclusions. It's certainly not an axiomatic principle. And when I see it
> put forth like that, I instantly get suspicious of the people doing that.
>  FWIW.
> >
> > To me, it's trading off "this is hard, and some people will get it
> wrong" -- when the community of people doing it is maybe a few hundred,
> certainly under 1K -- compared to zillions of devices in the web of things
> for the next couple of decades.
> >
> >         /r$
> >
> > --
> > Principal Security Engineer
> > Akamai Technologies, Cambridge MA
> > IM: rsalz@jabber.me Twitter: RichSalz
> >
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > http://www.irtf.org/mailman/listinfo/cfrg
>

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

<div dir=3D"ltr">&quot;<span style=3D"font-family:arial,sans-serif;font-siz=
e:13px">You might think you are going to share the sign and decrypt code bu=
t I</span><br style=3D"font-family:arial,sans-serif;font-size:13px"><span s=
tyle=3D"font-family:arial,sans-serif;font-size:13px">bet you won&#39;t.&quo=
t;</span><div>

<span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span></di=
v><div><font face=3D"arial, sans-serif">Using the same=C2=A0</font><span st=
yle=3D"font-family:arial,sans-serif;font-size:13px">scalar multiplication c=
ode</span><span style=3D"font-family:arial,sans-serif;font-size:13px">=C2=
=A0for kx and signatures is the norm.=C2=A0</span></div>

</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed,=
 Aug 13, 2014 at 7:42 PM, Phillip Hallam-Baker <span dir=3D"ltr">&lt;<a hre=
f=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">+1<br>
<br>
To be clear, I am arguing that we put HSM support way ahead of a<br>
single model. HSM support is essential, a single model is someone&#39;s<br>
idea of tidiness.<br>
<br>
You might think you are going to share the sign and decrypt code but I<br>
bet you won&#39;t.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
On Wed, Aug 13, 2014 at 10:34 PM, Salz, Rich &lt;<a href=3D"mailto:rsalz@ak=
amai.com">rsalz@akamai.com</a>&gt; wrote:<br>
&gt;&gt; Requiring a single model for everything significantly reduces oppo=
rtunities for mistakes and the small performance gain of multiple models do=
es not justify requiring the additional exposure.<br>
&gt;<br>
&gt; That&#39;s a value judgement, and different people will come to differ=
ent conclusions. It&#39;s certainly not an axiomatic principle. And when I =
see it put forth like that, I instantly get suspicious of the people doing =
that. =C2=A0FWIW.<br>


&gt;<br>
&gt; To me, it&#39;s trading off &quot;this is hard, and some people will g=
et it wrong&quot; -- when the community of people doing it is maybe a few h=
undred, certainly under 1K -- compared to zillions of devices in the web of=
 things for the next couple of decades.<br>


&gt;<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 /r$<br>
&gt;<br>
&gt; --<br>
&gt; Principal Security Engineer<br>
&gt; Akamai Technologies, Cambridge MA<br>
&gt; IM: <a href=3D"mailto:rsalz@jabber.me">rsalz@jabber.me</a> Twitter: Ri=
chSalz<br>
&gt;<br>
&gt;<br>
</div></div><div class=3D"HOEnZb"><div class=3D"h5">&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>
</div></div></blockquote></div><br></div>

--001a11c35056fbea3805008ec989--


From nobody Wed Aug 13 22:49:24 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 B03371A077D for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 22:49:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.003
X-Spam-Level: 
X-Spam-Status: No, score=-0.003 tagged_above=-999 required=5 tests=[BAYES_40=-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 lheW9MMxOmoG for <cfrg@ietfa.amsl.com>; Wed, 13 Aug 2014 22:49:18 -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 D789C1A0776 for <cfrg@irtf.org>; Wed, 13 Aug 2014 22:49:17 -0700 (PDT)
Message-ID: <53EC4DDD.7010503@akr.io>
Date: Thu, 14 Aug 2014 06:49:17 +0100
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com> <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com>
In-Reply-To: <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r6rhCt5mn83cnxuPZw6yF30KC8w
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 05:49:23 -0000

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

On 14/08/2014 03:42, Phillip Hallam-Baker wrote:

> To be clear, I am arguing that we put HSM support way ahead of a 
> single model. HSM support is essential, a single model is
> someone's idea of tidiness.

That is a null property. Anything we can specify can be implemented in
software or hardware. As I said before, there will _eventually_ be new
HSMs, and new HSM firmware. People have already begun work on that.

The commercial world of this are however glacially slow-moving, partly
due to onerous and ineffective governmental certification requirements
(one of the things that has been - rightly - criticised). Several do
not support ECDSA (or ECDHE, where applicable) properly or at all, and
this is why RSA is still far more common in the wild and ECDSA is
quite honestly barely used by anyone publicly (there are _very few_
ECDSA PKIX roots...) - those that are using it are running it in
software and are therefore not relevant to your 'essential' requirement.

That's about the same as Kevin's problem with military procurement
cycles (in fact, more identical than you think - we are actually
talking about the same vendors/fabs in some cases!).

Inertia mustn't hold us back from recommending anything new and
better, because otherwise we'd _never_ consider anything new.

The TLS WG asked for this because they have new requirements for trust
and performance reasons. Anyone using a commercially-available HSM
obviously doesn't, and are not the intended targets of this proposal
within the timeframe ECC will be useful at all.

Most TLS stakeholders are much, much more agile than that. You can
usually spot the ones that aren't: still using 3DES. :-)

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

iQIcBAEBCgAGBQJT7E3cAAoJEOyEjtkWi2t6A/IQAKSXS9PeWcpof1LyKugwFqkT
E19NZFcTMeZEZJiUpKakhwFSdrTDsHyDgVRdW8gyWiJ7ywNgZcHmEfUiCKvERHzP
Le/HNzB7T8/Dm4zukl8Mo739rTw0fr0kNQtPrA61E6hpIucpdX0jzk0c4vvCvo6Q
uQXqkqgEco5UVYDGsLkNOKBX0ZWkI8ILg1NTvwcjKy5c0ibqY3wcaf28YIq8QFQ0
QkgNYWJ77ATylhU+rGsinMs+17I19zHB0Did5O3dhMktGyqfuLYIr9+NAETFxAS3
BjQtSicBmHW1c8RDoz78IeK3lmkrHvCCou9a2esnPElnn2m7Q/13fQeJT7R+eqZc
nrGTdpXtJMgWvwJ2hu6wToocxQd01uyvq9ldLxW01NVLsniOIcr51dUfwTlaNJkn
Q5aPJh2y4nuUILafw8pv0gG64o1yOiL5UWLf4pr8lz5UkWqBTvyqeZcCOd6ll3jT
MeZ3vAPAVjParoiJQE9ZhJwlmP3kF2ik1e7U1brGZe4WvRjMjF3kAJJRxrrWh/AL
vBlYu19yaOThjO9DJ6VKE6EJ/17KBhg2ZM1ejH6/8/419hObnX65BQUsFpkl4nwa
qeRjxRcLScPKdhQoPOPh1fRjkazB127EeKJs2SYdCZddrxjkoXznj1aV96GRz2Sh
+cUrvAWucNkbiIW7w4/b
=a7Wl
-----END PGP SIGNATURE-----


From nobody Thu Aug 14 02:02:09 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 B56371A0993 for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 02:02:07 -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 eekUzHnZCCw1 for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 02:02:01 -0700 (PDT)
Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A08241A099B for <cfrg@irtf.org>; Thu, 14 Aug 2014 02:02:01 -0700 (PDT)
Received: by mail-qa0-f43.google.com with SMTP id w8so730861qac.16 for <cfrg@irtf.org>; Thu, 14 Aug 2014 02:02:01 -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 :content-type; bh=49WtqIDshHeVs4M8N+mCEejnk9vVHUKNwipSUV9upyk=; b=pdlc95Btkwp9opfYDHD9ffkELqsPAk3bSq7wdCR7ltTcqXrQOAN83DIuvveNBTb5y/ SGw/s4ay9r43d68DE9Wg/tqxa73Mq131zx/sPkPvkPsD7DfpwUuXH3DztQyDqCPiDcwI JeMXVIVB9HPNp6uWsR+5IwjekOmBZs5/afGN+dobnsBz6CuCpBAdnyVKB1XPC9Uj9D18 UHuGQfKsejnnDMrtV2Ts7UNhVJCKhE3106ZRvO7IUJXb80LBCL/9RuJyhAKhoSmZfeo8 IPrF7FvPhNnWrhe0s52DkJ+utp2wKdk1CRDMf64+8QS1v70OpjNyPCkBw/1L3YSW2Qkp gm3w==
X-Received: by 10.140.104.69 with SMTP id z63mr13974085qge.81.1408006920903; Thu, 14 Aug 2014 02:02:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.22.179 with HTTP; Thu, 14 Aug 2014 02:01:40 -0700 (PDT)
In-Reply-To: <CAJgFzNejJktAUmagGD6hWcHxLJp=2nxyZ6axuENdTiw6kPtA5Q@mail.gmail.com>
References: <CAJgFzNejJktAUmagGD6hWcHxLJp=2nxyZ6axuENdTiw6kPtA5Q@mail.gmail.com>
From: Gordon Procter <gtprocter@gmail.com>
Date: Thu, 14 Aug 2014 10:01:40 +0100
Message-ID: <CAJgFzNfTddoMX8qPftrbcKg0PoGZAKRbm6m4eNirCpRUPd_cFg@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=001a113547805ca56d0500932829
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/JtrSfsCHOH08r4yvtp58xm3WpJE
Subject: Re: [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: Thu, 14 Aug 2014 09:02:08 -0000

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

On 29 July 2014 11:05, Gordon Procter <gtprocter@gmail.com> wrote:
>
> 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).
> >
> > ........
> >
> >Comments, please.
> >
> >Best wishes
> >
> >Kenny (for the chairs)
> >
>
> Hi Kenny,
>
> I can spend some time looking at this (specifically the composition).
>
>
> Gordon


I've put a short note describing a reduction from the proposed composition
to the PRF security of the ChaCha20 block function at
eprint.iacr.org/2014/613.


Gordon

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

<div dir=3D"ltr"><br><br>On 29 July 2014 11:05, Gordon Procter &lt;<a href=
=3D"mailto:gtprocter@gmail.com">gtprocter@gmail.com</a>&gt; wrote:<br>&gt;<=
br>&gt; On 25/07/2014 12:04, &quot;Paterson, Kenny&quot; &lt;<a href=3D"mai=
lto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt; wrote:<br>

&gt;<br>&gt; &gt;Dear CFRG,<br>&gt; &gt;<br>&gt; &gt;We have been formally =
requested by the TLS WG to provide review on this<br>&gt; &gt;document:<br>=
&gt; &gt;<br>&gt; &gt;<a href=3D"https://datatracker.ietf.org/doc/draft-irt=
f-cfrg-chacha20-poly1305/">https://datatracker.ietf.org/doc/draft-irtf-cfrg=
-chacha20-poly1305/</a><br>

&gt; &gt;<br>&gt; &gt;defining an AEAD construction using the ChaCha and Po=
ly1305 algorithms.<br>&gt; &gt;This scheme is being considered by the TLS W=
G for adoption in TLS.<br>&gt; &gt;<br>&gt; &gt;There are two aspects to th=
e request:<br>

&gt; &gt;<br>&gt; &gt;A) analysis of the individual algorithms;<br>&gt; &gt=
;B) analysis of the composition (in Section 2.8 of the document).<br>&gt; &=
gt;<div>&gt; &gt; ........<br>&gt; &gt;<br>&gt; &gt;Comments, please.<br>

&gt; &gt;<br>&gt; &gt;Best wishes<br>&gt; &gt;<br>&gt; &gt;Kenny (for the c=
hairs)<br>&gt; &gt;<br>&gt;<br>&gt; Hi Kenny,<br>&gt;<br>&gt; I can spend s=
ome time looking at this (specifically the composition).<br>&gt;<br>&gt;<br=
>

&gt; Gordon<div><br></div><div><br></div><div>I&#39;ve put a short note des=
cribing a reduction from the proposed composition to the PRF security of th=
e ChaCha20 block function at <a href=3D"http://eprint.iacr.org/2014/613">ep=
rint.iacr.org/2014/613</a>.</div>

<div><br></div><div><br></div><div>Gordon</div></div><div><br></div></div>

--001a113547805ca56d0500932829--


From nobody Thu Aug 14 02:59:57 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 A14BA1A09CE for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 02:59:56 -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 uch4AYFmiUzI for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 02:59:49 -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 6BD491A09CD for <cfrg@irtf.org>; Thu, 14 Aug 2014 02:59:47 -0700 (PDT)
Received: by mail-wg0-f49.google.com with SMTP id k14so861017wgh.32 for <cfrg@irtf.org>; Thu, 14 Aug 2014 02:59:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:mime-version:to:from:subject:date:in-reply-to:references :content-type; bh=5F0rn7GEfeKYKBDeZQKxOfGVWSrD51w2fMQjdacTg1g=; b=fXo0zvd7fEVw49G9Upi5xQvyPF2BVDhLRGRlbUzXJ65OBOIEWrr+ChCnIn+l69TYPu t08jn3rHz0dIWNOtwUsNrFibvbE7K7BHNzJS1q053BjRAG1yi9Loisd1GO6adP6LBKcZ 0drrtduOjBj/lOqN87NbpSsII4gHKdAuDN42//ojDcfCVagZY8YX1m4kbWRmFwFcGwU7 CkQusGYgrGwDbM747gHEw4/6Ph2MWUpNX5pV2S1OJMnYpoFE5tnig/7jPGxeFoOIydfr qPeIU/vQDbCCQM4jkLu4TILOS0Y8NFvwSiqvKKD226FVCbwwaOBWWGJVng0oJGeKf6jW sMSg==
X-Received: by 10.195.13.102 with SMTP id ex6mr10290755wjd.48.1408010385814; Thu, 14 Aug 2014 02:59:45 -0700 (PDT)
Received: from [10.221.44.110] ([95.35.51.110]) by mx.google.com with ESMTPSA id t6sm18347566wib.4.2014.08.14.02.59.44 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Aug 2014 02:59:45 -0700 (PDT)
Message-ID: <53ec8891.e60bb40a.6de0.ffffd478@mx.google.com>
MIME-Version: 1.0
To: Gordon Procter <gtprocter@gmail.com>, <cfrg@irtf.org>
From: Yoav Nir <ynir.ietf@gmail.com>
Date: Thu, 14 Aug 2014 12:59:32 +0300
In-Reply-To: <CAJgFzNfTddoMX8qPftrbcKg0PoGZAKRbm6m4eNirCpRUPd_cFg@mail.gmail.com>
References: <CAJgFzNejJktAUmagGD6hWcHxLJp=2nxyZ6axuENdTiw6kPtA5Q@mail.gmail.com> <CAJgFzNfTddoMX8qPftrbcKg0PoGZAKRbm6m4eNirCpRUPd_cFg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="_6F31051C-53D9-41FC-AFDB-286885C0690C_"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sNkr9SOTOkqYPGSEAniCH1XcXdI
Subject: Re: [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: Thu, 14 Aug 2014 09:59:56 -0000

--_6F31051C-53D9-41FC-AFDB-286885C0690C_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Thank you, Gordon.

I'll add this as a reference to the draft.

Cheers,

Yoav=20

-----Original Message-----
From: "Gordon Procter" <gtprocter@gmail.com>
Sent: =E2=80=8E8/=E2=80=8E14/=E2=80=8E2014 12:02 PM
To: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] FW: Request for review of ChaCha/Poly1305



On 29 July 2014 11:05, Gordon Procter <gtprocter@gmail.com> wrote:
>
> 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).
> >
> > ........
> >
> >Comments, please.
> >
> >Best wishes
> >
> >Kenny (for the chairs)
> >
>
> Hi Kenny,
>
> I can spend some time looking at this (specifically the composition).
>
>
> Gordon




I've put a short note describing a reduction from the proposed composition =
to the PRF security of the ChaCha20 block function at eprint.iacr.org/2014/=
613.




Gordon=

--_6F31051C-53D9-41FC-AFDB-286885C0690C_
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><div><div style=3D"font-family: Calibri,sans-serif; =
font-size: 11pt;">Thank you, Gordon.<br><br>I'll add this as a reference to=
 the draft.<br><br>Cheers,<br><br>Yoav </div></div><div dir=3D"ltr"><hr><sp=
an style=3D"font-family: Calibri,sans-serif; font-size: 11pt; font-weight: =
bold;">From: </span><span style=3D"font-family: Calibri,sans-serif; font-si=
ze: 11pt;"><a href=3D"mailto:gtprocter@gmail.com">Gordon Procter</a></span>=
<br><span style=3D"font-family: Calibri,sans-serif; font-size: 11pt; font-w=
eight: bold;">Sent: </span><span style=3D"font-family: Calibri,sans-serif; =
font-size: 11pt;">=E2=80=8E8/=E2=80=8E14/=E2=80=8E2014 12:02 PM</span><br><=
span style=3D"font-family: Calibri,sans-serif; font-size: 11pt; font-weight=
: bold;">To: </span><span style=3D"font-family: Calibri,sans-serif; font-si=
ze: 11pt;"><a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a></span><br><sp=
an style=3D"font-family: Calibri,sans-serif; font-size: 11pt; font-weight: =
bold;">Subject: </span><span style=3D"font-family: Calibri,sans-serif; font=
-size: 11pt;">Re: [Cfrg] FW: Request for review of ChaCha/Poly1305</span><b=
r><br></div><div dir=3D"ltr"><br><br>On 29 July 2014 11:05, Gordon Procter =
&lt;<a href=3D"mailto:gtprocter@gmail.com">gtprocter@gmail.com</a>&gt; wrot=
e:<br>&gt;<br>&gt; On 25/07/2014 12:04, "Paterson, Kenny" &lt;<a href=3D"ma=
ilto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt; wrote:<br=
>=0A=
=0A=
&gt;<br>&gt; &gt;Dear CFRG,<br>&gt; &gt;<br>&gt; &gt;We have been formally =
requested by the TLS WG to provide review on this<br>&gt; &gt;document:<br>=
&gt; &gt;<br>&gt; &gt;<a href=3D"https://datatracker.ietf.org/doc/draft-irt=
f-cfrg-chacha20-poly1305/">https://datatracker.ietf.org/doc/draft-irtf-cfrg=
-chacha20-poly1305/</a><br>=0A=
=0A=
&gt; &gt;<br>&gt; &gt;defining an AEAD construction using the ChaCha and Po=
ly1305 algorithms.<br>&gt; &gt;This scheme is being considered by the TLS W=
G for adoption in TLS.<br>&gt; &gt;<br>&gt; &gt;There are two aspects to th=
e request:<br>=0A=
=0A=
&gt; &gt;<br>&gt; &gt;A) analysis of the individual algorithms;<br>&gt; &gt=
;B) analysis of the composition (in Section 2.8 of the document).<br>&gt; &=
gt;<div>&gt; &gt; ........<br>&gt; &gt;<br>&gt; &gt;Comments, please.<br>=
=0A=
=0A=
&gt; &gt;<br>&gt; &gt;Best wishes<br>&gt; &gt;<br>&gt; &gt;Kenny (for the c=
hairs)<br>&gt; &gt;<br>&gt;<br>&gt; Hi Kenny,<br>&gt;<br>&gt; I can spend s=
ome time looking at this (specifically the composition).<br>&gt;<br>&gt;<br=
>=0A=
=0A=
&gt; Gordon<div><br></div><div><br></div><div>I've put a short note describ=
ing a reduction from the proposed composition to the PRF security of the Ch=
aCha20 block function at <a href=3D"http://eprint.iacr.org/2014/613">eprint=
.iacr.org/2014/613</a>.</div>=0A=
=0A=
<div><br></div><div><br></div><div>Gordon</div></div><div><br></div></div>=
=0A=
</body></html>=

--_6F31051C-53D9-41FC-AFDB-286885C0690C_--


From nobody Thu Aug 14 05:16:43 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 44F761A0ABF for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 05:16:39 -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 8yeyA5Kx-OO8 for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 05:16:38 -0700 (PDT)
Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010: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 A19381A0AD0 for <cfrg@ietf.org>; Thu, 14 Aug 2014 05:16:24 -0700 (PDT)
Received: by mail-lb0-f175.google.com with SMTP id 10so918521lbg.34 for <cfrg@ietf.org>; Thu, 14 Aug 2014 05:16: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; bh=DY6xr71UJhaUiaWG0Mv+VkBHuZ+KtDjXErIwNaJL/Fg=; b=An+7LWSPwvVlS9hAKbT8GomhNN5U1KLWV8Y4cmlLVm1pNH0eRERVkulEWXQ1CytaS6 DgRtuHwtlxq/CGVTW141yHbdW0e50i7YgzJefrXQbLTIUf9+y7gfpLZT1ulqNVHuxQ+S K4iajbW+p4rmAR8WAQd73d58PQplgFR0L4MUV2jqyA3b259361jRG2WygLCvTofPC0XH BE+TK99aEecfK/aOSqRv7fPFTzpCHACc4TyQXPDcOO3cLsnfOPG5bbQOWdEN+UtINjbT ntD2pEmE23yfO6d0SuYuDvO2YHE02QZNTHTt9lHXgescIyKtEHLp8H+SfhLTpZfHlA9I A5sw==
MIME-Version: 1.0
X-Received: by 10.152.206.9 with SMTP id lk9mr4743756lac.21.1408018582859; Thu, 14 Aug 2014 05:16:22 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Thu, 14 Aug 2014 05:16:22 -0700 (PDT)
In-Reply-To: <CA+Vbu7xbKu+F8NPSjZUgs9ZrwdAkbJadKCRRf22rAX7kU=pNMg@mail.gmail.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CAMm+LwikFfC7AoPyYn8EQsKXiv9X1uvGrdmwRXxiqcCSvNZsqA@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9093@USMBX1.msg.corp.akamai.com> <CAMm+Lwh4DUEOH25sscu07A7FNzwL70xMCEjxRPNLb=6sYZP+EQ@mail.gmail.com> <CA+Vbu7xbKu+F8NPSjZUgs9ZrwdAkbJadKCRRf22rAX7kU=pNMg@mail.gmail.com>
Date: Thu, 14 Aug 2014 08:16:22 -0400
X-Google-Sender-Auth: UUo5Z0d39Z9LT43iEpglq5sxjdo
Message-ID: <CAMm+Lwg6cxSgvPtK92s2grDGUYZgcYY4RuqYF8iCeR6UqWoQ_Q@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/7oVb4QFCXyBuXNaQl4xsItvwZjM
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 12:16:40 -0000

On Wed, Aug 13, 2014 at 11:00 PM, Benjamin Black <b@b3k.us> wrote:
> "The use of ECC to date in open standards based systems is so
> insignificant that we really should not think twice about blowing it
> all up and starting from scratch."
>
> ECDHE is the default kx for Google, Microsoft, Facebook, Twitter, and many
> other large service providers. Perhaps you mean ECDSA.

No, I see no reason to consider that use as relevant at all to the
decision of what the preferred curves should be for the industry for
the future.

ECDHE does not create legacy issues because it is by definition always
a direct negotiation between two parties who both know what they are
doing. So transition is simply specifying a new cipher suite.

Transition in the PKIX part of TLS is really hard because a curve is
only useful if everything under the sun supports it.


The issue is not who uses is but what the switching costs are. I am
looking at the parts of the problem with the highest switching costs.


> "And it really makes no sense to want to do that
> and be shooting yourself in both feet by using signature keys for
> encryption or vice versa."
>
> Which encryption do you mean here?

Encryption of static data and key exchange really should be separate
from signing.

One protocol design aspect that bleeds in here is how the key exchange
works. There are two mechanisms that can be used for doing ephemeral
keys (leaving out mutual auth for the moment)

A) Encrypt the ephemeral key under the server's public key.

B) Server returns an ephemeral key and client nonce signed by its
private key. [Or alternatively authenticated under a MAC derived from
a master session key]


>From a proof point of view, both seem equally secure but A is actually
a lot better than B because it allows for depth in security.

I want the security of the connection to be protected by both the
master keys and the ephemerals. So breaking an ephemeral only allows
an attack if the master key is also compromised. Sending an
authenticated key across en-clair is a lot weaker than using
encryption. What we should do is this:

A1) As for A but derive the session key from a hash of both the master
session secret and the result of the ephemeral agreement.


So if we have a WF-256 key we can still use a WF-128 ephemeral for
forward secrecy without reducing the security overall.


As a practical matter, we don't need to worry about the WF-192 key at
all, nobody will ever use it. And nobody is going to use less than
WF-256 with PKIX. It is however possible that DNSSEC would use WF-128
keys because of the different mode of use. Curve 25519 might well be
the right match there.


From nobody Thu Aug 14 05:26: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 137261A085F for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 05:26:07 -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 YE6lcoOGkTSe for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 05:26:05 -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 1054A1A0ACF for <cfrg@irtf.org>; Thu, 14 Aug 2014 05:26:03 -0700 (PDT)
Received: by mail-la0-f42.google.com with SMTP id pv20so934514lab.29 for <cfrg@irtf.org>; Thu, 14 Aug 2014 05:26:01 -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=3tLFad7322nul7+8ss3PxJ9Yoqyw8/r2LEzpKR/43JQ=; b=vo8v9kMHqMKLFb/WbI3VNxZqG4OqdNCei2pDVj7fSWzhAU/q+6nmnKbaCCZ2c0h9fI yCVAEHzCWiD6iRsxX4zQ2GKhmaOXtSIPqrORoTgx/9NpfkcAYQsPIkzO9xJOW61fdVEt XrTDo1wAJfwt+oVf2Sbd5LzGs1+EG2UrZ/rIUzi0FwLcyPuD+WOHfbClwQW9NQilMq14 UTrGrKA+R1gI8pq66ekSqjaorNUhjDxz9QGlrlLHEoy7tqg83ZHHtvNCYJKSTqtXmZuw QkxbpiYzCJOxLYtbktrDyBTkAWcPUJWk0T6vnbi4/YDQPjNnxal46XhJUxDroLMKgUtN UKIQ==
MIME-Version: 1.0
X-Received: by 10.152.88.81 with SMTP id be17mr3393870lab.84.1408019161448; Thu, 14 Aug 2014 05:26:01 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Thu, 14 Aug 2014 05:26:01 -0700 (PDT)
In-Reply-To: <53EC4DDD.7010503@akr.io>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com> <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com> <53EC4DDD.7010503@akr.io>
Date: Thu, 14 Aug 2014 08:26:01 -0400
X-Google-Sender-Auth: pI1AwTgOTH2xNtByJ_2RCa5j_m0
Message-ID: <CAMm+Lwh7BAGW6hQfqcDeciYk5nvePwe39Szo0zeCn9hrQLgNBA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Alyssa Rowan <akr@akr.io>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/bb5V9ncbMRfC3cN3Srcur1jhGXM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 12:26:07 -0000

On Thu, Aug 14, 2014 at 1:49 AM, Alyssa Rowan <akr@akr.io> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 14/08/2014 03:42, Phillip Hallam-Baker wrote:
>
>> To be clear, I am arguing that we put HSM support way ahead of a
>> single model. HSM support is essential, a single model is
>> someone's idea of tidiness.
>
> That is a null property. Anything we can specify can be implemented in
> software or hardware. As I said before, there will _eventually_ be new
> HSMs, and new HSM firmware. People have already begun work on that.

What the constraint means is that if we come down to two curves and
little to choose between them and there is a significant difference in
the HSM situation then the curve that allows re-use of existing HSMs
wins, if neither does that then the curve that has support from HSM
manufacturers wins.

So folk peddling a curve would do well to line up HSM vendor support.


It isn't quite true to say that you can do everything in hardware or
software. There are very specific constraints here to do with side
channels and IPR that could have a huge bearing on what curve families
are viable and which are not.


> The commercial world of this are however glacially slow-moving, partly
> due to onerous and ineffective governmental certification requirements
> (one of the things that has been - rightly - criticised). Several do
> not support ECDSA (or ECDHE, where applicable) properly or at all, and
> this is why RSA is still far more common in the wild and ECDSA is
> quite honestly barely used by anyone publicly (there are _very few_
> ECDSA PKIX roots...) - those that are using it are running it in
> software and are therefore not relevant to your 'essential' requirement.

There are very few serious CAs. So its not surprising there are few
ECC roots. We have ECC roots, so do the other leading CAs. But the
reason for the lag has been IPR FUD.


From nobody Thu Aug 14 06:10:58 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 1B9F71A06EE for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 06:10:56 -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 1L1wfIrdBR31 for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 06:10:49 -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 8C7D31A06EA for <cfrg@irtf.org>; Thu, 14 Aug 2014 06:10:49 -0700 (PDT)
User-Agent: K-9 Mail for Android
In-Reply-To: <CAMm+Lwh7BAGW6hQfqcDeciYk5nvePwe39Szo0zeCn9hrQLgNBA@mail.gmail.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com> <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com> <53EC4DDD.7010503@akr.io> <CAMm+Lwh7BAGW6hQfqcDeciYk5nvePwe39Szo0zeCn9hrQLgNBA@mail.gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Thu, 14 Aug 2014 14:10:38 +0100
To: cfrg@irtf.org
Message-ID: <baaf2afd-3c27-47b8-a04d-6775d258e48d@email.android.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6bAJJqUJu02G2EZROu4tcwwT-9w
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 13:10:56 -0000

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

On 14 August 2014 13:26:01 BST, Phillip Hallam-Baker <phill@hallambaker.com> wrote:

>It isn't quite true to say that you can do everything in hardware or software. There are very specific constraints here to do with side channels and IPR that could have a huge bearing on what curve families are viable and which are not.

Well, as per IPR policy: please identify any (still-extant) relevant patents you're aware of?

>There are very few serious CAs. So its not surprising there are few ECC roots. We have ECC roots, so do the other leading CAs. But the reason for the lag has been IPR FUD.

>From who: Certicom? (Who are on this list.) All the more reason to bring this to the fore, then: if "IPR FUD" is constraining wide PKIX adoption of ECDSA with NIST P256, then there is actually far _less_ legacy for us to be scared of deprecating, and more reason for us to consider carefully the IPR status of every algorithm, technique and curve family considered.

We need to recommend things everyone can actually use, royalty-free.

- --
/akr
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI3BAEBCgAhBQJT7LVNGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6X/MP/3up+kJ9TSSdkSXGijX/Yd50OeLLXFiSWekccVfPI30xUhnh46Hv
me17ThmEfdQbGeTmTEDmCfb5kwxvCzR/zZeS5Xw7PSVon3VaKumyGJqRq4Yrpn1a
LLXtp6pcR82DWfVZyoAaVMsMdVJQQQyNN9Dsfmhw7qA7TAxwl91vxmmGVXfL5MGM
OQziVO5quOBd6KCO19g32ptMVARZqjwNOa27JDI5ubBbOKcX/h2epL1uwUrgBsEv
2zHFEEKWIKEr+n9/WTrBHI6ah6eu2wjUweHFuQuHEBSaPjlRmCI5Odke55pVWPX8
5LgdADemSV/N0k6kFlYFiix9yvZxovpJCSNXW8uwubHqI5D8sW0Y3Dbl/hqWPH+c
BixnEgsVvoM5FThzJiO0cUhx4nKKGto6gFxmIrIuQa/W+/ym3G7v+07VRWYBtsF8
ZnZ+O2o3RK3q05Z8JwT9rdx6dLRHu2d04EbbB1dx9FTkm2Tf0Vdq49qe0Dig3L5O
8BHuh05IusAwUH1P9rJH/abZF9BPWA9Lv9AcJunhNx8InhvVZCDURpyoIwS4SP1+
ZGAvUPjuE9yMHYxUjWaX0M8yCi396W5EEFh5W4qxbA9cdxyCAmVYCKdLpzbhDPcw
VB5FrSvujl8gD5D3RPc1v4hpvEoDr5PoylBxv3SNYYXnGIHZpTnFMXsh
=zFrS
-----END PGP SIGNATURE-----


From nobody Thu Aug 14 07:39: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 4EF711A02DE for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 07:39:54 -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 Tl2E_a8BSErB for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 07:39:51 -0700 (PDT)
Received: from mail-yk0-x231.google.com (mail-yk0-x231.google.com [IPv6:2607:f8b0:4002:c07::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 89ACA1A0275 for <cfrg@irtf.org>; Thu, 14 Aug 2014 07:39:51 -0700 (PDT)
Received: by mail-yk0-f177.google.com with SMTP id 79so1016906ykr.8 for <cfrg@irtf.org>; Thu, 14 Aug 2014 07:39: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; bh=J4K6YKj4Xyp5ZvRtj5qBHs5hClYIQ1Pm34uVbSGzCm0=; b=ng7EtZF5O9kVVvoZAuLdW7OB5hsYv/gkwoU6CwwxVl8Rc4w7JL44jnJDNgetRygcdP +Z9Uh12pfMP4uSgXbtGfisK/B9V9KgA7KnMqRav0cqSvUWS3GnOb/SweS/hiaAFRF3nM 8sP/qkScrYS3X4HZY2FdYDXzgOgWM8x9APoVlleFT25jhzMDze8L91UDsTxtgUBVbzrj vI4+HQmr9pVv429jDElein60svaAmw9lvE+zojFMJooM8NTRp63tNF81DRUeT9uePs95 xPv2CJGasQdYOiVz1gdKPVfCWScvtkXV4Imz/pZgVoCOzhR0EbmZ4CZnrmL2LU62yZpK qvfQ==
MIME-Version: 1.0
X-Received: by 10.236.45.10 with SMTP id o10mr17781735yhb.49.1408027190838; Thu, 14 Aug 2014 07:39:50 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Thu, 14 Aug 2014 07:39:50 -0700 (PDT)
In-Reply-To: <CAMm+Lwh7BAGW6hQfqcDeciYk5nvePwe39Szo0zeCn9hrQLgNBA@mail.gmail.com>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C8CEB@USMBX1.msg.corp.akamai.com> <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com> <2A0EFB9C05D0164E98F19BB0AF3708C7185A0C9094@USMBX1.msg.corp.akamai.com> <CAMm+Lwg8EZ-MWN4hKxzN+g5L9-GjgEGV49NqYNEnK=34qrkb+w@mail.gmail.com> <53EC4DDD.7010503@akr.io> <CAMm+Lwh7BAGW6hQfqcDeciYk5nvePwe39Szo0zeCn9hrQLgNBA@mail.gmail.com>
Date: Thu, 14 Aug 2014 07:39:50 -0700
Message-ID: <CACsn0ckTNqhoff4Lpa2QmD1h+x=Zfwo7Rfm_ALuMCFWkW7duJA@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/Xugw6rf6cI6T_kJ5i7SvSeuTWlA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 14:39:54 -0000

On Thu, Aug 14, 2014 at 5:26 AM, Phillip Hallam-Baker
<phill@hallambaker.com> wrote:
> On Thu, Aug 14, 2014 at 1:49 AM, Alyssa Rowan <akr@akr.io> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>>
>> On 14/08/2014 03:42, Phillip Hallam-Baker wrote:
>>
>>> To be clear, I am arguing that we put HSM support way ahead of a
>>> single model. HSM support is essential, a single model is
>>> someone's idea of tidiness.
>>
>> That is a null property. Anything we can specify can be implemented in
>> software or hardware. As I said before, there will _eventually_ be new
>> HSMs, and new HSM firmware. People have already begun work on that.
>
> What the constraint means is that if we come down to two curves and
> little to choose between them and there is a significant difference in
> the HSM situation then the curve that allows re-use of existing HSMs
> wins, if neither does that then the curve that has support from HSM
> manufacturers wins.
>
> So folk peddling a curve would do well to line up HSM vendor support.

Let's back up a bit: every curve can be expressed in Weierstrass form
over the same field, so will work with todays ECDSA implementations.
Good? No.

1: Some implementations may have dedicated hardware to do reduction on
the NIST primes
2: Some implementations may assume prime order for correctness
3: Some implementations may not permit the use of arbitrary parameters

So to the extent that we are changing curves, it's not clear that
there is any way, even if we use prime order Weierstrass over the same
primes, to get complete support on HSMs. It's also not clear that
different curves materially differ in this respect.

>
>
> It isn't quite true to say that you can do everything in hardware or
> software. There are very specific constraints here to do with side
> channels and IPR that could have a huge bearing on what curve families
> are viable and which are not.

All the proposals look about the same: if you were to quiz me on which
was which, just showing me the primes and the coefficients, I would
have to do some arithmetic to see if they were complete or not, and so
if they were the NUMS curves or not.

Sincerely,
Watson Ladd

>
>
>> The commercial world of this are however glacially slow-moving, partly
>> due to onerous and ineffective governmental certification requirements
>> (one of the things that has been - rightly - criticised). Several do
>> not support ECDSA (or ECDHE, where applicable) properly or at all, and
>> this is why RSA is still far more common in the wild and ECDSA is
>> quite honestly barely used by anyone publicly (there are _very few_
>> ECDSA PKIX roots...) - those that are using it are running it in
>> software and are therefore not relevant to your 'essential' requirement.
>
> There are very few serious CAs. So its not surprising there are few
> ECC roots. We have ECC roots, so do the other leading CAs. But the
> reason for the lag has been IPR FUD.
>
> _______________________________________________
> 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 Thu Aug 14 12:11:16 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 29EC71A038B for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 12:11:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.032
X-Spam-Level: 
X-Spam-Status: No, score=0.032 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.668] 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 4AWqv6Bmytba for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 12:11:15 -0700 (PDT)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id EE43A1A039A for <cfrg@irtf.org>; Thu, 14 Aug 2014 12:11:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1408043473; d=isode.com; s=selector; i=@isode.com; bh=p2rhTMfPMA/QLAnBBtNSFKkhEwJOEgswRhc7UNXvg8g=; 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=mws+JurB/+FvBTHfaYv+I/yurnHCran4N+zpfvP25UJ12oJX9dsMNoCHRW6V0ihSuDSpdJ zqVEo9jWCdSbxRZSDgfh+Wn//FMzyuXcxp+SWufuPIpYwQwLMgKqNcz5fWgqPu3CL7uibF iODgBN8z0puqEv3zEeCvgvZD0JbT21I=;
Received: from [192.168.0.4] (cpc5-nmal20-2-0-cust24.19-2.cable.virginm.net [92.234.84.25])  by waldorf.isode.com (submission channel) via TCP with ESMTPA  id <U-0J0AAvQ4Dh@waldorf.isode.com>; Thu, 14 Aug 2014 20:11:13 +0100
Message-ID: <53ED09D5.8090502@isode.com>
Date: Thu, 14 Aug 2014 20:11:17 +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/39qUJVAega9dwtCfSnY8zx91p54
Subject: [Cfrg] Minutes from the Toronto meeting are posted
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 19:11:16 -0000

Please send corrections to co-chairs.

  http://www.ietf.org/proceedings/90/minutes/minutes-90-cfrg


From nobody Thu Aug 14 13:15:50 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 31FD21A0683 for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 13:15:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.1
X-Spam-Level: *
X-Spam-Status: No, score=1.1 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, J_CHICKENPOX_210=0.6, J_CHICKENPOX_29=0.6, J_CHICKENPOX_31=0.6, RCVD_IN_DNSWL_LOW=-0.7, 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 zl1nWBxVfnZP for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 13:15:47 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 3A82C1A056D for <cfrg@irtf.org>; Thu, 14 Aug 2014 13:15:47 -0700 (PDT)
Received: (qmail 22843 invoked by uid 1011); 14 Aug 2014 20:15:45 -0000
Received: from unknown (unknown) by unknown with QMTP; 14 Aug 2014 20:15:45 -0000
Received: (qmail 8909 invoked by uid 1001); 14 Aug 2014 19:38:59 -0000
Date: 14 Aug 2014 19:38:59 -0000
Message-ID: <20140814193859.8907.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <CA+Vbu7zfbx-OqU=ggXgutDb+GNwvS3QpkTwzU1c+2Lcv=3Gawg@mail.gmail.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/t6fOganOca6UY7UWRqQitL-ZVmw
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Aug 2014 20:15:49 -0000

The current topic is the simplicity of secure implementations: in
particular, how this is affected by choosing Montgomery coordinates
rather than Edwards coordinates for DH, assuming that one has already
chosen Edwards coordinates for signatures (in violation of standards
such as ECDSA, contrary to MSR's claims, but that's a separate issue).
Everyone seems to agree that simplicity of secure implementations is
desirable, so I presume that it will end up on the list of desiderata.

Benjamin Black writes:
> Using the same scalar multiplication code for kx and signatures is the
> norm. 

Really? Then how do you explain MSR ECCLib? I peeked briefly at the code
and found a rather long function

   ECCRYPTO_STATUS ECC_DBLMUL_INTERNAL_TE(POINT_PRECOMP_EXTAFF_TE
   *P_table, dig *k, POINT_TE Q, dig *l, POINT_TE R, unsigned int w_P,
   PCurveStruct TedCurve)
   { // Double-base scalar multiplication R = k.P + l.Q using wNAF with Interleaving

which doesn't seem to be used in your DH performance numbers, along with
another rather long function

   ECCRYPTO_STATUS ECC_MUL_TE(POINT_TE P, dig *k, POINT_TE Q, PCurveStruct TedCurve)
   { // Variable-base scalar multiplication Q = k.P using fixed-window method 

which doesn't seem to be used in your signature (mislabeled "ECDSA")
performance numbers. I don't immediately find functions for signing and
verification (is this actually a complete library?), and I suppose that
with some extra work you could implement signature verification using
ECC_MUL_TE rather than ECC_DBLMUL_INTERNAL_TE, but this doesn't seem
consistent with the performance claims. Am I misunderstanding something?

> As illustrated in the NaCl and TweetNaCl libraries having multiple
> required models makes implementation more challenging

Have you actually looked at the code? It doesn't support your claims.

Let's start with TweetNaCl, which prioritizes simplicity (but is still
fast enough for many applications). Here's the complete high-security
constant-time TweetNaCl code for DH shared-secret computation using the
Montgomery x-coordinate for Curve25519---excluding the subroutines that
are already used in TweetNaCl's implementation of Ed25519 signatures:

  int crypto_scalarmult(u8*q,const u8*n,const u8*p){u8 z[32];i64 x[80],r,i;
  gf a,b,c,d,e,f;FOR(i,31)z[i]=n[i];z[31]=(n[31]&127)|64;z[0]&=248;
  unpack25519(x,p);FOR(i,16){b[i]=x[i];d[i]=a[i]=c[i]=0;}a[0]=d[0]=1;
  for(i=254;i>=0;--i){r=(z[i>>3]>>(i&7))&1;sel25519(a,b,r);sel25519(c,d,r);
  A(e,a,c);Z(a,a,c);A(c,b,d);Z(b,b,d);S(d,e);S(f,a);M(a,c,a);M(c,b,e);
  A(e,a,c);Z(a,a,c);S(b,a);Z(c,d,f);M(a,c,_121665);A(a,a,d);M(c,c,a);
  M(a,d,f);M(d,b,x);S(b,e);sel25519(a,b,r);sel25519(c,d,r);}
  FOR(i,16){x[i+16]=a[i];x[i+32]=c[i];x[i+48]=b[i];x[i+64]=d[i];}
  inv25519(x+32,x+32);M(x+16,x+16,x+32);pack25519(q,x+16);return 0;}

For DH keygen you also have to include the following lines:

  static const u8 _0[16], _9[32] = {9};
  int crypto_scalarmult_base(u8 *q,const u8 *n)
  { return crypto_scalarmult(q,n,_9); }

That's it.

The total complexity of the combined DH+signature implementation in
TweetNaCl is much higher: it includes the top-level signature code and
verification code, a hash function, and (shared between signatures and
DH) the underlying code for arithmetic mod 2^255-19, serialization, etc.
An implementation focused on DH---exactly what many applications need---
can skip many lines of signature-specific code, although obviously it
still needs the arithmetic mod 2^255-19. An implementation focused on
signatures---exactly what many other applications need---would only be
able to skip the above lines.

The arithmetic mod 2^255-19 is also the part that requires much more
work for a high-speed implementation. There's no reason to deviate from
the simple high-level Montgomery structure, but top performance requires
careful attention to the lower-level details of arithmetic.

The arithmetic mod 2^255-19 is _also_ the part that requires by far the
most work for auditors. Our auditing standards for NaCl are far beyond
normal industry practice, and the bug you mentioned was in code that was
never accepted into NaCl---a bug not in something high-level such as the
Montgomery ladder, but rather in the lower-level details of highly
optimized arithmetic. Note that the subsequent paper

   http://cryptojedi.org/papers/#verify25519

(ACM CCS 2014) formally verifies the Montgomery-ladder steps in two
highly optimized assembly-language implementations of Curve25519---
including all the details of arithmetic mod 2^255-19.

You correctly observe that the signature portion of TweetNaCl is simpler
than the DH+signature portion: it saves the lines of code shown above. 
But what you're claiming is something completely different (and
incorrect), namely that Montgomery+Edwards on the wire for DH+signatures
"makes implementation more challenging" compared to Edwards+Edwards.

In fact, switching from Montgomery coordinates to Edwards coordinates
for DH would make the simplest DH-specific implementations noticeably
more complex, and certainly wouldn't allow a DH+signature implementation
to be less "challenging." For higher-speed implementations, whether pure
DH or DH+signature, much more code is required for fast arithmetic mod
the prime, further reducing any possible value in these speculative
high-level DH+signature simplifications.

---Dan


From nobody Thu Aug 14 19:31:59 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 11DAA1A89DF for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 19:31:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.599
X-Spam-Level: *
X-Spam-Status: No, score=1.599 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, MANGLED_MEN=2.3, 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 NLgiyD1EQ2Ml for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 19:31:57 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 0EE921A89DE for <cfrg@ietf.org>; Thu, 14 Aug 2014 19:31:56 -0700 (PDT)
Received: (qmail 22917 invoked from network); 15 Aug 2014 02:31:55 -0000
Received: from pcdhz005.win.tue.nl (HELO hyperelliptic.org) (131.155.71.33) by mace.cs.uic.edu with SMTP; 15 Aug 2014 02:31:55 -0000
Received: (qmail 23828 invoked by uid 1000); 15 Aug 2014 02:31:50 -0000
Date: Fri, 15 Aug 2014 04:31:50 +0200
From: Tanja Lange <tanja@hyperelliptic.org>
To: Benjamin Black <b@b3k.us>
Message-ID: <20140815023150.GV28679@cph.win.tue.nl>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OwQiY8nY3K788sAaWB-eSsx-VWk
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 15 Aug 2014 02:31:58 -0000

>    4. The security levels are 128, 192, and 256 bits and each curve will only
>    be evaluated at one of those levels.
> 
You Keep Using That Word, I Do Not Think It Means What You Think It Means.

Seriously, define for me n-bit security level.

	Tanja




From nobody Thu Aug 14 22:27:29 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 7037D1A8A18 for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 22:27:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.022
X-Spam-Level: *
X-Spam-Status: No, score=1.022 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, MANGLED_MEN=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 MmKyna6aJZgE for <cfrg@ietfa.amsl.com>; Thu, 14 Aug 2014 22:27:26 -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 0D3101A8A17 for <cfrg@ietf.org>; Thu, 14 Aug 2014 22:27:25 -0700 (PDT)
Received: by mail-la0-f42.google.com with SMTP id pv20so1962359lab.1 for <cfrg@ietf.org>; Thu, 14 Aug 2014 22:27:24 -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=eyrvUgQZAAbngBVZv8Gd51OMzNEyTJfOvXfK2945Q98=; b=rfmUuHyhxROKudA/yhA9nGSHa0iAko6FvkBjgH49PoyM5bAFEaXxMzGaM1aYdnkVu6 uXb9e/9m4mrlHZlRz37PPfI8DdF8KnAwTul1ToY2rfUi8Sx3/B9fIn7TuuQqmO8ik0kB zSicamo8h7YDU5A1DqmmIBglNdy8KTCNMU2pU77FlaD2sTiB3eqKSTk3V9kDBlU2uEuD 4Y3saiEJGHo2umKm1biRLrBTX9Qe1Fqd8Np3fHSOF30dEOLFSmeCwHOHY1egFngbxeeU G+cId5OMyBc/ZyW++YeqUce5Q2YqIgIQ0E8izJslG9BmZ4vR7FNcYPa7koZXTGgTBPwk +vjg==
MIME-Version: 1.0
X-Received: by 10.112.167.170 with SMTP id zp10mr9301593lbb.2.1408080444310; Thu, 14 Aug 2014 22:27:24 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.122.50 with HTTP; Thu, 14 Aug 2014 22:27:24 -0700 (PDT)
In-Reply-To: <20140815023150.GV28679@cph.win.tue.nl>
References: <CA+Vbu7wuAcmtAKJYEgAaSBTf6sj8pRfYpJhz2qV_ER=33mrk8Q@mail.gmail.com> <20140815023150.GV28679@cph.win.tue.nl>
Date: Fri, 15 Aug 2014 01:27:24 -0400
X-Google-Sender-Auth: dI_Y2WurvGTrsUfmSyw97IZHrag
Message-ID: <CAMm+LwgY=Te5M8-Rxj3eiwXHK17-UXJwi=NOQ2EXC+S66stmtQ@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/fLGMW9f8-WApKWyUH9qFc3nxJhw
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Requirements for curve candidate evaluation update
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 15 Aug 2014 05:27:27 -0000

On Thu, Aug 14, 2014 at 10:31 PM, Tanja Lange <tanja@hyperelliptic.org> wrote:
>>    4. The security levels are 128, 192, and 256 bits and each curve will only
>>    be evaluated at one of those levels.
>>
> You Keep Using That Word, I Do Not Think It Means What You Think It Means.
>
> Seriously, define for me n-bit security level.

Well its easy enough to define work factor according to best known attack.

Only we need some security margin and we probably need to round up so
that we can defend the choice to folk who are not experts without
getting into citing specific papers.

So if the work factor isn't a 1:1 exponent of the key size or very
close, one way is we round up to the next integer.

AES-128 has a work factor of 2^128
AES-256 has a work factor of 2^256

A 128 bit modulus curve does not have a 128 bit work factor, its less.
but it is greater than 64 bits which is 128/2.

Now obviously the case can be made that a 448 bit modulus gives a work
factor greater than 2^256. But it requires a PhD to understand it. And
that is not a case I want to have to make to lay-people who think
everyone secretly works for the NSA.


From nobody Fri Aug 15 04:12:27 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 199281A8A35 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 04:12:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.268
X-Spam-Level: 
X-Spam-Status: No, score=-3.268 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.668] 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 uw7jM4ecRXgZ for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 04:12:22 -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 4DEF71A09D7 for <cfrg@irtf.org>; Fri, 15 Aug 2014 04:12:21 -0700 (PDT)
Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 7CF231A0079 for <cfrg@irtf.org>; Fri, 15 Aug 2014 13:12:16 +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 wwUzs5ARs9rr for <cfrg@irtf.org>; Fri, 15 Aug 2014 13:12:11 +0200 (CEST)
Received: from mail-essen-01.secunet.de (unknown [10.53.40.204]) by a.mx.secunet.com (Postfix) with ESMTP id 9C6041A0071 for <cfrg@irtf.org>; Fri, 15 Aug 2014 13:12:11 +0200 (CEST)
Received: from [172.16.40.201] (172.16.40.201) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 15 Aug 2014 13:12:14 +0200
Message-ID: <53EDEB0D.9040304@secunet.com>
Date: Fri, 15 Aug 2014 13:12:13 +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: <cfrg@irtf.org>
References: <20140801013659.11640.qmail@cr.yp.to>
In-Reply-To: <20140801013659.11640.qmail@cr.yp.to>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.16.40.201]
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/tjL-m-SCUHz1gQ9TDbKf7hnuHjE
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, 15 Aug 2014 11:12:25 -0000

D. J. Bernstein wrote on 01.08.2014 03:36:
> 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

This statement is so skewed and misleading that I can not refrain from commenting:

- In this analysis, a significant part of this flexibility comes from the choice of the hash function. Specifically, the
BADA55 curves were generated using one of the numerous version of Keccak. However, Keccak wasn't even invented at the
time the Brainpool curves were generated.

 - The method used to generate the coefficients of the Brainpool curves was taken from ANSI X9.62 (including the use of
SHA-1), which was - at least at that time - the only reference for a method for pseudo-random curve generation. There is
only the slight deviation that the second coefficient was computed in exactly the same way as the first one, while ANSI
X9.62 computes the fraction of these, but this straightforward simplification does not introduce significant flexibility.

- Pi and e are by far the most prominent mathematical constants, while cosinus(1) (used in that analysis) is quite
arbitrarily chosen. Expressing Pi as 4*arctan(1) doesn't change this fact.

It is perfectly OK to point out that the Brainpool curves do not allow optimal performance, or that Montgomery and
Edwards curves allow simplified arithmetic. But it is not ok to imply that the Brainpool curves could potentially have
been designed with a backdoor built in. This suggestion is completely unjustified, misleading and gives a false color.

-- 
Johannes


From nobody Fri Aug 15 04:26: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 1AA741A8A4D for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 04:26:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.268
X-Spam-Level: 
X-Spam-Status: No, score=-3.268 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.668] 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 TmHqpgRf9Qs5 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 04:26:43 -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 1CDE01A8A4C for <cfrg@irtf.org>; Fri, 15 Aug 2014 04:26:43 -0700 (PDT)
Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id D787A1A007A; Fri, 15 Aug 2014 13:26:38 +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 O8-3tLp2Amon; Fri, 15 Aug 2014 13:26:30 +0200 (CEST)
Received: from mail-essen-01.secunet.de (unknown [10.53.40.204]) by a.mx.secunet.com (Postfix) with ESMTP id 576C61A0079; Fri, 15 Aug 2014 13:26:30 +0200 (CEST)
Received: from [172.16.40.201] (172.16.40.201) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 15 Aug 2014 13:26:32 +0200
Message-ID: <53EDEE67.6090308@secunet.com>
Date: Fri, 15 Aug 2014 13:26: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: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII>
In-Reply-To: <20140808141506.GA24645@LK-Perkele-VII>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.16.40.201]
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BRhYCabwXK_xWsw9NLbGkRCCTUg
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: Fri, 15 Aug 2014 11:26:44 -0000

Ilari Liusvaara wrote on 08.08.2014 16:15:
> Picking prime randomly has _devastating_ impact on performance. 

I do not mean to doubt that statement, I'm just looking for hard numbers: Do you have any reference for a proper
analysis supporting that? I mean something beyond "oh, that's common sense".
-- 
Johannes


From nobody Fri Aug 15 05:35:37 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 3D0A81A0A70 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 05:35: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, 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 PaX7IOaDfE66 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 05:35:33 -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 422381A0A6F for <cfrg@irtf.org>; Fri, 15 Aug 2014 05:35:33 -0700 (PDT)
User-Agent: K-9 Mail for Android
In-Reply-To: <53EDEB0D.9040304@secunet.com>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Fri, 15 Aug 2014 13:35:24 +0100
To: cfrg@irtf.org
Message-ID: <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ee9zJT3hIU5q_U5WuErhN2KENeM
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, 15 Aug 2014 12:35:35 -0000

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

On 15 August 2014 12:12:13 BST, Johannes Merkle <johannes.merkle@secunet.com> wrote:

>- The method used to generate the coefficients of the Brainpool curves
>was taken from ANSI X9.62 (including the use of
>SHA-1), which was - at least at that time - the only reference for a
>method for pseudo-random curve generation. There is
>only the slight deviation that the second coefficient was computed in
>exactly the same way as the first one, while ANSI
>X9.62 computes the fraction of these, but this straightforward
>simplification does not introduce significant flexibility.
>
>- Pi and e are by far the most prominent mathematical constants, while
>cosinus(1) (used in that analysis) is quite
>arbitrarily chosen. Expressing Pi as 4*arctan(1) doesn't change this
>fact.
>
>It is perfectly OK to point out that the Brainpool curves do not allow
>optimal performance, or that Montgomery and
>Edwards curves allow simplified arithmetic. But it is not ok to imply
>that the Brainpool curves could potentially have
>been designed with a backdoor built in. This suggestion is completely
>unjustified, misleading and gives a false color.

Respectfully, deferring choices made in the curve generation process back to ANSI X9.62 (even though it may have made sense at the time) doesn't alleviate any potential concerns about lack of rigidity in those choices; it merely means they weren't Brainpool's own choices, and no-one thought to question them at the time quite as deeply as they do today.

If X9.62's choices had full, rigid, transparent explanations, perhaps this discussion would have not arisen, and in that vein perhaps neither would Brainpool? But they did not (and although Certicom/NSA indeed seem to have performed a brute-force seed search for the SECG/NIST curves, we may never be certain what all the parameters of that search were): so here we are.

Please do not take the BADA55 paper personally; it is simply an entertaining, instructive demonstration of how, just because a conjurer seems to have nothing up their sleeves, doesn't necessarily mean they can't do magic tricks and perhaps we should all remember to look under their hat, too. :-)

- --
/akr
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI3BAEBCgAhBQJT7f6MGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6bRcP/0p8PkEtRAxzDfeSm83GBUMWfVDozB7yjvRXCtKf8QpzItVus7y4
bPYCRTUqPh0EoAIj+4LtgzElc0hvSWGaXXXeC73AS+8n3ky4SNFXZNsncY8Oehdx
tQ1J2XViV7VssOHu0laTWd4vIZtItHmfB1u6oNhlbsW4MRZ0eYNHk8mUv/lpIoN2
dE+iBKby/BkIusWbEcSgT3uh8zF6VCzdMEGlwXk7+0jscZkFxJdjGU6BVQce9z//
MiTgy+wnkM2J/QUFf3HX3y4YmecjI/PKvH9vDnp+PpJjAzWe0/yRYT5YiXj10z6G
AJ6ncCsa00I0ZbRkWQUGj2zYqvbxNRNCAjs+WxvckI1lC7R1sqQk3TWXliIH0808
Vpu9DzuauxTBCfYqwoJ/XIT9lglPCxWCFiTg44kFnE6/XjI/xvsxKgYfk84G1xcc
09EI7GQJ0cGYZo844xPIc+54arNRVKUMOGeXPUfHkm74u8xWy8NtM2FEYx+W1Y/R
yvKbUBZ1jyqBKtzkxqYuROCAQoSofe//eRuHu2iylw3j3FXKc9QcA401gQQ07Bkj
r1hCDCwFEBzuLbUHHYFtGk2MhggI/XYW7EQB8KDVFC5yhzNXm30eiz3vCTOmRLzQ
sRIoLz4UU8lm/D1qiqrTGzirSGCJTrirrTagSNM+GzKWYWhZC/Tjvp3a
=5wiX
-----END PGP SIGNATURE-----


From nobody Fri Aug 15 07:22:52 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 7C04B1A0AE9 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 07:22:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.268
X-Spam-Level: 
X-Spam-Status: No, score=-3.268 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.668] 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 5t5pE6hNvpyi for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 07:22:45 -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 3A4A31A0AE5 for <cfrg@irtf.org>; Fri, 15 Aug 2014 07:22:45 -0700 (PDT)
Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 0B2F21A0080; Fri, 15 Aug 2014 16:22:40 +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 w0-bbFquI1rQ; Fri, 15 Aug 2014 16:22:31 +0200 (CEST)
Received: from mail-essen-01.secunet.de (unknown [10.53.40.204]) by a.mx.secunet.com (Postfix) with ESMTP id 7AF781A007B; Fri, 15 Aug 2014 16:22:31 +0200 (CEST)
Received: from [172.16.40.201] (172.16.40.201) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 15 Aug 2014 16:22:34 +0200
Message-ID: <53EE17A9.7080408@secunet.com>
Date: Fri, 15 Aug 2014 16:22:33 +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: Alyssa Rowan <akr@akr.io>, <cfrg@irtf.org>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com>
In-Reply-To: <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.16.40.201]
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_tE-jgTaX_zar-ptfRrMIFvM6EA
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, 15 Aug 2014 14:22:47 -0000

Alyssa Rowan wrote on 15.08.2014 14:35:
> Respectfully, deferring choices made in the curve generation process back to ANSI X9.62 (even though it may have
> made sense at the time) doesn't alleviate any potential concerns about lack of rigidity in those choices; it merely
> means they weren't Brainpool's own choices, and no-one thought to question them at the time quite as deeply as they
> do today.
> 
> If X9.62's choices had full, rigid, transparent explanations, perhaps this discussion would have not arisen, and in
> that vein perhaps neither would Brainpool? But they did not (and although Certicom/NSA indeed seem to have
> performed a brute-force seed search for the SECG/NIST curves, we may never be certain what all the parameters of
> that search were): so here we are.
> 


The issue many people on this list (including me) have with the NIST curves is not the curve generation method but the
unexplained seeds. If you mean to imply that the method itself is suspicious, independent of the seeds, then this is a
position I have not yet seen expressed, and I doubt that many people will find it plausible.

Actually, this is the core of the problem with the discussion on rigidity: It is more about sense than about facts. Do
you feel comfortable with this generation procedure or with those constants, or with others? Something that you might
deem very straightforward and rigid may look arbitrary and even suspicious to others. Rigidity can not be measured
objectively. This makes it easy to argue against one or the other approach.

It is important that, whatever curves CFRG selects, anyone can feel comfortable with their rigidity and that there
will be no doubts about their security and the lack of back-doors. The BADA55 paper and the post I was responding to,
though intended to be provocative and entertaining, introduce FUD in that respect and are contra-productive. I am
quite sure that one could also construct a "one in a million curve" using a seed-less approach very similar to
curve25519, but this would only introduce more unjustified discredit and FUD.

We should focus on establishing trust not FUD.

-- 
Johannes


From nobody Fri Aug 15 07:29: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 DEBB21A8A64 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 07:29: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 N6vr3M4jsGOz for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 07:29:07 -0700 (PDT)
Received: from mail-yk0-x22b.google.com (mail-yk0-x22b.google.com [IPv6:2607:f8b0:4002:c07::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 597441A0AEF for <cfrg@irtf.org>; Fri, 15 Aug 2014 07:29:07 -0700 (PDT)
Received: by mail-yk0-f171.google.com with SMTP id 19so2121757ykq.16 for <cfrg@irtf.org>; Fri, 15 Aug 2014 07:29: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=8lelvuGaqE91Kar1fX0eOEB3d+Aoqw8U/qlbXEE74Qo=; b=weWb3VHCRmtaoWpMxMfzmTkY+2xPixr4Pp7bNokkPOx2djm4/uoUJHWssodkX8mMbL A6fZaI9fwnqxltgTNsUbvZKqBorUJqh2jI7nrCXKTl2HgnBRIyjS/59jYKNUhEJHromQ b/QWbhwjoFsMBqusVRKrQU8AgQFy0xG2VP7PUjSqra+GYZ3m/7J0RIiAogSEXBYnV77L 3z/E3G/LJUx4pTIsO6LZZqLc8Mo3jUdf8n2q24DNUawetmdcocsemQ0iKHfaDlAQ9mO6 XeOWbkdluJeDI3i/YV6Ch6r4a1ku3i0Jv5gx4PXZvf2+ZxkbN9d/9f0LmB/RxnBhUm4D 1Vrw==
MIME-Version: 1.0
X-Received: by 10.236.134.208 with SMTP id s56mr27608853yhi.4.1408112946627; Fri, 15 Aug 2014 07:29:06 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Fri, 15 Aug 2014 07:29:06 -0700 (PDT)
Received: by 10.170.202.8 with HTTP; Fri, 15 Aug 2014 07:29:06 -0700 (PDT)
In-Reply-To: <53EE17A9.7080408@secunet.com>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com>
Date: Fri, 15 Aug 2014 07:29:06 -0700
Message-ID: <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Johannes Merkle <johannes.merkle@secunet.com>
Content-Type: multipart/alternative; boundary=20cf303a2bbbfccc7e0500abd7e6
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/B_0W9YhL1v_3Evjdxu8dI7jOSg0
Cc: 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: Fri, 15 Aug 2014 14:29:09 -0000

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

On Aug 15, 2014 7:23 AM, "Johannes Merkle" <johannes.merkle@secunet.com>
wrote:
>
> Alyssa Rowan wrote on 15.08.2014 14:35:
> > Respectfully, deferring choices made in the curve generation process
back to ANSI X9.62 (even though it may have
> > made sense at the time) doesn't alleviate any potential concerns about
lack of rigidity in those choices; it merely
> > means they weren't Brainpool's own choices, and no-one thought to
question them at the time quite as deeply as they
> > do today.
> >
> > If X9.62's choices had full, rigid, transparent explanations, perhaps
this discussion would have not arisen, and in
> > that vein perhaps neither would Brainpool? But they did not (and
although Certicom/NSA indeed seem to have
> > performed a brute-force seed search for the SECG/NIST curves, we may
never be certain what all the parameters of
> > that search were): so here we are.
> >
>
>
> The issue many people on this list (including me) have with the NIST
curves is not the curve generation method but the
> unexplained seeds. If you mean to imply that the method itself is
suspicious, independent of the seeds, then this is a
> position I have not yet seen expressed, and I doubt that many people will
find it plausible.
>
> Actually, this is the core of the problem with the discussion on
rigidity: It is more about sense than about facts. Do
> you feel comfortable with this generation procedure or with those
constants, or with others? Something that you might
> deem very straightforward and rigid may look arbitrary and even
suspicious to others. Rigidity can not be measured
> objectively. This makes it easy to argue against one or the other
approach.
>
> It is important that, whatever curves CFRG selects, anyone can feel
comfortable with their rigidity and that there
> will be no doubts about their security and the lack of back-doors. The
BADA55 paper and the post I was responding to,
> though intended to be provocative and entertaining, introduce FUD in that
respect and are contra-productive. I am
> quite sure that one could also construct a "one in a million curve" using
a seed-less approach very similar to
> curve25519, but this would only introduce more unjustified discredit and
FUD.
>

Hic rhodes, hic saltus.

> We should focus on establishing trust not FUD.
>
> --
> Johannes
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg

--20cf303a2bbbfccc7e0500abd7e6
Content-Type: text/html; charset=UTF-8

<p dir="ltr"><br>
On Aug 15, 2014 7:23 AM, &quot;Johannes Merkle&quot; &lt;<a href="mailto:johannes.merkle@secunet.com">johannes.merkle@secunet.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Alyssa Rowan wrote on 15.08.2014 14:35:<br>
&gt; &gt; Respectfully, deferring choices made in the curve generation process back to ANSI X9.62 (even though it may have<br>
&gt; &gt; made sense at the time) doesn&#39;t alleviate any potential concerns about lack of rigidity in those choices; it merely<br>
&gt; &gt; means they weren&#39;t Brainpool&#39;s own choices, and no-one thought to question them at the time quite as deeply as they<br>
&gt; &gt; do today.<br>
&gt; &gt;<br>
&gt; &gt; If X9.62&#39;s choices had full, rigid, transparent explanations, perhaps this discussion would have not arisen, and in<br>
&gt; &gt; that vein perhaps neither would Brainpool? But they did not (and although Certicom/NSA indeed seem to have<br>
&gt; &gt; performed a brute-force seed search for the SECG/NIST curves, we may never be certain what all the parameters of<br>
&gt; &gt; that search were): so here we are.<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; The issue many people on this list (including me) have with the NIST curves is not the curve generation method but the<br>
&gt; unexplained seeds. If you mean to imply that the method itself is suspicious, independent of the seeds, then this is a<br>
&gt; position I have not yet seen expressed, and I doubt that many people will find it plausible.<br>
&gt;<br>
&gt; Actually, this is the core of the problem with the discussion on rigidity: It is more about sense than about facts. Do<br>
&gt; you feel comfortable with this generation procedure or with those constants, or with others? Something that you might<br>
&gt; deem very straightforward and rigid may look arbitrary and even suspicious to others. Rigidity can not be measured<br>
&gt; objectively. This makes it easy to argue against one or the other approach.<br>
&gt;<br>
&gt; It is important that, whatever curves CFRG selects, anyone can feel comfortable with their rigidity and that there<br>
&gt; will be no doubts about their security and the lack of back-doors. The BADA55 paper and the post I was responding to,<br>
&gt; though intended to be provocative and entertaining, introduce FUD in that respect and are contra-productive. I am<br>
&gt; quite sure that one could also construct a &quot;one in a million curve&quot; using a seed-less approach very similar to<br>
&gt; curve25519, but this would only introduce more unjustified discredit and FUD.<br>
&gt;</p>
<p dir="ltr">Hic rhodes, hic saltus.</p>
<p dir="ltr">&gt; We should focus on establishing trust not FUD.<br>
&gt;<br>
&gt; --<br>
&gt; Johannes<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href="http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
</p>

--20cf303a2bbbfccc7e0500abd7e6--


From nobody Fri Aug 15 08:44:13 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 97B791A03AB for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 08:44:10 -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 n-IDbXoTW8DG for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 08:44:07 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 973151A6EEF for <cfrg@irtf.org>; Fri, 15 Aug 2014 08:44:06 -0700 (PDT)
Received: from xct102cnc.rim.net ([10.65.161.202]) by mhs211cnc.rim.net with ESMTP/TLS/AES128-SHA; 15 Aug 2014 11:44:05 -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; Fri, 15 Aug 2014 11:44:05 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Progress on curve recommendations for TLS WG
Thread-Index: AQHPrSkVFDDUD0tW0keHIpwhcB27wpvR3EOAgAAXPgCAAB3vgP//zJRg
Date: Fri, 15 Aug 2014 15:44:04 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CCCF75@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com>
In-Reply-To: <53EE17A9.7080408@secunet.com>
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.249]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_00EC_01CFB87E.36E52250"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/gtmMcjFvpO8P9LXO52F28zD_uIY
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, 15 Aug 2014 15:44:10 -0000

------=_NextPart_000_00EC_01CFB87E.36E52250
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Johannes Merkle
> Sent: Friday, August 15, 2014 10:23 AM
> 
> are contra-productive. I am quite sure that one could also construct a
"one in a
> million curve" using a seed-less approach very similar to curve25519, but
this
> would only introduce more unjustified discredit and FUD.
> 

[DB] I thought I already did this, and more, in my email to this list with
subject "Bad and Rigid Curve".  I found a one-in-2^128 curve that is
seed-less.  Oh well, I suppose I cannot expect everybody to read everything
I write, or at least agree with it.

But maybe the point was that BARC seemed insufficiently similar to
Curve25519. 

Here's something more similar to Curve25519, but I need to count points and
factor, so I've use Sage, whose session I manually re-typed here (to save
myself from learning how to cutting-and-paste from the VM I'm using):

sage: E = EllipticCurve(GF(2^255-19),[0,1,0,1,0]); E
y^2 = x^3 + x^2 + x
sage: factor(E.order())
2^4 * 67 * 557233194274943 * 2014538529699005948261 *
4811068624484807686053494972215370277
sage: log(481106862448480768605349497215370277.0,2.0)
112

This curve is similar to Curve25519, same field, same equation shape, but
smaller x^2 coefficient, namely 1 instead of the value used in Curve25519,
which is about half a million, if I recall correctly.

If this curve had been proposed before the Pohlig--Hellman attack had been
made public, then it would be vulnerable to 2^56 step secret attack, yet the
best public attack would have been 2^128-step Pollard rho.






------=_NextPart_000_00EC_01CFB87E.36E52250
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
CSqGSIb3DQEJARYTZGJyb3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gBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYDH6WLW141yxlcrhU56ICKZdaffoFne
An37ZD/F/wjXDP27FkzAH+cF4p86isEE6vcHmB1J4s/nQN7JmRCcnv7qn6CKcvxb5HiIg9aR9jSD
EQL1pboX2z+Guq1uMOxOtl2y4q/XKE2ewvHz+W99AeC8GtLFYugvizvVUcgAtqs+LQAAAAAAAA==

------=_NextPart_000_00EC_01CFB87E.36E52250--


From nobody Fri Aug 15 09:41:46 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 D751B1A0021 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 09:41:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.268
X-Spam-Level: 
X-Spam-Status: No, score=-3.268 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.668] 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 iYPCqnGaOVin for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 09:41:42 -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 CDD2F1A000E for <cfrg@irtf.org>; Fri, 15 Aug 2014 09:41:41 -0700 (PDT)
Received: from localhost (alg1 [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 4D0351A007A; Fri, 15 Aug 2014 18:41:36 +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 OYnJXDb5SGNO; Fri, 15 Aug 2014 18:41:27 +0200 (CEST)
Received: from mail-essen-01.secunet.de (unknown [10.53.40.204]) by a.mx.secunet.com (Postfix) with ESMTP id 9D26E1A0079; Fri, 15 Aug 2014 18:41:27 +0200 (CEST)
Received: from [172.16.40.201] (172.16.40.201) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 15 Aug 2014 18:41:30 +0200
Message-ID: <53EE3839.7010009@secunet.com>
Date: Fri, 15 Aug 2014 18:41:29 +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>
References: <20140801013659.11640.qmail@cr.yp.to>	<53EDEB0D.9040304@secunet.com>	<925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com>	<53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com>
In-Reply-To: <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.16.40.201]
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lzXv96M7lKaAuK-3G_ZUS93SO4Q
Cc: 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: Fri, 15 Aug 2014 16:41:45 -0000

Watson Ladd wrote on 15.08.2014 16:29:
>>
>> It is important that, whatever curves CFRG selects, anyone can feel
> comfortable with their rigidity and that there
>> will be no doubts about their security and the lack of back-doors. The
> BADA55 paper and the post I was responding to,
>> though intended to be provocative and entertaining, introduce FUD in that
> respect and are contra-productive. I am
>> quite sure that one could also construct a "one in a million curve" using
> a seed-less approach very similar to
>> curve25519, but this would only introduce more unjustified discredit and
> FUD.
>>
> 
> Hic rhodes, hic saltus.

Consider Dan Brown's construction as an example. You may consider his construction artificial as he considers attacks
that are already known. However, this is exactly my point: You can find such examples if you stretch the boundaries of
the scope in order to increase the degrees of freedom. In order to create sufficient flexibility, the BADA55 paper has
generalized the method(s) of ANSI and Brainpool in many aspects, but these generalizations are much less natural and
straightforward as the original approaches. In the same vein, one could slightly modify the rules for selecting the
curve parameters used in a seed-less approach, and this generalization would certainly provoke your criticism as not
being straightforward. So we would arrive at an example that does not really show anything but could be easily mistaken
by someone with less insight (e.g. the press) to wrongly conclude that the seed-less approach is generally suspicious.
This FUD effect would be bad.

For this reason, I tried to appeal to stop this unfortunate discussion in which contrived examples are used to discredit
much more straightforward approaches, but unfortunately, my post seem to have stimulated it.


-- 
Johannes


From nobody Fri Aug 15 10:07:08 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 7111F1A0062 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 10:07:06 -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 xBe_BI3ziwNl for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 10:07:05 -0700 (PDT)
Received: from mail-yk0-x231.google.com (mail-yk0-x231.google.com [IPv6:2607:f8b0:4002:c07::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C8FF41A00A3 for <cfrg@irtf.org>; Fri, 15 Aug 2014 10:07:04 -0700 (PDT)
Received: by mail-yk0-f177.google.com with SMTP id 79so2273069ykr.22 for <cfrg@irtf.org>; Fri, 15 Aug 2014 10:07:04 -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=Gue7PxFjTfbuqrdOiLMNfECeXlHQbjpfe1zjIAcFADs=; b=0oQ4GDLZEY1Cw7uxVUVlQDz/6ixaBnSCjXLx67wPw+WkTvCih5xdZuE+ouZCs1QZ8j 5t6T6uIy1MPiku/Zo0G9HzEMjOViTtJUJNhU0i1EAbwo/EAuvmHXr4/n/HBygGe56fFF quJ24RCs2S8oHBDswvybejHFp9z0CUEZ395iUqlZxRXdeOK3CPz4Iyvp8ePVUIfSVsYy Fb1EkS2buE7PzIi/6OLsogORgceF+MwMbHkTUG5YTbdPFCXhxwnU/6x1npHPfLZH0iPZ WQyB6meyxJH3tPBzgpeYCm5Hh2mRTtlLLTq9im9GnQBNdGNS4ieSO+ZoYjsvjt37IswK 1fnQ==
MIME-Version: 1.0
X-Received: by 10.236.172.161 with SMTP id t21mr29024458yhl.65.1408122424035;  Fri, 15 Aug 2014 10:07:04 -0700 (PDT)
Received: by 10.170.202.86 with HTTP; Fri, 15 Aug 2014 10:07:03 -0700 (PDT)
Received: by 10.170.202.86 with HTTP; Fri, 15 Aug 2014 10:07:03 -0700 (PDT)
In-Reply-To: <53EE3839.7010009@secunet.com>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com>
Date: Fri, 15 Aug 2014 10:07:03 -0700
Message-ID: <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Johannes Merkle <johannes.merkle@secunet.com>
Content-Type: multipart/alternative; boundary=20cf304273e0e2975b0500ae0c0c
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/egtmK3ANObank7pJyE8PJ2hB528
Cc: 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: Fri, 15 Aug 2014 17:07:06 -0000

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

On Aug 15, 2014 9:41 AM, "Johannes Merkle" <johannes.merkle@secunet.com>
wrote:
>
> Watson Ladd wrote on 15.08.2014 16:29:
> >>
> >> It is important that, whatever curves CFRG selects, anyone can feel
> > comfortable with their rigidity and that there
> >> will be no doubts about their security and the lack of back-doors. The
> > BADA55 paper and the post I was responding to,
> >> though intended to be provocative and entertaining, introduce FUD in
that
> > respect and are contra-productive. I am
> >> quite sure that one could also construct a "one in a million curve"
using
> > a seed-less approach very similar to
> >> curve25519, but this would only introduce more unjustified discredit
and
> > FUD.
> >>
> >
> > Hic rhodes, hic saltus.
>
> Consider Dan Brown's construction as an example. You may consider his
construction artificial as he considers attacks
> that are already known. However, this is exactly my point: You can find
such examples if you stretch the boundaries of
> the scope in order to increase the degrees of freedom. In order to create
sufficient flexibility, the BADA55 paper has
> generalized the method(s) of ANSI and Brainpool in many aspects, but
these generalizations are much less natural and
> straightforward as the original approaches. In the same vein, one could
slightly modify the rules for selecting the
> curve parameters used in a seed-less approach, and this generalization
would certainly provoke your criticism as not
> being straightforward. So we would arrive at an example that does not
really show anything but could be easily mistaken
> by someone with less insight (e.g. the press) to wrongly conclude that
the seed-less approach is generally suspicious.
> This FUD effect would be bad.

Put the string BADA55 in the hex output of the parameters to convince us.
It's that simple. The reason Dan Brown's example isn't convincing is that
having only  prime factors of not that small size is common.

>
> For this reason, I tried to appeal to stop this unfortunate discussion in
which contrived examples are used to discredit
> much more straightforward approaches, but unfortunately, my post seem to
have stimulated it.
>
>
> --
> Johannes

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

<p dir=3D"ltr"><br>
On Aug 15, 2014 9:41 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; Watson Ladd wrote on 15.08.2014 16:29:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It is important that, whatever curves CFRG selects, anyone ca=
n feel<br>
&gt; &gt; comfortable with their rigidity and that there<br>
&gt; &gt;&gt; will be no doubts about their security and the lack of back-d=
oors. The<br>
&gt; &gt; BADA55 paper and the post I was responding to,<br>
&gt; &gt;&gt; though intended to be provocative and entertaining, introduce=
 FUD in that<br>
&gt; &gt; respect and are contra-productive. I am<br>
&gt; &gt;&gt; quite sure that one could also construct a &quot;one in a mil=
lion curve&quot; using<br>
&gt; &gt; a seed-less approach very similar to<br>
&gt; &gt;&gt; curve25519, but this would only introduce more unjustified di=
scredit and<br>
&gt; &gt; FUD.<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt; Hic rhodes, hic saltus.<br>
&gt;<br>
&gt; Consider Dan Brown&#39;s construction as an example. You may consider =
his construction artificial as he considers attacks<br>
&gt; that are already known. However, this is exactly my point: You can fin=
d such examples if you stretch the boundaries of<br>
&gt; the scope in order to increase the degrees of freedom. In order to cre=
ate sufficient flexibility, the BADA55 paper has<br>
&gt; generalized the method(s) of ANSI and Brainpool in many aspects, but t=
hese generalizations are much less natural and<br>
&gt; straightforward as the original approaches. In the same vein, one coul=
d slightly modify the rules for selecting the<br>
&gt; curve parameters used in a seed-less approach, and this generalization=
 would certainly provoke your criticism as not<br>
&gt; being straightforward. So we would arrive at an example that does not =
really show anything but could be easily mistaken<br>
&gt; by someone with less insight (e.g. the press) to wrongly conclude that=
 the seed-less approach is generally suspicious.<br>
&gt; This FUD effect would be bad.</p>
<p dir=3D"ltr">Put the string BADA55 in the hex output of the parameters to=
 convince us. It&#39;s that simple. The reason Dan Brown&#39;s example isn&=
#39;t convincing is that having only=C2=A0 prime factors of not that small =
size is common.</p>

<p dir=3D"ltr">&gt;<br>
&gt; For this reason, I tried to appeal to stop this unfortunate discussion=
 in which contrived examples are used to discredit<br>
&gt; much more straightforward approaches, but unfortunately, my post seem =
to have stimulated it.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Johannes<br>
</p>

--20cf304273e0e2975b0500ae0c0c--


From nobody Fri Aug 15 10:36:22 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 D062F1A0110 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 10:36:10 -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 3fHkPCR1pxQ1 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 10:36:06 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 4EBA51A0102 for <cfrg@irtf.org>; Fri, 15 Aug 2014 10:36:05 -0700 (PDT)
Received: from smtp-pop.rim.net (HELO XCT103CNC.rim.net) ([10.65.161.203]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 15 Aug 2014 13:36:01 -0400
Received: from XCT104CNC.rim.net (10.65.161.204) by XCT103CNC.rim.net (10.65.161.203) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 15 Aug 2014 13:36:01 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT104CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 15 Aug 2014 13:36:01 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Progress on curve recommendations for TLS WG
Thread-Index: AQHPrSkVFDDUD0tW0keHIpwhcB27wpvR3EOAgAAXPgCAAB3vgIAAAdUAgAAk/YD//7820A==
Date: Fri, 15 Aug 2014 17:36:00 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CCD05A@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com>
In-Reply-To: <53EE3839.7010009@secunet.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.249]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_00FA_01CFB88D.DA119A80"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/yM35MNzxfjn6HJUE2GlzzZ5npek
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, 15 Aug 2014 17:36:11 -0000

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

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Johannes Merkle
> Sent: Friday, August 15, 2014 12:41 PM
> To: Watson Ladd
> Cc: cfrg@irtf.org
> Subject: Re: [Cfrg] Progress on curve recommendations for TLS WG
> 
> >>
> >> curve25519, but this would only introduce more unjustified discredit
> >> and
> > FUD.
> >>
> >
> 
> being straightforward. So we would arrive at an example that does not
really
> show anything but could be easily mistaken by someone with less insight
(e.g.
> the press) to wrongly conclude that the seed-less approach is generally
> suspicious.
> This FUD effect would be bad.
> 
> For this reason, I tried to appeal to stop this unfortunate discussion in
which
> contrived examples are used to discredit much more straightforward
> approaches, but unfortunately, my post seem to have stimulated it.
> 

I disagree with some of the points above.  So: 

Contrived examples are useful when abstractions get too numerous and
difficult and hard to compare. They can more efficient at conveying an idea,
in using fewer words.  I hope that the CFRG will not misunderstand the
contrivances, but rather try to see the points they demonstrate.  I agree
that contrivances may not be interesting to be engineering and the general
public, who are more concerned with the end results, but researchers should
be able to consider them if it is for the purposes of clarity.

Nobody will ever be able to fully resolve the possibility of secret attacks.
So rather than dismissing the possibility as FUD, we should try to do what
we can to minimize this threat.  That's the whole reason for being of the
disciplines of public cryptanalysis and of provable security.  If any time
somebody proposes an algorithm with no published attacks, then they should
not be able dismiss any criticisms by crying FUD, right?

CFRG are neither the press nor the end user. I expect CFRG to be able to
engage in technical discussions, without censuring itself because of
possible misunderstanding by non-technical.

My BARC example was merely meant to demonstrate that rigidity alone does not
support the security of Curve25519 against secret attacks.  Rather, if the
maturity of cryptanalysis suggests that all known attacks are public, then
Curve25519 is secure.  Or, perhaps maturity of public cryptanalysis only
suggests that any weak curve classes differ from the Pohlig--Hellman and MOV
weak classes in the sense that the secret class is only reachable by trying
multiple curves and we heuristically expect it to apply to all curves with
equal probability.  In fact, I already tried make this abstract argument
long ago on the TLS and CFRG lists: that one needs to assume that some
secret attack which Curve25519 can resists is an attack that affects all
curves with equally likelihood, which sounds like a plausible assumption,
and indeed is a weaker assumption than assuming no secret attacks. That
said, it is not true for the some of the known attacks, at least the PH and
MOV attacks.  I'm not sure if this abstract argument sounded believable, so
I provided the BARC example as a demonstration.  

The 56-bit secure y^2 = x^3 + x^2 + x variant of Curve25519 may perhaps only
demonstrate something vastly weaker abstract idea: that a rigid curve can be
weaker than expected curve just by a fluke, in other words, that bad luck is
possible.  I don't know enough to be completely sure whether this particular
example is much worse than average, or if it qualifies as a one-in-a-million
type of fluke.  Of course, once a random curve is selected, it can suffer
from bad luck too.  In the case of a fixed random curve, at least we can
form an argument about a priori probabilities.  So, that's why I'm saying
that this is a much weak abstract idea, because it hinges on the notion of a
priori probabilities.  Selecting random curves more often would be costly,
but would improve this particular aspect.

Best regards,

Dan



------=_NextPart_000_00FA_01CFB88D.DA119A80
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
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZ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FN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDgxNTE3MzYwMFowIwYJKoZIhvcNAQkEMRYEFJ9S
sIOMdwSXTFLqAIfOA2rfopUYMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYDRdiEvYKVz1klgyMGMI27TFjQyEc6A
2LEc9TuhnNYIM1XdYTr9ds14rEjRtUfjAZa02069IIcshXZLxHihV50mUkGBnP91LUQUCli5S87s
qq6+xHn0rRQvbDA8PdPa06KpOk4L8gqm78IIjBPykf+aAmIDpsXsj3GbmvTAmC3nwQAAAAAAAA==

------=_NextPart_000_00FA_01CFB88D.DA119A80--


From nobody Fri Aug 15 10:59:31 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 B9D431A01AC for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 10:59:30 -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 2lG97VuFnCLJ for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 10:59:29 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 56ACA1A00F6 for <cfrg@irtf.org>; Fri, 15 Aug 2014 10:59:28 -0700 (PDT)
Received: from xct101cnc.rim.net ([10.65.161.201]) by mhs212cnc.rim.net with ESMTP/TLS/AES128-SHA; 15 Aug 2014 13:59:28 -0400
Received: from XCT111CNC.rim.net (10.65.161.211) by XCT101CNC.rim.net (10.65.161.201) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 15 Aug 2014 13:59:27 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT111CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 15 Aug 2014 13:59:27 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Progress on curve recommendations for TLS WG
Thread-Index: AQHPrSkVFDDUD0tW0keHIpwhcB27wpvR3EOAgAAXPgCAAB3vgIAAAdUAgAAk/YCAAAckgP//yDWQ
Date: Fri, 15 Aug 2014 17:59:27 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CCD0ED@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com> <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com>
In-Reply-To: <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com>
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.249]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_00FF_01CFB891.20AE5B60"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/blbaS7-PD9sClWpuiFQvW-qP_XE
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, 15 Aug 2014 17:59:31 -0000

------=_NextPart_000_00FF_01CFB891.20AE5B60
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: 7bit

From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Watson Ladd
> The reason Dan Brown's example isn't convincing is that having only  prime 
> factors of not that small size is common.

Right about it being common: Dickman's function says the chance of the largest 
prime factor of that size is about 15%.

Wrong about it being unconvincing: the severity of the attack is what matters, 
not how common it is.  Why would anybody care whether it took six or 
one-million trials to a find a weak 56-bit curve?

Also, I assume that you are not referring to my BARC example, in which the 
largest prime factor is two.   Maybe BARC is unconvincing for another reason, 
which is?


------=_NextPart_000_00FF_01CFB891.20AE5B60
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
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByM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AAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDgxNTE3NTkyN1owIwYJKoZIhvcNAQkEMRYEFDrp
Q2oVbWWe6nV/nd2ogMzWZeJWMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYCpcBoU9DeldntI8DQJcYchtyo0Td69
SKaSo589UVFOGaPMZK9deMMiz7OHiOTEXuktHVtSFc3KhGNJCNOfOnseXWkJj3la1eWNm3xFlMon
qdjVgmLS3yurAwbz6vjtwWBhjnO7ilOlyjd+8iVlsgnlBzbOAycHuldSQuszhn8MggAAAAAAAA==

------=_NextPart_000_00FF_01CFB891.20AE5B60--


From nobody Fri Aug 15 11: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 F0B621A014B for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 11:24:00 -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 5gD-7cd469CP for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 11:23:59 -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 E06BE1A01F2 for <cfrg@irtf.org>; Fri, 15 Aug 2014 11:23:58 -0700 (PDT)
Received: by mail-yh0-f44.google.com with SMTP id f73so2537384yha.31 for <cfrg@irtf.org>; Fri, 15 Aug 2014 11: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; bh=rmboYtj7MXDY0d2XdgjgV87oi5uZaKPmBDmSWElCYwE=; b=B49V68SznwAxE/AUlIv/7xeKI+ZWoqqPZjSZ79mtaO5TF3pQeK4vGSWYg5D/Kl19tz 2guqK0Fi0jp8acrhQKmdt5DmJnUdKGp0hLN9VNIrBnzYifSRIaGQRpn3GyfNch84f4gk G6QwhOhcuVAvqMu3WqnO3Ype/FDRsQCTJaXRiwVJXQRbBUMxU962fVh+4YfuX+Im1oTK 8DUb6FmZui74MXEN1CNQVHRw8wt+ombtPKj5F4PZZFE+xRu19KxSpph6oyUr99ycGdqD suxZPOu3FSaGjNn55RIEcNMMNcDBumPTGpK1+vAuArmfihGfLKZefjbCOsohACLXyVRh EN0Q==
MIME-Version: 1.0
X-Received: by 10.236.172.161 with SMTP id t21mr29610523yhl.65.1408127038137;  Fri, 15 Aug 2014 11:23:58 -0700 (PDT)
Received: by 10.170.202.86 with HTTP; Fri, 15 Aug 2014 11:23:58 -0700 (PDT)
Received: by 10.170.202.86 with HTTP; Fri, 15 Aug 2014 11:23:58 -0700 (PDT)
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CCD0ED@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com> <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5CCD0ED@XMB116CNC.rim.net>
Date: Fri, 15 Aug 2014 11:23:58 -0700
Message-ID: <CACsn0cndH3hF-hvFFYnik2Bxs3+sm7ALHLTxSPCZNzJ1bLJMjg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: multipart/alternative; boundary=20cf304273e0e82dda0500af1fc0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/tRMcdC5pqwkVEdxtb235RgF1fZA
Cc: 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: Fri, 15 Aug 2014 18:24:01 -0000

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

On Aug 15, 2014 10:59 AM, "Dan Brown" <dbrown@certicom.com> wrote:
>
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Watson Ladd
> > The reason Dan Brown's example isn't convincing is that having only
prime
> > factors of not that small size is common.
>
> Right about it being common: Dickman's function says the chance of the
largest
> prime factor of that size is about 15%.
>
> Wrong about it being unconvincing: the severity of the attack is what
matters,
> not how common it is.  Why would anybody care whether it took six or
> one-million trials to a find a weak 56-bit curve?

What is it convincing of? If it takes 6 trials all randomly generated
curves are likely to fail. If it's 1 in a million, then rigidity or lack
thereof is more important to prevent underhandedness.

>
> Also, I assume that you are not referring to my BARC example, in which the
> largest prime factor is two.   Maybe BARC is unconvincing for another
reason,
> which is?

The endomorphism ring was shockingly large, NUMS isn't a property of a
curve but a generation method, etc. Really the only argument was
supersingular curves, which I admit being mildly convinced by.

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

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

<p dir=3D"ltr"><br>
On Aug 15, 2014 10:59 AM, &quot;Dan Brown&quot; &lt;<a href=3D"mailto:dbrow=
n@certicom.com">dbrown@certicom.com</a>&gt; wrote:<br>
&gt;<br>
&gt; From: Cfrg [mailto:<a href=3D"mailto:cfrg-bounces@irtf.org">cfrg-bounc=
es@irtf.org</a>] On Behalf Of Watson Ladd<br>
&gt; &gt; The reason Dan Brown&#39;s example isn&#39;t convincing is that h=
aving only=C2=A0 prime<br>
&gt; &gt; factors of not that small size is common.<br>
&gt;<br>
&gt; Right about it being common: Dickman&#39;s function says the chance of=
 the largest<br>
&gt; prime factor of that size is about 15%.<br>
&gt;<br>
&gt; Wrong about it being unconvincing: the severity of the attack is what =
matters,<br>
&gt; not how common it is.=C2=A0 Why would anybody care whether it took six=
 or<br>
&gt; one-million trials to a find a weak 56-bit curve?</p>
<p dir=3D"ltr">What is it convincing of? If it takes 6 trials all randomly =
generated curves are likely to fail. If it&#39;s 1 in a million, then rigid=
ity or lack thereof is more important to prevent underhandedness.</p>
<p dir=3D"ltr">&gt;<br>
&gt; Also, I assume that you are not referring to my BARC example, in which=
 the<br>
&gt; largest prime factor is two.=C2=A0 =C2=A0Maybe BARC is unconvincing fo=
r another reason,<br>
&gt; which is?</p>
<p dir=3D"ltr">The endomorphism ring was shockingly large, NUMS isn&#39;t a=
 property of a curve but a generation method, etc. Really the only argument=
 was supersingular curves, which I admit being mildly convinced by.</p>
<p dir=3D"ltr">Sincerely, <br>
Watson Ladd<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>

--20cf304273e0e82dda0500af1fc0--


From nobody Fri Aug 15 11:50:55 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 21CA71A02D6 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 11:50:54 -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, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_14=0.6, RCVD_IN_DNSWL_LOW=-0.7, 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 2Da3WG-w7pNF for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 11:50:53 -0700 (PDT)
Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C06881A0290 for <cfrg@irtf.org>; Fri, 15 Aug 2014 11:50:52 -0700 (PDT)
Received: by mail-la0-f47.google.com with SMTP id mc6so2573272lab.6 for <cfrg@irtf.org>; Fri, 15 Aug 2014 11:50: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=Qq8idpEAl/IJ5R0F/lD3+7Soi22eYBdHTOUNBrSZy9Q=; b=C6JxEym+qB5BV9Y5IKblQ9YT7VrRCkWpxt+6MNb3dDPngSw+im5gJSifbCDe3WzpAN +dAbaOmpMf0VrK8E//jsonVI6foDEPDkSc1BX32QOEeCESf1VKNAZyyV+EQs/MZONp8J LlpkrW2kFuAJtNzujAqYJdsxBVclAhxllXCoW8KD1Z7cKS4rf7K+HXHtR2rCXVxjllIy rUC8XY6oqJHmrCOIjSQiY2LIKQUCY2jwhCWXoqsvVk13f8O+zMaMd3V9WFsSqT++1FM/ LjFIGAPpF/8dcKbrnBgE2rZodXIr8IGTiubOshnNTPmVVYDWUfJKEG8i2s/NtXkgorF9 kZMg==
X-Gm-Message-State: ALoCoQlvCTJ8kMR+lUIZnumRPDMhCOoDNv/NC3PFfMs0E/XyEXu4EKUACnWImho10ffCFRs+UKFq
X-Received: by 10.152.25.170 with SMTP id d10mr13367964lag.37.1408128650905; Fri, 15 Aug 2014 11:50:50 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.36.106 with HTTP; Fri, 15 Aug 2014 11:50:30 -0700 (PDT)
In-Reply-To: <CACsn0cndH3hF-hvFFYnik2Bxs3+sm7ALHLTxSPCZNzJ1bLJMjg@mail.gmail.com>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com> <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5CCD0ED@XMB116CNC.rim.net> <CACsn0cndH3hF-hvFFYnik2Bxs3+sm7ALHLTxSPCZNzJ1bLJMjg@mail.gmail.com>
From: Andy Lutomirski <luto@amacapital.net>
Date: Fri, 15 Aug 2014 11:50:30 -0700
Message-ID: <CALCETrV8_fRNq2gw8DNoWD7=k1aKff7+9R-SuXXf60i=qGgzGg@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/58jHZbdiwJDD15CO0T4dJcIWAWA
Cc: Dan Brown <dbrown@certicom.com>, "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: Fri, 15 Aug 2014 18:50:54 -0000

On Fri, Aug 15, 2014 at 11:23 AM, Watson Ladd <watsonbladd@gmail.com> wrote:
>
> On Aug 15, 2014 10:59 AM, "Dan Brown" <dbrown@certicom.com> wrote:
>>
>> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Watson Ladd
>> > The reason Dan Brown's example isn't convincing is that having only
>> > prime
>> > factors of not that small size is common.
>>
>> Right about it being common: Dickman's function says the chance of the
>> largest
>> prime factor of that size is about 15%.
>>
>> Wrong about it being unconvincing: the severity of the attack is what
>> matters,
>> not how common it is.  Why would anybody care whether it took six or
>> one-million trials to a find a weak 56-bit curve?
>
> What is it convincing of? If it takes 6 trials all randomly generated curves
> are likely to fail. If it's 1 in a million, then rigidity or lack thereof is
> more important to prevent underhandedness.
>
>>
>> Also, I assume that you are not referring to my BARC example, in which the
>> largest prime factor is two.   Maybe BARC is unconvincing for another
>> reason,
>> which is?
>
> The endomorphism ring was shockingly large, NUMS isn't a property of a curve
> but a generation method, etc. Really the only argument was supersingular
> curves, which I admit being mildly convinced by.
>

If CFRG is going to seriously consider random curves, can we at least
generate good random curves?  I don't think it's *that* hard.  Choose
a good algorithm to turn a seed into a curve, and then use something
like H(next week's top NY Times headline, next week's top Al-Jazeera
headline, next week's S&P 500 close, next week's weather, etc...).

The point being that there are lots of degrees of freedom this way,
but no one (not even the NSA) would be able to control enough of them
to select for any property of the curve.

--Andy


From nobody Fri Aug 15 14: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 6367E1A06C3 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 14:19:45 -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 LcIUA10_pX-J for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 14:19:43 -0700 (PDT)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id E120A1A066D for <cfrg@irtf.org>; Fri, 15 Aug 2014 14:19:42 -0700 (PDT)
Received: from xct101cnc.rim.net ([10.65.161.201]) by mhs212cnc.rim.net with ESMTP/TLS/AES128-SHA; 15 Aug 2014 17:19:42 -0400
Received: from XCT114CNC.rim.net (10.65.161.214) by XCT101CNC.rim.net (10.65.161.201) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 15 Aug 2014 17:19:41 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT114CNC.rim.net ([::1]) with mapi id 14.03.0174.001; Fri, 15 Aug 2014 17:19:40 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Progress on curve recommendations for TLS WG
Thread-Index: AQHPrSkVFDDUD0tW0keHIpwhcB27wpvR3EOAgAAXPgCAAB3vgIAAAdUAgAAk/YCAAAckgP//yDWQgABNSQD//73osA==
Date: Fri, 15 Aug 2014 21:19:40 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CCD182@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com> <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5CCD0ED@XMB116CNC.rim.net> <CACsn0cndH3hF-hvFFYnik2Bxs3+sm7ALHLTxSPCZNzJ1bLJMjg@mail.gmail.com>
In-Reply-To: <CACsn0cndH3hF-hvFFYnik2Bxs3+sm7ALHLTxSPCZNzJ1bLJMjg@mail.gmail.com>
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.249]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0115_01CFB8AD.18CFFA90"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r_H-fnuLHGM57pNYjcR6P0AGTOc
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, 15 Aug 2014 21:19:45 -0000

------=_NextPart_000_0115_01CFB8AD.18CFFA90
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: 7bit

From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Watson Ladd
Sent: Friday, August 15, 2014 2:24 PM
>On Aug 15, 2014 10:59 AM, "Dan Brown" <dbrown@certicom.com> wrote:
>>
>> Wrong about it being unconvincing: the severity of the attack is what 
>> matters,
>> not how common it is.  Why would anybody care whether it took six or
>> one-million trials to a find a weak 56-bit curve?
>What is it convincing of? If it takes 6 trials all randomly generated curves 
>are likely to fail. If it's 1 in a million, then rigidity or lack thereof is 
>more important to prevent underhandedness.

Only a few small points to be convinced of by the example y^2 = x^3+x^2+x / 
GF(2^255-19), all related to resisting a secret attack of severity and 
distribution about the same as the Pohlig--Hellman (PH) attack:

1) Rigidity does not help against such a severe attack.
2) The rigid example I found happened to fall into a hole covering about 
1-in-6 of curves, but that hole is very deep rendering the curves in the hole 
feasible to break.  This metaphorical hole for the PH attack does not have a 
sharp edge, but suppose the hole had a sharp edge for the secret attack, for 
the sake of simple example. If users selected their own curves at random, then 
5-in-6 users would be safe, and 1-in-6 unsafe due to the secret attack.  If 
CFRG selects one universal curve, somehow at random, then with a 5-in-6 
chance, all its users would be safe, but with 1-in-6 chance they'd all be 
unsafe.   Neither solution is great, but what else can we do against such a 
severe secret attack?  A rigid curve could be safe or unsafe, but one has no 
probabilistic argument of its being safe with probability 5-in-6, unless we 
assume a heuristic about the attack, which is a theoretically stronger 
assumption.  (Aside: the BARC example shows that this heuristic assumption is 
not just theoretically strong, it is practically wrong for the PH and MOV 
attacks because one can find PH and MOV weak curves without trial and error 
violating the heuristic assumption.)
3) The example I chose was y^2  = x^3 + x^2 + x, but the arguably more rigid 
curve y^2 = x^3 + x resists PH considerably better.  An adversary pushing the 
less secure curve might think up excuses to prefer the former, such as: the 
latter is more fragile, because somebody is more likely implement it with 
older Weierstrass code, which is more liable to have side channels, whereas 
y^2 =x^3 + x^2 + x would encourage people to use a Montgomery ladder. 
Accepting that adversary's argument would turn a 2^99 attack into a 2^56 
attack.  This just shows that one of the attacks we already know, the PH 
attack, is super-sensitive to the extent that there's that rigidity alone does 
not suffice to prevent underhandedness.

Just to be clear, in case you were wondering, the y^2 = x^3+x^2+x/ 
GF(2^255-19) example would not serve to convince anybody anything about the 
unexplained-seed used for P256, or even the ANSI curve generation method.

>>
>> Also, I assume that you are not referring to my BARC example, in which the
>> largest prime factor is two.   Maybe BARC is unconvincing for another 
>> reason,
>> which is?
>The endomorphism ring was shockingly large,

The BARC example was testing the utility of rigidity against secret attacks. 
If you know some (potential) attack using a large endomorphism ring, then just 
pretend that attack was somebody else's secret.  In my view, now BARC should 
be even more convincing that rigidity offers no protection against secret 
attacks of similar ilk, because it falls to a fourth attack.  How can four 
attacks on one rigid curve not be convincing of something?

> NUMS isn't a property of a curve but a generation method, etc.

The BARC example can be extended to other fields: any with p=3 mod 4 and p+1 
smooth, e.g. the field GF(2^521-1), so it is really not a single curve, though 
I guess I should have said that right away.

TLS has asked CFRG to recommend one or two curves. Some proposals for a few 
curves are being made to the IETF.  The NUMS property applies to anything that 
a user wants to trust from somebody else, whether software, hardware, a curve, 
a protocol.  So, it is a property of both the generation method and of the 
curve generated.  Surely, if somebody managed, in some ingenious fashion, 
generated a weak curve maliciously, be it Curve25519, Brainpool, or P256, that 
would be a violation of the NUMS property of others trusted the curve.  So, 
taking a generation method, a plausible setting, and then running some kind of 
execution of the curve generation method, the single curve that it outputs is 
fair game for testing of the NUMS property, because ultimately CFRG will be 
asking IETF to trust us.  If you're saying that nobody is making any NUMS 
property claims for Curve25519, only its generation method, then I'm saying 
it's better to have a curve which has some plausible NUMS property, even if it 
has to invoke some kind of fancy assumptions.

If IETF has a proposal or a request for just a generation method in which a 
pair, or larger set, of mutually trusting users generates their own curve, 
then those users could rely solely on the NUMS property of generation method, 
since they control the actual of execution of the generation method. 
(Nothing-up-your-sleeve is a vacuous goal.)

Anyway, the BARC example was trying to show that there is not any direct 
correlation between rigidity and security (whether NUMS or not).  I did say 
however, the rigidity can rule out certain kinds of secret attacks, so I think 
rigidity has some benefits, i.e. is a desideratum.

The BARC example is easily avoided by selecting some kind of randomized curve 
generation method.  Hence it also demonstrates a narrow utility of randomized 
curve generation methods in contributing to the NUMS property: in that it 
protects the user from dial-up weaknesses where the attacker can find weak 
curves without any searching.  In other words, the BARC example serves not 
just a criticism of rigid-only curves, but also as a demo a small degree of 
plausible usefulness for random curves.

> Really the only argument was supersingular curves,

Well, supersingularity is just a property of curves, not an attack.  I'm 
looking for arguments to resist attacks.  The supersingularity alone implies 
the MOV attack, but does not necessarily imply the PH attack.  It's the fact 
that p+1 is smooth plus supersingularity in BARC that leads to the PH attack 
working so well.  Also, I only know how to find supersingular curves when p=3 
mod 4 or p=2 mod 3.  Since p=1 mod 12 for Curve25519, I don't know how to find 
a supersingular curve over GF(2^255-19).  Is this planned?  If not, it is a 
side effect of rigidity, or some kind of non-rigidity?

Interestingly, BARC gives an example of an attack in which the field choice 
matters and the rarer field choices (the p+1 smooth ones) are the ones more 
vulnerable.  In other words, it actually lend some plausibility Brainpool's 
choice of random field sizes.

> which I admit being mildly convinced by.

I thought I'd never see this day :-)

------=_NextPart_000_0115_01CFB8AD.18CFFA90
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+c8dEl5TpkJW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xjQK1IBLI9HIFycy4bB/BsrRJ7bql9QhITmtonYJ7E0UiBtrK
/09lleg1ZxqSygYlYgTv59HgWCnQnSJcWZBo/7C4pEGlIFXw0Zd9m8NXNAwPFRT21QAAAAAAAA==

------=_NextPart_000_0115_01CFB8AD.18CFFA90--


From nobody Fri Aug 15 14:28:57 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 98C871A06CD for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 14:28:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.454
X-Spam-Level: ***
X-Spam-Status: No, score=3.454 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 hovVM2BABXeu for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 14:28:54 -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 598051A065F for <cfrg@irtf.org>; Fri, 15 Aug 2014 14:28:54 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 4DE5F3AA12; Fri, 15 Aug 2014 14:27:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1408138051; bh=zQcsZP1lapI64oVz21XLNIsDRNXVRtOVi5AI7ZSfkf0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=SWKeHPcSUh6i0O+3PF78RWFoAt89QdZpJaFPZeJLRtNJbMNhHMTc7Te2esaP2ROZp XEOMNQM7+ztm4iRFwArmyMxHOioLhtVGu3JcOzfoaS91lE8LA723gr2mFjneMJbErl TjtsPoBONLXmHVO/6bWtD1WS5v0T8/V+waT2ePSo=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\))
From: Mike Hamburg <mike@shiftleft.org>
In-Reply-To: <53EDEE67.6090308@secunet.com>
Date: Fri, 15 Aug 2014 14:28:46 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <A1FCAAE8-4F20-4AC1-A635-AED20E8F7D5C@shiftleft.org>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII> <53EDEE67.6090308@secunet.com>
To: Johannes Merkle <johannes.merkle@secunet.com>, Ilari Liusvaara <ilari.liusvaara@elisanet.fi>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/7kJyWarsi4hHO8J4jpBFSSGpi8Q
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: Fri, 15 Aug 2014 21:28:55 -0000

On 8/15/2014 4:26 AM, Johannes Merkle wrote:
> Ilari Liusvaara wrote on 08.08.2014 16:15:
>> Picking prime randomly has _devastating_ impact on performance.=20
> I do not mean to doubt that statement, I'm just looking for hard =
numbers: Do you have any reference for a proper
> analysis supporting that? I mean something beyond "oh, that's common =
sense".
So, I don't have a proper reference, but in my experience the =
performance ratio is slightly more than 2, and probably creeps towards =
2.5 or 3 as the number of bits increases towards 512.

An n-digit multiply with no reduction algorithm costs n^2 muls, =
schoolbook.  A Montgomery reduction costs n^2+n additional multiplies, =
for a total of 2n^2 + n.  There may also be a conditional subtract, =
depending on the modulus.  A special prime still requires some =
reduction, and Montgomery ends up being slightly less than twice as =
expensive as schoolbook.

Supporting numbers: a few years ago I implemented 252-bit =
special-Montgomery primes on Sandy Bridge (mod the special prime, =
reduction isn't free but costs n=3D4 mulaccs), and a multiply took about =
55 cycles, vs about 100 cycles for a 252-bit general prime.  The =
algorithms were the same, and both implementations were written in =
assembly.  This is what you'd have predicted from the above guesses, =
since (n^2 + n) / (2n^2 + n) =3D 20 / 36 =3D 55.555...%.

Squaring costed about 10 cycles less in either case, for a flat ratio of =
90:45 =3D 2:1.  This is because Montgomery reduction does not go any =
faster when you square, which takes n(n+1)/2 multiplies schoolbook =
style, but 3x that with a Montgomery reduction.  These asymptotics are =
not even close to true with n=3D4, though.

As p increases, the ratio will get worse.  The reduction mod the special =
prime is a smaller fraction of the total work, and squaring gets closer =
to asymptotic.  Montgomery reduction does not improve as much with =
Karatsuba multiplication.  Karatsuba may cut the cost of the =
multiplication by 25% or more at 384 or 512 bits, but it=E2=80=99s =
rather tricky to combine with a general Montgomery reduction =
efficiently.  Furthermore, if you try to do this, the state will be =
larger and may spill out of the register file.  For example, my 448-bit =
NEON code exactly uses the entire register file with no spilling; =
anything extra would add significant cost.

Exactly 64n-bit aligned primes will be slightly worse when randomized, =
because numbers need to be reduced more often.

Finally, powering ladders like inverse or square root are denser and =
therefore slower with a random prime  A powering ladder for a special =
prime usually has a multiply density of around 5%, but for a random =
prime it is likely to be 20%.  Inversion is about 10% of a variable-base =
and 25% of a fixed-base scalarmul, so this effect is unlikely to exceed =
5% of the total time.

In combination, these will push the ratio to ~2x at 256 bits, and higher =
for longer numbers, but probably not so high as 3x even at 500 bits (but =
maybe at 512 or 521 bits).  Not having implemented both a large random =
and a large special prime together on the same platform, I=E2=80=99m not =
sure exactly what the ratio will be.

Cheers,
-- Mike


From nobody Fri Aug 15 15:52:58 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 1B3E81A009A for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 15:52:56 -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, 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 eE2uT03RKH6B for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 15:52:54 -0700 (PDT)
Received: from qmta15.emeryville.ca.mail.comcast.net (qmta15.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:228]) by ietfa.amsl.com (Postfix) with ESMTP id 670AD1A0089 for <cfrg@irtf.org>; Fri, 15 Aug 2014 15:52:54 -0700 (PDT)
Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta15.emeryville.ca.mail.comcast.net with comcast id f9dR1o0031bwxycAFAsttW; Fri, 15 Aug 2014 22:52:53 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by omta18.emeryville.ca.mail.comcast.net with comcast id fAss1o00E4uhcbK8eAstP7; Fri, 15 Aug 2014 22:52:53 +0000
Message-ID: <53EE8F45.9070908@brainhub.org>
Date: Fri, 15 Aug 2014 15:52:53 -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: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII> <53EDEE67.6090308@secunet.com> <A1FCAAE8-4F20-4AC1-A635-AED20E8F7D5C@shiftleft.org>
In-Reply-To: <A1FCAAE8-4F20-4AC1-A635-AED20E8F7D5C@shiftleft.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1408143173; bh=eDVj/tsElHOXC64pBddPPE0wDFfevP/P7MGrdZTItic=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=uwra4BB6xchGDqpT2sRa1bnVzZq32FSegOftVi6+H3rRti+OUMgCvr4y6rP8gi/ny atLu8tN6Znj4Lz6PGAnmnlbWrQzwsGMedMc0SZ6KCe3Q/Ub5j0oPcES+rbIHdeVsoW 4WFrybvRq8SPLkbisxPbAMs1kbR4xKNK0//6lb2FOdwYWknYWtIsgXRtI1dAV74lnV CFxZP/XcKxIMd+0V3K1O5X1vwScoo2qgmDSO0Y79n6wLnBt2dPXb/bK+iaD+yv3ZWI tiBWJBlq22m7JhZqMAh4mgAzKVKPu1omOaWG+BXqxVFsdfx2YwcHvzQ4taym9CSvpA 2VD/iZctOphFQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/ET22GmnWV2-DSkYXje_vRPI23_A
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, 15 Aug 2014 22:52:56 -0000

Here is a simple sketch how the prime affects the mop operations.

Comparing multiplication of 2 n-limb numbers with the reduction mod 
n-limb number p:

* in case of a random prime, we have n^2 multiplies. This gives 2n 
number, n higher limbs of which will need to be reduced. To accomplish 
this we multiply p by each of n high limbs, for the total n^2. We have 
2n^2 multiplies

* in case of p=2^k-C, we have the same n^2 multiplies, but the reduction 
results in only n multiplies of high limbs by C. We have n^2 + n

So this is (n^2 + n) / 2n^2 ~= 1/2 (pseudo-Mersenne primes have ~50% 
fewer limb multiplies for multiply+reduce)


This estimate underestimates  the reduction that takes place for the 
general p. One needs an additional n divisions (of a limp by the highest 
limb of p) in denominator, which gives the Mike Hamburg's quantity 
exactly (which uses the Montgomery reduction method). I didn't count 
additions/subtractions.


On 08/15/2014 02:28 PM, Mike Hamburg wrote:
> On 8/15/2014 4:26 AM, Johannes Merkle wrote:
>> Ilari Liusvaara wrote on 08.08.2014 16:15:
>>> Picking prime randomly has _devastating_ impact on performance.
>> I do not mean to doubt that statement, I'm just looking for hard numbers: Do you have any reference for a proper
>> analysis supporting that? I mean something beyond "oh, that's common sense".
> So, I don't have a proper reference, but in my experience the performance ratio is slightly more than 2, and probably creeps towards 2.5 or 3 as the number of bits increases towards 512.
>
> An n-digit multiply with no reduction algorithm costs n^2 muls, schoolbook.  A Montgomery reduction costs n^2+n additional multiplies, for a total of 2n^2 + n.  There may also be a conditional subtract, depending on the modulus.  A special prime still requires some reduction, and Montgomery ends up being slightly less than twice as expensive as schoolbook.
>
> Supporting numbers: a few years ago I implemented 252-bit special-Montgomery primes on Sandy Bridge (mod the special prime, reduction isn't free but costs n=4 mulaccs), and a multiply took about 55 cycles, vs about 100 cycles for a 252-bit general prime.  The algorithms were the same, and both implementations were written in assembly.  This is what you'd have predicted from the above guesses, since (n^2 + n) / (2n^2 + n) = 20 / 36 = 55.555...%.
>
> Squaring costed about 10 cycles less in either case, for a flat ratio of 90:45 = 2:1.  This is because Montgomery reduction does not go any faster when you square, which takes n(n+1)/2 multiplies schoolbook style, but 3x that with a Montgomery reduction.  These asymptotics are not even close to true with n=4, though.
>
> As p increases, the ratio will get worse.  The reduction mod the special prime is a smaller fraction of the total work, and squaring gets closer to asymptotic.  Montgomery reduction does not improve as much with Karatsuba multiplication.  Karatsuba may cut the cost of the multiplication by 25% or more at 384 or 512 bits, but it’s rather tricky to combine with a general Montgomery reduction efficiently.  Furthermore, if you try to do this, the state will be larger and may spill out of the register file.  For example, my 448-bit NEON code exactly uses the entire register file with no spilling; anything extra would add significant cost.
>
> Exactly 64n-bit aligned primes will be slightly worse when randomized, because numbers need to be reduced more often.
>
> Finally, powering ladders like inverse or square root are denser and therefore slower with a random prime  A powering ladder for a special prime usually has a multiply density of around 5%, but for a random prime it is likely to be 20%.  Inversion is about 10% of a variable-base and 25% of a fixed-base scalarmul, so this effect is unlikely to exceed 5% of the total time.
>
> In combination, these will push the ratio to ~2x at 256 bits, and higher for longer numbers, but probably not so high as 3x even at 500 bits (but maybe at 512 or 521 bits).  Not having implemented both a large random and a large special prime together on the same platform, I’m not sure exactly what the ratio will be.
>
> Cheers,
> -- Mike
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Fri Aug 15 17:55: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 480011A0926 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 17:55:32 -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 veISdJthHlIN for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 17:55: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 0A31C1A0924 for <cfrg@irtf.org>; Fri, 15 Aug 2014 17:55:30 -0700 (PDT)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 6154A3AA12; Fri, 15 Aug 2014 17:54:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1408150449; bh=iHjRyGpGBTkOqPKFQazEnqC6WtzXliH4vMb53ms6cUo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=CSQDJ38RjhqGUHwhrY0cyl21VL2sQSAaRMs6sgGDbicol7zGOWbUQGH1trd7mhW30 Gi8VJLPMQtZUa1CERhG4CFTqq7TcOIq7e/uv6iI1GQl6qFsFsOQOxD0Ql5tImS/SuR zUddWk1e90doDHEHg3j7FxuW09lhlHzWRG9R2WO8=
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: <53EE8F45.9070908@brainhub.org>
Date: Fri, 15 Aug 2014 17:55:27 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <F3296E50-46AD-4653-BCCA-5435D6ECB78F@shiftleft.org>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII> <53EDEE67.6090308@secunet.com> <A1FCAAE8-4F20-4AC1-A635-AED20E8F7D5C@shiftleft.org> <53EE8F45.9070908@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/uknR0WIRcgffzkJ7AUODlZamCqg
Cc: 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: Sat, 16 Aug 2014 00:55:32 -0000

I have some more data.  Summary: =E2=80=9Cdevastating=E2=80=9D is =
probably between 1.8 and 3.1.

Mod 2^521-1, you can do a multiply in 167 Haswell cycles using a variant =
of 3-way Chung-Hasan which is specific to that prime.  (Ordinary =
Karatsuba is no good because the prime has 9 limbs.)  Schoolbook takes =
222 cycles with only minor benefits from the prime=E2=80=99s shape.  =
Maybe a better implementor can get better numbers than mine; this is a =
rough try in C++ with asm intrinsics for widening multiply.

I don=E2=80=99t have an implementation on hand of a random prime at that =
level.  Suppose that for a random prime that size you can do an =
almost-as-good version of Chung-Hasan in 180 cycles, but then you need =
to fall back to a digit-serial Montgomery reduction which approximates =
the schoolbook method.  This includes some of the inter-digit reduction =
twice, so maybe 222 is 10% too high.  Then the ratio is (180 + 222 * =
90%) / 167 ~ 2.3.  A random 512-bit prime also requires this amount of =
time if you use 9 limbs; with 8 limbs it=E2=80=99s again about the same =
or maybe slightly worse (see below).

For comparison, based on the Microsoft data, their prime 2^512 - 569 =
takes about 255 Sandy Bridge cycles per mul.  This is written in =
assembly language using the schoolbook method.  This corresponds to =
about 212 Haswell cycles, since the going rate is about 20%.  So it=E2=80=99=
s 5% faster than my P-521 schoolbook, but in assembly vs C++/intrinsics. =
 The ratio with my above estimate for a random prime (using a completely =
different implementation) is 1.8.  Schoolbook Montgomery for a random =
prime using Microsoft=E2=80=99s implementation techniques should have a =
ratio of about (2n^2 + n) / (n^2 + n) ~ 1.9 with n=3D8 limbs.

This assumes a random prime vs special one at the =E2=80=9C>=3D 256-bit =
WF=E2=80=9D level, but if tweaking the levels is allowed, the ratio is =
even more.  A 480-bit special prime, Ridinghood, takes 122 Haswell =
cycles for a multiply (same as 448-bit Goldilocks).  That=E2=80=99s a =
ratio of 3.1 vs the above estimate for a 512-bit random prime.  If you =
scale the numbers to take the shorter length (480 vs 512) into account, =
the =E2=80=9Cefficiency ratio=E2=80=9D is about 2.8.

The Ridinghood numbers reflect better tuning than the 521-bit tests, but =
probably not as much tuning as the Microsoft implementation.  My tests =
are in C with asm intrinsics.  The difference is maybe 10% vs the C++ =
above, so figure that a ratio of 2.8 (efficiency ratio 2.5) is probably =
more fair.

This doesn=E2=80=99t take into account the ratio of multiplication, =
squaring, and addition / subtraction.

> On Aug 15, 2014, at 3:52 PM, Andrey Jivsov <crypto@brainhub.org> =
wrote:
>=20
> Here is a simple sketch how the prime affects the mop operations.
>=20
> Comparing multiplication of 2 n-limb numbers with the reduction mod =
n-limb number p:
>=20
> * in case of a random prime, we have n^2 multiplies. This gives 2n =
number, n higher limbs of which will need to be reduced. To accomplish =
this we multiply p by each of n high limbs, for the total n^2. We have =
2n^2 multiplies
>=20
> * in case of p=3D2^k-C, we have the same n^2 multiplies, but the =
reduction results in only n multiplies of high limbs by C. We have n^2 + =
n
>=20
> So this is (n^2 + n) / 2n^2 ~=3D 1/2 (pseudo-Mersenne primes have ~50% =
fewer limb multiplies for multiply+reduce)
>=20
>=20
> This estimate underestimates  the reduction that takes place for the =
general p. One needs an additional n divisions (of a limp by the highest =
limb of p) in denominator, which gives the Mike Hamburg's quantity =
exactly (which uses the Montgomery reduction method). I didn't count =
additions/subtractions.

These divisions are actually multiplies, because you use either =
Montgomery or Barrett reduction.  So it=E2=80=99s (n^2 + n) / (2n^2 + =
n).

Cheers,
=E2=80=94 Mike=


From nobody Fri Aug 15 19:15: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 4A2AD1A09FE for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 19:14:51 -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 LwRbLsrjl1BK for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 19:14:48 -0700 (PDT)
Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [IPv6:2607:f8b0:400d:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B2F171A09E8 for <cfrg@irtf.org>; Fri, 15 Aug 2014 19:14:47 -0700 (PDT)
Received: by mail-qa0-f42.google.com with SMTP id j15so2689301qaq.15 for <cfrg@irtf.org>; Fri, 15 Aug 2014 19:14:46 -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=5A7+qsdvZK87idjqgxYcyW0lTon0FGN42GAXt5HeMcU=; b=F6WkJo2zsoZEMY/49pJJqVUBbCPbtLFXTfyqn3ve6NrkJvv3G2Ia9L+vi2C6L+9ipl yGv/H2YvqQPB7IVrBI5JRti7VDB5iug3kOt21Rg1WkPH/er/kxkZxV5iRTW6KMNqkgkm B83+0OLrPyEzXlBctK+7Ujb9uJoLmYYU6asGggKAsRF+4psQVWoPTzAVDUq8lAEWyb2w SA6wzmr30rVGpPhCB7DtsjiVENQuiv28ju5Cwuw8lpQteIxFmC1GkrwS9UK4SiL9Yn0H Ri+RM5jXCKmtBwJy+r1MpxJRzHITuF/XLz0i6qWCqs0ynUmqKHfq/RXD+QCowMGU1h5R Tm7w==
MIME-Version: 1.0
X-Received: by 10.140.25.226 with SMTP id 89mr26677740qgt.62.1408155286631; Fri, 15 Aug 2014 19:14:46 -0700 (PDT)
Received: by 10.140.47.228 with HTTP; Fri, 15 Aug 2014 19:14:46 -0700 (PDT)
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CCD182@XMB116CNC.rim.net>
References: <20140801013659.11640.qmail@cr.yp.to> <53EDEB0D.9040304@secunet.com> <925e123f-d396-443f-9fc7-b1f6601bcd4c@email.android.com> <53EE17A9.7080408@secunet.com> <CACsn0c=eS-=6dapjrw07uEbxW0MHqn6=3caftfA6geZNOUcu9w@mail.gmail.com> <53EE3839.7010009@secunet.com> <CACsn0c=hEwPPL_zrXnoXnWfQ6oQPE-U8P3mGCA3a7=djfXAAqw@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5CCD0ED@XMB116CNC.rim.net> <CACsn0cndH3hF-hvFFYnik2Bxs3+sm7ALHLTxSPCZNzJ1bLJMjg@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5CCD182@XMB116CNC.rim.net>
Date: Fri, 15 Aug 2014 19:14:46 -0700
Message-ID: <CACsn0cnMML_bTnVoXWveRQX7D3BermitxAtkXRRMeiUyK1hDyA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/-cq0hiIBCWhz0vqkwC3LsN-Bq-U
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: Sat, 16 Aug 2014 02:14:51 -0000

On Fri, Aug 15, 2014 at 2:19 PM, Dan Brown <dbrown@certicom.com> wrote:
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Watson Ladd
> Sent: Friday, August 15, 2014 2:24 PM
>>On Aug 15, 2014 10:59 AM, "Dan Brown" <dbrown@certicom.com> wrote:
>>>
>>> Wrong about it being unconvincing: the severity of the attack is what
>>> matters,
>>> not how common it is.  Why would anybody care whether it took six or
>>> one-million trials to a find a weak 56-bit curve?
>>What is it convincing of? If it takes 6 trials all randomly generated curves
>>are likely to fail. If it's 1 in a million, then rigidity or lack thereof is
>>more important to prevent underhandedness.
>
> Only a few small points to be convinced of by the example y^2 = x^3+x^2+x /
> GF(2^255-19), all related to resisting a secret attack of severity and
> distribution about the same as the Pohlig--Hellman (PH) attack:
>
> 1) Rigidity does not help against such a severe attack.
> 2) The rigid example I found happened to fall into a hole covering about
> 1-in-6 of curves, but that hole is very deep rendering the curves in the hole
> feasible to break.  This metaphorical hole for the PH attack does not have a
> sharp edge, but suppose the hole had a sharp edge for the secret attack, for
> the sake of simple example. If users selected their own curves at random, then
> 5-in-6 users would be safe, and 1-in-6 unsafe due to the secret attack.  If
> CFRG selects one universal curve, somehow at random, then with a 5-in-6
> chance, all its users would be safe, but with 1-in-6 chance they'd all be
> unsafe.   Neither solution is great, but what else can we do against such a
> severe secret attack?  A rigid curve could be safe or unsafe, but one has no
> probabilistic argument of its being safe with probability 5-in-6, unless we
> assume a heuristic about the attack, which is a theoretically stronger
> assumption.  (Aside: the BARC example shows that this heuristic assumption is
> not just theoretically strong, it is practically wrong for the PH and MOV
> attacks because one can find PH and MOV weak curves without trial and error
> violating the heuristic assumption.)
> 3) The example I chose was y^2  = x^3 + x^2 + x, but the arguably more rigid
> curve y^2 = x^3 + x resists PH considerably better.  An adversary pushing the
> less secure curve might think up excuses to prefer the former, such as: the
> latter is more fragile, because somebody is more likely implement it with
> older Weierstrass code, which is more liable to have side channels, whereas
> y^2 =x^3 + x^2 + x would encourage people to use a Montgomery ladder.
> Accepting that adversary's argument would turn a 2^99 attack into a 2^56
> attack.  This just shows that one of the attacks we already know, the PH
> attack, is super-sensitive to the extent that there's that rigidity alone does
> not suffice to prevent underhandedness.
>
> Just to be clear, in case you were wondering, the y^2 = x^3+x^2+x/
> GF(2^255-19) example would not serve to convince anybody anything about the
> unexplained-seed used for P256, or even the ANSI curve generation method.

If I tell the method to ignore Polig-Helman, it spits out a curve that
is vulnerable. That's why the only convincing part of your email was
supersingularity, but even that was only convincing me that minimal
parameters could cause some property to be true.
>
>>>
>>> Also, I assume that you are not referring to my BARC example, in which the
>>> largest prime factor is two.   Maybe BARC is unconvincing for another
>>> reason,
>>> which is?
>>The endomorphism ring was shockingly large,
>
> The BARC example was testing the utility of rigidity against secret attacks.
> If you know some (potential) attack using a large endomorphism ring, then just
> pretend that attack was somebody else's secret.  In my view, now BARC should
> be even more convincing that rigidity offers no protection against secret
> attacks of similar ilk, because it falls to a fourth attack.  How can four
> attacks on one rigid curve not be convincing of something?
>
>> NUMS isn't a property of a curve but a generation method, etc.
>
> The BARC example can be extended to other fields: any with p=3 mod 4 and p+1
> smooth, e.g. the field GF(2^521-1), so it is really not a single curve, though
> I guess I should have said that right away.
>
> TLS has asked CFRG to recommend one or two curves. Some proposals for a few
> curves are being made to the IETF.  The NUMS property applies to anything that
> a user wants to trust from somebody else, whether software, hardware, a curve,
> a protocol.  So, it is a property of both the generation method and of the
> curve generated.  Surely, if somebody managed, in some ingenious fashion,
> generated a weak curve maliciously, be it Curve25519, Brainpool, or P256, that
> would be a violation of the NUMS property of others trusted the curve.  So,
> taking a generation method, a plausible setting, and then running some kind of
> execution of the curve generation method, the single curve that it outputs is
> fair game for testing of the NUMS property, because ultimately CFRG will be
> asking IETF to trust us.  If you're saying that nobody is making any NUMS
> property claims for Curve25519, only its generation method, then I'm saying
> it's better to have a curve which has some plausible NUMS property, even if it
> has to invoke some kind of fancy assumptions.

At the risk of making this WG even less effective than it already is:

Mathematical objects exist independently of human perception.
Properties are properties of objects. How NUMS is a random curve I
write in this email? Since you don't know how I made it, you can't
decide, so NUMS isn't a property of the curve. To the extent there is
a NUMS property, it's a property of algorithms A for deciding that a
curve is "acceptable". One set of algorithms applies publically known
criteria, then finds the minimal curve satisfying these criteria.
Another set accept curves with an auxiliary input that shows that they
were made by taking some inputs and hashing them. The second set
accepts manipulatable curves.

All of this machinery is inherent in DJBs paper. Heck, it's defined
there, somewhere between the third and fifth time I laughed.

What you showed is a fairly minimal set of parameters can be
supersingular, which is an obviously special property. It screams 'I'm
special' the way having BADA55 in hex does. But whereas DJB showed
that an algorithm A exists to make BADA55 curves that people think
weren't manipulatable, and that we have A' to get property P, where P
could imply "there exists a circuit with area time product < K and
success probability p in solving the DLP on curve K", you've had much
less freedom in your choice of P: there are very few supersingular
curves, and the other properties you mentioned could trivially have
worked in DJB's attack.

The best you can get is that minimal parameters is no worse than
hashing constants, but I don't think you can even get that. Of course
we could do some sort of S&P 500 related generation, but it's
completely pointless: if a significant fraction of curves are weak,
we're still up the creek, and I'm pretty willing to say you will not
get CurveBADA55 out of whatever generation with primes just above a
power of 2 with bounded c, or Solinas type trinomials and minimal
parameter satisfying the properties at safecurves.cr.yp.to.

>
> If IETF has a proposal or a request for just a generation method in which a
> pair, or larger set, of mutually trusting users generates their own curve,
> then those users could rely solely on the NUMS property of generation method,
> since they control the actual of execution of the generation method.
> (Nothing-up-your-sleeve is a vacuous goal.)
>
> Anyway, the BARC example was trying to show that there is not any direct
> correlation between rigidity and security (whether NUMS or not).  I did say
> however, the rigidity can rule out certain kinds of secret attacks, so I think
> rigidity has some benefits, i.e. is a desideratum.
>
> The BARC example is easily avoided by selecting some kind of randomized curve
> generation method.  Hence it also demonstrates a narrow utility of randomized
> curve generation methods in contributing to the NUMS property: in that it
> protects the user from dial-up weaknesses where the attacker can find weak
> curves without any searching.  In other words, the BARC example serves not
> just a criticism of rigid-only curves, but also as a demo a small degree of
> plausible usefulness for random curves.
>
>> Really the only argument was supersingular curves,
>
> Well, supersingularity is just a property of curves, not an attack.  I'm
> looking for arguments to resist attacks.  The supersingularity alone implies
> the MOV attack, but does not necessarily imply the PH attack.  It's the fact
> that p+1 is smooth plus supersingularity in BARC that leads to the PH attack
> working so well.  Also, I only know how to find supersingular curves when p=3
> mod 4 or p=2 mod 3.  Since p=1 mod 12 for Curve25519, I don't know how to find
> a supersingular curve over GF(2^255-19).  Is this planned?  If not, it is a
> side effect of rigidity, or some kind of non-rigidity?

The existence of efficient public key cryptography implies P!=NP. Any
argument that's actually strong in ruling out attacks would be
evidence for P!=NP. Even something like "an attack on this curve has
to work for a proportion 1/x of non-isogenous curves" would pretty
impressive. We're really, really, bad at lower bounds. We can't even
separate NC from P. We can't show hash functions exist, or even
formalize what a hash function should do. You aren't going to get
anything worthwhile without a lot of struggle, and some luck. To the
extent we have a formalization of anti-manipulation, it's the one DJB
used.

We can't hope to do more than avoid publically known attacks, think
really hard about solving the DLP, think about implementation issues
that have doomed cryptosystems and design standards to avoid them. And
despite that work being done for RSA we've seen steady chopping away
at the complexity of the NFS, together with persistent implementation
issues.

Sincerely,
Watson Ladd

>
> Interestingly, BARC gives an example of an attack in which the field choice
> matters and the rarer field choices (the p+1 smooth ones) are the ones more
> vulnerable.  In other words, it actually lend some plausibility Brainpool's
> choice of random field sizes.
>
>> which I admit being mildly convinced by.
>
> I thought I'd never see this day :-)
>
> _______________________________________________
> 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 Aug 15 19:16:44 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 760BE1A09EF for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 19:16:41 -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_50=0.8, 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 gO1whN4JEWDk for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 19:16:39 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 1379F1A09E8 for <cfrg@irtf.org>; Fri, 15 Aug 2014 19:16:38 -0700 (PDT)
Received: (qmail 23987 invoked by uid 1011); 16 Aug 2014 02:16:37 -0000
Received: from unknown (unknown) by unknown with QMTP; 16 Aug 2014 02:16:37 -0000
Received: (qmail 28153 invoked by uid 1001); 16 Aug 2014 02:16:27 -0000
Date: 16 Aug 2014 02:16:27 -0000
Message-ID: <20140816021627.28151.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CCD05A@XMB116CNC.rim.net>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/UQ3NFIfY5pmRUR6INwK2o591pPo
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: Sat, 16 Aug 2014 02:16:41 -0000

Less rigidity means a larger collection of curves available for secret
selection by the curve generator. This is important in the following
scenario, which shouldn't be exaggerated but also shouldn't be ignored:

   * the curve generator is malicious;
   * the curve generator knows an attack that the public doesn't know;
   * some curve in the larger collection is vulnerable to the attack;
   * no curves in the smaller collection are vulnerable to the attack.

A much simpler issue is that any curve, even an honestly generated one,
might turn out to be vulnerable to a secret attack. We do _not_ have any
way to protect against this---but, again, it's not the same issue. What
we _do_ have are ways to stop the curve generator from amplifying a
one-in-a-million secret attack into a guaranteed attack. Dan Brown is
confusing these two issues when he says that "rigidity alone" does not
ensure safety "against secret attacks".

One way to achieve a reasonable level of rigidity is to choose the curve
that is as _small_ as possible---while obeying public security criteria,
obviously. (My experience is that defining "small" as "smallest cost",
averaged in any plausible way across platforms, minimizes wiggle room:
it's vastly more difficult to reach truly top speed than to merely come
close. But that isn't the topic of this message.)

What do we know, for various definitions of "small", about the security
of taking the smallest curve? Answer: Maybe it's more secure than
others. Maybe it's less. We simply don't know. The literature has

   * examples of attacks where the smallest curve resisting other
     attacks is _more_ secure than average and

   * examples of attacks where the smallest curve resisting other
     attacks is _less_ secure than average.

Maybe a secret attack would be of the first type, or maybe it would be
of the second type. In a previous message I pointed to seven known
examples of the first type (for various notions of smallness) and two
known examples of the second type. Koblitz, Koblitz (the co-inventor of
ECC), and Menezes wrote a long paper http://eprint.iacr.org/2008/390
with a section devoted to this issue:

   11.1. Special or random selection of parameters?

   A general philosophy one often encounters in cryptography is that
   whenever possible parameters should be chosen by some random process.
   If a special choice is made to increase efficiency, there is always
   the risk that the same property that made the choice so attractive
   will also lead to vulnerability to an unanticipated attack.

   [... several pages describing five detailed examples of how special
   choices can _improve_ security ...]
   
   Our purpose in giving these examples is not to lobby for the use of
   special curves in preference to random ones. Rather, our point is
   that conventional wisdom may turn out to be wrong and that, as far as
   anyone knows, either choice has risks. The decision about what kind
   of curve to use in ECC is a subjective one based on the user's best
   guess about future vulnerabilities.

   As frequently happens in cryptography, a close examination of a
   commonly accepted viewpoint on security issues reveals that opposing
   opinions or interpretations cannot be ruled out. Much as we might
   wish to convey to the outside world an impression of self-confidence
   and mathematical certainty about our recommendations (see Section 2),
   there is ample reason to wonder whether this self-confidence is
   justified.

Brown keeps claiming, incorrectly, that the risks are entirely on one
side. His argument consists of pointing to the well-documented risks on
that side (such as MOV, one of the examples I had given) while ignoring
the well-documented risks on the other side.

---Dan


From nobody Fri Aug 15 20:25:22 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 C7FBA1A0B78 for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 20:25:20 -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 GUAYmBzoC35i for <cfrg@ietfa.amsl.com>; Fri, 15 Aug 2014 20:25: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 10E3F1A0927 for <cfrg@irtf.org>; Fri, 15 Aug 2014 20:25:18 -0700 (PDT)
Received: (qmail 24176 invoked by uid 1011); 16 Aug 2014 03:25:18 -0000
Received: from unknown (unknown) by unknown with QMTP; 16 Aug 2014 03:25:18 -0000
Received: (qmail 9073 invoked by uid 1001); 16 Aug 2014 03:23:02 -0000
Date: 16 Aug 2014 03:23:02 -0000
Message-ID: <20140816032302.9071.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <53EDEB0D.9040304@secunet.com>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/IpBdfVMkqcTOh1bypUt1RS2BwrQ
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: Sat, 16 Aug 2014 03:25:20 -0000

Is anyone actually planning to propose "random" curves here? Dan Brown
said he would but didn't follow through. Brainpool already has RFCs.

Johannes Merkle writes:
> Pi and e are by far the most prominent mathematical constants, while
> cosinus(1) (used in that analysis) is quite arbitrarily chosen.

MD5 uses sin(1). This is one of several "nothing up my sleeve numbers"
cited in http://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number.

Please point to the cryptographic papers disputing this "nothing up my
sleeves" designation and arguing that switching MD5 from sin(1) to e
would be less suspicious. Surely you're not claiming that the public
would have been more suspicious of cos(1) than of sin(1)?

> Keccak wasn't even invented at the time the Brainpool curves were
> generated.

Sure, but Brainpool could easily have argued for switching to the 1996
European hash function RIPEMD-160 from famed cryptographers Dobbertin,
Bosselaers, and Preneel. The SHA-1 critique in

   http://homes.esat.kuleuven.be/~bosselae/ripemd160.html

includes items from 2004 as the last three sentences but is otherwise
pre-2000 material. Do you seriously believe that switching from NSA's
SHA-1 to respectable RIPEMD-160 would have made people reject the
Brainpool curves as being potentially backdoored?

How about 192-bit Tiger, from famed cryptographers Anderson and Biham,
for extra security? Or RIPEMD-256? Or RIPEMD-320? Or one of the versions
of Whirlpool, from famed cryptographers Rijmen and Barreto? Or, back in
the NSA universe, SHA-256 or SHA-384 or SHA-512?

If you count carefully you'll see 11 different hash functions here, more
than the 10 Keccak versions that were used to manipulate BADA55-VPR-224.

> The method used to generate the coefficients of the Brainpool curves
> was taken from ANSI X9.62

http://projectbullrun.org/dual-ec/dualec-author.html illustrates NSA's
influence over ANSI. Anyway, what relevance does the identity of the
curve generator (or generators) have to the measurement of rigidity?

> There is only the slight deviation

So you're admitting that Brainpool _didn't_ actually take the same
method; it manipulated the method (to simplify it, you say). Even
without this admission, how exactly is the Brainpool procedure less
suspicious than the BADA55-VPR-224 procedure?

There's a "BADA55" in the BADA55-VPR-224 output, but a real attack along
the same lines wouldn't have anything obvious. Meanwhile the Brainpool
procedure has an embarrassing 26DC5C6CE94A4B44F330B5D9 overlap, which
you previously admitted was "unfortunate".

> But it is not ok to imply that the Brainpool curves could potentially
> have been designed with a backdoor built in.

The statement you're responding to is that the curve generator had the
flexibility to secretly choose from among more than 1000000 curves for
any particular prime. If the curve generator secretly knew a weakness in
just one of these >1000000 curves then the curve generator could have
chosen that curve.

You seem to think that the flexibility was somewhat less because (e.g.)
the public wouldn't have accepted cos(1). But this doesn't fundamentally
change the picture. I don't mean to exaggerate the risk here---note that
SafeCurves marks Brainpool's rigidity as an acceptable "mostly rigid"---
but I don't see how you can justify your claim of zero risk.

---Dan


From nobody Sat Aug 16 18:10:41 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 2F6BA1A05F5 for <cfrg@ietfa.amsl.com>; Sat, 16 Aug 2014 18:10:40 -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, 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 MCSUqYPwu0Ej for <cfrg@ietfa.amsl.com>; Sat, 16 Aug 2014 18:10:37 -0700 (PDT)
Received: from qmta03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:32]) by ietfa.amsl.com (Postfix) with ESMTP id 994B71A0584 for <cfrg@irtf.org>; Sat, 16 Aug 2014 18:10:37 -0700 (PDT)
Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta03.emeryville.ca.mail.comcast.net with comcast id fd4K1o0011vN32cA3dAcEp; Sun, 17 Aug 2014 01:10:36 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta22.emeryville.ca.mail.comcast.net with comcast id fdAb1o00C4uhcbK8idAbDr; Sun, 17 Aug 2014 01:10:36 +0000
Message-ID: <53F0010B.6080101@brainhub.org>
Date: Sat, 16 Aug 2014 18:10:35 -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" <cfrg@irtf.org>
Content-Type: multipart/mixed; boundary="------------020204080901010206010108"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1408237836; bh=CXBIXSGTP6b23eHl53SwPXq5+HVYKbxxCQT3Tibqg/A=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=t3bKITGuSxatcciElz+10aw+qeN2NJpyHcoLLF+0ceXDsnWryfvTdes7LMl3foa0W prwaOi/nfet7sEhrGsLDhPMB2EAVZM/jjNI2ntdhmwmP5TX9xfd1h/oJnu5odvtX0z 5t9CVMa2s+rLVqSe0GgZ8/3Z9XQjkEOVJz0G8fi5Q/dXD7xDWySx2hU4Kk2g8s+ATO xyGcBKxj+UHjSkbLFAWiQW5qdAyowoaI2uY7K3wWYSwRjZKfrQ5uiZ3wt8AD3v0QR5 n0jGDAHNINCtX7etJvhxt6nFrOGVyPn+AjJmKnSVdst9FshBDZPXqELD/HQHo2RLFg J0K4LDhMYb6yg==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/QQ8m2LFI6HHTiQ_X4RGzMLalg2w
Subject: [Cfrg] Timing of libsodium, curve25519-donna, MSR ECCLib, and openssl-master
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 17 Aug 2014 01:10:40 -0000

This is a multi-part message in MIME format.
--------------020204080901010206010108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I timed libsodium, curve25519-donna, MSR ECCLib, and openssl-master.

In all cases minor tweaks to the source code were added to measure and 
report the timing. I made sure to time the variable base scalar 
multiplication. I also timed the fixed base multiplication and 
precomputation (only needed for MSR ECCLib).

Operations are reported as operations per second. I used default compile 
options.

MSR ECCLib was slightly faster in variable base operations. It uses 
assembler code.

Interestingly, MSR ECCLib Weierstrass a=-3 curves are only 10% slower 
than curve25519-donna. At the same time all pseudo-Mersenne prime curves 
are ~5 times faster than NIST P-256 (this is better than factor of 2 
back-of-envelope difference in modp multiplication performance)

The factor of 2+ improvement for fixed base calculation in MSR ECCLib is 
impressive. Note, however, the significant penalty that precalculation 
step adds. If the pre-calculation is included in timing, we could do 
~50% more EDH agreements with NIST P-256.

CPU: Intel(R) Core(TM) i5-3550 CPU @ 3.30GHz, no AVX2. Fedora Core 20 64 
bit.

https://github.com/jedisct1/libsodium
modified tests in libsodium/test/default to take the timing:
crypto_scalarmult_curve25519_base: 15620.2 op/s
crypto_scalarmult_curve25519: 15602.8 op/s

https://github.com/agl/curve25519-donna:
make ./speed-curve25519-donna-c64 && ./speed-curve25519-donna-c64
63 us, 15722.1 op/s
(also modified to check variable base v.s. generator 9 -- no difference)

OpenSSL 1.0.1e-fips 11 Feb 2013:
openssl speed ecdhp256 (ECDH_compute_key)
  256 bit ecdh (nistp256)   0.0003s   3245.4  op      op/s
and from git://git.openssl.org/openssl.git:
  256 bit ecdh (nistp256)   0.0003s   3406.7  op      op/s

MSR ECCLib 
http://research.microsoft.com/en-us/downloads/149804d4-b5f5-496f-9a17-a013b242c02d/

In the function that prints "Crypto operations: Weierstrass a=-3 over 
GF(2^256-189)":
with variable base (baseecdh_secret_agreement_Jac256) 14047.9 op/sec
with fixed base (ecdh_keygen_Jac256) 35370 op/sec
table precomp (ecdh_generator_table_Jac256) 1284.03 op/sec
table precomp+keygen+variable base 1056.86 op/sec
"ECDH(E) runs in [...] 328926 cycles"

In the function that prints "Crypto operations: twisted Edwards a=-1 
over GF(2^256-189)"
with variable base (ecdh_secret_agreement_Ted256): 17482 op/sec
with fixed base (ecdh_keygen_Ted256) 35370 op/sec: 45762.9 op/sec
table precomp (ecdh_generator_table_Ted256) 1346.98 op/sec
table precomp+keygen+variable base 1195.89 op/sec
"ECDH(E) runs in [...] 261385 cycles"

memcpy of the 32 bytes: 595968511 op/sec, see attached code
( i.e. memcpy count / crypto_scalarmult_curve25519 count = 38042 )

--------------020204080901010206010108
Content-Type: text/x-csrc;
 name="memcpy-timing.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="memcpy-timing.c"

#include <stdio.h>
#include <stdint.h>
#include <memory.h>

#include <sys/time.h>
#include <time.h>

/* took from https://github.com/agl/curve25519-donna */
static uint64_t
time_now() {
  struct timeval tv;
  uint64_t ret;

  gettimeofday(&tv, NULL);
  ret = tv.tv_sec;
  ret *= 1000000;
  ret += tv.tv_usec;

  return ret;
}

int main()  {
	uint64_t before, after;
	const double count=1000000000.;
	unsigned i;
	unsigned in[8] = {1};
	unsigned out[8];

	before=time_now();
	for( i=0; i<count; i++ )  {
		memcpy( out, in, 32 );
	}
	after = time_now();

	printf("  %.1f op/sec for memcpy\n", count*1000000./(after-before));

	return 0;
}


--------------020204080901010206010108--


From nobody Sat Aug 16 23:56:11 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 289361A0742 for <cfrg@ietfa.amsl.com>; Sat, 16 Aug 2014 23:56: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 WLPRQW6PfUGL for <cfrg@ietfa.amsl.com>; Sat, 16 Aug 2014 23:56:08 -0700 (PDT)
Received: from qmta15.emeryville.ca.mail.comcast.net (qmta15.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:228]) by ietfa.amsl.com (Postfix) with ESMTP id A72461A0740 for <cfrg@irtf.org>; Sat, 16 Aug 2014 23:56:08 -0700 (PDT)
Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta15.emeryville.ca.mail.comcast.net with comcast id fivQ1o0011bwxycAFiw8bk; Sun, 17 Aug 2014 06:56:08 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta18.emeryville.ca.mail.comcast.net with comcast id fiw71o0034uhcbK8eiw7Dy; Sun, 17 Aug 2014 06:56:08 +0000
Message-ID: <53F05207.1050509@brainhub.org>
Date: Sat, 16 Aug 2014 23:56:07 -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: Michael Hamburg <mike@shiftleft.org>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII> <53EDEE67.6090308@secunet.com> <A1FCAAE8-4F20-4AC1-A635-AED20E8F7D5C@shiftleft.org> <53EE8F45.9070908@brainhub.org> <F3296E50-46AD-4653-BCCA-5435D6ECB78F@shiftleft.org>
In-Reply-To: <F3296E50-46AD-4653-BCCA-5435D6ECB78F@shiftleft.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1408258568; bh=x/k6GkRpuqOxEP5hXP1kIrJVzn0vRzyR3xytsNL31c8=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=L25JNSTzWVrFaRCfq0tPPFXzj1Yeiahh6htLFqgzeI9lzE2i3CKPFmsH5wqIqkIA5 ne7PbVpANwk5UI0MUORhvakrFzgMLkf4WzTu4cszxzcSxnS1L6PIEH1ExSLP9GJHfW WesaSk743/KNdNmJkYx7biJlhTD8wD2LYxHBeAGdC8ZjJ7JvT49e2lhokY8FlyVfe0 Y34x/1+eAD2AJ+EyksVT79HCfDmswQKpF1V3dmPyIYxQQiIzeqjB7ml4g5rTSm0mLa tXjJFafNr9RZ+YYUSe5W3bD9eMI0fyJpl/unq5agTEBh108NI4mHRVz3E0lknCVHCu vvJ//+rS60stg==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/nQM-c3uq9TCYYIaGrMztlhT9IZY
Cc: 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: Sun, 17 Aug 2014 06:56:10 -0000

I looked at my implementation of modp reduction I did a few years ago 
for a fixed p. I used Barrett reduction.

At closer look I don't see why multiply+reduction mod p, for a random 
but fixed p, is 2n^2 + n. I got a corrected value for Barrett reduction 
below.

On 08/15/2014 05:55 PM, Michael Hamburg wrote:
> I have some more data.  Summary: “devastating” is probably between 1.8 and 3.1.
>
> Mod 2^521-1, you can do a multiply in 167 Haswell cycles using a variant of 3-way Chung-Hasan which is specific to that prime.  (Ordinary Karatsuba is no good because the prime has 9 limbs.)  Schoolbook takes 222 cycles with only minor benefits from the prime’s shape.  Maybe a better implementor can get better numbers than mine; this is a rough try in C++ with asm intrinsics for widening multiply.
>
> I don’t have an implementation on hand of a random prime at that level.  Suppose that for a random prime that size you can do an almost-as-good version of Chung-Hasan in 180 cycles, but then you need to fall back to a digit-serial Montgomery reduction which approximates the schoolbook method.  This includes some of the inter-digit reduction twice, so maybe 222 is 10% too high.  Then the ratio is (180 + 222 * 90%) / 167 ~ 2.3.  A random 512-bit prime also requires this amount of time if you use 9 limbs; with 8 limbs it’s again about the same or maybe slightly worse (see below).
>
> For comparison, based on the Microsoft data, their prime 2^512 - 569 takes about 255 Sandy Bridge cycles per mul.  This is written in assembly language using the schoolbook method.  This corresponds to about 212 Haswell cycles, since the going rate is about 20%.  So it’s 5% faster than my P-521 schoolbook, but in assembly vs C++/intrinsics.  The ratio with my above estimate for a random prime (using a completely different implementation) is 1.8.  Schoolbook Montgomery for a random prime using Microsoft’s implementation techniques should have a ratio of about (2n^2 + n) / (n^2 + n) ~ 1.9 with n=8 limbs.
>
> This assumes a random prime vs special one at the “>= 256-bit WF” level, but if tweaking the levels is allowed, the ratio is even more.  A 480-bit special prime, Ridinghood, takes 122 Haswell cycles for a multiply (same as 448-bit Goldilocks).  That’s a ratio of 3.1 vs the above estimate for a 512-bit random prime.  If you scale the numbers to take the shorter length (480 vs 512) into account, the “efficiency ratio” is about 2.8.
>
> The Ridinghood numbers reflect better tuning than the 521-bit tests, but probably not as much tuning as the Microsoft implementation.  My tests are in C with asm intrinsics.  The difference is maybe 10% vs the C++ above, so figure that a ratio of 2.8 (efficiency ratio 2.5) is probably more fair.
>
> This doesn’t take into account the ratio of multiplication, squaring, and addition / subtraction.
>
>> On Aug 15, 2014, at 3:52 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>>
>> Here is a simple sketch how the prime affects the mop operations.
>>
>> Comparing multiplication of 2 n-limb numbers with the reduction mod n-limb number p:
>>
>> * in case of a random prime, we have n^2 multiplies. This gives 2n number, n higher limbs of which will need to be reduced. To accomplish this we multiply p by each of n high limbs, for the total n^2. We have 2n^2 multiplies
Ignoring the fact that some operations in Barrett reduction involve +1, 
-1 of border limbs, Barrett has two multiplies with the following 
complexity:

* n^2 of n higher limbs (of the 2n-limb number we are reducing) by the 
n-limb precomputed quantity (b^2n)/p, where b is max limb value+1, e.g. 
b=2^64.
* it computes another quantity t*p mod b^(n+1), which is roughly n^2/2 
(while you estimate it as n).

The total then is ~ 2.5n^2 v.s. n^2+n for pseudo-Mersenne.


>>
>> * in case of p=2^k-C, we have the same n^2 multiplies, but the reduction results in only n multiplies of high limbs by C. We have n^2 + n
>>
>> So this is (n^2 + n) / 2n^2 ~= 1/2 (pseudo-Mersenne primes have ~50% fewer limb multiplies for multiply+reduce)

(n^2+n)/2.5n^2 ~= 2/5,

pseudo-Mersenne primes use ~40% multiplies.

For 256-bit primes n is likely too low to observe this. n=4, n^2/2 = 8 and I ignored extra limbs.


>>
>>
>> This estimate underestimates  the reduction that takes place for the general p. One needs an additional n divisions (of a limp by the highest limb of p) in denominator, which gives the Mike Hamburg's quantity exactly (which uses the Montgomery reduction method). I didn't count additions/subtractions.
> These divisions are actually multiplies, because you use either Montgomery or Barrett reduction.  So it’s (n^2 + n) / (2n^2 + n).
>
> Cheers,
> — Mike


From nobody Sun Aug 17 01:20: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 CF5331A0785 for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 01:20: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 lckQuGe7kctP for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 01:20:18 -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 E39591A0784 for <cfrg@irtf.org>; Sun, 17 Aug 2014 01:20:17 -0700 (PDT)
Received: from [192.168.1.146] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 1C6DC3AA12; Sun, 17 Aug 2014 01:18:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1408263530; bh=rIBsXX01kGSNDe2MlTsom1fkOf3yzx0v0MbkMUT4Anw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=O5IZ5kypiT/k2Gnxz2OHmr43l/f0mvLCDRDHORIIDH/NQiOayBI3AhfxsCmcgHSbZ K0o6DEz5o5mepUXq8Af+tinlnVTDvLPCsgAZ8NWfAuB4GF1naDwcdeT0CtHAHdDD6h /l71Gp34GbDnC7ApVQgHSf4TpTCT3doRL770S1F4=
Content-Type: multipart/alternative; boundary="Apple-Mail=_D450F7EB-8542-44EB-9B15-A4A99E55FFD5"
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53F05207.1050509@brainhub.org>
Date: Sun, 17 Aug 2014 01:20:14 -0700
Message-Id: <5A46CF1A-CBF3-4954-AB53-257E13BBEF1A@shiftleft.org>
References: <CFFB1371.2916E%kenny.paterson@rhul.ac.uk> <20140808141506.GA24645@LK-Perkele-VII> <53EDEE67.6090308@secunet.com> <A1FCAAE8-4F20-4AC1-A635-AED20E8F7D5C@shiftleft.org> <53EE8F45.9070908@brainhub.org> <F3296E50-46AD-4653-BCCA-5435D6ECB78F@shiftleft.org> <53F05207.1050509@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r-9GJmz88-9pIJiJ4Lvuwv5Ip4Q
Cc: 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: Sun, 17 Aug 2014 08:20:19 -0000

--Apple-Mail=_D450F7EB-8542-44EB-9B15-A4A99E55FFD5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Aug 16, 2014, at 11:56 PM, Andrey Jivsov <crypto@brainhub.org> =
wrote:
>=20
> I looked at my implementation of modp reduction I did a few years ago =
for a fixed p. I used Barrett reduction.
>=20
> At closer look I don't see why multiply+reduction mod p, for a random =
but fixed p, is 2n^2 + n. I got a corrected value for Barrett reduction =
below.

You can reduce one digit at a time.  Eg just cancel the top digit at a =
cost of one multiply to find the approximate factor plus n to multiply =
by p, then repeat.  It=E2=80=99s a little easier with Montgomery than =
with Barrett, since Montgomery always cancels the low digit out exactly.

This is why it=E2=80=99s a pain to reduce with Karatsuba, though.  I =
don=E2=80=99t know an easy way around it: you either reduce by several =
digits at a time and pay an extra cost like in your calculations, or you =
do one at a time but can=E2=80=99t use Karatsuba.

=E2=80=94 Mike


--Apple-Mail=_D450F7EB-8542-44EB-9B15-A4A99E55FFD5
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;"><br><div><blockquote type=3D"cite"><div>On Aug 16, =
2014, at 11:56 PM, Andrey Jivsov &lt;<a =
href=3D"mailto:crypto@brainhub.org">crypto@brainhub.org</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div><span =
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; float: none; display: inline =
!important;">I looked at my implementation of modp reduction I did a few =
years ago for a fixed p. I used Barrett reduction.</span><br =
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;"><br 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;"><span 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; =
float: none; display: inline !important;">At closer look I don't see why =
multiply+reduction mod p, for a random but fixed p, is 2n^2 + n. I got a =
corrected value for Barrett reduction =
below.</span></div></blockquote><br></div><div>You can reduce one digit =
at a time. &nbsp;Eg just cancel the top digit at a cost of one multiply =
to find the approximate factor plus n to multiply by p, then repeat. =
&nbsp;It=E2=80=99s a little easier with Montgomery than with Barrett, =
since Montgomery always cancels the low digit out =
exactly.</div><div><br></div><div>This is why it=E2=80=99s a pain to =
reduce with Karatsuba, though. &nbsp;I don=E2=80=99t know an easy way =
around it: you either reduce by several digits at a time and pay an =
extra cost like in your calculations, or you do one at a time but =
can=E2=80=99t use Karatsuba.</div><div><br></div><div>=E2=80=94 =
Mike</div><div><br></div></body></html>=

--Apple-Mail=_D450F7EB-8542-44EB-9B15-A4A99E55FFD5--


From nobody Sun Aug 17 10:09:50 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 7CDE11A0AF8 for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 10:09:48 -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 Kgfg2z-aBqaq for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 10:09:46 -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 74B041A0B03 for <cfrg@irtf.org>; Sun, 17 Aug 2014 10:09:46 -0700 (PDT)
Received: from [192.168.1.146] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 9ABF93AA12; Sun, 17 Aug 2014 10:08:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1408295298; bh=PQqZ8DH0Uidr1tK5c6K4JJ3YhmuLdE6kjQ0H1UPvJ+s=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=dRKTlQVA0OetBY0qiPSh2au463dGrx6gmk2cyHV4BnsNcXA7GTj32WjvP3KRM8y2a MPQY9qQ8PZAbDWSlBswrwXWDv0xl4b+LkQvvbgkEH6q67dWO7sE6eg+nSi8RiI3fvT UGoWj57+gWFv/Q9gKGnnV7HIq5v6/ZFNf9L4IjA4=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1971.5\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <53F0010B.6080101@brainhub.org>
Date: Sun, 17 Aug 2014 10:09:44 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <CD159876-F061-4EB8-B1DC-FAB8E4798E26@shiftleft.org>
References: <53F0010B.6080101@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.1971.5)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/vfB5tqOvsajBnG37LdiSgP0mnao
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Timing of libsodium, curve25519-donna, MSR ECCLib, and openssl-master
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 17 Aug 2014 17:09:49 -0000

> On Aug 16, 2014, at 6:10 PM, Andrey Jivsov <crypto@brainhub.org> =
wrote:
>=20
> I timed libsodium, curve25519-donna, MSR ECCLib, and openssl-master.

Thanks for the data!

> In all cases minor tweaks to the source code were added to measure and =
report the timing. I made sure to time the variable base scalar =
multiplication. I also timed the fixed base multiplication and =
precomputation (only needed for MSR ECCLib).
>=20
> Operations are reported as operations per second. I used default =
compile options.
>=20
> MSR ECCLib was slightly faster in variable base operations. It uses =
assembler code.
>=20
> Interestingly, MSR ECCLib Weierstrass a=3D-3 curves are only 10% =
slower than curve25519-donna. At the same time all pseudo-Mersenne prime =
curves are ~5 times faster than NIST P-256 (this is better than factor =
of 2 back-of-envelope difference in modp multiplication performance)
>=20
> The factor of 2+ improvement for fixed base calculation in MSR ECCLib =
is impressive. Note, however, the significant penalty that =
precalculation step adds. If the pre-calculation is included in timing, =
we could do ~50% more EDH agreements with NIST P-256.

Precomputation on the curve=92s base point shouldn't be included in =
timing, because it will be hard-coded in a production version.  Handling =
it will be cheap, unless it=92s big enough to cause CPU cache thrashing.

> CPU: Intel(R) Core(TM) i5-3550 CPU @ 3.30GHz, no AVX2. Fedora Core 20 =
64 bit.

Do you know if TurboBoost was on?  That CPU can boost to 3.7 GHz, so the =
cycle counts could be 12% different one way or another.

> https://github.com/jedisct1/libsodium
> modified tests in libsodium/test/default to take the timing:
> crypto_scalarmult_curve25519_base: 15620.2 op/s
> crypto_scalarmult_curve25519: 15602.8 op/s
>=20
> https://github.com/agl/curve25519-donna:
> make ./speed-curve25519-donna-c64 && ./speed-curve25519-donna-c64
> 63 us, 15722.1 op/s
> (also modified to check variable base v.s. generator 9 -- no =
difference)
>=20
> OpenSSL 1.0.1e-fips 11 Feb 2013:
> openssl speed ecdhp256 (ECDH_compute_key)
> 256 bit ecdh (nistp256)   0.0003s   3245.4  op      op/s
> and from git://git.openssl.org/openssl.git:
> 256 bit ecdh (nistp256)   0.0003s   3406.7  op      op/s
>=20
> MSR ECCLib =
http://research.microsoft.com/en-us/downloads/149804d4-b5f5-496f-9a17-a013=
b242c02d/
>=20
> In the function that prints "Crypto operations: Weierstrass a=3D-3 =
over GF(2^256-189)":
> with variable base (baseecdh_secret_agreement_Jac256) 14047.9 op/sec
> with fixed base (ecdh_keygen_Jac256) 35370 op/sec
> table precomp (ecdh_generator_table_Jac256) 1284.03 op/sec
> table precomp+keygen+variable base 1056.86 op/sec
> "ECDH(E) runs in [...] 328926 cycles"
>=20
> In the function that prints "Crypto operations: twisted Edwards a=3D-1 =
over GF(2^256-189)"
> with variable base (ecdh_secret_agreement_Ted256): 17482 op/sec
> with fixed base (ecdh_keygen_Ted256) 35370 op/sec: 45762.9 op/sec
> table precomp (ecdh_generator_table_Ted256) 1346.98 op/sec
> table precomp+keygen+variable base 1195.89 op/sec
> "ECDH(E) runs in [...] 261385 cycles"
>=20
> memcpy of the 32 bytes: 595968511 op/sec, see attached code
> ( i.e. memcpy count / crypto_scalarmult_curve25519 count =3D 38042 )
> <memcpy-timing.c>_______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Aug 17 12:56:04 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 6F5F31A6FCF for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 12:56:03 -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 OSy_ifs3xpET for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 12:56:01 -0700 (PDT)
Received: from qmta07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:64]) by ietfa.amsl.com (Postfix) with ESMTP id 072511A6FCE for <cfrg@irtf.org>; Sun, 17 Aug 2014 12:56:00 -0700 (PDT)
Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta07.emeryville.ca.mail.comcast.net with comcast id fvv61o0011vN32cA7vw0b5; Sun, 17 Aug 2014 19:56:00 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta22.emeryville.ca.mail.comcast.net with comcast id fvvz1o0064uhcbK8ivvzZ1; Sun, 17 Aug 2014 19:56:00 +0000
Message-ID: <53F108CF.4040704@brainhub.org>
Date: Sun, 17 Aug 2014 12:55:59 -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: Michael Hamburg <mike@shiftleft.org>
References: <53F0010B.6080101@brainhub.org> <CD159876-F061-4EB8-B1DC-FAB8E4798E26@shiftleft.org>
In-Reply-To: <CD159876-F061-4EB8-B1DC-FAB8E4798E26@shiftleft.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1408305360; bh=GP2AmNmw27OzxuB5PNnw6e379jlVK2DqwladdELdgAA=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=RMA2lyq261XdATs0DvgGOikloEK/2APEFXJqGimtWPH//NemPI+Zqve4pyT5uId8U StzXSQStqkVspnxPc4QxFTExVPwJJOlJmgFkJl8jf3IZJPFcCadBhtOTSXI4jprExq iCy2VQev05eNCvfY04fcS5z8r+WGagWbl07SwfK9+CVCOzA5ELjMqJyDHoenjUK44A +rSQFMO8M9OuucX3Lila10kIeHDVuwCbmICA5cJm9Q+jfO/VzaM2nXiDF0QMC/y0NN DoUenyPryyWt69cLfnmhwcLpBVjuAbzhqz5tM43KZqIP0xVL5REnS+VxgcWijkInyK WCIg7j036nK1w==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/64o56J4FxuHBZ8v1WGNq3sBXGOg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Timing of libsodium, curve25519-donna, MSR ECCLib, and openssl-master
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 17 Aug 2014 19:56:03 -0000

On 08/17/2014 10:09 AM, Michael Hamburg wrote:
>
>> On Aug 16, 2014, at 6:10 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>>
>> I timed libsodium, curve25519-donna, MSR ECCLib, and openssl-master.
>
> Thanks for the data!
>
>> In all cases minor tweaks to the source code were added to measure and report the timing. I made sure to time the variable base scalar multiplication. I also timed the fixed base multiplication and precomputation (only needed for MSR ECCLib).
>>
>> Operations are reported as operations per second. I used default compile options.
>>
>> MSR ECCLib was slightly faster in variable base operations. It uses assembler code.
>>
>> Interestingly, MSR ECCLib Weierstrass a=-3 curves are only 10% slower than curve25519-donna. At the same time all pseudo-Mersenne prime curves are ~5 times faster than NIST P-256 (this is better than factor of 2 back-of-envelope difference in modp multiplication performance)
>>
>> The factor of 2+ improvement for fixed base calculation in MSR ECCLib is impressive. Note, however, the significant penalty that precalculation step adds. If the pre-calculation is included in timing, we could do ~50% more EDH agreements with NIST P-256.
>
> Precomputation on the curve’s base point shouldn't be included in timing, because it will be hard-coded in a production version.  Handling it will be cheap, unless it’s big enough to cause CPU cache thrashing.

That's a possibility. Tables need to be reasonably small to make this 
attractive.

I think the optimal solution will be application-specific.

While powerful servers are good candidates to take advantage of 
pre-computation, they also have the ability to run a separate pipeline 
to produce pre-generated pairs as well, for the entire cost of DH 
protocol done in 1 variable-base scalar multiplication, something that 
the crypto alone cannot possibly beat.

Small systems may care about executable binary size (code+static data), 
memory size, and pre-computation cost.

Also, let's not discard a possibility of a brief ephemeral value re-use.

>
>> CPU: Intel(R) Core(TM) i5-3550 CPU @ 3.30GHz, no AVX2. Fedora Core 20 64 bit.
>
> Do you know if TurboBoost was on?  That CPU can boost to 3.7 GHz, so the cycle counts could be 12% different one way or another.

I checked my BIOS setting. It says "Intel HT Technology" Not Supported.

I followed:
http://xmodulo.com/2012/06/how-to-find-number-of-cpu-cores-on.html
and also:
http://www.linuxforums.org/forum/red-hat-fedora-linux/155256-3-ways-tell-if-ht-enabled-without-going-through-bios-problems.html

These commands report that I have 1 CPU, 4 cores, 4 processors in Linux. 
I interpret this that I have no Hyperthreading enabled.

I played with a few options in the BIOS that would make the measurements 
constant-time. I noticed one that made a difference: "Intel Turboboost: 
Enabled". It had an effect of boosting the clock speed. With this value 
disabled I get slightly lower op/sec values, but the relationship stayed 
the about the same with all measurements going down.

e.g. before/after:

donna: 15722/14105=1.11
MSR variable base Weierstrass: 14047/12602=1.11
openssl: 3245/3025.2=1.07

The numbers, as seen on the terminal, are at the bottom.

>
>> https://github.com/jedisct1/libsodium
>> modified tests in libsodium/test/default to take the timing:
>> crypto_scalarmult_curve25519_base: 15620.2 op/s
>> crypto_scalarmult_curve25519: 15602.8 op/s
>>
>> https://github.com/agl/curve25519-donna:
>> make ./speed-curve25519-donna-c64 && ./speed-curve25519-donna-c64
>> 63 us, 15722.1 op/s
>> (also modified to check variable base v.s. generator 9 -- no difference)
>>
>> OpenSSL 1.0.1e-fips 11 Feb 2013:
>> openssl speed ecdhp256 (ECDH_compute_key)
>> 256 bit ecdh (nistp256)   0.0003s   3245.4  op      op/s
>> and from git://git.openssl.org/openssl.git:
>> 256 bit ecdh (nistp256)   0.0003s   3406.7  op      op/s
>>
>> MSR ECCLib http://research.microsoft.com/en-us/downloads/149804d4-b5f5-496f-9a17-a013b242c02d/
>>
>> In the function that prints "Crypto operations: Weierstrass a=-3 over GF(2^256-189)":
>> with variable base (baseecdh_secret_agreement_Jac256) 14047.9 op/sec
>> with fixed base (ecdh_keygen_Jac256) 35370 op/sec
>> table precomp (ecdh_generator_table_Jac256) 1284.03 op/sec
>> table precomp+keygen+variable base 1056.86 op/sec
>> "ECDH(E) runs in [...] 328926 cycles"
>>
>> In the function that prints "Crypto operations: twisted Edwards a=-1 over GF(2^256-189)"
>> with variable base (ecdh_secret_agreement_Ted256): 17482 op/sec
>> with fixed base (ecdh_keygen_Ted256) 35370 op/sec: 45762.9 op/sec
>> table precomp (ecdh_generator_table_Ted256) 1346.98 op/sec
>> table precomp+keygen+variable base 1195.89 op/sec
>> "ECDH(E) runs in [...] 261385 cycles"
>>
>> memcpy of the 32 bytes: 595968511 op/sec, see attached code
>> ( i.e. memcpy count / crypto_scalarmult_curve25519 count = 38042 )
>> <memcpy-timing.c>_______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg


[andrey@ivy libsodium]$
crypto_scalarmult_curve25519_base: 14052.8 op/s
crypto_scalarmult_curve25519: 14072.8 op/s

[andrey@ivy curve25519-donna]$
71 us, 14079.1 op/s (fixed base)
70 us, 14105.4 op/s (variable base)

[andrey@ivy openssl-master]$
  256 bit ecdh (nistp256)   0.0003s   3042.2

[andrey@ivy MSR_ECClib_v1.1]$
Crypto operations: Weierstrass a=-3 over GF(2^256-189)

   ECDH(E) runs in ................................................. 
366436 cycles
   ECDH with variable base 
................................................. 12602 op/sec
   ECDH with fixed base (keygen) 
................................................. 31787.3 op/sec
   ECDH table precomp ................................................. 
1148.5 op/sec
   ECDH table precomp+keygen+variablebase 
................................................. 1066.89 op/sec

Crypto operations: twisted Edwards a=-1 over GF(2^256-189)

   ECDH(E) runs in ................................................. 
291183 cycles
   ECDH with one component 
................................................. 15648.9 op/sec
   ECDH with fixed base (keygen) 
................................................. 41296.2 op/sec
   ECDH table precomp ................................................. 
1243.78 op/sec
   ECDH table precomp+keygen+variablebase 
................................................. 1120.32 op/sec


From nobody Sun Aug 17 21:50:19 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 ABB991A02D9 for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 21:50:18 -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 6cWmQZ8xe9do for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 21:50:17 -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 1F72F1A02D8 for <cfrg@irtf.org>; Sun, 17 Aug 2014 21:50:17 -0700 (PDT)
Received: from omta24.emeryville.ca.mail.comcast.net ([76.96.30.92]) by qmta09.emeryville.ca.mail.comcast.net with comcast id g4pj1o0011zF43QA94qGmG; Mon, 18 Aug 2014 04:50:16 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by omta24.emeryville.ca.mail.comcast.net with comcast id g4qF1o00K4uhcbK8k4qFXu; Mon, 18 Aug 2014 04:50:16 +0000
Message-ID: <53F18607.3000005@brainhub.org>
Date: Sun, 17 Aug 2014 21:50:15 -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: <53F0010B.6080101@brainhub.org> <CD159876-F061-4EB8-B1DC-FAB8E4798E26@shiftleft.org> <53F108CF.4040704@brainhub.org>
In-Reply-To: <53F108CF.4040704@brainhub.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1408337416; bh=bcSua1orAHfEhSDM6e7MulRIjaIPlN7Cj8zH3gbKZ4g=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=tXPHekymOfLCPysB3gtzmjMw9z62UqWXz/WG5+M9BQWP1ywG601/1Li/c0ApKH07i dDvJot/sQYqeWu7SCoL0cSLfVkud9cnAq9mWq4l4mlk3BnsswHsED6wbCN7n2o4jc5 1iHC6z+svewBuPi88l7ZKNwvN7BZlkhPK4bLyucerrVJ8rSKrxp6JRvXUpgd9NioTx urmNDGwKGmc/5FmP6yiVlmvYA1VBk0GfOU8i3OJXcY3cVpT7fwkBePIv6eqtGgj5Ks O8QEsBZsXZU3dSG2xsRW82EzfMEWCJf7bpA94H2mOqZIxeCa/nH0kdmHHzrNem8CT5 TjOhfTwqlpHpQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fljlJUzqe5YOhfXllQA6sP2H2YU
Subject: Re: [Cfrg] Timing of libsodium, curve25519-donna, MSR ECCLib, and openssl-master
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 18 Aug 2014 04:50:18 -0000

Michael Hamburg's question about hyperthreading made me think what kind 
of performance I can actually get on the whole CPU, as opposed to a 
single core?

I confirmed that, using the Curve25519 as an example, the 
single-threaded op/sec value can be multiplied by the number of cores to 
arrive at the total count.

Which gives us over 60,000 256-bit variable base scalar multiplications 
on a whole CPU. Recall that my reported number was 15764.3 op/sec.

To perform the measurement I wrapped the curve25519-donna code into the 
multithreaded code.

As the prints below show, the op/sec number, per thread, stays at ~15000 
level, deteriorating slightly, until the number of threads reaches the 
number of cores. The total operation count per CPU peaks at the number 
of threads equal the number of cores and then stays constant for higher 
number of threads. (actually, it peaks at the number of cores + 1, but 
that's a small increase).


Prints from the program follow. The diff: 
https://github.com/brainhub/curve25519-donna/commit/8fe32587444b9be3b9ec06cb2334a2cd3fc356cd.

Waiting in thread 1 ...
thread 1: 15616.2 op/sec in 6 sec
Total for CPU: 15616.2 op/sec

Waiting in thread 1 ...
Waiting in thread 2 ...
thread 1: 15221 op/sec in 7 sec
thread 2: 15224.6 op/sec in 7 sec
Total for CPU: 30445.5 op/sec

Waiting in thread 1 ...
Waiting in thread 2 ...
Waiting in thread 3 ...
thread 1: 14950.4 op/sec in 7 sec
thread 2: 14962.4 op/sec in 7 sec
thread 3: 14959.9 op/sec in 7 sec
Total for CPU: 44872.7 op/sec

Waiting in thread 1 ...
Waiting in thread 2 ...
Waiting in thread 3 ...
Waiting in thread 4 ...
thread 1: 14900.6 op/sec in 7 sec
thread 2: 14960.9 op/sec in 7 sec
thread 3: 14937.9 op/sec in 7 sec
thread 4: 14308.3 op/sec in 7 sec
Total for CPU: 59107.7 op/sec

Waiting in thread 4 ...
Waiting in thread 5 ...
Waiting in thread 3 ...
Waiting in thread 1 ...
Waiting in thread 2 ...
thread 1: 12298.4 op/sec in 8 sec
thread 2: 13157.2 op/sec in 8 sec
thread 3: 12187.7 op/sec in 8 sec
thread 4: 11612.9 op/sec in 9 sec
thread 5: 11201.8 op/sec in 9 sec
Total for CPU: 60457.9 op/sec

... and there is no improvement beyond 5 threads.


From nobody Sun Aug 17 22:49:22 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 B9E951A02EC for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 22:49:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.669
X-Spam-Level: 
X-Spam-Status: No, score=-2.669 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.668, 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 S-1rV58Nh4tV for <cfrg@ietfa.amsl.com>; Sun, 17 Aug 2014 22:49:19 -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 446D61A02EF for <cfrg@irtf.org>; Sun, 17 Aug 2014 22:49:16 -0700 (PDT)
Received: by ore.jhcloos.com (Postfix, from userid 10) id 227861E35C; Mon, 18 Aug 2014 05:49:15 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore14; t=1408340955; bh=0GTFtR0hBP7nxOMJ4+KbFfw2XN7XSnAhIhjQnCRG7aA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V+QZpfZtMwUccBHTAnfSlD5XwLLZlU2WdceFl9zNR78n+mPRn8jwYH+lAPQBipxoX zmA5/lGYGdyM74cHxoCrmKxDKWKsqyVVxH9ugfFaYMM/PfRzgKLh0u06ETu/Qg5UY8 iTRiei75mwqcFIbBJQBZoLlC7eOMklvPTLTShkzY=
Received: by carbon.jhcloos.org (Postfix, from userid 500) id 1037360022; Mon, 18 Aug 2014 05:47:52 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: Andrey Jivsov <crypto@brainhub.org>
In-Reply-To: <53F108CF.4040704@brainhub.org> (Andrey Jivsov's message of "Sun,  17 Aug 2014 12:55:59 -0700")
References: <53F0010B.6080101@brainhub.org> <CD159876-F061-4EB8-B1DC-FAB8E4798E26@shiftleft.org> <53F108CF.4040704@brainhub.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: Mon, 18 Aug 2014 01:47:51 -0400
Message-ID: <m3oavinybc.fsf@carbon.jhcloos.org>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain
X-Hashcash: 1:28:140818:crypto@brainhub.org::9jTxjzdQdt7mIFYm:00000000000000000000000000000000000000000ENH/M
X-Hashcash: 1:28:140818:mike@shiftleft.org::jZ7vVTDcINsc1Bfd:0000000000000000000000000000000000000000003SxSp
X-Hashcash: 1:28:140818:cfrg@irtf.org::1Ad3I99cOJC8t96z:0009Zgws
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/SoIAn7Ikm15C4VIhyy5HYlCy0mE
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Timing of libsodium, curve25519-donna, MSR ECCLib, and openssl-master
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 18 Aug 2014 05:49:20 -0000

>>>>> "AJ" == Andrey Jivsov <crypto@brainhub.org> writes:

>> Do you know if TurboBoost was on?  That CPU can boost to 3.7 GHz, so the cycle counts could be 12% different one way or another.

AJ> I checked my BIOS setting. It says "Intel HT Technology" Not Supported.

Turboboost != hyperthreading.

cpufreq-info(1) should tell you whether turboboost is in use.

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


From nobody Mon Aug 25 07:32: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 A44681A8977; Mon, 25 Aug 2014 07:31:59 -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 9DqgGv2N8Knq; Mon, 25 Aug 2014 07:31:58 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 8FE891A894D; Mon, 25 Aug 2014 07:31:58 -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.p5
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20140825143158.24828.35072.idtracker@ietfa.amsl.com>
Date: Mon, 25 Aug 2014 07:31:58 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/QS95gwGiSw2K-qguDi-tiU_TiII
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-01.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: Mon, 25 Aug 2014 14:31:59 -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-01.txt
	Pages           : 39
	Date            : 2014-08-25

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-01

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


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 Tue Aug 26 14:30:01 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 C1F801A87B3 for <cfrg@ietfa.amsl.com>; Tue, 26 Aug 2014 14:29:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.301
X-Spam-Level: *
X-Spam-Status: No, score=1.301 tagged_above=-999 required=5 tests=[BAYES_80=2,  RCVD_IN_DNSWL_LOW=-0.7, 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 quySJaX_hYKf for <cfrg@ietfa.amsl.com>; Tue, 26 Aug 2014 14:29:57 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id E6A681A8842 for <cfrg@irtf.org>; Tue, 26 Aug 2014 14:29:55 -0700 (PDT)
Received: (qmail 3160 invoked by uid 1011); 25 Aug 2014 23:43:11 -0000
Received: from unknown (unknown) by unknown with QMTP; 25 Aug 2014 23:43:11 -0000
Received: (qmail 7801 invoked by uid 1001); 25 Aug 2014 23:43:05 -0000
Date: 25 Aug 2014 23:43:05 -0000
Message-ID: <20140825234305.7799.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/-9LEdnzVrE5RORux3Oo_oDDRksU
Subject: [Cfrg] 25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 26 Aug 2014 21:29:58 -0000

It has become increasingly common for "Curve25519" to refer to an
elliptic curve, while the original paper defined "Curve25519" as an
X-coordinate DH system using that curve. "Ed25519" unambiguously refers
to an Edwards-coordinate signature system using that curve.

Kenny and others in Toronto recommended changing terminology to clearly
separate these three items. Let me suggest the following terminology:

   * "X25519" is the recommended Montgomery-X-coordinate DH function.
   * "Ed25519" is the recommended Edwards-coordinate signature system.
   * "Curve25519" is the underlying elliptic curve.

All relevant coordinate systems already have standard names in the
literature, and I would suggest sticking to those names whenever it's
necessary to discuss the coordinate systems per se:

   * "Montgomery coordinates" (X,Y) satisfy Y^2 = X^3 + AX^2 + X mod
     2^255-19, where A = 486662.

   * "Short Weierstrass coordinates" (x,y) satisfy y^2 = x^3 + ax + b
     where a = 1-A^2/3 and b = 2A^3/27-A/3. An easy transformation to
     Montgomery coordinates is Y = y and X = x-A/3. The inverse
     transformation is y = Y and x = X+A/3. Verification script in gp:

        a = 1-A^2/3;
        b = 2*A^3/27-A/3;
        montgomery = Y^2-(X^3+A*X^2+X);
        weierstrass = y^2-(x^3+a*x+b);
        subst(subst(montgomery,Y,y),X,x-A/3) == weierstrass
        subst(subst(weierstrass,y,Y),x,X+A/3) == montgomery

   * "Untwisted Edwards coordinates" (x,y) satisfy x^2 + y^2 = 1 +
     dx^2y^2 where d = (A-2)/(A+2). An easy transformation to Montgomery
     coordinates is X = (1+y)/(1-y) and Y = sqrt(A+2) X/x. The inverse
     transformation is x = sqrt(A+2) X/Y and y = (X-1)/(X+1).
     Verification script:

        A = s^2-2;
        d = (A-2)/(A+2);
        edwards = x^2+y^2-(1+d*x^2*y^2);
        montgomery = Y^2-(X^3+A*X^2+X);
        subst(subst(montgomery/Y^2,Y,s*X/x),X,(1+y)/(1-y)) == edwards/(y^2-1)
        subst(subst(edwards/(y^2-1),x,s*X/Y),y,(X-1)/(X+1)) == montgomery/Y^2

   * "-1-twisted Edwards coordinates" (X,Y) satisfy -X^2 + Y^2 = 1 -
     dX^2Y^2, again with d = (A-2)/(A+2). An easy transformation to
     untwisted Edwards coordinates is y = Y and x = sqrt(-1) X. The
     inverse transformation is Y = y and X = -sqrt(-1) x.

X25519 uses the Montgomery X coordinate. Ed25519 uses the -1-twisted
Edwards X and Y coordinates, with X compressed. It's of course possible
to instead use short Weierstrass x and y coordinates for everything (as
required by, e.g., the ANSI and NIST ECDSA standards), but better tuning
of the coordinate choices produces a measurable gain in speed and a
larger gain in simplicity.

---Dan


From nobody Tue Aug 26 14:43:11 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 6C2901A015F for <cfrg@ietfa.amsl.com>; Tue, 26 Aug 2014 14:43:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.1
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 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, 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 gVfjaiKka8M5 for <cfrg@ietfa.amsl.com>; Tue, 26 Aug 2014 14:43:09 -0700 (PDT)
Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 240CD1A0113 for <cfrg@irtf.org>; Tue, 26 Aug 2014 14:43:09 -0700 (PDT)
Received: by mail-oi0-f46.google.com with SMTP id i138so11113234oig.5 for <cfrg@irtf.org>; Tue, 26 Aug 2014 14:43: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:from:date:message-id:subject:to :content-type; bh=6bXF8vYqSwfPiwisI9jHamPdsdVnmFwgtFwXfGP0mvg=; b=fgtGNFsCI4W7zKwbhnzwGWzAdCSqEJuLj346VPafZNAQHm8pTg3aQUDROknsBq7cuL 9dFBkTt0lkBA+AiiUbyDLo8RmlxD59jt1BejgcNjq/NXtV1imNyVKeO2RjSqLYs4+Mb5 VzpY3yhtIEj/AOY5qs9fJnxPsigQmaxHXbT2HDYwmGHCQsWk0k7yl+2NjN29FKIgX3lu vhnEleenBxoZalMXIhDHu5TOXj8K6bdEJXc78JsWLRzMFS2c1IjnTmcbG7h22aLJSsfK orXtcLvUUWE8NhD8hQekw39fbRy8dTW+G1EtGxEqrHhNVSKMvz91r+hdzAvumxw45s/2 dH0g==
X-Received: by 10.182.51.229 with SMTP id n5mr30047835obo.47.1409089388496; Tue, 26 Aug 2014 14:43:08 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.44.167 with HTTP; Tue, 26 Aug 2014 14:42:48 -0700 (PDT)
In-Reply-To: <20140825234305.7799.qmail@cr.yp.to>
References: <20140825234305.7799.qmail@cr.yp.to>
From: Tony Arcieri <bascule@gmail.com>
Date: Tue, 26 Aug 2014 14:42:48 -0700
Message-ID: <CAHOTMVKUhovdmyHDNJX1=p-A8Dbs=BQbp+VbaANKnuTT6SaufQ@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=047d7bfea87e754db905018f309b
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/GSXuJv2bA4RLMwc_-zRcWgULXes
Subject: Re: [Cfrg] 25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 26 Aug 2014 21:43:10 -0000

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

On Mon, Aug 25, 2014 at 4:43 PM, D. J. Bernstein <djb@cr.yp.to> wrote:

> It has become increasingly common for "Curve25519" to refer to an
> elliptic curve, while the original paper defined "Curve25519" as an
> X-coordinate DH system using that curve.


Indeed!

https://twitter.com/bascule/status/393221414775312384


> Kenny and others in Toronto recommended changing terminology to clearly
> separate these three items.


+1


> Let me suggest the following terminology:
>
>    * "X25519" is the recommended Montgomery-X-coordinate DH function.
>    * "Ed25519" is the recommended Edwards-coordinate signature system.
>    * "Curve25519" is the underlying elliptic curve.
>

Seems good, thank you!

--
Tony Arcieri

--047d7bfea87e754db905018f309b
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, Aug 25, 2014 at 4:43 PM, D. J. Bernstein <span dir=3D"ltr">&lt;<a href=
=3D"mailto:djb@cr.yp.to" target=3D"_blank" onclick=3D"window.open(&#39;http=
s://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Ddjb@cr.yp.to&amp;cc=
=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);return false;">=
djb@cr.yp.to</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">It has become increasingly common for &quot;Curve25519&quo=
t; to refer to an<br>


elliptic curve, while the original paper defined &quot;Curve25519&quot; as =
an<br>
X-coordinate DH system using that curve.</blockquote><div><br></div><div>In=
deed!</div><div><br></div><div><a href=3D"https://twitter.com/bascule/statu=
s/393221414775312384">https://twitter.com/bascule/status/393221414775312384=
</a></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(204,204,204);border-l=
eft-style:solid;padding-left:1ex">Kenny and others in Toronto recommended c=
hanging terminology to clearly<br>


separate these three items.</blockquote><div><br></div><div>+1</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(204,204,204);border-left-s=
tyle:solid;padding-left:1ex">

 Let me suggest the following terminology:<br>
<br>
=C2=A0 =C2=A0* &quot;X25519&quot; is the recommended Montgomery-X-coordinat=
e DH function.<br>
=C2=A0 =C2=A0* &quot;Ed25519&quot; is the recommended Edwards-coordinate si=
gnature system.<br>
=C2=A0 =C2=A0* &quot;Curve25519&quot; is the underlying elliptic curve.<br>=
</blockquote><div><br></div><div>Seems good, thank you!</div></div><div><br=
></div>--<br>Tony Arcieri<br>
</div></div>

--047d7bfea87e754db905018f309b--


From nobody Wed Aug 27 06:18:59 2014
Return-Path: <coruus@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 0169E1A06B2 for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 06:18:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.1
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 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, 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 eWWETJcM21Ph for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 06:18:55 -0700 (PDT)
Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010: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 764B61A06AA for <cfrg@irtf.org>; Wed, 27 Aug 2014 06:18:55 -0700 (PDT)
Received: by mail-lb0-f177.google.com with SMTP id l4so312356lbv.36 for <cfrg@irtf.org>; Wed, 27 Aug 2014 06:18:53 -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=tHtslcFNNPoR/DJNVK6Kua2vRgZ/9UB8wywjgCsP0To=; b=O2Ob9FO7uWL7zq47gHqNtmv8YH0Jzbeg8WsomveNRKF+aufcKzGWA0JyRfDv70CALn xqZdf0gYtw1wqKfkAdmN7tw7Nep9b9N7PNO2dArr8jzvNJvRrMb817e87oOLwJMICGHN FTz2Thd+s6X13V3nWe6TNvwrIfv5mc04YlwCOoghjjIy9pq30I7ls405QFLJ+SvyizAU TzlNG4QoFlp46cHHodbccN8uUo8xog2utbbGERg2//FI7Nn9OU/4QLCE2zBkruvnzrJ2 RaJDby6w7lB+UPZQ5nezCpjvQ0tBOZeKZ+K/Ib4/80tFMlo+goYfj2sGz9+QtFq1nH24 yzYQ==
MIME-Version: 1.0
X-Received: by 10.112.34.47 with SMTP id w15mr20352268lbi.84.1409145533613; Wed, 27 Aug 2014 06:18:53 -0700 (PDT)
Received: by 10.25.154.9 with HTTP; Wed, 27 Aug 2014 06:18:53 -0700 (PDT)
In-Reply-To: <20140825234305.7799.qmail@cr.yp.to>
References: <20140825234305.7799.qmail@cr.yp.to>
Date: Wed, 27 Aug 2014 09:18:53 -0400
Message-ID: <CAA7UWsUHLdXRg0-hpFZBAGUTrexU=CzOBcw+DqFey48MdCboLg@mail.gmail.com>
From: David Leon Gil <coruus@gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=14dae93d94cef7cae105019c42ba
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/sAXU8Qck5v3Bf9jTHKLXarXcqxA
Subject: Re: [Cfrg] 25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Aug 2014 13:18:57 -0000

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

Cryptographers have, for quite a while, abused notation and
identified different, isomorphic, elliptic forms. Well, abuse of notation
strikes back.

Part of the problem is that calling a transfer of co=C3=B6rdinates to a
different form a 'co=C3=B6rdinate transform' is confusing. (I suspect that =
most
people don't have sufficient topology to realize that different forms have
different topologies.)

Mathematicians have a perfectly good terminology already; why not simply
adopt that, and be explicit about the maps used to transfer between forms?


On Monday, August 25, 2014, D. J. Bernstein <djb@cr.yp.to> wrote:
>
> All relevant coordinate systems already have standard names in the
> literature, and I would suggest sticking to those names whenever it's
> necessary to discuss the coordinate systems per se:
>

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

<div>Cryptographers have, for quite a while, abused notation and identified=
=C2=A0different, isomorphic, elliptic forms. Well, abuse of notation strike=
s back.</div><div><br></div><div>Part of the problem is that calling a=C2=
=A0transfer of=C2=A0co=C3=B6rdinates=C2=A0to a different form a &#39;co=C3=
=B6rdinate transform&#39; is confusing. (I suspect that most people don&#39=
;t have=C2=A0sufficient topology to realize that different forms have diffe=
rent=C2=A0topologies.)</div>
<div><br></div>Mathematicians have a perfectly good terminology already; wh=
y not simply adopt that, and be explicit about the maps=C2=A0used to transf=
er between=C2=A0forms?<div><br></div><div><div><div><br>On Monday, August 2=
5, 2014, D. J. Bernstein &lt;<a href=3D"mailto:djb@cr.yp.to">djb@cr.yp.to</=
a>&gt; wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex">

All relevant coordinate systems already have standard names in the<br>
literature, and I would suggest sticking to those names whenever it&#39;s<b=
r>
necessary to discuss the coordinate systems per se:<br>
</blockquote></div></div></div>

--14dae93d94cef7cae105019c42ba--


From nobody Wed Aug 27 08:28:24 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 E44FA1A0AE0 for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 08:28:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.801
X-Spam-Level: 
X-Spam-Status: No, score=0.801 tagged_above=-999 required=5 tests=[BAYES_50=0.8, CTYPE_001C_B=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 rpWblH6wuD4Q for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 08:28:22 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 1CD111A0ACA for <cfrg@irtf.org>; Wed, 27 Aug 2014 08:28:21 -0700 (PDT)
Received: from xct108cnc.rim.net ([10.65.161.208]) by mhs214cnc.rim.net with ESMTP/TLS/AES128-SHA; 27 Aug 2014 11:28:19 -0400
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT108CNC.rim.net ([fe80::8dc1:9551:6ed8:c618%17]) with mapi id 14.03.0174.001; Wed, 27 Aug 2014 11:28:17 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] 25519 naming
Thread-Index: AQHPwXToHfyXCW9D/EmDkFwuSkeYqZvkfCBw
Date: Wed, 27 Aug 2014 15:28:17 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CD3966@XMB116CNC.rim.net>
References: <20140825234305.7799.qmail@cr.yp.to>
In-Reply-To: <20140825234305.7799.qmail@cr.yp.to>
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.251]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0000_01CFC1E9.FF4BEB60"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/654XLebSfoVcFTvfdzIUMJgXYxo
Subject: Re: [Cfrg] 25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Aug 2014 15:28:24 -0000

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

> -----Original Message-----
> From: D. J. Bernstein
> Sent: Monday, August 25, 2014 7:43 PM
> 
> use short Weierstrass x and y coordinates for everything (as required by,
> e.g., the ANSI and NIST ECDSA standards), 

With an ANSI hat on: 

Just a small clarification, because I think saying "for everything"
overstates the ANSI ECDSA requirements. The quoted statement "for
everything" to me suggests that ANSI requires these formats for
transmission, but that's not strictly true.

While ANSI X9.62 ECDSA and ANSI X9.63 do specify recommended formats such
octet string conversions and some ASN.1 types, using these formats for
transmitting public keys is *not* a requirement to claim compliance to the
algorithms in ANSI X9.62 or ANSI X9.63. (Unless I'm missed something today
in my quick review of these documents, or have forgotten some requirement
text.)   

Of course, it is correct that some conversions *are required* in the
internal algorithm calculations, in order to obtain interoperability:

- Both the ECDSA and ECMQV algorithms specify a required operation that
takes a short Weierstrass x-coordinate of an ephemeral public key and
convert to an integer. 

- Both ECDH and ECMQV algorithms specify a required operation that takes a
short Weierstrass x-coordinate of a shared secret and converts it to a bit
string.

Both ends of the communication must use the same internal conversions to
achieve interoperability.  I think that the choice of short Weierstrass was
mainly motivated by being able to work for any curve.  Recall, that ANSI
optionally users to specify their own curves, even providing an ASN.1 format
to help them out.  (Aside: some IETF specs forbade this general curve
specifying format, so, in a weak sense, it is really IETF disallowing the
curve part of Curve25519, not ANSI ;-)

With ANSI hat off now:

I'm not sure at the moment at the costs or benefits of changing the
algorithm internal conversions with new curves, but here are some tentative
thoughts:

- I think one might be able to separate/tie the curve choice from/to the
internal representations used in the algorithms above, but one would need to
expand the algorithms slightly, and if things are more separated, then add
some mechanisms to negotiate the relevant internals.

- Most of the hard work, i.e. scalar multiplication, can be done in whatever
format is convenient, with wire-format and final algorithm conversions being
done just when needed.

- From a security perspective, these internal conversion functions require
some very mild security properties (e.g. they must not cluster at one output
value) that I think most reasonable alternatives would easily meet, perhaps
with proof.

Regarding NIST requirements: I'm not sure because there are more layers
documents involved, and in particular, there's FIPS 140-3 with the CAVP and
CMVP program and so on, which I think get rather more specific by mandating
formats, which is indeed almost "everything".  Maybe people have been, or
still are, more interested in NIST than in ANSI, anyway. So, another reason
this is a just small clarification.

Best regards,

Dan


------=_NextPart_000_0000_01CFC1E9.FF4BEB60
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
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzAN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BQAEgYB5C4tAQanvZWEcg8Xb8fwRopsE/vy1
I5aBEssp6KNJ+XPZO2WkQ9sp+h3QsedqVhyS2Peuidiip9HM2HuLY4APW5tQK5jV/bkMFPSoXeVX
tHWn33rJ18lbosI/Mv9S5f/wvsY6Ll2cVs7HLN+stR/dAs1lZu1JOX/nrobQ6QrqsgAAAAAAAA==

------=_NextPart_000_0000_01CFC1E9.FF4BEB60--


From nobody Wed Aug 27 08:52:50 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 B17EF1A0AEF for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 08:52:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.701
X-Spam-Level: 
X-Spam-Status: No, score=0.701 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 MNU7OSeOtfsI for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 08:52:46 -0700 (PDT)
Received: from mail-yk0-x232.google.com (mail-yk0-x232.google.com [IPv6:2607:f8b0:4002:c07::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC6B41A0AE7 for <cfrg@irtf.org>; Wed, 27 Aug 2014 08:52:45 -0700 (PDT)
Received: by mail-yk0-f178.google.com with SMTP id 142so364460ykq.23 for <cfrg@irtf.org>; Wed, 27 Aug 2014 08:52: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; bh=sqNaGkXpebY7Xa+Hr1gt6RDjFQQAzv+mi/IzsWxGiqs=; b=kS4MuKNh9P4eic1AWyTwIJgmf0JtSkwxQFkkXzvT8ToRz+rArA/D1PeK6ipMOQ1uYg deZ4no8AChXjzRe+EPzKd3eGxpsFzwSe7xE/NkbMlwE8ESa3cSgbg2n/LYkSkJfkbMpZ +dZj7aIaU3Jey9DyfL8ThHi4dQvirQy0Kx4rHpUhtpdDrmUkrVzIoGV7e2Wbt5iSqXbb mop7uJwX9segzsToNNPhjPpp3fctDOz4oBLD+408imro7epmlNN6qc4RaZXmHPk9S2x1 43kJWvUfIR0p7n0ZiuuBFPnc34CaZ41hhUjcp7LslR9OeHm74admjQzWDJxIH9uIMH2o IXag==
MIME-Version: 1.0
X-Received: by 10.236.71.65 with SMTP id q41mr22226121yhd.84.1409154765019; Wed, 27 Aug 2014 08:52:45 -0700 (PDT)
Received: by 10.170.202.2 with HTTP; Wed, 27 Aug 2014 08:52:44 -0700 (PDT)
In-Reply-To: <CAA7UWsUHLdXRg0-hpFZBAGUTrexU=CzOBcw+DqFey48MdCboLg@mail.gmail.com>
References: <20140825234305.7799.qmail@cr.yp.to> <CAA7UWsUHLdXRg0-hpFZBAGUTrexU=CzOBcw+DqFey48MdCboLg@mail.gmail.com>
Date: Wed, 27 Aug 2014 08:52:44 -0700
Message-ID: <CACsn0c=6hv8u08OtEZMuD=pDTcw+xgvSJ0z2viaWX3ynASRMWQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: David Leon Gil <coruus@gmail.com>
Content-Type: multipart/alternative; boundary=bcaec50dc65833e1be05019e69cc
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/MJI9EgRAhY3H3Ncbv6Razlje-kM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Aug 2014 15:52:48 -0000

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

On Aug 27, 2014 6:19 AM, "David Leon Gil" <coruus@gmail.com> wrote:
>
> Cryptographers have, for quite a while, abused notation and
identified different, isomorphic, elliptic forms. Well, abuse of notation
strikes back.
>
> Part of the problem is that calling a transfer of co=C3=B6rdinates to a
different form a 'co=C3=B6rdinate transform' is confusing. (I suspect that =
most
people don't have sufficient topology to realize that different forms have
different topologies.)

They all have the same topology. They don't have the same geometry. The
subject you are looking for is algebraic geometry. If we're going to be
annoyingly precise, we should be annoyingly precise.

>
> Mathematicians have a perfectly good terminology already; why not simply
adopt that, and be explicit about the maps used to transfer between forms?

Well, there is a slight problem: Let X be the curve. Then X has no
coordinates: rather coordinates are a choice of injective map to P^2 or P^1
\times P^1 or something like that. So when someone says "take x+486662/3 to
map onto a curve of the form blah blah" they mean that there is a
commutative triangle with X over P^2 and X over P^2, with the image of the
downwards morphisms lying in the zero locus of the given equation
homogenized, and the thing commutes. (It also all goes over F_p for some
F_p)

The reason X has no coordinates is that a scheme isn't defined to include a
canonical choice, any more than an atlas is a choice of charts in
differential geometry. The definition has already elided all coordinates.

To avoid all this verbiage, which everyone understands (with the usual
criteria about what "everyone" means) we speak in the informal language of
coordinates, and then mentally translate into the language of EGA. I don't
see what's missing from DJBs email in this regard.

Sincerely,
Watson Ladd

>
>
> On Monday, August 25, 2014, D. J. Bernstein <djb@cr.yp.to> wrote:
>>
>> All relevant coordinate systems already have standard names in the
>> literature, and I would suggest sticking to those names whenever it's
>> necessary to discuss the coordinate systems per se:
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

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

<div dir=3D"ltr"><p dir=3D"ltr"><br>
On Aug 27, 2014 6:19 AM, &quot;David Leon Gil&quot; &lt;<a href=3D"mailto:c=
oruus@gmail.com" target=3D"_blank">coruus@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Cryptographers have, for quite a while, abused notation and identified=
=C2=A0different, isomorphic, elliptic forms. Well, abuse of notation strike=
s back.<br>
&gt;<br>
&gt; Part of the problem is that calling a=C2=A0transfer of=C2=A0co=C3=B6rd=
inates=C2=A0to a different form a &#39;co=C3=B6rdinate transform&#39; is co=
nfusing. (I suspect that most people don&#39;t have=C2=A0sufficient topolog=
y to realize that different forms have different=C2=A0topologies.)</p>








<p dir=3D"ltr">They all have the same topology. They don&#39;t have the sam=
e geometry. The subject you are looking for is algebraic geometry. If we&#3=
9;re going to be annoyingly precise, we should be annoyingly precise.</p>







<p dir=3D"ltr">&gt;<br>
&gt; Mathematicians have a perfectly good terminology already; why not simp=
ly adopt that, and be explicit about the maps=C2=A0used to transfer between=
=C2=A0forms?</p><p>Well, there is a slight problem: Let X be the curve. The=
n X has no coordinates: rather coordinates are a choice of injective map to=
 P^2 or P^1 \times P^1 or something like that. So when someone says &quot;t=
ake x+486662/3 to map onto a curve of the form blah blah&quot; they mean th=
at there is a commutative triangle with X over P^2 and X over P^2, with the=
 image of the downwards morphisms lying in the zero locus of the given equa=
tion homogenized, and the thing commutes. (It also all goes over F_p for so=
me F_p)</p>




<p>The reason X has no coordinates is that a scheme isn&#39;t defined to in=
clude a canonical choice, any more than an atlas is a choice of charts in d=
ifferential geometry. The definition has already elided all coordinates.</p=
>



<p>To avoid all this verbiage, which everyone understands (with the usual c=
riteria about what &quot;everyone&quot; means) we speak in the informal lan=
guage of coordinates, and then mentally translate into the language of EGA.=
 I don&#39;t see what&#39;s missing from DJBs email in this regard.</p>


<p>Sincerely,<br>Watson Ladd</p>


<p dir=3D"ltr">
&gt;<br>
&gt;<br>
&gt; On Monday, August 25, 2014, D. J. Bernstein &lt;<a href=3D"mailto:djb@=
cr.yp.to" target=3D"_blank">djb@cr.yp.to</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; All relevant coordinate systems already have standard names in the=
<br>
&gt;&gt; literature, and I would suggest sticking to those names whenever i=
t&#39;s<br>
&gt;&gt; necessary to discuss the coordinate systems per se:<br>
&gt;<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>
&gt;<br>
</p>
</div>

--bcaec50dc65833e1be05019e69cc--


From nobody Wed Aug 27 11:15:59 2014
Return-Path: <coruus@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 49EEF1A6EE6 for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 11:15:57 -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 q8VVqtLcUAwX for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 11:15:55 -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 082AC1A212A for <cfrg@irtf.org>; Wed, 27 Aug 2014 11:15:54 -0700 (PDT)
Received: by mail-la0-f49.google.com with SMTP id pv20so377204lab.36 for <cfrg@irtf.org>; Wed, 27 Aug 2014 11:15:53 -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 :content-type; bh=R3ttSqiS0VZYLygQVfqogU8kQ2o2mgno2qdIx1pHKAM=; b=pOWaMGUuiKHdMH62Nm0vmu+wReGtvpHTe+2r4B8cmSxFJQsjy7sSiVBlpcSfSwg1u2 FIw3Eb2akNpgWUw7FXLT+OVzpVrD63LU6ELv6A4dDL/6Ldi1aZR74UEHFFMvGNT8P+92 Iqi6vWxpEudCJej9EHEDSwpFSrF6pTrdOC6siM3ulDM0qF/mTxgFLfiEgS1cDQSPLRJN BUSdqxuPrI1W3BvHePh0MVt9tGEizGLHvWQ8225UCaB1aD4NAANHAJPvtMYoYTFiSWBC sqAG2yiyTThDS8HqmmuUps+BDxTKJGkuwqThFX89qpMoASYbix8vcu7eJBM+UBZJS8J7 0c2Q==
X-Received: by 10.112.34.47 with SMTP id w15mr22149795lbi.84.1409163353067; Wed, 27 Aug 2014 11:15:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.154.9 with HTTP; Wed, 27 Aug 2014 11:15:33 -0700 (PDT)
In-Reply-To: <CAA7UWsWV2VE30k-z_=exWHEgWijn-eHYTpg8pBQfnqEzTu6SAg@mail.gmail.com>
References: <20140825234305.7799.qmail@cr.yp.to> <CAA7UWsUHLdXRg0-hpFZBAGUTrexU=CzOBcw+DqFey48MdCboLg@mail.gmail.com> <CACsn0c=6hv8u08OtEZMuD=pDTcw+xgvSJ0z2viaWX3ynASRMWQ@mail.gmail.com> <CAA7UWsWV2VE30k-z_=exWHEgWijn-eHYTpg8pBQfnqEzTu6SAg@mail.gmail.com>
From: David Leon Gil <coruus@gmail.com>
Date: Wed, 27 Aug 2014 14:15:33 -0400
Message-ID: <CAA7UWsUS1vGXwuQtfvgk3qVYpzEQVqQCFYEkoyRO4m4Sk2sN-A@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=14dae93d94ce1714bc0501a06927
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BSLb_4Mc3ht32x4NkMwjn6JTCGc
Subject: [Cfrg] Fwd:  25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Aug 2014 18:15:57 -0000

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

(Yes; I significantly misspoke in my first paragraph: indeed,
different geometries. The perils of curves before coffee.)

On Wednesday, August 27, 2014, Watson Ladd <watsonbladd@gmail.com> wrote:
>
>  To avoid all this verbiage, which everyone understands (with the usual
> criteria about what "everyone" means) we speak in the informal language o=
f
> coordinates, and then mentally translate into the language of EGA. I don'=
t
> see what's missing from DJBs email in this regard.
>
'Everyone', for our purposes, should be the 'everyone' who reads RFCs.

These two things are quite different:

- Changing co=C3=B6rdinates on the *same* curve (e.g., Jacobian to affine).
- Transferring points to another equivalent curve (e.g., Montgomery to
Weierstrass).

My posit is that eliding this difference is (a small part of) the *cause*
of the confusion djb notes.

It is easy enough to be explicit about the latter. E.g., from the Ed25519
paper (line breaks inserted):

- Curve25519 ... is the Montgomery curve v^2 =3D u^3 + 486662 u^2 + u over
[Fq25519].
- [...] Curve25519 is birationally equivalent to an Edwards curve,
specifically x^2 + y^2 =3D 1 + (121665/121666) x^2 y^2; the equivalence is =
x
=3D =E2=88=9A486664 u / v and y =3D (u =E2=88=92 1)/(u + 1).
- [T]his Edwards curve is isomorphic to =E2=88=92x^2 + y^2 =3D 1 =E2=88=92 =
(121665/121666)
x^2 y^2 . . . .

I'd suggest that talking in this way is better than talking about different
curves as 'coordinate systems'.

-dlg

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

<div dir=3D"ltr"><div class=3D"gmail_quote">(Yes; I significantly misspoke =
in my first paragraph: indeed, different=C2=A0geometries.=C2=A0The perils o=
f curves=C2=A0before coffee.)<div class=3D""><br>On Wednesday, August 27, 2=
014, Watson Ladd &lt;<a href=3D"mailto:watsonbladd@gmail.com" target=3D"_bl=
ank">watsonbladd@gmail.com</a>&gt; wrote:=C2=A0<blockquote class=3D"gmail_q=
uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
x">


<div dir=3D"ltr">



<p>To avoid all this verbiage, which everyone understands (with the usual c=
riteria about what &quot;everyone&quot; means) we speak in the informal lan=
guage of coordinates, and then mentally translate into the language of EGA.=
 I don&#39;t see what&#39;s missing from DJBs email in this regard.</p>


</div></blockquote></div>&#39;Everyone&#39;, for our purposes, should be th=
e &#39;everyone&#39;=C2=A0who reads RFCs.<br><div><br></div><div>These=C2=
=A0two things are quite different:</div><div><br></div><div>- Changing=C2=
=A0co=C3=B6rdinates on the *same* curve (e.g., Jacobian to=C2=A0affine).</d=
iv>


<div>- Transferring=C2=A0points=C2=A0to another equivalent curve (e.g., Mon=
tgomery to Weierstrass).</div><div><br></div><div>My posit is that eliding=
=C2=A0this difference is (a small=C2=A0part of)=C2=A0the *cause* of the con=
fusion djb notes.</div>


<div><br></div><div>It is easy=C2=A0enough to be explicit=C2=A0about the la=
tter.=C2=A0E.g., from the Ed25519 paper (line breaks inserted):</div><div><=
br></div><div>-=C2=A0Curve25519 ...=C2=A0is the Montgomery curve v^2 =3D u^=
3 + 486662 u^2 + u over [Fq25519].</div>


<div>-=C2=A0[...] Curve25519 is birationally equivalent to an Edwards curve=
, specifically x^2 + y^2 =3D 1 + (121665/121666) x^2 y^2; the equivalence i=
s x =3D =E2=88=9A486664 u / v and y =3D (u =E2=88=92 1)/(u + 1).</div><div>=
-=C2=A0[T]his Edwards curve is isomorphic to =E2=88=92x^2 + y^2 =3D 1 =E2=
=88=92 (121665/121666) x^2 y^2 . . . .</div>


<div><br></div><div>I&#39;d suggest that talking in this way is better than=
 talking about different curves as=C2=A0&#39;coordinate systems&#39;.</div>=
<span class=3D"HOEnZb"><font color=3D"#888888"><div><br></div><div>-dlg</di=
v>
</font></span></div><br></div>

--14dae93d94ce1714bc0501a06927--


From nobody Wed Aug 27 23:54:07 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 620C11A06CC for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 23:54:04 -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_20=-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 PuwG8XXOdRzF for <cfrg@ietfa.amsl.com>; Wed, 27 Aug 2014 23:54:02 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id 721E21A047B for <cfrg@irtf.org>; Wed, 27 Aug 2014 23:54:00 -0700 (PDT)
Received: (qmail 1967 invoked by uid 1011); 28 Aug 2014 06:53:59 -0000
Received: from unknown (unknown) by unknown with QMTP; 28 Aug 2014 06:53:59 -0000
Received: (qmail 20444 invoked by uid 1001); 28 Aug 2014 06:53:53 -0000
Date: 28 Aug 2014 06:53:53 -0000
Message-ID: <20140828065353.20442.qmail@cr.yp.to>
From: "D. J. Bernstein" <djb@cr.yp.to>
To: cfrg@irtf.org
Mail-Followup-To: cfrg@irtf.org
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5CD3966@XMB116CNC.rim.net>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/udDc_-rcak1vxXhaWmWyeDq2PUw
Subject: Re: [Cfrg] 25519 naming
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Aug 2014 06:54:05 -0000

The ANSI ECDSA standard specifies elliptic curves mod p to have short
Weierstrass form y^2 = x^3+ax+b (see the "elliptic curves and points"
section), specifies ECDSA public keys as points on such curves ("key
pair generation"), specifies required encodings ("conversions between
data types that SHALL BE USED in the algorithms specified in this
Standard"---emphasis added), and in particular specifies the string
encodings of curve points (x,y) ("point-to-octet-string conversion").

The NIST ECDSA standard simply copies the ANSI formats (e.g., requiring
signatures to be "verified as specified in ANS X9.62"). As for Internet
wire formats, RFC 4492 states that its point formats "are specified in
[7]"; [7] is a normative reference, the ANSI ECDSA standard. RFC 4492
requires exactly these formats to be used on the wire in TLS. An
implementation using a different format wouldn't interoperate with
standard TLS ECDSA. Similar comments apply outside the TLS context.

I'm not saying that these are good standards. I'm also not saying that
it would be difficult for IETF to deviate from the previous standards
and specify a better wire format (as I recommend). I'm simply saying
that various claims here regarding ECDSA compliance are incorrect.

Last month I had already pointed out several serious errors in Microsoft
claims regarding compliance with existing standards such as ECDSA. I was
expecting a response to help move the discussion forward---for example,
withdrawing the claims, or perhaps pinpointing an area of legitimate
dispute if there is one. Instead some of the errors were simply
repeated. This is a disappointingly unproductive pattern. I would hope
to see more responsiveness in the future.

David Leon Gil writes:
  [ regarding short-Weierstrass coordinates, Montgomery coordinates, etc. ]
> I'd suggest that talking in this way is better than talking about
> different curves as 'coordinate systems'.

The word "coordinates" is broader than you think. See, e.g., polar
coordinates.

The distinction between, e.g., short-Weierstrass coordinates and Edwards
coordinates for Curve25519 is much more superficial than the distinction
between, e.g., Curve25519 and NIST P-256. The change of coordinates for
Curve25519 has no effect on field arithmetic (which is most of the code
in a good implementation), has only a small effect on overall efficiency
(since the implementor can change coordinates internally), and has a
provably negligible effect on important security metrics such as
discrete-logarithm difficulty.

It's important for curves to _support_ Montgomery coordinates and
(complete) Edwards coordinates, and there's an extra gain in simplicity
from choosing wire formats carefully (as in X25519 for DH and Ed25519
for signatures), but there are many other issues that transcend the
choice of coordinates and that should be discussed without the
distraction of specifying coordinates.

---Dan


From nobody Thu Aug 28 08:24:58 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 086CB1A86F1 for <cfrg@ietfa.amsl.com>; Thu, 28 Aug 2014 08:24:49 -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 F_isHXiY4Sef for <cfrg@ietfa.amsl.com>; Thu, 28 Aug 2014 08:24:46 -0700 (PDT)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 065481A0700 for <cfrg@irtf.org>; Thu, 28 Aug 2014 08:24:45 -0700 (PDT)
Received: from xct101cnc.rim.net ([10.65.161.201]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 28 Aug 2014 11:24:44 -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; Thu, 28 Aug 2014 11:24:43 -0400
From: Dan Brown <dbrown@certicom.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: Conditional requirements in ANSI X9.62-2005 [was [Cfrg] 25519 naming]
Thread-Index: Ac/Cx3xhVJxM3SX3Ry+cJs2FgNZ6NQ==
Date: Thu, 28 Aug 2014 15:24:43 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5CD40FA@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.249]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0005_01CFC2B2.AA594CA0"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/rVCo__omSXoWI_KodEV9FC6b-Ek
Subject: [Cfrg] Conditional requirements in ANSI X9.62-2005 [was 25519 naming]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Aug 2014 15:24:49 -0000

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

Continuing this discussion for two reasons:
- various IETF docs indirectly refer to ANSI X9.62, for key generation, key
validation, and for ECDSA signing and verifying, so correct interpretation
is warranted
- a clarity issue that Dan Bernstein raised about ANSI X9.62 may be more
generally relevant to other standards documents.

> -----Original Message-----
> From: D. J. Bernstein
> Sent: Thursday, August 28, 2014 2:54 AM
> 
> The ANSI ECDSA standard specifies elliptic curves mod p to have short
> Weierstrass form y^2 = x^3+ax+b (see the "elliptic curves and points"
> section), 

That quote's from Annex A.3.1.1.   

All elliptic curves defined over Fp can be converted to short Weierstrass
form.

ANSI X9.62-2005 opts to describe Fp curves (and points) using this form.

Note that this is an abstraction, not an encoding.  Encodings and conversion
are covered elsewhere in the ANSI X9.62-2005, e.g. A.5 and E.

In particular, in the abstract, this section supports the curve used in
Curve25519, though not the exact form thereof.

> specifies ECDSA public keys as points on such curves ("key pair
> generation"),

Again, an abstraction.

This level of abstraction allows implementations to use their own internal
point and integer representation, e.g. little-endian or big-endian, and
still claim conformance to the algorithms.

Clearly, any protocol, e.g. RFC 4492, using these algorithms must go further
and specify encodings on the wire.

> specifies required encodings ("conversions between data types
> that SHALL BE USED in the algorithms specified in this
Standard"---emphasis
> added), and in particular specifies the string encodings of curve points
(x,y)
> ("point-to-octet-string conversion").

Both of these quotes are from Annex A.5, which is referred to in:

Section 7.3 (signature generation), for converting a point and a hash to
integers, 
Section 7.4 (signature verification), for converting a point and a hash to
integers, 
Annex A.3.3 and A.3.4 ("random" curve and base point selection) for
converting a hash to an integer, for converting an integer to a field
element.
Annex E for representing keys and signatures as ASN.1 values (which can then
be encoded using DER, PER, XER, etc.)

Annex E.1 says "it is not required that elliptic curve domain parameters,
key, and signatures, be represented with ASN.1 syntax". 

So, to represent keys and signatures without ASN.1, ANSI X9.62-2005 does not
bind the implementer to using A.5 for such representation.  

> 
> The NIST ECDSA standard simply copies the ANSI formats (e.g., requiring
> signatures to be "verified as specified in ANS X9.62"). As for Internet
wire
> formats, RFC 4492 states that its point formats "are specified in [7]";
[7] is a
> normative reference, the ANSI ECDSA standard. RFC 4492 requires exactly
these
> formats to be used on the wire in TLS. An implementation using a different
> format wouldn't interoperate with standard TLS ECDSA. Similar comments
apply
> outside the TLS context.
> 
> I'm not saying that these are good standards. I'm also not saying that it
would
> be difficult for IETF to deviate from the previous standards and specify a
better
> wire format (as I recommend). I'm simply saying that various claims here
> regarding ECDSA compliance are incorrect.

I'm not quite sure if you're saying my claims from yesterday are incorrect,
but I hope I have helped clarify.  I don't see what I wrote yesterday on the
previous thread to be inconsistent with the cross-reference tracking above.

That all said, I agree that ANSI X9.62-2005 could have been made clearer.  

The clarity issues seem to have two aspects: the first is that a thorough
implementer might scan the document for "shall",  and mistakenly fail to
realize some "shall" is only a conditional requirement, and not required in
all possible contexts.

For another example, Annex A.3.5.3 says "Elliptic curve domain parameters
shall be generated as follows".  If a text-scanning implementer failed to
notice Section 2 of ANSI X9.62, which advises that the conformance to the
standard only requires one of the six techniques, s/he might mistakenly
believe s/he must implement curve generation even if all s/he wants to do is
verify a signature or generate a key pair.

In general, what is a good wording to avoid this potential confusion from
such confusion?

Here are some awkward re-wordings of the examples above:

A.3.5.3: "If elliptic curve domain parameters are generated, then they shall
be generated as follows:"
A.5 "conversions between data types that are specified in the algorithms in
this Standard shall be as follows"

Actually, the full sentence from A.5 is:

"Figure A.1 provides a cross-reference for the annexes defining conversions
between data types that shall be used in the algorithms specified in this
Standard."

In hindsight, it was a mistake to place a "shall" in a sentence that merely
explains a figure.  So, I'd think that changing "shall be" to "are" would be
appropriate.

The correct way to for the requirement is along a path such as: Section 2 ->
Section 7.3 -> Section A.5.6

The second aspect of the clarity issue is that an implementer needs some
kind of internal representation and would look in A.5 for such a
representation.  At that point, the implementer might think "shall" language
to be binding upon external representations too.  I think an explanatory
note might resolve this problem.  Or, perhaps removing the term "shall" from
A.5 would work too, with the term "shall" being used in the section
referring to A.5.

Best regards,

Dan


------=_NextPart_000_0005_01CFC2B2.AA594CA0
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
gYEA54Ya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LzBTA5qu1PQwYWsVjOS9FZ9rpDJiR/dTmaMzikNJtuL6NZOpGrWBlCMaRe0VYIEpZmS1N5pcNVdM
sv4D6HLTvTqnM+RpOhrwZhzGcMNR3dQBGxagiPG7MdWW0q0d/trJxeBYuDV2pLLXMgAAAAAAAA==

------=_NextPart_000_0005_01CFC2B2.AA594CA0--


From nobody Sun Aug 31 01:42:37 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 7C46E1A888D for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 01:42:35 -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_50=0.8, 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 6-sz0fGbF3BC for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 01:42:33 -0700 (PDT)
Received: from mace.cs.uic.edu (mace.cs.uic.edu [131.193.32.224]) by ietfa.amsl.com (Postfix) with SMTP id CD83C1A06C1 for <cfrg@irtf.org>; Sun, 31 Aug 2014 01:42:32 -0700 (PDT)
Received: (qmail 9370 invoked by uid 1011); 31 Aug 2014 08:42:31 -0000
Received: from unknown (unknown) by unknown with QMTP; 31 Aug 2014 08:42:31 -0000
Received: (qmail 11622 invoked by uid 1001); 31 Aug 2014 08:42:28 -0000
Date: 31 Aug 2014 08:42:28 -0000
Message-ID: <20140831084228.11620.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/pt2bt3fGQbNF8qdEcorp-rJSJrc
Subject: [Cfrg] Does the Curve25519 Montgomery ladder always work?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 31 Aug 2014 08:42:35 -0000

The Montgomery ladder is a remarkably simple, fast, constant-time
algorithm for single-scalar multiplication on Curve25519. (Everything
I'm saying applies more broadly to any Montgomery curve y^2 = x^3+Ax^2+x
where A^2-4 is non-square, i.e., where there is a unique point of order
2.) Here's the Montgomery-ladder code that I displayed in Toronto:

   x2,z2,x3,z3 = 1,0,x1,1
   for i in reversed(range(255)):
     bit = 1 & (n >> i)
     x2,x3 = cswap(x2,x3,bit)
     z2,z3 = cswap(z2,z3,bit)
     x3,z3 = ((x2*x3-z2*z3)^2,x1*(x2*z3-z2*x3)^2)
     x2,z2 = ((x2^2-z2^2)^2,4*x2*z2*(x2^2+A*x2*z2+z2^2))
     x2,x3 = cswap(x2,x3,bit)
     z2,z3 = cswap(z2,z3,bit)
   return x2*z2^(p-2)

I commented in my talk that this code _always_ works. The input scalar n
can be _any_ integer between 0 and 2^255-1; the 255-bit limit here is
specified by the i loop. The input coordinate x1 can be _any_ integer.
One can always view x1 modulo p as X0(Q) for exactly two points Q on
the curve over F_{p^2}. The Curve25519 paper proves that this code
always maps Q to nQ, i.e., that the output is X0(nQ) for both points Q.

(The function X0 is the same as the usual Montgomery X-coordinate,
except that it maps the point at infinity to 0. The two points Q having
X0(Q)=0 are the point at infinity and (0,0), the unique point of order
2; these are on the curve over F_p and are simultaneously on the twist
over F_p. When x is nonzero in F_p, the two points Q having X0(Q)=x are
(x,+-sqrt(x^3+Ax^2+x)); these are both on the curve over F_p if
x^3+Ax^2+x is a square in F_p, and are both on the twist otherwise.)

Microsoft has issued various statements claiming that this code does not
always work. For example, Patrick Longa has claimed that "when computing
the Montgomery ladder in constant time there is a potential failure case
if the scalar matches 0 (mod r) or 0 (mod r’), where r and r’ are the
prime orders of the subgroups generated on the Montgomery curve and its
quadratic twist, respectively."

Executive summary of this message: The Microsoft claims are incorrect.
There are no failure cases. The Montgomery ladder always works for these
curves, always computing scalar multiplication correctly, exactly as
stated in the Curve25519 paper. I've carefully reviewed the underlying
Microsoft arguments and will dispose of them here; I'll also comment on
a tangential high-bit issue.

The critical Microsoft error is in http://eprint.iacr.org/2014/130.pdf,
in the middle of page 17, which claims that "there are some scalar/point
combinations which could produce exceptions." The paragraph goes on to
specifically consider multiplying

   * a point of prime order r' on the twist by
   * a scalar that's a multiple of r'.

The simple fact is that the result of this multiplication is 0, just
like multiplying a point of order r by the scalar r, or multiplying any
point by 0. This is not an exception: it is exactly what the definition
of scalar multiplication means for these inputs, and it is exactly what
any working implementation will produce. The code works correctly in
this case, as it does in all other cases.

The paragraph also claims that 37 is a weak key, because an attacker who
sees you output 37P given P can see that your scalar was 37 (modulo the
order of P). One could of course make the same claim about any scalar---
for example, the Microsoft paragraph actually makes the same argument
for r' rather than 37---demonstrating that the claim has nothing to do
with security. Relevant quote from the Ed25519 paper:

   _Weak keys._ Forgeries are trivial if A is a known multiple of B. For
   example, an attacker who knows that A = 37B can ... As an even more
   extreme example, an attacker who knows that A = 0B can ... We could
   declare that 0B and 37B are "broken" by these two "attacks" and that
   users must check for, and reject, these "weak keys"; but the same
   confused logic would require rejecting _all_ keys in _all_
   cryptosystems, and would have no relevance to the standard definition
   of signature security.

Declaring a scalar to be "weak" does not mean that it is actually weak.
More to the point, even if Microsoft can come up with a definition of
"leak" to fit its claim that a DH output of 0 would "leak information to
an attacker", there's no justification for the claim that this output is
an "exception" to the scalar-multiplication routine.

The Microsoft document goes on to refer to this correct example of
scalar multiplication as a "problem" with the Montgomery ladder, and to
claim that this "problem" is "overcome" by the choice of scalars in what
I'm now suggesting to call X25519, the widely deployed DH function
recommended in the Curve25519 paper.

It's true that X25519 restricts the choice of scalars, by always setting
the high bit and clearing the bottom 3 bits. But this has nothing to do
with imaginary exceptions in this scalar-multiplication method: it's
designed to protect implementors who accidentally end up with other
scalar-multiplication methods.

For example, as I mentioned in Toronto, many sources present a
variable-size Montgomery ladder that takes time proportional to the
position of the high bit of the scalar. This is still correct but it
takes variable time---a variation that disappears when the high-bit
position is prespecified. As a fancier example, there are many common
short-Weierstrass scalar-multiplication methods for which the X25519
choices avoid the point at infinity, rescuing an implementor who (1)
uses those methods but (2) screws up the handling of infinity.  

Slide 31 of http://cr.yp.to/talks/2005.09.20/slides.pdf mentions that
setting this high bit "avoids infinity and avoids timing attacks". This
was six years before http://eprint.iacr.org/2011/232.pdf extracted keys
from exactly this timing leak in OpenSSL.

Setting this high bit obviously restricts the range of scalars, but the
security impact of such restrictions has been thoroughly analyzed in the
literature. Range restrictions on _signature nonces_ are troublesome;
the simplest way to avoid all trouble is to generate many extra bits
(e.g., Ed25519 uses 512 bits). Small range restrictions on _secret keys_
are completely different---they're protected by an ECC feature called
"random self-reducibility". For example, if there's a subroutine to
compute discrete logs known to be between 2^254 and 2^255-1, then the
following algorithm will compute _any_ 255-bit discrete log:

   0. Do the following two steps in a random order.
   1. Try the subroutine on the target point Q.
   2. Try the subroutine on Q + 2^254 B, where B is the generator.

This algorithm takes either 1 or 2 iterations of the subroutine, on
average 1.5 iterations, no matter what Q is. The hardness of computing
discrete logs for arbitrary curve points thus implies the hardness of
computing discrete logs known to have the 254th bit set, except for a
time factor limited to 1.5. Similar comments apply to lower-probability
subroutines, variable-time subroutines, etc.: the hardness is provably
identical within a probability factor of 2. For known attacks the factor
is much closer to 1 ("kangaroo" attacks have worse constants than "rho"
attacks), and for X25519 the gap provably disappears since X25519 hides
the sign of y, but in any case the gap is guaranteed to be very small.

The Microsoft paper states that "less than half" of the multiples of B
are "possible outputs" of scalar multiplication using the restricted
scalar range. This is true but deceptive---it suggests that there is a
security question without acknowledging that the answer to the question
is already known. The Microsoft paper doesn't cite any of the literature
on this topic, and also doesn't acknowledge the relevant comments in the
original Curve25519 paper.

---Dan


From nobody Sun Aug 31 14:05:31 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 D8ECA1A9046 for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 14:05: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 YHBwCnpkZ7RD for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 14:05:26 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0079.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 E12031A9045 for <cfrg@irtf.org>; Sun, 31 Aug 2014 14:05:25 -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.1015.19; Sun, 31 Aug 2014 21:05:27 +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.1015.018; Sun, 31 Aug 2014 21:05:23 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Requirements for new curves
Thread-Index: AQHPxV9HQz6qJCUM5kWS8b0yKY7BNw==
Date: Sun, 31 Aug 2014 21:05:23 +0000
Message-ID: <D0294A83.2BE58%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-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [92.3.211.201]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:;
x-forefront-prvs: 0320B28BE1
x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(189002)(199003)(107886001)(2351001)(106116001)(21056001)(2656002)(83506001)(36756003)(83322001)(110136001)(50986999)(99396002)(54356999)(105586002)(106356001)(107046002)(74502001)(85306004)(81342001)(81542001)(80022001)(66066001)(4396001)(20776003)(64706001)(561944003)(101416001)(92726001)(85852003)(92566001)(83072002)(74662001)(31966008)(79102001)(74482001)(46102001)(76482001)(77982001)(95666004)(86362001)(90102001)(87936001)(2501002); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR03MB381; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
Content-Type: text/plain; charset="us-ascii"
Content-ID: <F2712A3D27DAA9428C9E57CE13B3CE95@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/vGH_79Rum9aiiNyVGNN_8nciljc
Subject: Re: [Cfrg] Requirements for new 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, 31 Aug 2014 21:05:29 -0000

Dear all,

I've spent today reviewing all the messages to CFRG on new curves - those
concerning requirements (our current phase of enquiry), and more
generally. It's been interesting and informative. I want to thank everyone
who has participated to date. It seems (to me at least) that almost
everything that could be said about requirements has now been said. The
traffic on the list on this topic has also slowed markedly, another sign
that this phase is reaching a natural conclusion.

In the next day or two, I will send to the list a proposal for a list of
requirements that we will use for the second phase of our investigation:
selecting curves to recommend to the TLS WG. I've made careful notes on
all the contributions to the requirements discussion, and my sense it that
we do have a rough consensus concerning what these requirements should be.

NB: I use the word "rough" deliberately here - in looking over the
messages to the list, of course I can see frequent disagreements about
requirements, but in each case, sufficiently many independent views have
been expressed one way or another that a *rough* consensus is clear on
pretty much every issue of substance, even if a perfect harmony of views
has not been expressed.

So, more news from me soon...

Best regards,

Kenny=20


From nobody Sun Aug 31 18:57:35 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 A089D1A90BD for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 18:57:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.2
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 NxJC38ED_6Ki for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 18:57:32 -0700 (PDT)
Received: from odin.smetech.net (mail.smetech.net [209.135.209.4]) by ietfa.amsl.com (Postfix) with ESMTP id 193211A90BA for <cfrg@irtf.org>; Sun, 31 Aug 2014 18:57:32 -0700 (PDT)
Received: from localhost (unknown [209.135.209.5]) by odin.smetech.net (Postfix) with ESMTP id A7C87F9C00F for <cfrg@irtf.org>; Sun, 31 Aug 2014 21:57:21 -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 AovogLkfNi6c for <cfrg@irtf.org>; Sun, 31 Aug 2014 21:57:00 -0400 (EDT)
Received: from v150.vpn.iad.rg.net (v150.vpn.iad.rg.net [198.180.150.150]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by odin.smetech.net (Postfix) with ESMTP id 99C989A4426 for <cfrg@irtf.org>; Sun, 31 Aug 2014 21:57:00 -0400 (EDT)
From: Russ Housley <housley@vigilsec.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Sun, 31 Aug 2014 21:56:46 -0400
Message-Id: <01DE592A-008C-4CD7-BD00-07FD25B4B463@vigilsec.com>
To: IRTF CFRG <cfrg@irtf.org>
Mime-Version: 1.0 (Apple Message framework v1085)
X-Mailer: Apple Mail (2.1085)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/aSFQkVhiz1sWb4bvyzBC6z4OhNc
Subject: [Cfrg] Preserving Implementation Optimizations
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Sep 2014 01:57:33 -0000

I am not a cryptographer, but I have been involved in security protocols =
that make use of cryptography since 1986.  This experience tells me that =
we should preserve the hard work that has gone into existing ECC =
implementations if possible.  I have four thoughts in this direction...

First, the use of the same curve for digital signature and key agreement =
is highly desirable.  This provides obvious modularity.

Second, a lot of effort has gone into optimization of modular reduction =
for the NIST primes.  If a curve is selected that uses those primes, =
this optimization effort would carry forward to the new curves.  I have =
only heard one person question whether those values are actually prime, =
so I assume that this is not a widely held concern.

Third, many implementations have taken advantage of the "a term" chosen =
for the NIST curves to optimize point addition. In Weierstrass form, y^2 =
=3D x^3 + ax + b, the NIST curves use a =3D -3 mod p.

Fourth, recent discussion makes it clear that the Edwards form, x^2 + =
y^2 =3D 1 + dx^2y^2, offers some significant advantages, especially when =
the "d term" is chosen to be small.  We can make our curve selection in =
this form, and then transform it to Weierstrass form to determine the "b =
term".  The order of the curve needs to be 4 times a prime.  This allows =
new implementations to take advantage of the Edwards form, and it allows =
existing implementations to make minimal modifications to support the =
new curve.

If I have been following this discussion, we need to consider whether we =
want a Bernstien-Lange SafeCurve.  If we do, then the order of the =
Edwards twist needs to have a large prime factor.  As best I can tell, =
this requirement does not conflict with finding a curve that meets the =
above criteria.

I realize that this is quite different than selecting one of the choices =
that were presented in Toronto.  However, I think that we should =
preserve the implementation investment if it does not otherwise hinder =
security or efficiency.

Thanks for your consideration,
  Russ



From nobody Sun Aug 31 20:06:11 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 E45261A90F4 for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 20:06:07 -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 Ghrhgm5ffGsH for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 20:06:06 -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 3A0201A90F1 for <cfrg@irtf.org>; Sun, 31 Aug 2014 20:06:06 -0700 (PDT)
Received: from [192.168.1.140] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id EC3323AA12; Sun, 31 Aug 2014 20:03:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1409540619; bh=ltVrdjmMGbMIgK2q82Vqrh5NTAdY8B+xSl+68GDy9Bc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=McHsXCUx4mlzEJQOqrbWOcgTqOemWObFzhzNKWS3GT6plK0lyFExpGutZ3wt1Bw5e ZGgCRPVsFzlhLBzziqLEcuC53TplMkONFCaQK35GoRnna0AHyHjsA3cUd6W8waVl65 c1ONkUeryjZFHE1U7It4S2LKWZ0LPgeDpwEDTCRk=
Message-ID: <5403E295.3070209@shiftleft.org>
Date: Sun, 31 Aug 2014 20:05:57 -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: Russ Housley <housley@vigilsec.com>, IRTF CFRG <cfrg@irtf.org>
References: <01DE592A-008C-4CD7-BD00-07FD25B4B463@vigilsec.com>
In-Reply-To: <01DE592A-008C-4CD7-BD00-07FD25B4B463@vigilsec.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/DGZZeIJ8lmw8tlm0nc1VfeBmS6g
Subject: Re: [Cfrg] Preserving Implementation Optimizations
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Sep 2014 03:06:08 -0000

On 8/31/2014 6:56 PM, Russ Housley wrote:
> I am not a cryptographer, but I have been involved in security protocols that make use of cryptography since 1986.  This experience tells me that we should preserve the hard work that has gone into existing ECC implementations if possible.  I have four thoughts in this direction...
>
> First, the use of the same curve for digital signature and key agreement is highly desirable.  This provides obvious modularity.
>
> Second, a lot of effort has gone into optimization of modular reduction for the NIST primes.  If a curve is selected that uses those primes, this optimization effort would carry forward to the new curves.  I have only heard one person question whether those values are actually prime, so I assume that this is not a widely held concern.
A lot of effort may have gone into optimizing for the NIST primes, but 
nonetheless most implementations mod these primes are not actually very 
fast.  The most widely-used primes (P-256 and P-384) have the worst 
performance of the lot, especially on 64-bit machines.  Furthermore, the 
newer primes are usually easier to implement than the NIST primes.

The exception may be in dedicated hardware, where the many coefficients 
of primes like P-256 don't make as big an obstacle, and any change is 
very expensive.

Note that P-521 := 2^521-1 is fast, and should definitely be an option.
> Third, many implementations have taken advantage of the "a term" chosen for the NIST curves to optimize point addition. In Weierstrass form, y^2 = x^3 + ax + b, the NIST curves use a = -3 mod p.
>
> Fourth, recent discussion makes it clear that the Edwards form, x^2 + y^2 = 1 + dx^2y^2, offers some significant advantages, especially when the "d term" is chosen to be small.  We can make our curve selection in this form, and then transform it to Weierstrass form to determine the "b term".  The order of the curve needs to be 4 times a prime.  This allows new implementations to take advantage of the Edwards form, and it allows existing implementations to make minimal modifications to support the new curve.
The question of curve specification and point encodings has been 
discussed at length here.  On the one hand, this sort of encoding might 
be good for compatibility; but on the other hand, it may enable new 
attacks on recycled implementations while increasing complexity of the 
new implementations.

Personally I don't think we should put new wine in old wineskins, but I 
suppose it is an option.

Cheers,
-- Mike

> If I have been following this discussion, we need to consider whether we want a Bernstien-Lange SafeCurve.  If we do, then the order of the Edwards twist needs to have a large prime factor.  As best I can tell, this requirement does not conflict with finding a curve that meets the above criteria.
>
> I realize that this is quite different than selecting one of the choices that were presented in Toronto.  However, I think that we should preserve the implementation investment if it does not otherwise hinder security or efficiency.
>
> Thanks for your consideration,
>    Russ
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Aug 31 22:45:42 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 B037D1A002D for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 22:45:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.721
X-Spam-Level: 
X-Spam-Status: No, score=0.721 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 wFtIU5goUuyd for <cfrg@ietfa.amsl.com>; Sun, 31 Aug 2014 22:45:39 -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 B77881A0025 for <cfrg@irtf.org>; Sun, 31 Aug 2014 22:45:38 -0700 (PDT)
Received: by mail-la0-f44.google.com with SMTP id hz20so5494624lab.31 for <cfrg@irtf.org>; Sun, 31 Aug 2014 22:45:37 -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:content-transfer-encoding; bh=6myqB7ab7cK9n7OolqisoC8rYTFzeUHMQQZhjZ5HJ58=; b=NDGJqnTPlVrSYSAPkBkpaqg2nZoL+ewfJBAfEwxltsjs+uUPLSZafmNa5S4B9MOcqM wIMRYq2gm6FYvvINlq5OA6LfLIAELdMIlyV5u30knyUVWnRQtXEAYVeBCcqbD4SpURh2 I9WSLkiE/DhuI9kZbzcZHeIcyDhrWqD4ERGi+p+n65Mv62LWOsq0bbj9WD7FmH49c9FC 7wGIwbmrArdeGJt3q9N+vyH85DzowSaifAdpDDgHe35j3vCiVYJgO36nZLV5EmQ7AXFc g1+I0OhKux58PUiefqtW+eHStS3UqYwyXUBAA/AX4Wzphe1VMGTVNRd4PhEK9+UE6iUw x0Vw==
X-Gm-Message-State: ALoCoQmlomV+mG641VhRmVpvdi0UtjfVPqVOkPVOWIa2k3jdREil60iZXze5rWAwQ3CJjpApQdhc
X-Received: by 10.112.210.138 with SMTP id mu10mr5742462lbc.81.1409550336926;  Sun, 31 Aug 2014 22:45:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.36.106 with HTTP; Sun, 31 Aug 2014 22:45:16 -0700 (PDT)
From: Andy Lutomirski <luto@amacapital.net>
Date: Sun, 31 Aug 2014 22:45:16 -0700
Message-ID: <CALCETrVzG3MMzeQ41T9+5G4AFUNCj+ROYuhoxN4mm93LngsZPA@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>, ANJ@zurich.ibm.com,  Zooko Wilcox-OHearn <zooko@leastauthority.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/59ECQbGjN7RaoWdPJCUgpQSP-Y4
Subject: [Cfrg] Hash function combiners for session key derivation?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Sep 2014 05:45:40 -0000

I would like to see future protocols (in particular, TLS 1.3) use an
extremely robust hash function to derive session keys.  The reason is
straightforward: if, say, TLS 1.2's "PRF" were to fail badly enough,
then any TLS 1.2-compatible protocol would be broken because it could
no longer protect against downgrade attacks.

In other words, hash function diversity has very limited value for
hash functions used to protect cryptographic handshakes.

Unfortunately, I don't know of a good option for protocols like TLS.
The state of the art appears to be the "Robust Multi-Property
Combiners" in [1].

As far as I can tell, none of the combiners in that paper would be
suitable.  The more advanced combiners (Comb_4P&OW, Comb_4P&IRO, and
Comb_6P) are impractical, because they require the use of pairwise
independent functions on the input space.

Beyond that, I think that even the simple combiner Comb_4P is broken.
For background, Comb_4P is a combiner on hash functions H_0 and H_0.
I'll use slightly different notation that the paper:

Let m be a message.  Define:

A_left =3D H_0(0, m) =E2=8A=95 H_1(0, m)
A_right =3D H_1(0, m).

B_left =3D A_right =E2=8A=95 H_0(1, A_left) =E2=8A=95 H_1(1, A_left)
B_right =3D A_left

C_left =3D B_right =E2=8A=95 H_0(2, B_left) =E2=8A=95 H_2(1, B_left)
C_right =3D B_left

Comp_4P(m) =3D C_left || C_right

Let's instantiate this.  Let H_1 be a perfectly secure hash function
(imagine SHA-3, perhaps).  Define H_0 maliciously: H_0 =3D H_1.

Following the definitions through gives C_left =3D B_right =3D A_left =3D
all zeros.  Instantiated like this, Comb_4P is most certainly not a
PRF in any useful sense.

What went wrong?  The paper proves that Comb_4P is a PRF if H_0 or H_1
is a PRF, but, as far as I can tell, the paper's concept of a hash
combiner being a PRF assumes that H_0 and H_1 are *independently
keyed*.  At first glance, this isn't a problem -- protocols that key
their hash functions just need to be careful to supply two independent
keys to Comb_4P rather than assuming that Comb_4P(key, message) works
the way that SHA-3(key, message) does.  Except that the usual way to
generate independent keys is to use some key expansion algorithm,
which usually requires a hash function.  Oops.

Do any of you know of a construction that can be dropped in to
existing protocols and that doesn't have problems like this?  I think
that, to be widely useful, a hash function combiner should have
variable input length, and if the input to that hash function consists
of a bunch of fields, then then combiner should have all expected
security properties despite the fact that one of those fields might be
a key, possibly with structure that could be interesting to an
adversary.

Am I missing something here?  Are there well-understood hash combiners
that would work better?


For what it's worth, I think that, at least for something like TLS,
some of the combiners in [1] might be salvageable.  The idea would be
to split the client and server random values into three pieces.  CR_0
and SR_0 go into the transcript as usual.  A key is derived as
something like H_0(CR_1 || SR_1) =E2=8A=95 H_1(CR_2 || SR_2), and that key =
is
used to instantiate Comb_6P.  Getting the proofs to work could be a
big mess, though: any adversary knows the key, which could break
everything.

[1] Fischlin, Marc, Anja Lehmann, and Krzysztof Pietrzak. "Robust
multi-property combiners for hash functions revisited." Automata,
Languages and Programming. Springer Berlin Heidelberg, 2008. 655-666.

--Andy

--=20
Andy Lutomirski
AMA Capital Management, LLC

