
From nobody Thu Jan  1 02:20:24 2015
Return-Path: <peter.dettman@bouncycastle.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 08C151A0383 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 02:17:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.498
X-Spam-Level: **
X-Spam-Status: No, score=2.498 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, 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 zOcK9AyY3E5A for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 02:17:32 -0800 (PST)
Received: from tauceti.org.au (mail.tauceti.org.au [203.32.61.25]) by ietfa.amsl.com (Postfix) with ESMTP id E07251A0381 for <cfrg@irtf.org>; Thu,  1 Jan 2015 02:17:31 -0800 (PST)
X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=ppp-49-237-143-239.revip6.asianet.co.th; 
Message-ID: <54A51E97.5060508@bouncycastle.org>
Date: Thu, 01 Jan 2015 17:16:55 +0700
From: Peter Dettman <peter.dettman@bouncycastle.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <CAMfhd9W684XMmXn3ueDmwrsQ_ZdiFG+VqYLxkvs7qDwiJdpk6w@mail.gmail.com> <1725646678.805875.1419539885135.JavaMail.yahoo@jws100115.mail.ne1.yahoo.com> <CAMfhd9Ua5fFZk46Xx1AN2VgyJ=Yng6fnO8aN-_ZfzXQn0Xbxhg@mail.gmail.com> <CA+Vbu7zqFcu8d1053mZ_eEm0q=np6T3snSQ4rfY0k1-4hBVDsA@mail.gmail.com> <CAMfhd9XEqMwFzJ4sK4aHGbke6REZb26uaEEv9gbM5v_goDzwUA@mail.gmail.com>
In-Reply-To: <CAMfhd9XEqMwFzJ4sK4aHGbke6REZb26uaEEv9gbM5v_goDzwUA@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Authenticated-User: peter.dettman@bouncycastle.org 
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/7DyYY6gg32wDgHAhgSb6XxMDlJA
Cc: Adam Langley <agl@imperialviolet.org>
Subject: Re: [Cfrg] Curve manipulation, revisited
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 10:17:34 -0000

On 29/12/2014 8:31 pm, Adam Langley wrote:
> (An implementation that wants to use a windowed method with a 
> Montgomery-X *input* will need to perform a square-root first, but 
> that's the same cost as a design where compressed Edwards points are 
> sent. Note: smarter people than I might be able to eliminate the 
> square-root but I don't see it)

I believe I can give an example of how to eliminate the square-root for 
a random-base scalar-mult. I'll use short Weierstrass to describe it 
though, as I'm less familiar with Edwards and Montgomery. I assume we 
can convert easily enough between forms, and that twist security carries 
across.

- Given input X0, use curve equation to calculate {Y0}^2, let K = {Y0}^2.
- Initial point P0 is (X0,{Y0}) where {Y0} is unevaluated.
- Change of variables to an isomorphic curve: x' = u^2.x, y' = u^3.y, a' 
= u^4.a, with u = {Y0} (b' = u^6.b, but not typically needed).
- Can now write P0' as (K.X0, K^2) without unknowns.
- Proceed with scalar multiplication of P0' to result point Pn'.
- Recover output Xn from Pn' as Xn'/(K.Zn^2).

Note that the doubling formula is affected by the changed a' curve 
parameter (unless a==0); assume modified-Jacobian coordinates are used.

In the case where the original curve has a==-3, the extra cost of the 
windowing using the isomorphism in modified-Jacobian coordinates is 
+2S(quares) per addition (doubling cost is unchanged). The total extra 
cost using width 5 windows is therefore < 40% of the best-case cost of a 
sqrt.

However, there are actually good performance reasons to already be using 
an isomorphism: to allow mixed addition with precomputed points without 
needing an inversion in the precomputation. In that case, there is very 
little additional overhead for the scheme above.

Regards,
Pete Dettman


From nobody Thu Jan  1 04:49:48 2015
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 60DE01A1B69 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 04:49:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uDr9gl5cEieO for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 04:49:42 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E62231A1B66 for <cfrg@irtf.org>; Thu,  1 Jan 2015 04:49:41 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 514EFBF1A for <cfrg@irtf.org>; Thu,  1 Jan 2015 12:49:40 +0000 (GMT)
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 HzUFyvq6kujj for <cfrg@irtf.org>; Thu,  1 Jan 2015 12:49:39 +0000 (GMT)
Received: from [10.87.48.73] (unknown [86.42.21.122]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id F1BE6BF18 for <cfrg@irtf.org>; Thu,  1 Jan 2015 12:49:38 +0000 (GMT)
Message-ID: <54A54263.9080603@cs.tcd.ie>
Date: Thu, 01 Jan 2015 12:49:39 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <20141231225245.26393.qmail@cr.yp.to>
In-Reply-To: <20141231225245.26393.qmail@cr.yp.to>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/WeXV9-FtMQbJ3DVYxcv5fSFMPGc
Subject: Re: [Cfrg] Mishandling twist attacks
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 12:49:45 -0000

Hiya,

On 31/12/14 22:52, D. J. Bernstein wrote:
> I also don't see how people who actually _read_ my message would agree
> with the chairs' puzzling list of accusations (namely, that I'm making
> "personal attacks"; imputing "motives to other CFRG participants"; using
> "deliberately provocative language"; not taking a "professional" tone;
> crossing "the line of acceptable behavior"; etc.).

FWIW, I do agree with the chairs' evaluation of [1] and have sent Dan
offlist mail describing why. I'm just sending this so the archive shows
some support for the chairs on this, so I won't be following up on the
list. And at the same time Dan is definitely not the only one who has
needlessly crossed such lines on this topic.

S.

[1] https://www.ietf.org/mail-archive/web/cfrg/current/msg05745.html


From nobody Thu Jan  1 05:24:44 2015
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 5081E1A1B6F for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 05:24:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.602
X-Spam-Level: 
X-Spam-Status: No, score=-1.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, 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 LA6MS4iMyBKx for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 05:24:41 -0800 (PST)
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 E5DB81A1B6D for <cfrg@irtf.org>; Thu,  1 Jan 2015 05:24:40 -0800 (PST)
Message-ID: <54A54AA4.3050809@akr.io>
Date: Thu, 01 Jan 2015 13:24:52 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <CAHOTMVLrThLThuHP_U6idVCJCGEJSSOkS-71HOPo3mSLQUGcUw@mail.gmail.com> <CAHOTMVJf_k8YN0g5aV+oSOnS-6Wo-O__R9yDcVo4iiqmDtkL-A@mail.gmail.com> <20150101030058.GZ24442@localhost>
In-Reply-To: <20150101030058.GZ24442@localhost>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/j8AX2ArNpY7p-mYOlBgrD2x_JVk
Subject: [Cfrg] =?utf-8?q?=C2=A0Ed25519_draft=3F_=28was=3A_Alternatives_to?= =?utf-8?q?_rigidity=3F=29?=
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 13:24:42 -0000

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

On 01/01/2015 03:01, Nico Williams wrote:

> EdDSA is quite convincing and has some convenient advantages over
> ECDSA. It'd be nice to see a complete treatment of it by CFRG.

Given the running code out there already using it, I wonder: would an
informational draft/RFC describing Ed25519 specifically be valuable?
(Or does the existing paper and code provide enough information?)

I note that we've touched on signature schemes, but seem to be nowhere
near any kind of consensus about recommendations, as Rich said. If not
a product of the RG, then an individual one?

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

iQIcBAEBCgAGBQJUpUqkAAoJEOyEjtkWi2t6o3AP/jz3AuL9TRKWMgXz6Fn66ezT
BPDC5quugKCaREr0DE5/0ojWIodh6EdYDTnEyms+qHvl90nVsp+6bbEH5aYkGPSn
8SqA67182RSmI13WY8AxAwPjyjlmtbiCqUtyrwK4PUQY4kDsKMuApjOVjFjy0mkd
f8R5vZF2lPyrBMLuuw4qNskQChXrjz3elxZkxEMwj80Atac083o9Iohu/cxWxCSy
Wg6kznc6Slbz1A9OgErWZm1gCh67rRw+p6g9mW9jN2RDr/NVCMNvHTz1KAvptNTb
K+JR1gUg1bHgbdnfYNzZpFKU7phcvie/ndE9kHATuH0BuNLy16gCc/WM1LJoZusl
TqextFRzN2CiWIwQsgARBCH5iW8YfvERgxXgVqkQjrHN1YymQp5Mj4plMU+Ifgd/
yaNIKRLvnC4Dt4Cb/vmEOu93MG3+/ntPpr6kq66eCw5G0zNgUPr9pXgaQOm9piqg
8iV6ZKt4U+lmyxrXOMkVkAnT7/MZrSqrN2pcjGFZnE+dmOL8ifO787jbE+AbL641
ISTSIsYtJDl3RWqbeQEMUb/ulWibjgaTcXoXAOMBN5Z+pVrkkw840zwP8XEnJlm+
SNtZwh8uSWgKosG5ipMVjZC2Y8hKnXQTEzXp/LdZ7FaNssLh1WDPKRibSxQUadaV
Lq5jmj1RuEmEELO1E1CU
=lIMi
-----END PGP SIGNATURE-----


From adam.back@gmail.com  Thu Jan  1 05:32:06 2015
Return-Path: <adam.back@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 299031A1B6D for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 05:32:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.621
X-Spam-Level: 
X-Spam-Status: No, score=0.621 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 T95nG-x6PQyc for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 05:32:05 -0800 (PST)
Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 366EC1A1B53 for <cfrg@irtf.org>; Thu,  1 Jan 2015 05:32:05 -0800 (PST)
Received: by mail-qa0-f52.google.com with SMTP id v10so8682742qac.39 for <cfrg@irtf.org>; Thu, 01 Jan 2015 05:32:04 -0800 (PST)
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:content-type; bh=fQn6U6RaWCtAM24j+OboFvcovGxr6aZj5knnFTxQHRk=; b=NJHEg+uKtRSUnRnOvOy2JBGEm5ywpsAdcbkGpNVxfBQxgRmSXx7waLqS+E/D3/E01S gX3M2JWRHJHbpuvPYAEURssS448FyzVyZDVqiEh00qeUtQgIkWAjfyHLlRcKZmz7m5WY hjPNMzx3EHsPhX02OCTnMoOaxBG2T5/W7hSRoI41WHahTD6GsTQxwFPX0cv7KWwXqsFr u0nuoyuLS+i6XxrWlU0gQH2lLB/ljTbz0d1moRmoPazhEdl4gaV634EreS2mYTxNCHqR cwYvUJLn6iAvOyeTH4lSuDkSBzTn0aaMjGTXdM94PISS+Z4jTgjfCe27VFw8N6kAKW1z iatg==
MIME-Version: 1.0
X-Received: by 10.229.211.193 with SMTP id gp1mr43291057qcb.19.1420119124475;  Thu, 01 Jan 2015 05:32:04 -0800 (PST)
Sender: adam.back@gmail.com
Received: by 10.96.189.10 with HTTP; Thu, 1 Jan 2015 05:32:04 -0800 (PST)
In-Reply-To: <20141231225245.26393.qmail@cr.yp.to>
References: <D0C9ED09.3B226%kenny.paterson@rhul.ac.uk> <20141231225245.26393.qmail@cr.yp.to>
Date: Thu, 1 Jan 2015 14:32:04 +0100
X-Google-Sender-Auth: RWQzvwCMtP-JKhnnW-dW0N-qyiQ
Message-ID: <CALqxMTEj3gWSYanujzd3GrgTRN6WKHQtEqEn+6w=AFgVLH0aFg@mail.gmail.com>
From: Adam Back <adam@cypherspace.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/rIXYF40E8OfhYteIsjsdKYMFinY
Subject: Re: [Cfrg] Mishandling twist attacks
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 13:34:34 -0000

Dan Bernstein wrote:
> P.S. Happy new year, everybody! Let's try to get the whole Internet
> properly authenticated and encrypted in 2015.

Amen to that and I think the chairs comments were off-base also FWIW.

Few have contributed as much focussed and tightly argued technical
signal to this list than you have. It'd be kind of nice if microsoft
would be a little more responsive on list also so we dont have to have
analysis in absentia.

Adam


From nobody Thu Jan  1 06:49:32 2015
Return-Path: <kurt@roeckx.be>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3F681A1B78 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 06:49:30 -0800 (PST)
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, 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 taP5QznxN6_Y for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 06:49:29 -0800 (PST)
Received: from defiant.e-webshops.eu (defiant.e-webshops.eu [82.146.122.140]) (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 3CAEA1A1B5A for <cfrg@irtf.org>; Thu,  1 Jan 2015 06:49:29 -0800 (PST)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by defiant.e-webshops.eu (Postfix) with ESMTP id 31AAB1C2017 for <cfrg@irtf.org>; Thu,  1 Jan 2015 15:49:27 +0100 (CET)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id 6FCFE1FE01E6; Thu,  1 Jan 2015 15:49:26 +0100 (CET)
Date: Thu, 1 Jan 2015 15:49:26 +0100
From: Kurt Roeckx <kurt@roeckx.be>
To: cfrg@irtf.org
Message-ID: <20150101144926.GA4784@roeckx.be>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/DU1ysP9TjJp6p-Yn1kQFxEUOxV8
Subject: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 14:49:31 -0000

Hi,

I'm new to this list and I've been reading the archive.  It's all
very unclear to me on what is really going on.  Could someone
please make a summary?  It should probably include:
- What are the things being worked on?  I understand that at least
  part is recommending things for use in TLS, but I guess there
  are also other things being worked on.
- What are the various proposals?  The IETF datatracker doesn't
  seem to known all proposals, and I think there are proposals
  that just don't have a document yet.
- Is there some document with requirements, and maybe a comparison
  of how the proposals meet the requirements?


Kurt


From nobody Thu Jan  1 07:50:53 2015
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 88C641A1BEE for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 07:50:52 -0800 (PST)
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 ShZblB20FTD2 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 07:50:50 -0800 (PST)
Received: from mail-yh0-x233.google.com (mail-yh0-x233.google.com [IPv6:2607:f8b0:4002:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A23301A1BED for <cfrg@irtf.org>; Thu,  1 Jan 2015 07:50:50 -0800 (PST)
Received: by mail-yh0-f51.google.com with SMTP id a41so8563329yho.10 for <cfrg@irtf.org>; Thu, 01 Jan 2015 07:50:50 -0800 (PST)
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=K2o89sQ/dBse8ZpEi1qJVOqX02pmBKecpNEPYWN52zs=; b=TzwDMJH2NYwtx05LHkNGF/0u/1J9vhv/stc2cF4/c1vUpoZQECoAB0ho3iWC1lLaog U+KvExOXw076xE4s1Omram2KeeWqPub5HZGTMkn58XwnVfabU9Z5TzpXdqk5YwncXyc9 AB0097zGL7QTdDJbn6eHF0dEUBBm4bT0DKJUyqJ1EN0Wh435eP+EQttFjDfLGH3B8XEl NzAaJnwnqh/Jr1hqXPBHNpfCKzcZtU4LLHuYsQhVtm4rUBfY5NAvBVaFW+vcnOVii3dF frCo6NActyVWa6o7UinpiQnF1cT7/3A39Iu8Zg1brtgvJF/gnMXxrtBQiAa97J1C6BZe qqtw==
MIME-Version: 1.0
X-Received: by 10.236.63.6 with SMTP id z6mr12441378yhc.65.1420127449787; Thu, 01 Jan 2015 07:50:49 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Thu, 1 Jan 2015 07:50:49 -0800 (PST)
In-Reply-To: <20150101144926.GA4784@roeckx.be>
References: <20150101144926.GA4784@roeckx.be>
Date: Thu, 1 Jan 2015 10:50:49 -0500
Message-ID: <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Kurt Roeckx <kurt@roeckx.be>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/VBBnaFcOqvFd-2MSx3iNEPwAnfU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 15:50:52 -0000

On Thu, Jan 1, 2015 at 9:49 AM, Kurt Roeckx <kurt@roeckx.be> wrote:
> Hi,
>
> I'm new to this list and I've been reading the archive.  It's all
> very unclear to me on what is really going on.  Could someone
> please make a summary?  It should probably include:
> - What are the things being worked on?  I understand that at least
>   part is recommending things for use in TLS, but I guess there
>   are also other things being worked on.

The curves issue is really the big one, and the drastically overdue
one. I would suggest not trying to follow the discussion through the
archive.

> - What are the various proposals?  The IETF datatracker doesn't
>   seem to known all proposals, and I think there are proposals
>   that just don't have a document yet.

Good question: the answer is that at the 255 bit level, for ECDH the
current proposals are both Curve25519. But one uses the same basepoint
as existing code, and the other doesn't. This difference doesn't
affect security in any way. It's the only difference.

Above 255 bits, life gets more interesting. Assuming we want to use
X-coordinate Montgomery (sorry Mike) for ECDH and compressed Edwards
for sigs, we've got 3 or 4 different proposals for around 380, and 1
for 521.

-For 521 it's E521 as described on safecurves.cr.yp.to, the prime being 2^521-1
-2^389-21: I've not calculated the curve yet, but I think Ilari may have
-2^384-317: the NUMS proposal
-2^448-2^224-1: Goldilocks, which has extremely fast arithmetic due to
its shape.

We don't have exactly equivalent numbers for each of these: some
report scalar mult times, others arith times. But what we do know from
the recent batch of measurements is Goldilocks is about as fast as
2^384-17, and 2^389-21 is 8-9% faster than Goldilocks. 2^521-1 is
slower, but much bigger.

For signatures, NUMS proposes what I've called FrankenECDSA, and they
call ECDSA (but isn't really): doing ECDSA but with Edwards curves.
The other proposal is EdDSA, which is a Schnorr signature variant.
NUMS has been open to an additional signature algorithm, and we can
use ECDSA on an isomorphic Weierstrass curve if we really want. There
are some differences over which of the isogenous or isomorphic Edwards
curve to use, with NUMS using an isogenous one and the current Ed25519
an isomorphic one.

This is very different from the original NUMS proposal.

> - Is there some document with requirements, and maybe a comparison
>   of how the proposals meet the requirements?

No. The chairs suggested making one, but then didn't. Part of the
problem is everyone was gaming the requirements to make their own
proposals look better.

Sincerely,
Watson Ladd

>
>
> Kurt
>
> _______________________________________________
> 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 Jan  1 09:14:53 2015
Return-Path: <calestyo@scientia.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 7B7551A0161 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:14:52 -0800 (PST)
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_50=0.8,  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 IPcETpCMSQs3 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:14:50 -0800 (PST)
Received: from mailgw01.dd24.net (mailgw01.dd24.net [193.46.215.41]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6C1811A0163 for <cfrg@irtf.org>; Thu,  1 Jan 2015 09:14:50 -0800 (PST)
Received: from localhost (mailpolicy-02.live.igb.homer.key-systems.net [192.168.1.27]) by mailgw01.dd24.net (Postfix) with ESMTP id B82125FAA2 for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:14:48 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at mailpolicy-02.live.igb.homer.key-systems.net
Received: from mailgw01.dd24.net ([192.168.1.35]) by localhost (mailpolicy-02.live.igb.homer.key-systems.net [192.168.1.30]) (amavisd-new, port 10235) with ESMTP id zgR2ZJGX5CBO for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:14:38 +0000 (UTC)
Received: from heisenberg.fritz.box (ppp-93-104-116-14.dynamic.mnet-online.de [93.104.116.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailgw01.dd24.net (Postfix) with ESMTPSA for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:14:38 +0000 (UTC)
Message-ID: <1420132477.4562.6.camel@scientia.net>
From: Christoph Anton Mitterer <calestyo@scientia.net>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Date: Thu, 01 Jan 2015 18:14:37 +0100
In-Reply-To: <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com>
References: <20141231154418.6639764.33790.24403@certicom.com> <D0C9CE59.3B14A%kenny.paterson@rhul.ac.uk> <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com>
Content-Type: multipart/signed; micalg="sha-512"; protocol="application/x-pkcs7-signature"; boundary="=-idylUpfiYRaXppvtvPPc"
X-Mailer: Evolution 3.12.9-1 
Mime-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/4sy9qbZiWlmwp3uxHk8kEwUhz7c
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 17:14:52 -0000

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

On Thu, 2015-01-01 at 13:39 +0100, Adam Back wrote:=20
> Seems like on
> topic and to the point, not spam.
plus: it seems kinda dangerous to me, if certain topics are more or
less... well not forbidden, but at least "moderated to silence".

CFRG should be really open, even if this includes more wood and less
trees,... trust is very important and if people feel that some
topics/questions/concerns might have been suppressed, CFRG will have the
same problems as NIST.


Cheers,
Chris.

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

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCCEZIw
ggW/MIIDp6ADAgECAgMCOakwDQYJKoZIhvcNAQENBQAwVDEUMBIGA1UEChMLQ0FjZXJ0IEluYy4x
HjAcBgNVBAsTFWh0dHA6Ly93d3cuQ0FjZXJ0Lm9yZzEcMBoGA1UEAxMTQ0FjZXJ0IENsYXNzIDMg
Um9vdDAeFw0xNDA2MTIxNjM2MThaFw0xNjA2MTExNjM2MThaMHwxITAfBgNVBAMTGENocmlzdG9w
aCBBbnRvbiBNaXR0ZXJlcjEkMCIGCSqGSIb3DQEJARYVY2FsZXN0eW9Ac2NpZW50aWEubmV0MTEw
LwYJKoZIhvcNAQkBFiJtYWlsQGNocmlzdG9waC5hbnRvbi5taXR0ZXJlci5uYW1lMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4phP/j9vT9dZT+k3ffHxvRWMOuzBnu5O3Fl4y2+WL7pL
rfLiEhWzGXhHvjSqpt4vCNSdqy43453nnu8+hMb+uEtqSIL1AHU5eLhuDNVN9S4bt9E7nA2WKYBU
LCUi/xCD/GL7ToyJNwhrhzcCZ7pXSc3xVqFoC4f6weU9ExhoEZQNRpTM0BFCOi4fRxvKFNnUYgjK
hqy0Ta5H0Xx86mAp0Q4dxoD7mhI5iTF6TRkUheELxF24JCuAf04M89Cwft6DRH1FpJ3yvgW2B5U5
aFSL4ZnF4N/wyCB7Dkm1rQ7RCAvw5btkf0VdPnU7ccDCx8HEc2nxK/lbCjrznvh3sa1CCwIDAQAB
o4IBcDCCAWwwDAYDVR0TAQH/BAIwADBWBglghkgBhvhCAQ0ESRZHVG8gZ2V0IHlvdXIgb3duIGNl
cnRpZmljYXRlIGZvciBGUkVFIGhlYWQgb3ZlciB0byBodHRwOi8vd3d3LkNBY2VydC5vcmcwDgYD
VR0PAQH/BAQDAgOoMEAGA1UdJQQ5MDcGCCsGAQUFBwMEBggrBgEFBQcDAgYKKwYBBAGCNwoDBAYK
KwYBBAGCNwoDAwYJYIZIAYb4QgQBMDIGCCsGAQUFBwEBBCYwJDAiBggrBgEFBQcwAYYWaHR0cDov
L29jc3AuY2FjZXJ0Lm9yZzA4BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLmNhY2VydC5vcmcv
Y2xhc3MzLXJldm9rZS5jcmwwRAYDVR0RBD0wO4EVY2FsZXN0eW9Ac2NpZW50aWEubmV0gSJtYWls
QGNocmlzdG9waC5hbnRvbi5taXR0ZXJlci5uYW1lMA0GCSqGSIb3DQEBDQUAA4ICAQBefctiLgGl
e5baspuozyA4k7Up7SVhGHbif6pQfoFc/9Thx9GXnYpX+U64PMyWBfWwHZIy52Vg0RVkvPi1t6mi
GyBfoSpC6ooR0bKWtUIogw/ymqKWlTLVR8kbLqRmRk4juMtCXG2K3yMygX/rjkuUSuFj2Bjpkmzg
CtMojbUMYbszePmhQ7DJ62YEdtKpcjN94QAsI5GWlIAbs3KJazAcaNCRJeXCLcUMchyKHJA+NXH5
az/ekBxBMBzJP2An20PP88UI4JW18z31KiG9UVGa2uO4l4aWgVe2GnhNEdCD/o48msJEWKAt5vl2
yMqr7ihmNPocU2+/FW0xPe/vftdOTD9pgXdSGf4prdD+23q2YvpalOCzr2p8yCJZNVBPMxAP4mL0
3OEktXza4wohqAmceXKfGUNwRGBaPvtIGnPrpLhCQ+2YJDg8g1UEsk23bKyZlJWeKJyVqOBsDJmj
aBsN/qKhQFnav+zQdqGhMeaSisF/53mD3gyVYg2JRl18apgGbg32kyLmomqa0JbhnY3Dc3FVtZfe
+P+s2Cyep3pVKvFer2llRoGm8TwraG5Yhyx8Oq/1qETpstjbURJOVBLDCV4AjOEUj0ZnE/tEo/DK
yexgGaViNvjp+IZdFdJhYmsVjw4Q3vG7O0pfsLiYEyQjeDgjNEWDfa5/MufPywIfxzCCBb8wggOn
oAMCAQICAwI5qTANBgkqhkiG9w0BAQ0FADBUMRQwEgYDVQQKEwtDQWNlcnQgSW5jLjEeMBwGA1UE
CxMVaHR0cDovL3d3dy5DQWNlcnQub3JnMRwwGgYDVQQDExNDQWNlcnQgQ2xhc3MgMyBSb290MB4X
DTE0MDYxMjE2MzYxOFoXDTE2MDYxMTE2MzYxOFowfDEhMB8GA1UEAxMYQ2hyaXN0b3BoIEFudG9u
IE1pdHRlcmVyMSQwIgYJKoZIhvcNAQkBFhVjYWxlc3R5b0BzY2llbnRpYS5uZXQxMTAvBgkqhkiG
9w0BCQEWIm1haWxAY2hyaXN0b3BoLmFudG9uLm1pdHRlcmVyLm5hbWUwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDimE/+P29P11lP6Td98fG9FYw67MGe7k7cWXjLb5Yvukut8uISFbMZ
eEe+NKqm3i8I1J2rLjfjneee7z6Exv64S2pIgvUAdTl4uG4M1U31Lhu30TucDZYpgFQsJSL/EIP8
YvtOjIk3CGuHNwJnuldJzfFWoWgLh/rB5T0TGGgRlA1GlMzQEUI6Lh9HG8oU2dRiCMqGrLRNrkfR
fHzqYCnRDh3GgPuaEjmJMXpNGRSF4QvEXbgkK4B/Tgzz0LB+3oNEfUWknfK+BbYHlTloVIvhmcXg
3/DIIHsOSbWtDtEIC/Dlu2R/RV0+dTtxwMLHwcRzafEr+VsKOvOe+HexrUILAgMBAAGjggFwMIIB
bDAMBgNVHRMBAf8EAjAAMFYGCWCGSAGG+EIBDQRJFkdUbyBnZXQgeW91ciBvd24gY2VydGlmaWNh
dGUgZm9yIEZSRUUgaGVhZCBvdmVyIHRvIGh0dHA6Ly93d3cuQ0FjZXJ0Lm9yZzAOBgNVHQ8BAf8E
BAMCA6gwQAYDVR0lBDkwNwYIKwYBBQUHAwQGCCsGAQUFBwMCBgorBgEEAYI3CgMEBgorBgEEAYI3
CgMDBglghkgBhvhCBAEwMgYIKwYBBQUHAQEEJjAkMCIGCCsGAQUFBzABhhZodHRwOi8vb2NzcC5j
YWNlcnQub3JnMDgGA1UdHwQxMC8wLaAroCmGJ2h0dHA6Ly9jcmwuY2FjZXJ0Lm9yZy9jbGFzczMt
cmV2b2tlLmNybDBEBgNVHREEPTA7gRVjYWxlc3R5b0BzY2llbnRpYS5uZXSBIm1haWxAY2hyaXN0
b3BoLmFudG9uLm1pdHRlcmVyLm5hbWUwDQYJKoZIhvcNAQENBQADggIBAF59y2IuAaV7ltqym6jP
IDiTtSntJWEYduJ/qlB+gVz/1OHH0Zedilf5Trg8zJYF9bAdkjLnZWDRFWS8+LW3qaIbIF+hKkLq
ihHRspa1QiiDD/KaopaVMtVHyRsupGZGTiO4y0JcbYrfIzKBf+uOS5RK4WPYGOmSbOAK0yiNtQxh
uzN4+aFDsMnrZgR20qlyM33hACwjkZaUgBuzcolrMBxo0JEl5cItxQxyHIockD41cflrP96QHEEw
HMk/YCfbQ8/zxQjglbXzPfUqIb1RUZra47iXhpaBV7YaeE0R0IP+jjyawkRYoC3m+XbIyqvuKGY0
+hxTb78VbTE97+9+105MP2mBd1IZ/imt0P7berZi+lqU4LOvanzIIlk1UE8zEA/iYvTc4SS1fNrj
CiGoCZx5cp8ZQ3BEYFo++0gac+ukuEJD7ZgkODyDVQSyTbdsrJmUlZ4onJWo4GwMmaNoGw3+oqFA
Wdq/7NB2oaEx5pKKwX/neYPeDJViDYlGXXxqmAZuDfaTIuaiaprQluGdjcNzcVW1l974/6zYLJ6n
elUq8V6vaWVGgabxPCtobliHLHw6r/WoROmy2NtREk5UEsMJXgCM4RSPRmcT+0Sj8MrJ7GAZpWI2
+On4hl0V0mFiaxWPDhDe8bs7Sl+wuJgTJCN4OCM0RYN9rn8y58/LAh/HMIIGCDCCA/CgAwIBAgIB
ATANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQLExVodHRwOi8vd3d3
LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG
9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNTEwMTQwNzM2NTVaFw0zMzAzMjgwNzM2NTVa
MFQxFDASBgNVBAoTC0NBY2VydCBJbmMuMR4wHAYDVQQLExVodHRwOi8vd3d3LkNBY2VydC5vcmcx
HDAaBgNVBAMTE0NBY2VydCBDbGFzcyAzIFJvb3QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
AoICAQCrSTURSHzSJn5TlM9Dqd0o10Iqi/OHeBlYfA+e2ol94fvrcpANdKGWZKufoCSZc9riVXbH
F3v1BKxGuMO+f2SNEGwk82GcwPKQ+lHm9WkBY8MPVuJKQs/iRIwlKKjFeQl9RrmK8+nzNCkIReQc
n8uUBByBqBSzmGXEQ+xOgo0J0b2qW42S0OzekMV/CsLj6+YxWl50PpczWejDAz1gM7/30W9HxM3u
YoNSbi4ImqTZFRiRpoWSR7CuSOtttyHshRpocjWr//AQXcD0lKdq1TuSfkyQBX6TwSyLpI5idBVx
bgtxA+qvFTia1NIFcm+M+SvrWnIl+TlG43IbPgTDZCciECqKT1inA62+tC4T7V2qSNfVfdQqe1z6
RgRQ5MwOQluM7dvyz/yWk+DbETZUYjQ4jwxgmzuXVjit89Jbi6Bb6k6WuHzX1aCGcEDTkSm3ojyt
9Yy7zxqSiuQ0e8DYbF/pCsLDpyCaWt8sXVJcukfVm+8kKHA4IC/VfynAskEDaJLM4JzMl0tF7zoQ
CqtwOpiVcK01seqFK6QcgCExqa5geoAmSAC4AcCTY1UikTxW56/bOiXzjzFU6iaLgVn5odFTEcV7
nQP2dBHgbbEsPyyGkZlxmqZ3izRg0RS0LKydr4wQ05/EavhvE/xzWfdmQnQeiuP43NJvmJzLR5iV
QAX76QIDAQABo4G/MIG8MA8GA1UdEwEB/wQFMAMBAf8wXQYIKwYBBQUHAQEEUTBPMCMGCCsGAQUF
BzABhhdodHRwOi8vb2NzcC5DQWNlcnQub3JnLzAoBggrBgEFBQcwAoYcaHR0cDovL3d3dy5DQWNl
cnQub3JnL2NhLmNydDBKBgNVHSAEQzBBMD8GCCsGAQQBgZBKMDMwMQYIKwYBBQUHAgEWJWh0dHA6
Ly93d3cuQ0FjZXJ0Lm9yZy9pbmRleC5waHA/aWQ9MTAwDQYJKoZIhvcNAQEEBQADggIBAH8IiKHa
GlBJ2on7oQhy84r3HsQ6tHlbIDCxRd7CXdNlafHCXVRUPIVfuXtCkcKZ/RtRm6tGpaEQU55tiKxz
biwzpvD0nuB1wT6IRanhZkP+VlrRekF490DaSjrxC1uluxYG5sLnk7mFTZdPsR44Q4Dvmw2M77in
YACHV30eRBzLI++bPJmdr7UpHEV5FpZNJ23xHGzDwlVks7wU4vOkHx4y/CcVBc/dLq4+gmF78CEQ
GPZE6lM5+dzQmiDgxrvgu1pPxJnIB721vaLbLmINQjRBvP+LivVRIqqIMADisNS8vmW61QNXeZvo
3MhN+FDtkaVSKKKs+zZYPumUK5FQhxvWXtaMzPcPEAxSTtAWYeXlCmy/F8dyRlecmPVsYGN6b165
Ti/Iubm7aoW8mA3t+T6XhDSUrgCvoeXnkm5OvfPi2RSLXNLrAWygF6UtEOucekq9ve7O/e0iQKtw
OIj1CodqwqsFYMlIBdpTwd5Ed2qz8zw87YC8pjhKKSRf/lk7myV6VmMAZLldpGJ9VzZPrYPvH5JT
oI53V93lYRE9IwCQTDz6o2CTBKOvNfYOao9PSmCnhQVsRqGP9Md246FZV/dxssRuFFxtbUFm3xuT
sdQAw+7Lzzw9IYCpX2Nl/N3gX6T0K/CFcUHUZyX7GrGXrtaZghNB0m6lG5kngOcLqagAMYIC7TCC
AukCAQEwWzBUMRQwEgYDVQQKEwtDQWNlcnQgSW5jLjEeMBwGA1UECxMVaHR0cDovL3d3dy5DQWNl
cnQub3JnMRwwGgYDVQQDExNDQWNlcnQgQ2xhc3MgMyBSb290AgMCOakwDQYJYIZIAWUDBAIDBQCg
ggFjMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEwMTE3MTQz
N1owTwYJKoZIhvcNAQkEMUIEQFZQHJf+TzFricLd8AioIh7Ok0/DtVE7Jl3CuexNN/W5NudOnbCn
Pe0MqSQ+aHVN8CJLYLNsXy90MmbLvHZRhzMwagYJKwYBBAGCNxAEMV0wWzBUMRQwEgYDVQQKEwtD
QWNlcnQgSW5jLjEeMBwGA1UECxMVaHR0cDovL3d3dy5DQWNlcnQub3JnMRwwGgYDVQQDExNDQWNl
cnQgQ2xhc3MgMyBSb290AgMCOakwbAYLKoZIhvcNAQkQAgsxXaBbMFQxFDASBgNVBAoTC0NBY2Vy
dCBJbmMuMR4wHAYDVQQLExVodHRwOi8vd3d3LkNBY2VydC5vcmcxHDAaBgNVBAMTE0NBY2VydCBD
bGFzcyAzIFJvb3QCAwI5qTANBgkqhkiG9w0BAQEFAASCAQAEc7aU1VD48Ztm/hmQb9+NHC0/nduN
1opV8iVNbG/gjxf2gC+6I0CYqavSXfuvXpTS0ru0OK1adHygn146OnTyzXX4m04YroILETAPb2O7
cHiXu9pe6ANm3CemL6drSakPql9s6UCD0gFC4k4Y6lDY7mPAZUM6XGN4rrVowykKkJkZTfGAtgNw
a7sFbDtBtBfU3a100C7zIP6EjUO3li+dO9+BjmFIZM3bmvRmTI+c87QwUAomIw1POIyc5vjGsiXo
RiCbLgLvU9NOEfA8P049pT6Yqnb83wEFERUY2iVwevxJ/aXIaPqg/V3tbvgOLQxrDVhLzzjsy6U7
4BuAvG67AAAAAAAA


--=-idylUpfiYRaXppvtvPPc--


From nobody Thu Jan  1 09:18:03 2015
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 561201A0164 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:18:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.195
X-Spam-Level: 
X-Spam-Status: No, score=0.195 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545] 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 PP-2EUv012H1 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:18:01 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id DE80B1A010A for <cfrg@irtf.org>; Thu,  1 Jan 2015 09:18:00 -0800 (PST)
Received: (qmail 15974 invoked from network); 1 Jan 2015 17:18:20 -0000
Received: from unknown (HELO hyperelliptic.org) (131.155.71.33) by calvin.win.tue.nl with SMTP; 1 Jan 2015 17:18:20 -0000
Received: (qmail 2368 invoked by uid 1000); 1 Jan 2015 17:17:37 -0000
Date: Thu, 1 Jan 2015 18:17:37 +0100
From: Tanja Lange <tanja@hyperelliptic.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Message-ID: <20150101171737.GV28778@cph.win.tue.nl>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/he9FqSCHRGPN6xr2FVOtLvq2FgY
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 17:18:02 -0000

Dear Watson,
Thanks for the summary.

> -2^389-21: I've not calculated the curve yet, but I think Ilari may have
> -2^384-317: the NUMS proposal
> -2^448-2^224-1: Goldilocks, which has extremely fast arithmetic due to
> its shape.
> 
It's complicated to speak of proposals because there isn't a formal
procedure, but we sure would also like to see Curve41417 be considered.
There the prime is 2^414-17.

All the best
	Tanja


From nobody Thu Jan  1 09:26:13 2015
Return-Path: <calestyo@scientia.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 25EC61A01D5 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:26:12 -0800 (PST)
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 6thfuSDBgobY for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:26:10 -0800 (PST)
Received: from mailgw01.dd24.net (mailgw01.dd24.net [193.46.215.41]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B79181A0169 for <cfrg@irtf.org>; Thu,  1 Jan 2015 09:26:09 -0800 (PST)
Received: from localhost (mailpolicy-02.live.igb.homer.key-systems.net [192.168.1.27]) by mailgw01.dd24.net (Postfix) with ESMTP id 96D505FAA2 for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:26:08 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at mailpolicy-02.live.igb.homer.key-systems.net
Received: from mailgw01.dd24.net ([192.168.1.35]) by localhost (mailpolicy-02.live.igb.homer.key-systems.net [192.168.1.30]) (amavisd-new, port 10235) with ESMTP id jFvgnnCkcy5E for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:25:58 +0000 (UTC)
Received: from heisenberg.fritz.box (ppp-93-104-116-14.dynamic.mnet-online.de [93.104.116.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailgw01.dd24.net (Postfix) with ESMTPSA for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:25:58 +0000 (UTC)
Message-ID: <1420133158.4562.12.camel@scientia.net>
From: Christoph Anton Mitterer <calestyo@scientia.net>
To: cfrg@irtf.org
Date: Thu, 01 Jan 2015 18:25:58 +0100
In-Reply-To: <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
Content-Type: multipart/signed; micalg="sha-512"; protocol="application/x-pkcs7-signature"; boundary="=-6uFiERKwPNBZ4rKxP1ZC"
X-Mailer: Evolution 3.12.9-1 
Mime-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PELx1wj9Wglj5zHeKlyDLqjBJcA
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 17:26:12 -0000

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

On Thu, 2015-01-01 at 10:50 -0500, Watson Ladd wrote:=20
> Above 255 bits, life gets more interesting. Assuming we want to use
> X-coordinate Montgomery (sorry Mike) for ECDH and compressed Edwards
> for sigs, we've got 3 or 4 different proposals for around 380, and 1
> for 521.
>=20
> -For 521 it's E521 as described on safecurves.cr.yp.to, the prime being 2=
^521-1
Is this going to be followed up?
I'd really love so see a trustworthy curve that has an extremely high
security margin... something like "as long as there are no quantum
computers and no other break through against the base paradigms is found
- no collected computing power will 'ever' be able to break this"...
that could be used in fields like OpenPGP... for long-term key signing,
where performance doesn't matter that much.

Cheers,
Chris.

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

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCCEZIw
ggW/MIIDp6ADAgECAgMCOakwDQYJKoZIhvcNAQENBQAwVDEUMBIGA1UEChMLQ0FjZXJ0IEluYy4x
HjAcBgNVBAsTFWh0dHA6Ly93d3cuQ0FjZXJ0Lm9yZzEcMBoGA1UEAxMTQ0FjZXJ0IENsYXNzIDMg
Um9vdDAeFw0xNDA2MTIxNjM2MThaFw0xNjA2MTExNjM2MThaMHwxITAfBgNVBAMTGENocmlzdG9w
aCBBbnRvbiBNaXR0ZXJlcjEkMCIGCSqGSIb3DQEJARYVY2FsZXN0eW9Ac2NpZW50aWEubmV0MTEw
LwYJKoZIhvcNAQkBFiJtYWlsQGNocmlzdG9waC5hbnRvbi5taXR0ZXJlci5uYW1lMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4phP/j9vT9dZT+k3ffHxvRWMOuzBnu5O3Fl4y2+WL7pL
rfLiEhWzGXhHvjSqpt4vCNSdqy43453nnu8+hMb+uEtqSIL1AHU5eLhuDNVN9S4bt9E7nA2WKYBU
LCUi/xCD/GL7ToyJNwhrhzcCZ7pXSc3xVqFoC4f6weU9ExhoEZQNRpTM0BFCOi4fRxvKFNnUYgjK
hqy0Ta5H0Xx86mAp0Q4dxoD7mhI5iTF6TRkUheELxF24JCuAf04M89Cwft6DRH1FpJ3yvgW2B5U5
aFSL4ZnF4N/wyCB7Dkm1rQ7RCAvw5btkf0VdPnU7ccDCx8HEc2nxK/lbCjrznvh3sa1CCwIDAQAB
o4IBcDCCAWwwDAYDVR0TAQH/BAIwADBWBglghkgBhvhCAQ0ESRZHVG8gZ2V0IHlvdXIgb3duIGNl
cnRpZmljYXRlIGZvciBGUkVFIGhlYWQgb3ZlciB0byBodHRwOi8vd3d3LkNBY2VydC5vcmcwDgYD
VR0PAQH/BAQDAgOoMEAGA1UdJQQ5MDcGCCsGAQUFBwMEBggrBgEFBQcDAgYKKwYBBAGCNwoDBAYK
KwYBBAGCNwoDAwYJYIZIAYb4QgQBMDIGCCsGAQUFBwEBBCYwJDAiBggrBgEFBQcwAYYWaHR0cDov
L29jc3AuY2FjZXJ0Lm9yZzA4BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLmNhY2VydC5vcmcv
Y2xhc3MzLXJldm9rZS5jcmwwRAYDVR0RBD0wO4EVY2FsZXN0eW9Ac2NpZW50aWEubmV0gSJtYWls
QGNocmlzdG9waC5hbnRvbi5taXR0ZXJlci5uYW1lMA0GCSqGSIb3DQEBDQUAA4ICAQBefctiLgGl
e5baspuozyA4k7Up7SVhGHbif6pQfoFc/9Thx9GXnYpX+U64PMyWBfWwHZIy52Vg0RVkvPi1t6mi
GyBfoSpC6ooR0bKWtUIogw/ymqKWlTLVR8kbLqRmRk4juMtCXG2K3yMygX/rjkuUSuFj2Bjpkmzg
CtMojbUMYbszePmhQ7DJ62YEdtKpcjN94QAsI5GWlIAbs3KJazAcaNCRJeXCLcUMchyKHJA+NXH5
az/ekBxBMBzJP2An20PP88UI4JW18z31KiG9UVGa2uO4l4aWgVe2GnhNEdCD/o48msJEWKAt5vl2
yMqr7ihmNPocU2+/FW0xPe/vftdOTD9pgXdSGf4prdD+23q2YvpalOCzr2p8yCJZNVBPMxAP4mL0
3OEktXza4wohqAmceXKfGUNwRGBaPvtIGnPrpLhCQ+2YJDg8g1UEsk23bKyZlJWeKJyVqOBsDJmj
aBsN/qKhQFnav+zQdqGhMeaSisF/53mD3gyVYg2JRl18apgGbg32kyLmomqa0JbhnY3Dc3FVtZfe
+P+s2Cyep3pVKvFer2llRoGm8TwraG5Yhyx8Oq/1qETpstjbURJOVBLDCV4AjOEUj0ZnE/tEo/DK
yexgGaViNvjp+IZdFdJhYmsVjw4Q3vG7O0pfsLiYEyQjeDgjNEWDfa5/MufPywIfxzCCBb8wggOn
oAMCAQICAwI5qTANBgkqhkiG9w0BAQ0FADBUMRQwEgYDVQQKEwtDQWNlcnQgSW5jLjEeMBwGA1UE
CxMVaHR0cDovL3d3dy5DQWNlcnQub3JnMRwwGgYDVQQDExNDQWNlcnQgQ2xhc3MgMyBSb290MB4X
DTE0MDYxMjE2MzYxOFoXDTE2MDYxMTE2MzYxOFowfDEhMB8GA1UEAxMYQ2hyaXN0b3BoIEFudG9u
IE1pdHRlcmVyMSQwIgYJKoZIhvcNAQkBFhVjYWxlc3R5b0BzY2llbnRpYS5uZXQxMTAvBgkqhkiG
9w0BCQEWIm1haWxAY2hyaXN0b3BoLmFudG9uLm1pdHRlcmVyLm5hbWUwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDimE/+P29P11lP6Td98fG9FYw67MGe7k7cWXjLb5Yvukut8uISFbMZ
eEe+NKqm3i8I1J2rLjfjneee7z6Exv64S2pIgvUAdTl4uG4M1U31Lhu30TucDZYpgFQsJSL/EIP8
YvtOjIk3CGuHNwJnuldJzfFWoWgLh/rB5T0TGGgRlA1GlMzQEUI6Lh9HG8oU2dRiCMqGrLRNrkfR
fHzqYCnRDh3GgPuaEjmJMXpNGRSF4QvEXbgkK4B/Tgzz0LB+3oNEfUWknfK+BbYHlTloVIvhmcXg
3/DIIHsOSbWtDtEIC/Dlu2R/RV0+dTtxwMLHwcRzafEr+VsKOvOe+HexrUILAgMBAAGjggFwMIIB
bDAMBgNVHRMBAf8EAjAAMFYGCWCGSAGG+EIBDQRJFkdUbyBnZXQgeW91ciBvd24gY2VydGlmaWNh
dGUgZm9yIEZSRUUgaGVhZCBvdmVyIHRvIGh0dHA6Ly93d3cuQ0FjZXJ0Lm9yZzAOBgNVHQ8BAf8E
BAMCA6gwQAYDVR0lBDkwNwYIKwYBBQUHAwQGCCsGAQUFBwMCBgorBgEEAYI3CgMEBgorBgEEAYI3
CgMDBglghkgBhvhCBAEwMgYIKwYBBQUHAQEEJjAkMCIGCCsGAQUFBzABhhZodHRwOi8vb2NzcC5j
YWNlcnQub3JnMDgGA1UdHwQxMC8wLaAroCmGJ2h0dHA6Ly9jcmwuY2FjZXJ0Lm9yZy9jbGFzczMt
cmV2b2tlLmNybDBEBgNVHREEPTA7gRVjYWxlc3R5b0BzY2llbnRpYS5uZXSBIm1haWxAY2hyaXN0
b3BoLmFudG9uLm1pdHRlcmVyLm5hbWUwDQYJKoZIhvcNAQENBQADggIBAF59y2IuAaV7ltqym6jP
IDiTtSntJWEYduJ/qlB+gVz/1OHH0Zedilf5Trg8zJYF9bAdkjLnZWDRFWS8+LW3qaIbIF+hKkLq
ihHRspa1QiiDD/KaopaVMtVHyRsupGZGTiO4y0JcbYrfIzKBf+uOS5RK4WPYGOmSbOAK0yiNtQxh
uzN4+aFDsMnrZgR20qlyM33hACwjkZaUgBuzcolrMBxo0JEl5cItxQxyHIockD41cflrP96QHEEw
HMk/YCfbQ8/zxQjglbXzPfUqIb1RUZra47iXhpaBV7YaeE0R0IP+jjyawkRYoC3m+XbIyqvuKGY0
+hxTb78VbTE97+9+105MP2mBd1IZ/imt0P7berZi+lqU4LOvanzIIlk1UE8zEA/iYvTc4SS1fNrj
CiGoCZx5cp8ZQ3BEYFo++0gac+ukuEJD7ZgkODyDVQSyTbdsrJmUlZ4onJWo4GwMmaNoGw3+oqFA
Wdq/7NB2oaEx5pKKwX/neYPeDJViDYlGXXxqmAZuDfaTIuaiaprQluGdjcNzcVW1l974/6zYLJ6n
elUq8V6vaWVGgabxPCtobliHLHw6r/WoROmy2NtREk5UEsMJXgCM4RSPRmcT+0Sj8MrJ7GAZpWI2
+On4hl0V0mFiaxWPDhDe8bs7Sl+wuJgTJCN4OCM0RYN9rn8y58/LAh/HMIIGCDCCA/CgAwIBAgIB
ATANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQLExVodHRwOi8vd3d3
LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG
9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNTEwMTQwNzM2NTVaFw0zMzAzMjgwNzM2NTVa
MFQxFDASBgNVBAoTC0NBY2VydCBJbmMuMR4wHAYDVQQLExVodHRwOi8vd3d3LkNBY2VydC5vcmcx
HDAaBgNVBAMTE0NBY2VydCBDbGFzcyAzIFJvb3QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
AoICAQCrSTURSHzSJn5TlM9Dqd0o10Iqi/OHeBlYfA+e2ol94fvrcpANdKGWZKufoCSZc9riVXbH
F3v1BKxGuMO+f2SNEGwk82GcwPKQ+lHm9WkBY8MPVuJKQs/iRIwlKKjFeQl9RrmK8+nzNCkIReQc
n8uUBByBqBSzmGXEQ+xOgo0J0b2qW42S0OzekMV/CsLj6+YxWl50PpczWejDAz1gM7/30W9HxM3u
YoNSbi4ImqTZFRiRpoWSR7CuSOtttyHshRpocjWr//AQXcD0lKdq1TuSfkyQBX6TwSyLpI5idBVx
bgtxA+qvFTia1NIFcm+M+SvrWnIl+TlG43IbPgTDZCciECqKT1inA62+tC4T7V2qSNfVfdQqe1z6
RgRQ5MwOQluM7dvyz/yWk+DbETZUYjQ4jwxgmzuXVjit89Jbi6Bb6k6WuHzX1aCGcEDTkSm3ojyt
9Yy7zxqSiuQ0e8DYbF/pCsLDpyCaWt8sXVJcukfVm+8kKHA4IC/VfynAskEDaJLM4JzMl0tF7zoQ
CqtwOpiVcK01seqFK6QcgCExqa5geoAmSAC4AcCTY1UikTxW56/bOiXzjzFU6iaLgVn5odFTEcV7
nQP2dBHgbbEsPyyGkZlxmqZ3izRg0RS0LKydr4wQ05/EavhvE/xzWfdmQnQeiuP43NJvmJzLR5iV
QAX76QIDAQABo4G/MIG8MA8GA1UdEwEB/wQFMAMBAf8wXQYIKwYBBQUHAQEEUTBPMCMGCCsGAQUF
BzABhhdodHRwOi8vb2NzcC5DQWNlcnQub3JnLzAoBggrBgEFBQcwAoYcaHR0cDovL3d3dy5DQWNl
cnQub3JnL2NhLmNydDBKBgNVHSAEQzBBMD8GCCsGAQQBgZBKMDMwMQYIKwYBBQUHAgEWJWh0dHA6
Ly93d3cuQ0FjZXJ0Lm9yZy9pbmRleC5waHA/aWQ9MTAwDQYJKoZIhvcNAQEEBQADggIBAH8IiKHa
GlBJ2on7oQhy84r3HsQ6tHlbIDCxRd7CXdNlafHCXVRUPIVfuXtCkcKZ/RtRm6tGpaEQU55tiKxz
biwzpvD0nuB1wT6IRanhZkP+VlrRekF490DaSjrxC1uluxYG5sLnk7mFTZdPsR44Q4Dvmw2M77in
YACHV30eRBzLI++bPJmdr7UpHEV5FpZNJ23xHGzDwlVks7wU4vOkHx4y/CcVBc/dLq4+gmF78CEQ
GPZE6lM5+dzQmiDgxrvgu1pPxJnIB721vaLbLmINQjRBvP+LivVRIqqIMADisNS8vmW61QNXeZvo
3MhN+FDtkaVSKKKs+zZYPumUK5FQhxvWXtaMzPcPEAxSTtAWYeXlCmy/F8dyRlecmPVsYGN6b165
Ti/Iubm7aoW8mA3t+T6XhDSUrgCvoeXnkm5OvfPi2RSLXNLrAWygF6UtEOucekq9ve7O/e0iQKtw
OIj1CodqwqsFYMlIBdpTwd5Ed2qz8zw87YC8pjhKKSRf/lk7myV6VmMAZLldpGJ9VzZPrYPvH5JT
oI53V93lYRE9IwCQTDz6o2CTBKOvNfYOao9PSmCnhQVsRqGP9Md246FZV/dxssRuFFxtbUFm3xuT
sdQAw+7Lzzw9IYCpX2Nl/N3gX6T0K/CFcUHUZyX7GrGXrtaZghNB0m6lG5kngOcLqagAMYIC7TCC
AukCAQEwWzBUMRQwEgYDVQQKEwtDQWNlcnQgSW5jLjEeMBwGA1UECxMVaHR0cDovL3d3dy5DQWNl
cnQub3JnMRwwGgYDVQQDExNDQWNlcnQgQ2xhc3MgMyBSb290AgMCOakwDQYJYIZIAWUDBAIDBQCg
ggFjMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEwMTE3MjU1
OFowTwYJKoZIhvcNAQkEMUIEQItu6upfJGFH5siPhGPvgUqlIWAGJhN1o9nins6qfpDk49RRrTd4
rb7JVmAnT7UmEDc09QEHlvSSi40kHgdQDCUwagYJKwYBBAGCNxAEMV0wWzBUMRQwEgYDVQQKEwtD
QWNlcnQgSW5jLjEeMBwGA1UECxMVaHR0cDovL3d3dy5DQWNlcnQub3JnMRwwGgYDVQQDExNDQWNl
cnQgQ2xhc3MgMyBSb290AgMCOakwbAYLKoZIhvcNAQkQAgsxXaBbMFQxFDASBgNVBAoTC0NBY2Vy
dCBJbmMuMR4wHAYDVQQLExVodHRwOi8vd3d3LkNBY2VydC5vcmcxHDAaBgNVBAMTE0NBY2VydCBD
bGFzcyAzIFJvb3QCAwI5qTANBgkqhkiG9w0BAQEFAASCAQCHt2Ha7YxGanb7XEIvoMVppddMcVfg
6n37Utkz7iMSHR1DyNDijNCOEDLtlKxxFPwc8ITKuUZKBcLMasP/Rl3VdGCD2BaND5CN+Nm4azPl
/4yHLxPx64Q652AeArLRcgTnfw4howOH8PAl4+REamtM2CelioCxqavrPdax9z2MMZw6u3MCe/Z4
bxVVkDeUusTUafrF6MITWBvDwk1SRrsSv4WAeEwLhlDErmFBRbG4b47l/5Q5OyUr4fsCTQ/eLmRW
pDHuz3H4nrcq9HkaKdCYPwWk5Sy/pjRiRL0CAD015QEPIpAl81xm3bsHb6tAOyhO+zLU+sF7FARX
fCyMXKJYAAAAAAAA


--=-6uFiERKwPNBZ4rKxP1ZC--


From nobody Thu Jan  1 09:48:32 2015
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 7F1221A1B6C for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:48:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bktAQ7GXfQKl for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 09:48:29 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 0A92F1A0045 for <cfrg@irtf.org>; Thu,  1 Jan 2015 09:48:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420134508; d=isode.com; s=selector; i=@isode.com; bh=1ATT6Uvg/PUIny/Dm/DrF3xeZ2tXLhzgxLUQ2y6A7GE=; 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=uIwqyqfFknbAyg7znFMkqCOdrUc+nHSeMMEzo2EGyM5wjtHeehwadTKdiNq1fSkyCAgiQF K6T79YYt24UDuyDoeYQAHq0rebDMKIRIMlmAXep2Oz6UP9L6LRTfSqhb30GerRLJuUFctl q4Xr8zUb3tzp1y9MSfEHkEdyRXUA5kc=;
Received: from [10.0.0.111] ((unknown) [213.83.78.110])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VKWIaQAKaI=C@waldorf.isode.com>; Thu, 1 Jan 2015 17:48:28 +0000
X-SMTP-Protocol-Errors: NORDNS PIPELINING
From: Alexey Melnikov <alexey.melnikov@isode.com>
X-Mailer: iPad Mail (12B435)
In-Reply-To: <20141231221420.GX24442@localhost>
Date: Thu, 1 Jan 2015 17:52:55 +0000
Message-Id: <EF65C8DD-840B-48AA-8B84-73E8FD809ECA@isode.com>
References: <CAMfhd9V4tnjQL-orjTjX3KS=-XZRn0snAPrVwmP6pZH_20Cfgg@mail.gmail.com> <1420033807.4638.16.camel@scientia.net> <CAMfhd9V5-Y60fGqCDfmCvk9+9bqm0zpm3kSHmR5_mzELZ2K+Dw@mail.gmail.com> <1420042774.10106.10.camel@scientia.net> <CACsn0c=jEXhbUQt7FqZ_KqYQqq0NJsdZow=TEZ2G0te2SUb0RA@mail.gmail.com> <20141231221420.GX24442@localhost>
To: Nico Williams <nico@cryptonector.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/r7WSzTjU64HTzytZHCfrZ5xroyw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] should the CFRG really strive for consensus?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 17:48:30 -0000

Nico,

> On 31 Dec 2014, at 22:14, Nico Williams <nico@cryptonector.com> wrote:
>=20
> Let the IRTF publish one or more documents describing various curves
> suitable for use in Internet protocols.  The IETF can pick from among
> those.

That is not what TLS WG /SEC AD asked for. They would rather CFRG make a cho=
ice that can be used in TLS and other places, instead of letting each IETF W=
G make their own different choice.



From nobody Thu Jan  1 10:01:47 2015
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 BF1021A0252 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 10:01:41 -0800 (PST)
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 FEwujYZC6cGp for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 10:01:40 -0800 (PST)
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 8607E1A024E for <cfrg@irtf.org>; Thu,  1 Jan 2015 10:01:40 -0800 (PST)
Received: from [192.168.1.117] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 5790D3AA43; Thu,  1 Jan 2015 09:59:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420135166; bh=kTb09K1vkxRrf+WA1oBiNOD4H3rVgmGe5uTkT7zCPsM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=feGWcuHxlXxviMph2AgeG+jm8+0FLHBp5VXvo/LbkS7tQoQC+pEB736sMS2CH/MGu xaR5frPRnduwlFBtgreHHQ9jRMrHNvsEKzbljcNiHvpZH9iJXqwE0eP3eGF4Te5eyP hendFGuBxF+MN+9FOtI9EPgOK+IuGQ5BTPOHJuUU=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <1420133158.4562.12.camel@scientia.net>
Date: Thu, 1 Jan 2015 10:01:38 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <6C4A6915-495A-403F-899B-A114375A348F@shiftleft.org>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com> <1420133158.4562.12.camel@scientia.net>
To: Christoph Anton Mitterer <calestyo@scientia.net>
X-Mailer: Apple Mail (2.2064)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/vojbFb4DcgZaWgJiCamUkhoXVqU
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 18:01:41 -0000

> On Jan 1, 2015, at 9:25 AM, Christoph Anton Mitterer =
<calestyo@scientia.net> wrote:
>=20
> On Thu, 2015-01-01 at 10:50 -0500, Watson Ladd wrote:=20
>> Above 255 bits, life gets more interesting. Assuming we want to use
>> X-coordinate Montgomery (sorry Mike) for ECDH and compressed Edwards
>> for sigs, we've got 3 or 4 different proposals for around 380, and 1
>> for 521.

Heh.  My alternative point encoding stuff is just an experiment.

>> -For 521 it's E521 as described on safecurves.cr.yp.to, the prime =
being 2^521-1

> Is this going to be followed up?

Yes, at some point.

> I'd really love so see a trustworthy curve that has an extremely high
> security margin... something like "as long as there are no quantum
> computers and no other break through against the base paradigms is =
found
> - no collected computing power will 'ever' be able to break this"...
> that could be used in fields like OpenPGP... for long-term key =
signing,
> where performance doesn't matter that much.


I agree.  That said, 521 bits is overkill for this.    For a 384-bit =
prime, you already need an amount of energy equal to many stars=E2=80=99 =
outputs over their entire lifetimes.  (The Universal Security paper =
would suggest about a million Sun-like stars, but I don=E2=80=99t recall =
what temperature they=E2=80=99re assuming the computation will take =
place at.)  Even in a science-fiction world where humanity is capable of =
such feats, it will not be worth snuffing stars to break your PGP key.

I consider every prime past 2^256, and certainly every prime past say =
2^320, to be a hedge against limited math breakthroughs and not against =
faster computers.  So it=E2=80=99s really tricky to evaluate where to =
set the security levels.

Cheers,
=E2=80=94 Mike=


From nobody Thu Jan  1 11:03:38 2015
Return-Path: <kurt@roeckx.be>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8C43A1A039C for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 11:03:37 -0800 (PST)
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, 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 DFw-B3W9Fsw5 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 11:03:36 -0800 (PST)
Received: from defiant.e-webshops.eu (defiant.e-webshops.eu [82.146.122.140]) (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 D94DA1A0395 for <cfrg@irtf.org>; Thu,  1 Jan 2015 11:03:35 -0800 (PST)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by defiant.e-webshops.eu (Postfix) with ESMTP id B5D591C2017; Thu,  1 Jan 2015 20:03:33 +0100 (CET)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id D70231FE01E6; Thu,  1 Jan 2015 20:03:32 +0100 (CET)
Date: Thu, 1 Jan 2015 20:03:32 +0100
From: Kurt Roeckx <kurt@roeckx.be>
To: Watson Ladd <watsonbladd@gmail.com>
Message-ID: <20150101190332.GA18703@roeckx.be>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/G0tBooqBH49vnV_fXxs_yZqtwMY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 19:03:37 -0000

On Thu, Jan 01, 2015 at 10:50:49AM -0500, Watson Ladd wrote:
> > - Is there some document with requirements, and maybe a comparison
> >   of how the proposals meet the requirements?
> 
> No. The chairs suggested making one, but then didn't. Part of the
> problem is everyone was gaming the requirements to make their own
> proposals look better.

I think it could be useful to have such a list.  Please note that
not all the requirements are of equal importance, some might be a
MUST and others might be nice to have.  The importance might also
change depending on the use, like TLS, SSH, PGP or X509.  Maybe
we can't agree on those levels, but I think a list a list could
be useful.


Kurt


From nobody Thu Jan  1 11:55:54 2015
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 9D45E1A6FF2 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 11:55:49 -0800 (PST)
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 aS0Qj5gdXrgO for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 11:55:47 -0800 (PST)
Received: from emh04.mail.saunalahti.fi (emh04.mail.saunalahti.fi [62.142.5.110]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 14D5A1A6FED for <cfrg@irtf.org>; Thu,  1 Jan 2015 11:55:46 -0800 (PST)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id 3D6801A2638; Thu,  1 Jan 2015 21:55:44 +0200 (EET)
Date: Thu, 1 Jan 2015 21:55:43 +0200
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Watson Ladd <watsonbladd@gmail.com>
Message-ID: <20150101195543.GA17155@LK-Perkele-VII>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@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/NkqDaS4z7TYDgmRbHEebifIFfBE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Jan 2015 19:55:50 -0000

On Thu, Jan 01, 2015 at 10:50:49AM -0500, Watson Ladd wrote:
> On Thu, Jan 1, 2015 at 9:49 AM, Kurt Roeckx <kurt@roeckx.be> wrote:
> 
> Above 255 bits, life gets more interesting. Assuming we want to use
> X-coordinate Montgomery (sorry Mike) for ECDH and compressed Edwards
> for sigs, we've got 3 or 4 different proposals for around 380, and 1
> for 521.
> 
> -For 521 it's E521 as described on safecurves.cr.yp.to, the prime being 2^521-1
> -2^389-21: I've not calculated the curve yet, but I think Ilari may have
> -2^384-317: the NUMS proposal
> -2^448-2^224-1: Goldilocks, which has extremely fast arithmetic due to
> its shape.

http://www.ietf.org/mail-archive/web/cfrg/current/msg05630.html

> For signatures, NUMS proposes what I've called FrankenECDSA, and they
> call ECDSA (but isn't really): doing ECDSA but with Edwards curves.
> The other proposal is EdDSA, which is a Schnorr signature variant.
> NUMS has been open to an additional signature algorithm, and we can
> use ECDSA on an isomorphic Weierstrass curve if we really want. There
> are some differences over which of the isogenous or isomorphic Edwards
> curve to use, with NUMS using an isogenous one and the current Ed25519
> an isomorphic one.

Then there is ECDSA with Edwards public keys (which could be interpretted
as just another point format):

Replace 'r = x1 mod n'  by  'r = ((Y/X)^2 + (2-4d)/3) mod n' in both
generation and verification and calculate otherwise with Edwards curve.


-Ilari


From nobody Thu Jan  1 12:23:05 2015
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 305E61A1A16 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 12:23:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dyEpmJuX74Mx for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 12:23:00 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B3201A00DF for <cfrg@irtf.org>; Thu,  1 Jan 2015 12:23:00 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 46FC4BEFA; Thu,  1 Jan 2015 20:22:58 +0000 (GMT)
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 rBlETaKmxIqP; Thu,  1 Jan 2015 20:22:56 +0000 (GMT)
Received: from [10.87.48.7] (unknown [86.42.21.122]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id B3E5BBEF8; Thu,  1 Jan 2015 20:22:56 +0000 (GMT)
Message-ID: <54A5ACA0.7040108@cs.tcd.ie>
Date: Thu, 01 Jan 2015 20:22:56 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Christoph Anton Mitterer <calestyo@scientia.net>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <20141231154418.6639764.33790.24403@certicom.com> <D0C9CE59.3B14A%kenny.paterson@rhul.ac.uk> <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com> <1420132477.4562.6.camel@scientia.net>
In-Reply-To: <1420132477.4562.6.camel@scientia.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fZZKBWYpi37s8sZuwxrhcvhuRkw
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 20:23:03 -0000

On 01/01/15 17:14, Christoph Anton Mitterer wrote:
> On Thu, 2015-01-01 at 13:39 +0100, Adam Back wrote: 
>> Seems like on
>> topic and to the point, not spam.
> plus: it seems kinda dangerous to me, if certain topics are more or
> less... well not forbidden, but at least "moderated to silence".
> 
> CFRG should be really open, even if this includes more wood and less
> trees,... trust is very important and if people feel that some
> topics/questions/concerns might have been suppressed, CFRG will have the
> same problems as NIST.

Maybe a little more explanation is warranted then. Dan's mail
accused someone of bad faith by saying that that person did
thing x "in the guise" of doing thing y. That is always
inappropriate no matter what provocation and no matter who
says it. By itself that is sufficient to call out the message
as inappropriate for any IETF or IRTF list. And that is why
I agree with the chairs on this.

For me, it's just about appropriate list behaviour that is
more likely to result in the RG making sound technical choices
in a useful time-frame and is nothing to do with silencing
anyone. Inappropriate list behaviour simply makes it much
harder to get done.

As I said before Dan is by no means the only one who's
strayed beyond what's acceptable on this topic by my
reading. But I hope the group put this behind us all and
move on to at least finish up the work on the 128 bit
work factor key agreement topic in the very near future.

>From my pov I think that work is 99% done and should be easy
to finish up, based on the assumption that there's no
remaining security difference, nor significant performance
difference and there is a reasonable amount of running
code for one set of options. It's that kind of discussion
and not who makes what point for what reason that is
important.

And once that is out of the way then moving on to signatures
and other work factors should be much easier.

So add my voice to those saying: let's just get that part
done now please and where there's no other basis on which
to distinguish, the running code should be fine to go
with.

S.




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


From nobody Thu Jan  1 12:37:44 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 35C361A1A57 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 12:37:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.233
X-Spam-Level: 
X-Spam-Status: No, score=0.233 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id siawd0HMgbPj for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 12:37:40 -0800 (PST)
Received: from homiemail-a35.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 64EA81A1A56 for <cfrg@irtf.org>; Thu,  1 Jan 2015 12:37:40 -0800 (PST)
Received: from homiemail-a35.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a35.g.dreamhost.com (Postfix) with ESMTP id F3A6F54073; Thu,  1 Jan 2015 12:37:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=0IAbHMCeSYadsS YuBU9AvueVVFI=; b=HakKlTxMtGJXW/4RO58LDyC45qsTfb/jTIkU/34pPQQrad tPFpaYUhcM3NzAGQLLKK4kwkHGM4SxoAW1+kXZRUPJr6ATWDlJd4QyAe1rg5Y6Z6 4VvLcumb98fQ1F8h9lIzuRAy2ci4MN43GB+5RbJhUKGlNYwFFP44ZmgpO4OpA=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a35.g.dreamhost.com (Postfix) with ESMTPA id 902B354058; Thu,  1 Jan 2015 12:37:39 -0800 (PST)
Date: Thu, 1 Jan 2015 14:37:39 -0600
From: Nico Williams <nico@cryptonector.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <20150101203734.GF24442@localhost>
References: <CAMfhd9V4tnjQL-orjTjX3KS=-XZRn0snAPrVwmP6pZH_20Cfgg@mail.gmail.com> <1420033807.4638.16.camel@scientia.net> <CAMfhd9V5-Y60fGqCDfmCvk9+9bqm0zpm3kSHmR5_mzELZ2K+Dw@mail.gmail.com> <1420042774.10106.10.camel@scientia.net> <CACsn0c=jEXhbUQt7FqZ_KqYQqq0NJsdZow=TEZ2G0te2SUb0RA@mail.gmail.com> <20141231221420.GX24442@localhost> <EF65C8DD-840B-48AA-8B84-73E8FD809ECA@isode.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <EF65C8DD-840B-48AA-8B84-73E8FD809ECA@isode.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hME9ikr1VqvWjdbebmryKC-UHgg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, ietf@ietf.org, tls@ietf.org
Subject: [Cfrg] Reconsider TLS/CFRG relationship (Re: should the CFRG really strive for consensus?)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tls@ietf.org
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 20:37:41 -0000

[Reply-To set to tls@ietf.org.]

On Thu, Jan 01, 2015 at 05:52:55PM +0000, Alexey Melnikov wrote:
> > On 31 Dec 2014, at 22:14, Nico Williams <nico@cryptonector.com> wrote:

[Elided here is a sub-thread about how much trouble CFRG has had making
decisions, and how unsuited they are to the task.  These were opinions
stated by others.  My response was that if CFRG can't choose, that's
fine, let CFRG do what it's good at (cryptology), and let the IETF do
what it's good at (engineering).

For the benefit of ietf@ietf.org readers, the context is that CFRG was
tasked with producing recommendations for the TLS WG, but CFRG seems
mired in debate about them.  From my point of view the risk is that the
logjam won't soon be broken.]

> > Let the IRTF publish one or more documents describing various curves
> > suitable for use in Internet protocols.  The IETF can pick from among
> > those.
> 
> That is not what TLS WG /SEC AD asked for. They would rather CFRG make
> a choice that can be used in TLS and other places, instead of letting
> each IETF WG make their own different choice.

We may have to reconsider this then.

If it is really true that CFRG is not adept at making choices, then let
the cryptologists document algorithms (including their cryptographic
attributes, pros, cons, cryptanalysis, general performance analysis,
security considerations, and an overall assessment), and let the
engineers pick from among them.  I.e., what we've always done at the
IETF.

This might require some process (a call for consensus in the TLS WG?),
but once done CFRG will be freed to do what it's good at, and to do it
more quickly because there will be no more lengthy arguments about what
to choose.  Authors will publish I-Ds, reviewers will review them, and
barring any serious problems, CFRG will progress those I-Ds.  The TLS
(and other) WGs can then choose what they like.

I don't mean to start a debate about this _now_.  Rather, now is the
time point out that we may have to have this debate, possibly before the
next time we ask the IRTF for recommendations.

Nico
-- 


From nobody Thu Jan  1 14:00:38 2015
Return-Path: <alangley@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 522121A1B00 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 14:00:35 -0800 (PST)
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 wK9_tVfzuujU for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 14:00:31 -0800 (PST)
Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 629381A1ADB for <cfrg@irtf.org>; Thu,  1 Jan 2015 14:00:30 -0800 (PST)
Received: by mail-lb0-f176.google.com with SMTP id p9so14343146lbv.21 for <cfrg@irtf.org>; Thu, 01 Jan 2015 14:00:28 -0800 (PST)
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=TrbYhFruNBf0e/+HF0wqLiFYu+IJH4X/ktKDU5ngFpo=; b=TPENw4Ac+HpvLwwHmuQUmqcoh2retnyovYFrSppHmty7WjB/q7PpVbKjN0IihGYlek GkUuyWFEQCiNphwhetzaQF5oDL+fzTqRJmVs2fKBhL6dXFFKFP69I3s1CgKMTv1PNtYU 6jfiV9ixCmepEoOExL5rmzoRu/br/Xu0WsmYXqisWEPAko5lmv0MLjBRxfinxFTRwnim RHY6+tbhm/4EGg84n7kCrraBq8K6sqPDhHOPQDkNYzp0whd2ibEuFFr/KykpIDj7Y4HJ NIL1CGe1PqHYWdPaokEtWT2L099xVfYxLhpwZN2lJ5+cIJ6nLOjIvFOjmtyA45DbZqOf XgdA==
MIME-Version: 1.0
X-Received: by 10.152.27.228 with SMTP id w4mr73190149lag.75.1420149628554; Thu, 01 Jan 2015 14:00:28 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Thu, 1 Jan 2015 14:00:28 -0800 (PST)
Date: Thu, 1 Jan 2015 14:00:28 -0800
X-Google-Sender-Auth: vemlLrVPM5qgQC13tV05XZ9HHqQ
Message-ID: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/8e2ujcxuRG0FawQiDF7xZ5ijXqQ
Subject: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 22:00:35 -0000

Since everyone is agreed to within an isogeny of curve25519 at ~128
bits, and since there's no performance reason to pick one isogeny over
another (see my mail from yesterday), I've created an outline for what
currently appears (to me) to be the only way that we might reach
agreement.

It takes the generation procedure from draft-black-rpgecc-01,
generates the resulting curve with p=2^255-19 and then ends up with
curve25519 by pointing out that there's no difference in security
between isogenies and motivates it by compatibility with existing
practice.

Then it includes draft-turner-thecurve25519function in order to nail
down the wire-format and describe how to perform ECDH.

The resulting agglomeration is at
https://cdn.rawgit.com/agl/cfrgcurve/master/cfrgcurve.xml (requires
XSLT support in the browser) and https://github.com/agl/cfrgcurve.
(Although, until there's clarity on whether the outline is viable, the
details in the draft are unimportant.)

I have not listed the authors of the two source documents as authors
yet because that might suggest that they support the result. Instead
I've made the sources clear in section 1.

It does not suggest a signature scheme, despite several people
suggesting that it would be required in recent days, because I don't
think that we're at that point yet.


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Thu Jan  1 15:31:43 2015
Return-Path: <alangley@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 81EF31A1B14 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 15:31:42 -0800 (PST)
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 zTFCpJ0KpEQI for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 15:31:41 -0800 (PST)
Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F3E921A1B0C for <cfrg@irtf.org>; Thu,  1 Jan 2015 15:31:40 -0800 (PST)
Received: by mail-lb0-f181.google.com with SMTP id l4so14889036lbv.12 for <cfrg@irtf.org>; Thu, 01 Jan 2015 15:31:39 -0800 (PST)
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:content-type; bh=V9dpZPO+QVvkiBZ3q19leTZ++2nzlKA4anCh04YEwM0=; b=cq6/rejOIgj4zhx73dlzku97IWSn7dAghj5uEPatbxbPohWE4rvvPPqvS42/kES2uB g6c+mthyGl6Az/VSgmOUQaDhfZVv3uPiOL2mw/R1FnzsCOQZZKr/dzWwzLywAUjzKmHE xh8GnYmGIHUIdfuu62WeyUJSSgR/Rm8kMbbp8CwCB8oo4/wWko70P3ofvMVt3gSIDSbv C4fzd8fEZFcrDt7hdJrTVVjI/sbr/jP2oyp9cpVnoyyevugmlKCCnTrJ3kt0QP6lJQ6+ ItT6OpGn40VChnz/iVfH43ZTPi3MKCudZhGcwwQC8AttkaUcTkTwxur/raeSpkgrUy52 9GZg==
MIME-Version: 1.0
X-Received: by 10.112.131.1 with SMTP id oi1mr72010634lbb.2.1420155099308; Thu, 01 Jan 2015 15:31:39 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Thu, 1 Jan 2015 15:31:39 -0800 (PST)
In-Reply-To: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
Date: Thu, 1 Jan 2015 15:31:39 -0800
X-Google-Sender-Auth: Hg4-ILg4uj8INWW6-LcC-XxnC28
Message-ID: <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/XqJeNyNh9-gLxDM4B8gUJ3-WIKA
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Jan 2015 23:31:42 -0000

On Thu, Jan 1, 2015 at 2:00 PM, Adam Langley <agl@imperialviolet.org> wrote:
> The resulting agglomeration is at
> https://cdn.rawgit.com/agl/cfrgcurve/master/cfrgcurve.xml (requires
> XSLT support in the browser)

Tanja points out that that I had 2^255-19 as 3 mod 4. Getting rawgit
to serve XSLT and sorting out the caching is a real pain, so forget
that link and use
https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml instead. (Still
uses XSLT support in the browser.)


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Thu Jan  1 16:08:13 2015
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 8C5821A802A for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 16:08:11 -0800 (PST)
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 dEKNBf-r-rBl for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 16:08:09 -0800 (PST)
Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 842431A1B11 for <cfrg@irtf.org>; Thu,  1 Jan 2015 16:08:09 -0800 (PST)
Received: by mail-yk0-f172.google.com with SMTP id 131so8502159ykp.17 for <cfrg@irtf.org>; Thu, 01 Jan 2015 16:08:08 -0800 (PST)
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=IHQxPyYKqSo2Ma223zUC1ekzBeiAxecwU9BRLR8uDhU=; b=HZQX0egOhntZcvTLPsqTw5WelU0LGDluo2IaW1xRXmmcRK4cKqlYcCcXxYYH/OW+Zd jZLWjujhzoU3TVA4LO3BLrTCpSeH/nLdmWjDOGPPm73XD/J3xE3stBMx0Sm713rb0mNX 5MbvzTSL/393kjx6lsRMykfg2IPlYKT6rFd7+f5S77Gab53l71UGCaxhI/qooqlu/tii lPUp1W62baUGgEtFN19UVncgWuQf9OQoCRu1OvFwRVpX0khtqyR/eYhUMGntv0OhytE9 C7Gl+OXXHR73YltxxjmdlLosxVmihidcbvb58UBipyy4l+AD0XFyUSxavWv7rVBTdUyo rmFw==
MIME-Version: 1.0
X-Received: by 10.236.229.168 with SMTP id h38mr5640742yhq.172.1420157288657;  Thu, 01 Jan 2015 16:08:08 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Thu, 1 Jan 2015 16:08:08 -0800 (PST)
In-Reply-To: <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com> <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com>
Date: Thu, 1 Jan 2015 19:08:08 -0500
Message-ID: <CACsn0c=GVLh3vYm=dxW=FKKx3Zd=5L6qdh8m_xzjZpb+mk9+0w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Adam Langley <agl@imperialviolet.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/BSLSg_9UJN7cJeRN6JfhtA7zyj8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 00:08:11 -0000

On Thu, Jan 1, 2015 at 6:31 PM, Adam Langley <agl@imperialviolet.org> wrote:
> On Thu, Jan 1, 2015 at 2:00 PM, Adam Langley <agl@imperialviolet.org> wrote:
>> The resulting agglomeration is at
>> https://cdn.rawgit.com/agl/cfrgcurve/master/cfrgcurve.xml (requires
>> XSLT support in the browser)
>
> Tanja points out that that I had 2^255-19 as 3 mod 4. Getting rawgit
> to serve XSLT and sorting out the caching is a real pain, so forget
> that link and use
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml instead. (Still
> uses XSLT support in the browser.)

Is it just me, or is this the draft I uploaded a couple weeks ago,
plus typos, and a section about an algorithm that gets used only to
have its result ignored? Should cat be a coauthor?

This is especially true when discussing the Edwards form at all, given
that we are talking about ECDH with the equivalent Montgomery form. If
we're going to use the NUMS generation algorithm (and we might as
well: it's what we've been doing all along now) over other primes,
then we should discuss the relation between the Edwards form and
Montgomery form, as otherwise the reader has no idea where the magic
numbers are coming from, or even why we are discussing Edwards form,
given that the presented algorithms don't use it.

I can't speak for my coauthors, but the above issues seem surmountable
with a bit of editing, and would give us a document that's easy to
extend when we select the higher strength prime.

Sincerely,
Watson

>
>
> Cheers
>
> AGL
>
> --
> Adam Langley agl@imperialviolet.org https://www.imperialviolet.org
>
> _______________________________________________
> 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 Jan  1 16:51:23 2015
Return-Path: <alangley@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 C7E3B1A8033 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 16:51:21 -0800 (PST)
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 pa-3WzQ1YnVD for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 16:51:20 -0800 (PST)
Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 197721A8032 for <cfrg@irtf.org>; Thu,  1 Jan 2015 16:51:20 -0800 (PST)
Received: by mail-la0-f51.google.com with SMTP id ms9so14895183lab.24 for <cfrg@irtf.org>; Thu, 01 Jan 2015 16:51:18 -0800 (PST)
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=32yxfjdBShWAopYrwmPd/oex5OddajwHrKAWENu9LpA=; b=maXQVrDPKR0c7AE5C8yM0KjzrdlrLPsYDsVjpUicn4qm+MyTnzbwuuxSv5fFTGSCt6 NRC1idEdiGjZ5n8NNJasmT8itug77rdBb69QExTmTJ4lahBJFzW9zu9YhhDwpEKVpTDj nfNMvuK7KaYYX0l6Gd5z+XGP7zNmwIsS5eskbOvOirp4OpLR7dLfPYOtClO4EoZIOz3G QoSJMwxEecfdJBLMCbhtJpDnwiObuZkU0aItkLFQgeDT1TKejfTqO5P/ycs4E+dE/J9x HTT8V8OMxwIe22MBe5jHkIkM4shFP84DMELdRKQQY3GLR6TWr1rekNvFimzE2MWMY09T oPEg==
MIME-Version: 1.0
X-Received: by 10.112.125.202 with SMTP id ms10mr36225304lbb.33.1420159878376;  Thu, 01 Jan 2015 16:51:18 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Thu, 1 Jan 2015 16:51:18 -0800 (PST)
In-Reply-To: <CACsn0c=GVLh3vYm=dxW=FKKx3Zd=5L6qdh8m_xzjZpb+mk9+0w@mail.gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com> <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com> <CACsn0c=GVLh3vYm=dxW=FKKx3Zd=5L6qdh8m_xzjZpb+mk9+0w@mail.gmail.com>
Date: Thu, 1 Jan 2015 16:51:18 -0800
X-Google-Sender-Auth: es_lzgYWMkfAd-_16kNZhY7FsPA
Message-ID: <CAMfhd9XJiatX7KoXmYbgoMPkyEV=kprEhZGW33wGZHZ4XbUX7w@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/OV_rFrKtzn0e4C7r_gmzLmH9RUs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 00:51:22 -0000

On Thu, Jan 1, 2015 at 4:08 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> Is it just me, or is this the draft I uploaded a couple weeks ago,
> plus typos, and a section about an algorithm that gets used only to
> have its result ignored?

Is "the draft I uploaded a couple weeks ago" referring to
draft-turner-thecurve25519function-01? If so, then somewhat yes. (The
only other draft I see from you is draft-ladd-spake2 but it's quite
possible that I've missed something in all the recent emails.)

However, I don't agree that the algorithm is simply ignored. It's
clearly important to some that the generation algorithm be explicit
and transparent. Yes, it's odd that at the end we have to do an
arbitrary isogeny but I think the motivation for that is clear and
it's a "safe" step (i.e. we can't have hidden anything dodgy in there
to my knowledge.)

The algorithm could be written to reflect how curve25519 was
developed: i.e. that it output a Montgomery curve and then the twisted
Edwards is the obvious isomorphism from there (if needed). That might
well be clearer if we don't recommend any other curves.

But dealing with Edwards curves and having the algorithm generate them
makes it easier if we recommend another, or in the optimistic scenario
that we also end up specifying a signature scheme.

As far as making the wording clearer: lots of rewriting is called for
*if* this draft isn't dead-on-arrival.

(As an aside: does the existing algorithm output Curve41417,
Goldilocks or E-521 when given the corresponding prime? I suspect not
for Curve41417 since the curve/twist cofactors are {8,8} not {4,4}.
Goldilocks might work though.)

> Should cat be a coauthor?

If there's anyone I've left out, I'll add them immediately. And if
anyone wants to move from the "credit" section to the list of authors
I'll do that too. (The reason for not listing people as authors is in
section 1.)


Cheers

AGL


From nobody Thu Jan  1 17:16:44 2015
Return-Path: <alangley@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 E45C81A86E9 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 17:16:37 -0800 (PST)
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 9aI2LjWFU1XV for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 17:16:35 -0800 (PST)
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 A08991A86E6 for <cfrg@irtf.org>; Thu,  1 Jan 2015 17:16:34 -0800 (PST)
Received: by mail-lb0-f175.google.com with SMTP id z11so6629493lbi.6 for <cfrg@irtf.org>; Thu, 01 Jan 2015 17:16:33 -0800 (PST)
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=UdOaMwxdBh70GW3rwI0nMSIC0vRB2TTFmX4iZNvvCzs=; b=WYMpbQTfC4k4WVo83lsv1QOiT9A6TFEATCl50ssau/TM7vzFCanTyzBct3N5C8YlYq to7M4Tr+EIdBvMFJdxB5yptmTj675x5+r87yI2m17o2o/R/Up6bwLkuOna1fqyG4U23Z bLU2n4AUn2nJMRP4wa07b0RnfUH1NvwqOodSQnjP2IaC5l1B3jDLRf09sb+/FJZUrSil 3soqX66k6klLPBZIebOdyWkXdKBr6LfvdCb4OyTgQ7YeXfQ98MqQKLw9UZirk9MlmGhx 392OJzqef2Zw0WUgd1e7btnDMm5cx4vSNvhPsle0CidOiJsG7geWL8M9maltAaubY8iS NwBg==
MIME-Version: 1.0
X-Received: by 10.112.52.229 with SMTP id w5mr60926508lbo.52.1420161393062; Thu, 01 Jan 2015 17:16:33 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Thu, 1 Jan 2015 17:16:33 -0800 (PST)
In-Reply-To: <CAMfhd9XJiatX7KoXmYbgoMPkyEV=kprEhZGW33wGZHZ4XbUX7w@mail.gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com> <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com> <CACsn0c=GVLh3vYm=dxW=FKKx3Zd=5L6qdh8m_xzjZpb+mk9+0w@mail.gmail.com> <CAMfhd9XJiatX7KoXmYbgoMPkyEV=kprEhZGW33wGZHZ4XbUX7w@mail.gmail.com>
Date: Thu, 1 Jan 2015 17:16:33 -0800
X-Google-Sender-Auth: HfOd9kvUrIJe-902njQpV_EGsgE
Message-ID: <CAMfhd9XxD0vApwjZBq6V9ZmgefEfEYN8y+g_soRa6t2XaEajzQ@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/yNJ7XR6EymQ__LpG9hZo8S-Zedk
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 01:16:38 -0000

On Thu, Jan 1, 2015 at 4:51 PM, Adam Langley <agl@imperialviolet.org> wrote:
> However, I don't agree that the algorithm is simply ignored. It's
> clearly important to some that the generation algorithm be explicit
> and transparent. Yes, it's odd that at the end we have to do an
> arbitrary isogeny but I think the motivation for that is clear and
> it's a "safe" step (i.e. we can't have hidden anything dodgy in there
> to my knowledge.)
>
> The algorithm could be written to reflect how curve25519 was
> developed: i.e. that it output a Montgomery curve and then the twisted
> Edwards is the obvious isomorphism from there (if needed). That might
> well be clearer if we don't recommend any other curves.
>
> But dealing with Edwards curves and having the algorithm generate them
> makes it easier if we recommend another, or in the optimistic scenario
> that we also end up specifying a signature scheme.

I think I've fallen into the "details" trap in that reply.

However the generation is structured to make it most clear, and
whether or not we mention (twisted) Edwards curves, I think that the
important point is this:

Unless the chairs believe, and state within weeks, that we can move
forward with something shaped like this draft (whether it's based on
it or not) then I don't think that this RG will be able to recommend
any specific curves. I don't think anything will be more generally
agreeable.

If we can't recommend curves then the best that we might be able to do
is to put out a document that states the requirements for safe
elliptic curves and mentions that curve25519, curve25519-isogeny,
41417, Goldilocks, E-521, etc are all fine, cryptographically. Then
other WGs will have to do the picking.


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Thu Jan  1 18:17:29 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F08F1A8709 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 18:17:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.647
X-Spam-Level: 
X-Spam-Status: No, score=-3.647 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8UmF1oC6G7tp for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 18:17:25 -0800 (PST)
Received: from proper.com (Hoffman.Proper.COM [207.182.41.81]) (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 9B7BF1A8708 for <cfrg@irtf.org>; Thu,  1 Jan 2015 18:17:23 -0800 (PST)
Received: from [10.20.30.90] (50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91]) (authenticated bits=0) by proper.com (8.14.9/8.14.7) with ESMTP id t022HJw7064835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Jan 2015 19:17:20 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
Date: Thu, 1 Jan 2015 18:17:19 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <3182E341-130D-45D7-B05C-EB26297B077C@vpnc.org>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
To: Adam Langley <agl@imperialviolet.org>
X-Mailer: Apple Mail (2.1993)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/0vgdP80JllaztsjaA98wJz6Ixkw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] Wanting a signature scheme, not needing it right now
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 02:17:27 -0000

On Jan 1, 2015, at 2:00 PM, Adam Langley <agl@imperialviolet.org> wrote:
> It does not suggest a signature scheme, despite several people
> suggesting that it would be required in recent days, because I don't
> think that we're at that point yet.

I was one of those folks, and a few folks off-list walked me through why =
I was incorrect when I said it was needed for TLS. I want a signature =
scheme for EC, and I would prefer that it have better operational =
security properties than ECDSA. If we can get agreement on that soon, =
great, but if not, it should not deter CFRG from giving the TLS WG a =
128-strength solution.

--Paul Hoffman=


From nobody Thu Jan  1 19:12:31 2015
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 B14521A1B23 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 19:12:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.502
X-Spam-Level: ***
X-Spam-Status: No, score=3.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DATE_IN_FUTURE_06_12=1.947, 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 SSdA6i4-CgQI for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 19:12:29 -0800 (PST)
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 D3FEA1A1B22 for <cfrg@irtf.org>; Thu,  1 Jan 2015 19:12:29 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 6D9223AA43; Thu,  1 Jan 2015 19:10:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420168213; bh=1hxFGxLTfUYtn1d7DCC0HTzVWJaDdSKTMvsmrWnFxso=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=E/jKXQ+2C5dNgw9A8MLjcflFgujVt7Va42hEPA+Ic/Awz7Jf/pnAokJBb6NVHFeGh 7n83V7/uor2UjfJYk1nNm4BjRhrKRWV1daN6RI8SZwEWoe+dkdXMemOaaHDJfZg+y6 kRsFL/6A+pTp7GYrkKv3YiQk2xiwqVBVv/23wiFE=
Message-ID: <54A67D1B.50804@shiftleft.org>
Date: Fri, 02 Jan 2015 03:12:27 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Adam Langley <agl@imperialviolet.org>, Watson Ladd <watsonbladd@gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com> <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com> <CACsn0c=GVLh3vYm=dxW=FKKx3Zd=5L6qdh8m_xzjZpb+mk9+0w@mail.gmail.com> <CAMfhd9XJiatX7KoXmYbgoMPkyEV=kprEhZGW33wGZHZ4XbUX7w@mail.gmail.com>
In-Reply-To: <CAMfhd9XJiatX7KoXmYbgoMPkyEV=kprEhZGW33wGZHZ4XbUX7w@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/IEfIPvuyVLScEZ4TxrDyNpYbWvs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 03:12:30 -0000

On 1/1/2015 4:51 PM, Adam Langley wrote:
> (As an aside: does the existing algorithm output Curve41417, 
> Goldilocks or E-521 when given the corresponding prime? I suspect not 
> for Curve41417 since the curve/twist cofactors are {8,8} not {4,4}. 
> Goldilocks might work though.)
I believe that Goldilocks and E-521 come out of this procedure; the 
twist of Ridinghood comes out (because I restricted my parameters to #E 
< #E'); and Curve41417 does not come out because it has cofactor 8.  
These all have different generators from the Safecurves site, but that 
doesn't really matter because nobody has deployed implementations AFAIK.

Section 6.1 is fine in terms of "let's be clear that this is the 
simplest safe thing".  But you may want to switch the conditions for 
clarity/simplicity/speed.  In particular, I think only negative d can 
come out of 6.1.  Also cofactor 4 and twist cofactor 4 imply d nonsquare 
and 1-d nonsquare, so you can remove the one condition or add the other 
if you want.

Happy 2015,
-- Mike


From nobody Thu Jan  1 20:38:32 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F7AF1A871D for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 20:38:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K1_MCqS3gX8X for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 20:38:29 -0800 (PST)
Received: from homiemail-a25.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id AAA4D1A871C for <cfrg@irtf.org>; Thu,  1 Jan 2015 20:38:29 -0800 (PST)
Received: from homiemail-a25.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTP id 307D1678062; Thu,  1 Jan 2015 20:38:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=a3m5U0/uHg19nx UEUajGWnR0BPQ=; b=MZ4E67BVJFxBauRoZoziKx1sXisrgt/kFR3IoBphl0Z5Au mAYngMbhqrML4U1vYQlrF2/a0M7eQdH5JFHVlo7oGJqZp4qd4FiHNA7DRHnFTG2b nTDSnbnZwZzHJf1X4xkKUvryhAvmoJRLCp0C7+UVEOgk8BKqddwor7/SspL/M=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTPA id A920A678058; Thu,  1 Jan 2015 20:38:28 -0800 (PST)
Date: Thu, 1 Jan 2015 22:38:28 -0600
From: Nico Williams <nico@cryptonector.com>
To: Watson Ladd <watsonbladd@gmail.com>
Message-ID: <20150102043824.GQ24442@localhost>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/zDIeCgbY_8lIJUXq9HCjip33bH4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2015 04:38:30 -0000

On Thu, Jan 01, 2015 at 10:50:49AM -0500, Watson Ladd wrote:
> On Thu, Jan 1, 2015 at 9:49 AM, Kurt Roeckx <kurt@roeckx.be> wrote:
> > - What are the various proposals?  The IETF datatracker doesn't
> >   seem to known all proposals, and I think there are proposals
> >   that just don't have a document yet.
> 
> Good question: the answer is that at the 255 bit level, for ECDH the
> current proposals are both Curve25519. But one uses the same basepoint
> as existing code, and the other doesn't. This difference doesn't
> affect security in any way. It's the only difference.

If it's the only difference then picking Curve25519's generator is the
obvious way to go, since changing it would be a gratuitous change and
Curve25519 has seen wide deployment.

Nico
-- 


From nobody Fri Jan  2 04:04:27 2015
Return-Path: <brian@briansmith.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60C4F1A1A22 for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 04:04:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uKw9lwRt2VbX for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 04:04:14 -0800 (PST)
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C2A661A1A04 for <cfrg@irtf.org>; Fri,  2 Jan 2015 04:04:13 -0800 (PST)
Received: by mail-ob0-f173.google.com with SMTP id uy5so53061554obc.4 for <cfrg@irtf.org>; Fri, 02 Jan 2015 04:04:13 -0800 (PST)
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=JSX4mps4f/6Nt2bAAbMb6JlbWWPLbI2oz44l2AIJKzw=; b=gFH2crwdnqqBRK+e0Y78qM4D9wZOwJ8l2kD9OJKlQ+3OZavUklO2nGg3aG5JNNGeIR 5Lf+acjfQ7tctOdudEggbpewDXxpNQiKNtF6xQ7dD++TSJNZ5cX5v0/YDA1EIQr0t0C4 lfZUSwBUsTxKYac7ClusFr7utFifItkPcsQFMOtzN9J281lOGRakh8UW6NTimZ8xv2ri e2b6g4a8Ft5A3g/gZAov/GwX/95NvVVtuhnlvO2pZ1WXxBWvfkwT6NnCu5fV5gMEFkiH fXGICYI9vmA5F7fX1znVedzyusTZ9SryyEzTLNhA0hDfBcZEQAb/Z0IZFcTBveSZUdN9 5CwA==
X-Gm-Message-State: ALoCoQkvJIofpS+KEY9kFSwGvR+Yb4JmOamI99gkBURdkHurt+ojmf8iX6ecF2U8DDiwbvrVBv/q
MIME-Version: 1.0
X-Received: by 10.182.236.104 with SMTP id ut8mr17736467obc.11.1420200252874;  Fri, 02 Jan 2015 04:04:12 -0800 (PST)
Received: by 10.76.71.228 with HTTP; Fri, 2 Jan 2015 04:04:12 -0800 (PST)
In-Reply-To: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
Date: Fri, 2 Jan 2015 04:04:12 -0800
Message-ID: <CAFewVt6ENmrUL==0Rndfh7hvVyPcRGTODxsGHdeksfJih0HMDQ@mail.gmail.com>
From: Brian Smith <brian@briansmith.org>
To: Adam Langley <agl@imperialviolet.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/cbyjqLW-sMMXkibkLFZBFES3wP0
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 12:04:18 -0000

Adam Langley <agl@imperialviolet.org> wrote:
> I've created an outline for what currently appears (to me) to
> be the only way that we might reach agreement.

As far as Curve25519 is concerned, whether or not agreement is reached
within CFRG seems to not matter any more, because Curve25519 is
already clearly the choice at the 128-bit security level, and it is
also now the default choice if no agreement is reached. It's already
implemented and documented elsewhere so no new CFRG document is even
really needed for it, though it would be nice to have one.

It isn't clear that it is best to restrict the choices in the stronger
security levels to the generation procedure in this document. More
importantly, that isn't something that needs to be decided before
everybody can move forward with Curve25519.

There are a lot of people that don't care much about the curves
stronger than Curve25519 and who don't intend to implement them. The
problem with your suggested approach is that all these people are
likely to join in support of this document in order to ensure
Curve25519 move forward, causing the people that *do* care about the
higher-security curves to get steamrolled, even if they have a
stronger case. In other words, politics would trump technical
arguments. That's bad.

Consequently, CFRG should wrap up the process for Curve25519, and
separately decide what to do at the higher security levels. This would
more likely ensure that the better technical choices are made at the
higher security levels. This makes sense because the urgency for
Curve25519 is notably higher than the urgency for the other security
levels.

It does seem reasonable to say that, before a curve that doesn't
result from the generation procedures is chosen at a higher security
level, there should be a clear, strong justification for that choice.
But, I don't think we should exclude the possibility of such a strong
justification existing for some curve(s). Further, I don't think we
should exclude the possibility of the generation procedure being
tweaked again, like when it was tweaked to make Curve25519 fit.

Cheers,
Brian


From nobody Fri Jan  2 07:43:33 2015
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 EEA2F1A87B1 for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 07:43:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, J_CHICKENPOX_42=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9HdtdE82KX6S for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 07:43:30 -0800 (PST)
Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A87071A8795 for <cfrg@irtf.org>; Fri,  2 Jan 2015 07:43:30 -0800 (PST)
Received: by mail-yk0-f180.google.com with SMTP id 9so8774930ykp.25 for <cfrg@irtf.org>; Fri, 02 Jan 2015 07:43:29 -0800 (PST)
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=aTRUU9hYYezpY9XHFJSS8mq/JrD5zrsTUCH2cY5tVeI=; b=K8gr8pNiAiIE/OE9A+JXDF54QGcv8KHkCau2LkFg4w9pReicQ6rgBv63IhT+3HmrwY RwYDgU2ccceBW86u7ZC5twBdAlpt0b5ptp5MUNtXr2E/J/S9yKRCfxO7OF5jtz27UhTk AiDYNBX19bX549ABr4uUf8coNkPjPnAbCpg+IZCcCVCn1GuqFQkPKIC30U4yi3OMeZQY 7UMqU6/c6N0KfW72aHpm0ASph22LQzZZxDFzKkrmiwKXlyRBN//jdj5H4ZB6wxdUvC+2 tgD20X2kL8dx+zoOkficNwH92AAC8MlrsouPGfy9hxVUcTdoMDsCkus1Mq8+zrwlJEm/ 3Ipw==
MIME-Version: 1.0
X-Received: by 10.170.220.195 with SMTP id m186mr23085192ykf.58.1420213409709;  Fri, 02 Jan 2015 07:43:29 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Fri, 2 Jan 2015 07:43:29 -0800 (PST)
In-Reply-To: <20150101190332.GA18703@roeckx.be>
References: <20150101144926.GA4784@roeckx.be> <CACsn0ckip8ZK=wYEAPJGAxwxBEBkXkSJQi9uPZQ7dmXPo77bGQ@mail.gmail.com> <20150101190332.GA18703@roeckx.be>
Date: Fri, 2 Jan 2015 10:43:29 -0500
Message-ID: <CACsn0cnkA_wxkscMeZZRJKpGH7+H6LH7aKbsZuBdgVR_G4E5PQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Kurt Roeckx <kurt@roeckx.be>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/diiv5lqy5tgjrjFBn0OCOg4MaXo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Summary
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2015 15:43:32 -0000

On Thu, Jan 1, 2015 at 2:03 PM, Kurt Roeckx <kurt@roeckx.be> wrote:
> On Thu, Jan 01, 2015 at 10:50:49AM -0500, Watson Ladd wrote:
>> > - Is there some document with requirements, and maybe a comparison
>> >   of how the proposals meet the requirements?
>>
>> No. The chairs suggested making one, but then didn't. Part of the
>> problem is everyone was gaming the requirements to make their own
>> proposals look better.
>
> I think it could be useful to have such a list.  Please note that
> not all the requirements are of equal importance, some might be a
> MUST and others might be nice to have.  The importance might also
> change depending on the use, like TLS, SSH, PGP or X509.  Maybe
> we can't agree on those levels, but I think a list a list could
> be useful.

We tried that exercise. The problem is that all these protocols use
only two things: signatures and ECDH (okay, ECIES, but that's ECDH+an
AEAD mode), and use separate keys for each. Even if they didn't, this
wouldn't in any way lead to a restriction on which primes to use, and
certainly wouldn't solve the problem of which generator to use.

If you go beyond this to consider implementations, then it turns out
that people actually want to change their implementations and
protocols to take advantage of better cryptography. The original NUMS
proposal had a rather ugly way to stuff the results in existing point
formats, but I don't remember much implementor enthusiasm for doing
that, and TLS 1.3 is being redesigned to accommodate non-Weierstrass
curves. (Why they need to wait for us, I can't remember: perfectly
possible to say "bytes go here") Brainpool wanted to use random primes
because of the details of their smartcards, but their claims that this
was necessary for side-channel security were wrong: extra performance
lets you do more blinding. Certainly now with NUMS being changed to
use the same formats as the alternative proposal, it's a moot point.

Had we dinged the NUMS proposal for the reasons it eventually was
modified, then yes, we would have solved a good deal of our problems.
But the current bikeshedding wasn't the issue we were originally faced
with, which were two or three rather different proposals. There's a
temptation, which I've indulged in, to think of ways we could have
done things differently: most crypto competitions don't have these
issues, for instance. But it's not really helpful with where we stand
now.

Sincerely,
Watson Ladd

>
>
> Kurt
>



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


From david.rufino@gmail.com  Thu Jan  1 19:05:18 2015
Return-Path: <david.rufino@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 37B421A8711 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 19:05:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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, 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 JQ5KkJHhg1tp for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 19:05:16 -0800 (PST)
Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 766F71A8710 for <cfrg@ietfa.amsl.com>; Thu,  1 Jan 2015 19:05:16 -0800 (PST)
Received: by mail-vc0-f181.google.com with SMTP id le20so6962537vcb.12 for <cfrg@ietfa.amsl.com>; Thu, 01 Jan 2015 19:05:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:cc:content-type;  bh=t0udxBFE3SO9vPYVvZQlqzgJTy0B/EPJTdkhEh1wL94=; b=zq4Jchk8PaXhtCCDtnhF7Cjj6C5jdDPsO45JPXNTywQ8+i3HmoEC1fzODH0dzb8OvC f+qyzltM6zs6Ux7m1nbwxPfASMLrm4ChPcDKS0aHWfLj328WHLKRoDrSDbs3mKybc5N5 kl1OnwYXCteCa1iNy3k3TeW3k/zKtat3/tFuIRKC02Q2bQG6RBENhmR2QIIovjwKqQpU 25Y/aGlJ9oZgvQs+UWU3hVejQMSbN3Kv2DSZU+u//F54wOg4hN2pzqhNvTs6Za54QglL pXG6PNldG6VFG8yVgM+nFtD0PeAfy0w2EMLkBsubWErVWu8f+4wUTiNIw1GexTYQFVvI 4fbA==
MIME-Version: 1.0
X-Received: by 10.52.35.38 with SMTP id e6mr543398vdj.17.1420167915193; Thu, 01 Jan 2015 19:05:15 -0800 (PST)
Received: by 10.52.138.143 with HTTP; Thu, 1 Jan 2015 19:05:15 -0800 (PST)
Date: Fri, 2 Jan 2015 03:05:15 +0000
Message-ID: <CAAwjuuy19Yg-TVWm5BAEkPnwRkfvC2M0T=Aeck5iG7Y9FM13cw@mail.gmail.com>
From: David Rufino <david.rufino@gmail.com>
To: agl@imperialviolet.org
Content-Type: multipart/alternative; boundary=20cf307c9fc61b4e31050ba29c6f
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/qgeXSSSBoUM2deisvEnX8STDaSM
Cc: cfrg@ietfa.amsl.com
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 18:15:40 -0000

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

Apologies for inserting my 2c...

Perhaps it's worth making an explicit decision on whether or not 'rigidity'
is actually a required feature. The very rough consensus appears to be
'no', because it's regarded as improbable ('alien technology') that anyone
would be able to 'backdoor' the elliptic curve. In either case it appears
to me that deciding this question ought to fix the curve on purely
technical grounds (no -> curve25519, yes -> rpgecc)

Regards,
David

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

<div dir=3D"ltr"><div>Apologies for inserting my 2c...</div><div><br></div>=
Perhaps it&#39;s worth making an explicit decision on whether or not &#39;r=
igidity&#39; is actually a required feature. The very rough consensus appea=
rs to be &#39;no&#39;, because it&#39;s regarded as improbable (&#39;alien =
technology&#39;) that anyone would be able to &#39;backdoor&#39; the ellipt=
ic curve. In either case it appears to me that deciding this question ought=
 to fix the curve on purely technical grounds (no -&gt; curve25519, yes -&g=
t; rpgecc)<div><br><div><div><div>Regards,</div><div>David</div></div></div=
></div></div>

--20cf307c9fc61b4e31050ba29c6f--


From nobody Fri Jan  2 10:33:24 2015
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 DE9DA1A00BB for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 10:33:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.896
X-Spam-Level: **
X-Spam-Status: No, score=2.896 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545, 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 jr87_GPwvo3l for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 10:33:20 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id 226431A00A3 for <cfrg@irtf.org>; Fri,  2 Jan 2015 10:33:19 -0800 (PST)
Received: (qmail 20948 invoked by uid 1017); 2 Jan 2015 18:33:39 -0000
Received: from unknown (unknown) by unknown with QMTP; 2 Jan 2015 18:33:39 -0000
Received: (qmail 14730 invoked by uid 1001); 2 Jan 2015 18:33:10 -0000
Date: 2 Jan 2015 18:33:10 -0000
Message-ID: <20150102183310.14729.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: <54A5ACA0.7040108@cs.tcd.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/rrfGNArmoTOAoifkGf3PcVCZiG8
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 18:33:22 -0000

Stephen Farrell writes:
> Dan's mail accused someone of bad faith by saying that that person did
> thing x "in the guise" of doing thing y.

No, "in the guise" does not imply or suggest bad faith. Consider, e.g.,
the purely positive quote

   Sometimes he needs to regard the troop with clinical dispassion -- in
   the guise of a Stanford professor who publishes papers on the
   dynamics of bovine tuberculosis transmission in the olive baboon,
   Papio anubis, in The Journal of Medical Primatology

from http://www.nytimes.com/books/01/04/01/reviews/010401.01nixont.html.

Might I gently suggest that we take this ridiculous side discussion off
list (as the chairs should have done in the first place---see RFC 3934)
and leave CFRG free for technical discussions?

---Dan


From nobody Fri Jan  2 11:31:33 2015
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 C305F1A037A for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 11:31:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jsQsgKjWUa9P for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 11:31:28 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92F781A0390 for <cfrg@irtf.org>; Fri,  2 Jan 2015 11:31:27 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id E1703BF09; Fri,  2 Jan 2015 19:31:25 +0000 (GMT)
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 aXiQIcT808i7; Fri,  2 Jan 2015 19:31:23 +0000 (GMT)
Received: from [10.87.48.73] (unknown [86.41.59.106]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 5E067BEC9; Fri,  2 Jan 2015 19:31:23 +0000 (GMT)
Message-ID: <54A6F208.7090709@cs.tcd.ie>
Date: Fri, 02 Jan 2015 19:31:20 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Adam Langley <agl@imperialviolet.org>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
In-Reply-To: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/n9DmZhmcvRCo-q1qd94fsiZaGEE
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 19:31:30 -0000

(Speaking as a random RG participant, not as an IESG member...)

I just had a quick read of that, and while I'm not qualified
to judge all the details this seems like a fine text to me
and also seems to me to meet what I understand are the main
reasonable constraints that folks have expressed.

I'm sure the RG could figure out how to split that text into
multiple documents easily enough when considering how to deal
with other security levels so I don't think Brian's concern
is a showstopper (his concern is one that needs to be dealt
with I agree).

If the chairs were able to determine if the RG had reached
rough consensus on the meaty content of [1], but that there
is still work to be done, then I think we'd have made
significant progress.

Cheers,
S.

[1] https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml

On 01/01/15 22:00, Adam Langley wrote:
> Since everyone is agreed to within an isogeny of curve25519 at ~128
> bits, and since there's no performance reason to pick one isogeny over
> another (see my mail from yesterday), I've created an outline for what
> currently appears (to me) to be the only way that we might reach
> agreement.
> 
> It takes the generation procedure from draft-black-rpgecc-01,
> generates the resulting curve with p=2^255-19 and then ends up with
> curve25519 by pointing out that there's no difference in security
> between isogenies and motivates it by compatibility with existing
> practice.
> 
> Then it includes draft-turner-thecurve25519function in order to nail
> down the wire-format and describe how to perform ECDH.
> 
> The resulting agglomeration is at
> https://cdn.rawgit.com/agl/cfrgcurve/master/cfrgcurve.xml (requires
> XSLT support in the browser) and https://github.com/agl/cfrgcurve.
> (Although, until there's clarity on whether the outline is viable, the
> details in the draft are unimportant.)
> 
> I have not listed the authors of the two source documents as authors
> yet because that might suggest that they support the result. Instead
> I've made the sources clear in section 1.
> 
> It does not suggest a signature scheme, despite several people
> suggesting that it would be required in recent days, because I don't
> think that we're at that point yet.
> 
> 
> Cheers
> 
> AGL
> 


From nobody Fri Jan  2 11:38:43 2015
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 19D571A0AF7 for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 11:38:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.094
X-Spam-Level: **
X-Spam-Status: No, score=2.094 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545] 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 ZcJQgasNXegP for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 11:38:40 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id E407F1A19F7 for <cfrg@ietfa.amsl.com>; Fri,  2 Jan 2015 11:38:38 -0800 (PST)
Received: (qmail 26820 invoked from network); 2 Jan 2015 19:38:59 -0000
Received: from unknown (HELO hyperelliptic.org) (131.155.71.33) by calvin.win.tue.nl with SMTP; 2 Jan 2015 19:38:59 -0000
Received: (qmail 9301 invoked by uid 1000); 2 Jan 2015 19:38:19 -0000
Date: Fri, 2 Jan 2015 20:38:19 +0100
From: Tanja Lange <tanja@hyperelliptic.org>
To: cfrg@ietfa.amsl.com
Message-ID: <20150102193819.GB28778@cph.win.tue.nl>
References: <CAAwjuuy19Yg-TVWm5BAEkPnwRkfvC2M0T=Aeck5iG7Y9FM13cw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAAwjuuy19Yg-TVWm5BAEkPnwRkfvC2M0T=Aeck5iG7Y9FM13cw@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lbu388DFq8Y4RcLI2nNhM3XSaCA
Cc: agl@imperialviolet.org
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 02 Jan 2015 19:38:42 -0000

>    Perhaps it's worth making an explicit decision on whether or not
>    'rigidity' is actually a required feature. The very rough consensus
>    appears to be 'no', because it's regarded as improbable ('alien
>    technology') that anyone would be able to 'backdoor' the elliptic curve.
>    In either case it appears to me that deciding this question ought to fix
>    the curve on purely technical grounds (no -> curve25519, yes -> rpgecc)
>
This would be quite a mischaracterization of X25519. The 2006 paper
contains full justifications about every single choice made and
X25519 is historically the first fully rigid curve (unless one includes
Koblitz curves or other curves with very special properties which
coincidentally limit the choice down to just one curve). Its coefficient
A is the smallest one achieving all required properties. The reason
that this draft finds a different (isogenous) curve is that it searches
for the smallest coefficient d for a curve in _Edwards_ form rather 
than for the smallest coefficient A for a curve in _Montgomery_ form. 

This 'wiggle room' of choosing a curve shape cannot be eliminated
but it's quite small. (Note that the paper introducing the NUMS curves
had 26 curves spread over 3 levels of security, because of this and
a similar decision of how to optimize the prime choice.)

I don't understand why the procedure should be part of the draft 
anyways. A description of how to rigidly choose curves already
appears in ACM-CSS 2013 [1]. This could be cited along with the 
NUMS paper as informative references in the security considerations. 
The generation method does not matter for the implementor

Regards
	Tanja

[1] "Elligator: Elliptic-curve points indistinguishable from uniform 
random strings", Bernstein, Hamburg, Krasnova, Lange, ACM-CCS 2013,
http://dx.doi.org/10.1145/2508859.2516734 (Open Access)


From nobody Fri Jan  2 14:27:55 2015
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 6F3BA1A1A48; Fri,  2 Jan 2015 14:27:51 -0800 (PST)
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 VrxWOFTDSiHt; Fri,  2 Jan 2015 14:27:50 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 4E2951A1A36; Fri,  2 Jan 2015 14:27:50 -0800 (PST)
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.10.0.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150102222750.6076.60397.idtracker@ietfa.amsl.com>
Date: Fri, 02 Jan 2015 14:27:50 -0800
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hg2PJZ6UAQIfghVUM2-yrmddoqQ
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jan 2015 22:27:51 -0000

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

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-irtf-cfrg-chacha20-poly1305-04.txt
	Pages           : 42
	Date            : 2015-01-02

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.  It is a
   product of the Crypto Forum Research Group (CFRG)


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

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


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 Sat Jan  3 06:42:37 2015
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 C9CFB1A8A20 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 06:42:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.798
X-Spam-Level: 
X-Spam-Status: No, score=0.798 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 l4cuKW_M9rSF for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 06:42:34 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0693.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::693]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD18F1A8A05 for <cfrg@irtf.org>; Sat,  3 Jan 2015 06:42:33 -0800 (PST)
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.1.49.12; Sat, 3 Jan 2015 14:40:22 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.01.0049.002; Sat, 3 Jan 2015 14:40:22 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Michael Hamburg <mike@shiftleft.org>
Thread-Topic: [Cfrg] Benchmarks: 384 vs 389 vs Goldilocks vs ... on Haswell
Thread-Index: AQHQI701KGpxET6GdkKNiBIGv4KjYZyqIa6AgAAmO4CABDb+gA==
Date: Sat, 3 Jan 2015 14:40:22 +0000
Message-ID: <D0CDABF2.3B5E5%kenny.paterson@rhul.ac.uk>
References: <54A1E049.9000404@shiftleft.org> <D0CA0568.3B27A%kenny.paterson@rhul.ac.uk> <8B06C2AB-A4D3-4ADD-898A-135C06497458@shiftleft.org>
In-Reply-To: <8B06C2AB-A4D3-4ADD-898A-135C06497458@shiftleft.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.7.141117
x-originating-ip: [78.146.61.145]
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-dmarcaction: None
x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:DBXPR03MB384;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DBXPR03MB384;
x-forefront-prvs: 0445A82F82
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(51704005)(479174004)(97736003)(46102003)(101416001)(4396001)(20776003)(64706001)(92566001)(86362001)(66066001)(107046002)(561944003)(19580395003)(21056001)(105586002)(15975445007)(87936001)(31966008)(76176999)(83506001)(77156002)(120916001)(62966003)(106116001)(102836002)(2950100001)(50986999)(40100003)(19580405001)(77096005)(74482002)(106356001)(68736005)(36756003)(99396003)(54356999)(2900100001)(2656002)(122556002)(110136001); DIR:OUT; SFP:1101; SCL:1; SRVR:DBXPR03MB384; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <40F3971526C6F549AC3872C4FB14BA2D@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2015 14:40:22.0201 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR03MB384
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/NC0-dq-Wu21A6jXG8rIoee0vQeo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Benchmarks: 384 vs 389 vs Goldilocks vs ... on Haswell
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 14:42:37 -0000

Hi Mike,

On 31/12/2014 22:18, "Michael Hamburg" <mike@shiftleft.org> wrote:

>I=B9m still a little bit perplexed about why you asked me to do this
>exercise.  The argument at the WF128 level seems to be about the existing
>trust and deployment of Curve25519 compared to a =B3rigidly-generated=B2
>ed-256-mers.  At the WF192 and WF256 levels, there are no widely deployed
>=B3safe" curves, and it is between this same notion of =B3rigidity=B2 vs m=
ore
>=B3efficient=B2 curves such as Curve41417, Ed448-Goldilocks and E-521.
>[Scarequoted because it=B9s MSR's definition of rigidity, DJB and Tanja=B9=
s
>safety criteria, and Trevor=B9s and my efficiency metric.]

I asked because Watson had explicitly said that the 384-bit MGN prime
would be slower than others at WF192. I wanted to find out whether that
was really the case or not, with hard numbers:

https://www.ietf.org/mail-archive/web/cfrg/current/msg05691.html


>Is the introduction of another efficient curve near WF192 suggested to
>sway the rigidity camp=B9s opinion about any of these proposals?
>Especially with people so sick of the endless arguments that they=B9re
>cutting backroom deals?

The MGN proposal (draft-black) includes a specific curve at WF192, and I
simply wanted to understand its relative performance. If it was hopelessly
slow, then this would reasonably be interpreted as a negative point for
the specific curve and the MGN proposal in general (since it seems to be
an "take it or leave it" proposal, though I'd better let the proposers of
it speak to that detail). If the curve was competitive, then it could be
seen as a positive, and maybe some more people would become more amenable
to the proposal. As usual, I am trying to find a way forward here that
most people can live with.

Not sure if this answers your question or not...

>
>If you think data has a chance of moving things forward, I suggest that
>benchmarks of the Microsoft curves=B9 (or at least primes=B9) performance =
on
>ARM scalar/NEON would be more informative, because they=B9d help determine
>whether the efficiency camp=B9s curves are broadly more efficient and by
>how much.

I think hard data can only help, but I don't expect you to do the work
here!

Cheers

Kenny


From nobody Sat Jan  3 09:29:15 2015
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 749F11A90D2 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 09:29:14 -0800 (PST)
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 SkCh9zGaMR_j for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 09:29:12 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0653.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::653]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B0CBE1A90B7 for <cfrg@irtf.org>; Sat,  3 Jan 2015 09:29:11 -0800 (PST)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB382.eurprd03.prod.outlook.com (10.141.10.12) with Microsoft SMTP Server (TLS) id 15.1.49.12; Sat, 3 Jan 2015 17:28:47 +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.01.0049.002; Sat, 3 Jan 2015 17:28:47 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Christoph Anton Mitterer <calestyo@scientia.net>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
Thread-Index: AdAlEKR+j0vH2sKEQBKKNUfeAAj9hwAApFCAACszC4AACZplgABlEtMA
Date: Sat, 3 Jan 2015 17:28:46 +0000
Message-ID: <D0CDD192.3B6AB%kenny.paterson@rhul.ac.uk>
References: <20141231154418.6639764.33790.24403@certicom.com> <D0C9CE59.3B14A%kenny.paterson@rhul.ac.uk> <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com> <1420132477.4562.6.camel@scientia.net>
In-Reply-To: <1420132477.4562.6.camel@scientia.net>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
x-originating-ip: [78.146.61.145]
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-dmarcaction: None
x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:DBXPR03MB382;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DBXPR03MB382;
x-forefront-prvs: 0445A82F82
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(479174004)(24454002)(199003)(377424004)(51704005)(189002)(68736005)(93886004)(64706001)(92566001)(62966003)(122556002)(40100003)(101416001)(50986999)(31966008)(2501002)(54356999)(77096005)(105586002)(15975445007)(87936001)(102836002)(2656002)(120916001)(74482002)(21056001)(46102003)(66066001)(99396003)(97736003)(19580395003)(19580405001)(106356001)(76176999)(20776003)(2900100001)(77156002)(107886001)(83506001)(36756003)(2950100001)(4396001)(86362001)(107046002); DIR:OUT; SFP:1101; SCL:1; SRVR:DBXPR03MB382; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
Content-Type: text/plain; charset="us-ascii"
Content-ID: <3A51D54E715D0944A8A3F05779F49927@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2015 17:28:46.9919 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR03MB382
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/1PmEtdvAcZrWq98W39PKYs2u4YU
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 17:29:14 -0000

Hi,

On 01/01/2015 17:14, "Christoph Anton Mitterer" <calestyo@scientia.net>
wrote:

>On Thu, 2015-01-01 at 13:39 +0100, Adam Back wrote:
>> Seems like on
>> topic and to the point, not spam.
>plus: it seems kinda dangerous to me, if certain topics are more or
>less... well not forbidden, but at least "moderated to silence".

In general, I agree of course. But there was sufficient "mainstream"
activity going on on the list over the last few days that I wanted to try
to keep things a bit more focussed. T

And as Adam Langley and others have pointed out, no-one seriously believes
that the choice of base point has any security impact (a more refined
statement about this to which I can subscribe can be found at the bottom
of the safecurves page here: http://safecurves.cr.yp.to/rigid.html). Of
course, it does matter for other reasons, like compatibility with already
deployed code, but that's NOT what was being discussed in the thread.

>
>CFRG should be really open, even if this includes more wood and less
>trees,

I think you mean "more trees, less wood". The metaphor is "not being able
to see the wood for the trees", the "wood" referring to the whole
collection of trees, that is, the bigger picture. Anyway... what we want
here is lots of trees AND wood, but the right amounts and types of the two
different things at the right times. My message was about trying to keep
the balance right.

>... trust is very important and if people feel that some
>topics/questions/concerns might have been suppressed, CFRG will have the
>same problems as NIST.

Agreed. If you or anyone else reviews the list and comes to think that a
topic is important at the current time AND has received insufficient
attention on the list to date, then they are of course at liberty to post
on it. Even more so if they think something important is being
"suppressed".

Cheers,

Kenny=20


From nobody Sat Jan  3 10:07:12 2015
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 64CF31A912C for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 10:07:10 -0800 (PST)
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_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B-onz30t9Upk for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 10:07:08 -0800 (PST)
Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8FA401A912A for <cfrg@irtf.org>; Sat,  3 Jan 2015 10:07:08 -0800 (PST)
Received: by mail-yk0-f169.google.com with SMTP id 79so9468042ykr.28 for <cfrg@irtf.org>; Sat, 03 Jan 2015 10:07:07 -0800 (PST)
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=uT8tHgIWT++Ex9oLgYU9SMTKG+iMae4YBqqEADPRz1o=; b=Qi2wNAbXl1PxoPEd+MxYO0CWmyapV25m8uoMIMbPkdYEUNtp3F3Dhn6RceX4xwRlgg rm2Yqy455XO2g5DKHnRuKEHtmcUZ+efjMdsoEGW9nrf6hhbirBI/2SOt2wpsG/lS4ewZ XfsLsF2lCpVpBQyZpwdgjb1gyBG4lN0RINtsIY0zpgbe94urDWFFO+24YQveMPFdFgEe K5EJWBkYySmD2ad83Ed4pHRB4zI0yP2T2vRWXOGW4o9x8KFO7Bl75zMMesEANl5q9vyn ONDRTuXaMOiuqfbYVYHBhMHTZ6qtz9O6Z6a/2AGMb/iokFo65OBqtglmCCxqsBHvNhRn 1liw==
MIME-Version: 1.0
X-Received: by 10.236.26.233 with SMTP id c69mr4244111yha.49.1420308427560; Sat, 03 Jan 2015 10:07:07 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Sat, 3 Jan 2015 10:07:07 -0800 (PST)
Date: Sat, 3 Jan 2015 13:07:07 -0500
Message-ID: <CACsn0cmeGX5aAXJfJMo7UxOanDLPW_y+dOLf=Ue6izTQXkn2TA@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/Ye7_fqy7GUxTPqeyb1J_4d6J3_o
Subject: [Cfrg] Curve25519 meets NUMS rigidity definition
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 18:07:10 -0000

Dear all,

In  draft-black-numscurves-02 we see the following sentence: "The
domain parameters SHALL be generated in a simple,  deterministic
manner, without any secret or random inputs."

If we actually take this sentence as written, it would seem the
Brainpool curves work. After all, there were no secret or random
inputs to the algorithm that output the Brainpool curves. Same with
the BADA55 curves: there were no secret or random inputs. I doubt that
these were what was meant to be rigid.

So it's clear to me that this was scrivener's error: something else
was meant. But what?

Given the details of the various processes that have all be claimed to
be rigid by the NUMS group, it seems to be that one takes a
parametrization of a certain set of elliptic curves, and searches for
the minimal parameter achieving certain properties forced by security
considerations, then takes the generator with one coordinate minimal,
and this is the only kind of method allowed.

So I'll take p=2^255-19, y^2=x^3+ux^2+x, and search for the minimal
positive u that makes the order of the curve 8 times prime, order of
the twist 4 times other prime, and minimal x coordinate on the curve
with prime order for the generator, with u congruent to 2 mod 4. I can
even throw in restrictions on endomorphism ring and supersingularity,
and it won't change the result.

Of course, this gives Curve25519 on the nose. So what's actually being
claimed is something much weirder: only certain curve shapes lead to
good results. Weierstrass does, and Edwards does, and twisted Edwards
does, but Montgomery doesn't. Either that, or Curve25519 does fall
within the set of curves that are generated by NUMS, and with the
original generators too.

This appears in the original paper presenting Curve25519, and seems to
be the core objection to Curve25519. I'd like to know if the chairs
propose to move for consensus on Curve25519 in the Turner draft form,
or if they still want to drag this out longer, or consider drafts
containing generation methods. If they do want to drag this out
longer, I'd like to know if the Powers That Be have any plan to deal
with this farcical situation.

Sincerely,
Watson Ladd


From nobody Sat Jan  3 10:16:26 2015
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 C72B81A912A for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 10:16:24 -0800 (PST)
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 fnm3lqkg9VS6 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 10:16:22 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0642.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::642]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7FA1B1A1BB3 for <cfrg@irtf.org>; Sat,  3 Jan 2015 10:16:21 -0800 (PST)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) with Microsoft SMTP Server (TLS) id 15.1.49.12; Sat, 3 Jan 2015 18:15:57 +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.01.0049.002; Sat, 3 Jan 2015 18:15:57 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Watson Ladd <watsonbladd@gmail.com>
Thread-Topic: [Cfrg] Benchmarks: 384 vs 389 vs Goldilocks vs ... on Haswell
Thread-Index: AQHQI701KGpxET6GdkKNiBIGv4KjYZyqIa6AgAAQ24CABIibgA==
Date: Sat, 3 Jan 2015 18:15:57 +0000
Message-ID: <D0CDB6A2.3B631%kenny.paterson@rhul.ac.uk>
References: <54A1E049.9000404@shiftleft.org> <D0CA0568.3B27A%kenny.paterson@rhul.ac.uk> <CACsn0cnyWY7Z1iK09zwEmfsH1v5zt3H1W7hZfqFabQb8tN3a8A@mail.gmail.com>
In-Reply-To: <CACsn0cnyWY7Z1iK09zwEmfsH1v5zt3H1W7hZfqFabQb8tN3a8A@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.7.141117
x-originating-ip: [78.146.61.145]
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-dmarcaction: None
x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:DBXPR03MB383;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DBXPR03MB383;
x-forefront-prvs: 0445A82F82
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(24454002)(43784003)(377454003)(189002)(479174004)(199003)(51704005)(19580395003)(87936001)(2656002)(110136001)(21056001)(122556002)(19580405001)(106116001)(76176999)(64706001)(101416001)(105586002)(50986999)(31966008)(99396003)(2900100001)(36756003)(83506001)(62966003)(102836002)(106356001)(77096005)(107046002)(40100003)(74482002)(120916001)(46102003)(68736005)(1411001)(20776003)(77156002)(97736003)(4396001)(66066001)(86362001)(2950100001)(92566001)(54356999); DIR:OUT; SFP:1101; SCL:1; SRVR:DBXPR03MB383; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
Content-Type: text/plain; charset="us-ascii"
Content-ID: <3950C80D210E184F91D792EC3EC1CFEE@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2015 18:15:57.7058 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR03MB383
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/10Sdp1AjnyUUoP87fnsMvWe6RNI
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Benchmarks: 384 vs 389 vs Goldilocks vs ... on Haswell
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 18:16:25 -0000

Hi Watson,

Following up on a recent message that specifically asked a question to me.

On 31/12/2014 21:01, "Watson Ladd" <watsonbladd@gmail.com> wrote:

>On Wed, Dec 31, 2014 at 3:01 PM, Paterson, Kenny
><Kenny.Paterson@rhul.ac.uk> wrote:
>> Hi Mike,
>>
>> Thanks a lot for doing this work, especially over the holiday season -
>> it's much appreciated.
>>
>> My take-away from your work is that there's no strong reason (in
>> performance terms) to prefer P389 over P384-mers or vice-versa - the
>>8-9%
>> difference is there, yes, but could easily disappear or increase with
>> further optimisations on either side.
>
>Would you say the same about 2^255-19 vs 2^256-189? That also had a 8%
>performance increase iirc, for very similar reasons.

Yes, I would. But there, we have running code and deployment in favour of
the curve Curve25519 (used in various algorithms which may or may not be
the ones we want to recommend - still tbd). That's not the case at WF192.

> One could also try 2^382-31, which would be much more similar to the
>gain at the lower security level.

"One" could try many things. But someone has to do the work to implement
and benchmark. I asked Mike to do some work here, because he had the tools
at his disposal, and he very kindly agreed to help - thanks again Mike. In
the interests of making progress, I'd encourage others to do more of the
same.

>Furthermore, if the faster one was more optimized, and the slower one
>not as much, that would be a reasonable conclusion. But we are
>comparing a C implementation written yesterday to a handwritten
>assembler one, with the C outperforming the assembly.

Yes, I'm aware of this. And so, like you (I infer), I'd expect the
currently faster one to improve more and the gap to widen further.

Cheers,

Kenny


From nobody Sat Jan  3 11:54:14 2015
Return-Path: <brian@briansmith.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7A7E01A0040 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 11:54:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dF5xAw6b_9jZ for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 11:54:11 -0800 (PST)
Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1E9AF1A0037 for <cfrg@irtf.org>; Sat,  3 Jan 2015 11:54:11 -0800 (PST)
Received: by mail-oi0-f46.google.com with SMTP id a3so12911355oib.5 for <cfrg@irtf.org>; Sat, 03 Jan 2015 11:54:10 -0800 (PST)
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=dp2TTeecGt4cNkXknw7cyimo6thTlIRj7zIAln7mrSQ=; b=DJ0GkUvYoFoHE0Fmh0nokQic/cm2Z7BcBrWGD2avZw6oqe2nIwkJ7W4jnffNT/o8L2 ZVKY5CbKwbqX9bpxUn5dv4ykui4IQv5jSYtxf+B+u3lV6/GMRxjNo0jcu+KPnjVLr3th ByUMWazWsg71SpDTS9X42OjiCqopYS4uC6CibVgeVb633Rgi7IKY1Ue6ces5vMOOXXSO 3po6mN4CK1c1P8Z30m1MKf4i3iU87tthRHkN2pDyMIzdtRPtzfYZKDUOu6/+QIr6e8Hm a2saAHTIRitae0giNzggmS3QnBvnKEfguIZwdX97EcwmHr99+JofhSyGG/RIo1De0txT IddA==
X-Gm-Message-State: ALoCoQlWHxPxNY5+KchedQU1uysXmNrAuOWo/adbNWW7yOfXv1ymFxEOWbFyjm22hYqO0gR2Q4dX
MIME-Version: 1.0
X-Received: by 10.60.52.101 with SMTP id s5mr21038357oeo.33.1420314850453; Sat, 03 Jan 2015 11:54:10 -0800 (PST)
Received: by 10.76.71.228 with HTTP; Sat, 3 Jan 2015 11:54:10 -0800 (PST)
In-Reply-To: <D0CA0568.3B27A%kenny.paterson@rhul.ac.uk>
References: <54A1E049.9000404@shiftleft.org> <D0CA0568.3B27A%kenny.paterson@rhul.ac.uk>
Date: Sat, 3 Jan 2015 11:54:10 -0800
Message-ID: <CAFewVt53366Axg-WZVGtVsTvipeHrCjtNBGcdmgR58CZwz47rg@mail.gmail.com>
From: Brian Smith <brian@briansmith.org>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/erIFPxLgG4Ucdh5O2hrVrbszNPs
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Benchmarks: 384 vs 389 vs Goldilocks vs ... on Haswell
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 19:54:12 -0000

Paterson, Kenny <Kenny.Paterson@rhul.ac.uk> wrote:
> My take-away from your work is that there's no strong reason (in
> performance terms) to prefer P389 over P384-mers or vice-versa - the 8-9%
> difference is there, yes, but could easily disappear or increase with
> further optimisations on either side.
>
> Does that seem fair to you? Please feel free to give an alternative
> interpretation if you like.

FWIW, I don't think it's fair to assume that P384-mers 8-9%
performance disadvantage can be optimized away, especially when the
thing that's 9% faster is also slightly stronger, when there are two
significantly stronger curves (P448 and P480) with the same measured
performance, and when there was significant effort (AFAICT) already
spent optimizing it. In fact, I think it would be safer to assume that
none of these curves can be optimized further, if speculation about
such things is a factor in the decision making.

Cheers,
Brian


From nobody Sat Jan  3 12:48:17 2015
Return-Path: <adam.back@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 4B6D01A024E for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 12:48:16 -0800 (PST)
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 QaUk9u3M61hM for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 12:48:15 -0800 (PST)
Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BFE751A024C for <cfrg@irtf.org>; Sat,  3 Jan 2015 12:48:14 -0800 (PST)
Received: by mail-qa0-f46.google.com with SMTP id w8so13589069qac.5 for <cfrg@irtf.org>; Sat, 03 Jan 2015 12:48:14 -0800 (PST)
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=1yn6+WeR5lN8RojFtBEbI1vXrvJl0/C8C0PNz76Zwuw=; b=p8vmxZgibh4hTylJ/AInXynSINm/xG/TJkrMnkD+I8X1gvWKLCYijrA+CSZU6t4+gA V9MSCtoofh9qT+FRwAxHrudmjVUuhjRcNVyxMufC3/LVpanNNY6Eg1h/pUm7DbBbK9J6 cPJzTKSW0ETdjCl8oZhCZaT3GJUw0HXmX4eScdcVlH5dnQeC759IQnJolJFUE5yxkRsS ejvhIUuogzMIiQJfVF/JseS+SCVgshdDwjoe8aUtR0HInBUm0XONcFnoJcWjyPsa1jWJ kF/oilIkn0T9kbGbB4y5k6CWKB7IRCmcW9hPTIw0ZVDXVv5fLglDC8Hyk8ukAi2YcGJU w3CQ==
MIME-Version: 1.0
X-Received: by 10.140.101.105 with SMTP id t96mr62581803qge.9.1420318093960; Sat, 03 Jan 2015 12:48:13 -0800 (PST)
Sender: adam.back@gmail.com
Received: by 10.96.189.10 with HTTP; Sat, 3 Jan 2015 12:48:13 -0800 (PST)
In-Reply-To: <D0CDD192.3B6AB%kenny.paterson@rhul.ac.uk>
References: <20141231154418.6639764.33790.24403@certicom.com> <D0C9CE59.3B14A%kenny.paterson@rhul.ac.uk> <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com> <1420132477.4562.6.camel@scientia.net> <D0CDD192.3B6AB%kenny.paterson@rhul.ac.uk>
Date: Sat, 3 Jan 2015 21:48:13 +0100
X-Google-Sender-Auth: AJkFil6jYAdSEnlyvEboackPb4M
Message-ID: <CALqxMTG86KinerYYDABeKy=OwDqPOXyxmZ7tvP-evgz0Qd55Mg@mail.gmail.com>
From: Adam Back <adam@cypherspace.org>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Zk3yfrniGjAIi67Jc-4dBNTZoCI
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 20:48:16 -0000

On 3 January 2015 at 18:28, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk> wrote:
>>On Thu, 2015-01-01 at 13:39 +0100, Adam Back wrote:
>>> Seems like on
>>> topic and to the point, not spam.
>
> And as Adam Langley and others have pointed out, no-one seriously
> believes that the choice of base point has any security impact (a more
> refined statement about this to which I can subscribe can be found at the
> bottom of the safecurves page here:

Nevertheless I think it should be part of the NUMS generation.

Apart from the academic paper which hypothesises a combined weakness
between the generator and the KDF for key-exchange (which again, is
NOT off-topic), there are situations where you need pairs of
generators which no one knows the discrete log of (for example like
EC_DBRG, a backdooring topic known to all; or u-prove/Brands
representation problem a DL/ECDL schnorr-extension attribute
certificate, which has multiple bases, probably there are other
examples)

If those are mixed with the main base point which is chosen using
unexplained randomness, then it maybe that even if we use G (the main
and non-NUMS base) plus H which given its intended to demonstrate lack
of knowledge wrt to H, would be generated with NUMS, that still fails
because maybe the person who generated G chose it such that it is the
discrete log of H (or vice-versa -- its the same thing).

I dont see what motive we can have for not NUMS the G parameter to for
the avoidance of doubt - its not as if there's a big cost to that.

Adam


From nobody Sat Jan  3 12:58:53 2015
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 EE4C21A03AA for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 12:58:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.195
X-Spam-Level: 
X-Spam-Status: No, score=0.195 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545] 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 TGSCa4RD64O0 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 12:58:50 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id DCEF91A039C for <cfrg@irtf.org>; Sat,  3 Jan 2015 12:58:48 -0800 (PST)
Received: (qmail 2386 invoked from network); 3 Jan 2015 20:59:08 -0000
Received: from unknown (HELO hyperelliptic.org) (131.155.71.33) by calvin.win.tue.nl with SMTP; 3 Jan 2015 20:59:08 -0000
Received: (qmail 19610 invoked by uid 1000); 3 Jan 2015 20:58:28 -0000
Date: Sat, 3 Jan 2015 21:58:28 +0100
From: Tanja Lange <tanja@hyperelliptic.org>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Message-ID: <20150103205828.GL28778@cph.win.tue.nl>
References: <CACsn0cmeGX5aAXJfJMo7UxOanDLPW_y+dOLf=Ue6izTQXkn2TA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACsn0cmeGX5aAXJfJMo7UxOanDLPW_y+dOLf=Ue6izTQXkn2TA@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/LL-Az9dz24oMeUduC0Bvses3DQQ
Subject: Re: [Cfrg] Curve25519 meets NUMS rigidity definition
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 20:58:52 -0000

> So I'll take p=2^255-19, y^2=x^3+ux^2+x, and search for the minimal
> positive u that makes the order of the curve 8 times prime, order of
> the twist 4 times other prime, and minimal x coordinate on the curve
> with prime order for the generator, with u congruent to 2 mod 4. I can
> even throw in restrictions on endomorphism ring and supersingularity,
> and it won't change the result.
> 
Thanks for spelling this out in full detail. 

See also http://safecurves.cr.yp.to/rigid.html 
	
	Tanja




From nobody Sat Jan  3 14:24:41 2015
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 066081A875C for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 14:24:38 -0800 (PST)
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 gjKm1GXrzNl6 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 14:24:35 -0800 (PST)
Received: from mail-yh0-x22f.google.com (mail-yh0-x22f.google.com [IPv6:2607:f8b0:4002:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A0821A6F30 for <cfrg@irtf.org>; Sat,  3 Jan 2015 14:24:35 -0800 (PST)
Received: by mail-yh0-f47.google.com with SMTP id f73so9638716yha.6 for <cfrg@irtf.org>; Sat, 03 Jan 2015 14:24:34 -0800 (PST)
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=19dkMF7dWM/00KHDzjVJ2/K22a3py4fp2vlzPpxq4cE=; b=f3m+qfOLc98n82j8Ug81e7Grvm/s47lkGRRPVdeSKtCWNc+Gp4KcEMSB6sf0K0g30s t6VxZS06//Ej+LJeD1jInY9bXJUX7av19JRh6pi9hDZSWOaG92OXCigGSAqO+LOgnabW qrHGlOpKP20R4Sy21FM4r0eHB4vV0FVn8sN3HLhaznO91Q6Jl4kb5zqjjARl5zPOKlML vU5IErT/4mO7oTsvz6sTmQI0sNjGh5kpsTPpX7wP3neSQiO2n/lAgIv0hUAqocHGJeGk 5J38w7OeLWEpSEI95JK3ePJy61RYf69EdKfP/Se68qExMF9kDb8mofklM+GSRAkU8Kxe 21Kg==
MIME-Version: 1.0
X-Received: by 10.236.30.168 with SMTP id k28mr37481293yha.163.1420323874612;  Sat, 03 Jan 2015 14:24:34 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Sat, 3 Jan 2015 14:24:34 -0800 (PST)
In-Reply-To: <CALqxMTG86KinerYYDABeKy=OwDqPOXyxmZ7tvP-evgz0Qd55Mg@mail.gmail.com>
References: <20141231154418.6639764.33790.24403@certicom.com> <D0C9CE59.3B14A%kenny.paterson@rhul.ac.uk> <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com> <1420132477.4562.6.camel@scientia.net> <D0CDD192.3B6AB%kenny.paterson@rhul.ac.uk> <CALqxMTG86KinerYYDABeKy=OwDqPOXyxmZ7tvP-evgz0Qd55Mg@mail.gmail.com>
Date: Sat, 3 Jan 2015 17:24:34 -0500
Message-ID: <CACsn0c=2EAgBi391yakqi_4Y_Kewz9+Ky+KWPmktP1DMzdn8Eg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Adam Back <adam@cypherspace.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/oBJV7In5MpC8h2BIz19XUZ96TII
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 22:24:38 -0000

On Sat, Jan 3, 2015 at 3:48 PM, Adam Back <adam@cypherspace.org> wrote:
> On 3 January 2015 at 18:28, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk> wrote:
>>>On Thu, 2015-01-01 at 13:39 +0100, Adam Back wrote:
>>>> Seems like on
>>>> topic and to the point, not spam.
>>
>> And as Adam Langley and others have pointed out, no-one seriously
>> believes that the choice of base point has any security impact (a more
>> refined statement about this to which I can subscribe can be found at the
>> bottom of the safecurves page here:
>
> Nevertheless I think it should be part of the NUMS generation.
>
> Apart from the academic paper which hypothesises a combined weakness
> between the generator and the KDF for key-exchange (which again, is
> NOT off-topic), there are situations where you need pairs of
> generators which no one knows the discrete log of (for example like
> EC_DBRG, a backdooring topic known to all; or u-prove/Brands
> representation problem a DL/ECDL schnorr-extension attribute
> certificate, which has multiple bases, probably there are other
> examples)
>
> If those are mixed with the main base point which is chosen using
> unexplained randomness, then it maybe that even if we use G (the main
> and non-NUMS base) plus H which given its intended to demonstrate lack
> of knowledge wrt to H, would be generated with NUMS, that still fails
> because maybe the person who generated G chose it such that it is the
> discrete log of H (or vice-versa -- its the same thing).
>
> I dont see what motive we can have for not NUMS the G parameter to for
> the avoidance of doubt - its not as if there's a big cost to that.

9 is the minimal x coordinate that gives a prime order point on the
Montgomery model of Curve25519. I just checked this a moment ago with
PARI, so there is no reason to view the NUMS generator as more rigid.

As for the two-generator protocols, I agree there are issues with how
one would generate two generators. But I've not heard serious
objections to using a hash function: it's the way that Certicom for
instance, generated challenges for finding discrete logs, or the way
that one would close the Dual_EC backdoor. It's true that the attack
you mentioned is possible if we simply pick a generator, and then try
to generate another point.

Sincerely,
Watson

>
> Adam
>
> _______________________________________________
> 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 Sat Jan  3 14:52:27 2015
Return-Path: <adam.back@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 3C8971A0390 for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 14:52:26 -0800 (PST)
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 6wz7FyPx2jBK for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 14:52:24 -0800 (PST)
Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d: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 6C3391A036D for <cfrg@irtf.org>; Sat,  3 Jan 2015 14:52:24 -0800 (PST)
Received: by mail-qg0-f54.google.com with SMTP id l89so14141232qgf.13 for <cfrg@irtf.org>; Sat, 03 Jan 2015 14:52:23 -0800 (PST)
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=gl7PX9rVdSa9qbORxAiiMdhl1nGY54bg84xFBrrEpgQ=; b=X+eLUOtVjYwm6l5XHEo+tGwbUfufx3HlU3vAdy7WcZEc4S3ujM4cJknk/S/AS7CvEn Cw3o3Sq/okZGFKVxtjLGMH6ynbEw+O4Wo642LO7j7K8+S4o0rw7FMq3LBsXIeupXmlmS P7rHt2Sll2nI73eX7iXHMJ9dEwwY5Oc5ZHfnMKz5kJo0EhI0sHzG/T9rVuHomWkgHvGC x0xTSFna0FV/racUptGKf9yTQxTEd4sE2unKtpF1yRoKmMTFKlAdGT7Mp9eXrsTKawY7 jFrQe0oUOtLb15+HuDzfYkHGzYhbjSbybfDvE4B35kR11HZFZ0orE+tunRIfIriB6slk ZIYQ==
MIME-Version: 1.0
X-Received: by 10.229.178.67 with SMTP id bl3mr134090713qcb.18.1420325543504;  Sat, 03 Jan 2015 14:52:23 -0800 (PST)
Sender: adam.back@gmail.com
Received: by 10.96.189.10 with HTTP; Sat, 3 Jan 2015 14:52:23 -0800 (PST)
In-Reply-To: <CACsn0c=2EAgBi391yakqi_4Y_Kewz9+Ky+KWPmktP1DMzdn8Eg@mail.gmail.com>
References: <20141231154418.6639764.33790.24403@certicom.com> <D0C9CE59.3B14A%kenny.paterson@rhul.ac.uk> <CALqxMTHaBg-XRWpQiLN5zo11=b24q8OgE6g0X_7F2nbtS+6FnA@mail.gmail.com> <1420132477.4562.6.camel@scientia.net> <D0CDD192.3B6AB%kenny.paterson@rhul.ac.uk> <CALqxMTG86KinerYYDABeKy=OwDqPOXyxmZ7tvP-evgz0Qd55Mg@mail.gmail.com> <CACsn0c=2EAgBi391yakqi_4Y_Kewz9+Ky+KWPmktP1DMzdn8Eg@mail.gmail.com>
Date: Sat, 3 Jan 2015 23:52:23 +0100
X-Google-Sender-Auth: _y7dSsyojOwV9Z9SZCfRPumMT4c
Message-ID: <CALqxMTEDv1XEd-r63Z7eRauLiF4HopjGZzChkFf6Bs61z_5G=w@mail.gmail.com>
From: Adam Back <adam@cypherspace.org>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/7VnD9x5ehRTlXIxg1kjh95BRsQA
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] malicious DH base points [was Re: should the CFRG really strive for consensus?]
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 22:52:26 -0000

It can be possible to know the discrete log of 9 wrt H(9), if you
chose the curve to make it so.

You are assuming there is insufficient wriggle room in the rest of the
design to make this so, which is a weaker assumption.

Adam

On 3 January 2015 at 23:24, Watson Ladd <watsonbladd@gmail.com> wrote:
> On Sat, Jan 3, 2015 at 3:48 PM, Adam Back <adam@cypherspace.org> wrote:
>> On 3 January 2015 at 18:28, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk> wrote:
>>>>On Thu, 2015-01-01 at 13:39 +0100, Adam Back wrote:
>>>>> Seems like on
>>>>> topic and to the point, not spam.
>>>
>>> And as Adam Langley and others have pointed out, no-one seriously
>>> believes that the choice of base point has any security impact (a more
>>> refined statement about this to which I can subscribe can be found at the
>>> bottom of the safecurves page here:
>>
>> Nevertheless I think it should be part of the NUMS generation.
>>
>> Apart from the academic paper which hypothesises a combined weakness
>> between the generator and the KDF for key-exchange (which again, is
>> NOT off-topic), there are situations where you need pairs of
>> generators which no one knows the discrete log of (for example like
>> EC_DBRG, a backdooring topic known to all; or u-prove/Brands
>> representation problem a DL/ECDL schnorr-extension attribute
>> certificate, which has multiple bases, probably there are other
>> examples)
>>
>> If those are mixed with the main base point which is chosen using
>> unexplained randomness, then it maybe that even if we use G (the main
>> and non-NUMS base) plus H which given its intended to demonstrate lack
>> of knowledge wrt to H, would be generated with NUMS, that still fails
>> because maybe the person who generated G chose it such that it is the
>> discrete log of H (or vice-versa -- its the same thing).
>>
>> I dont see what motive we can have for not NUMS the G parameter to for
>> the avoidance of doubt - its not as if there's a big cost to that.
>
> 9 is the minimal x coordinate that gives a prime order point on the
> Montgomery model of Curve25519. I just checked this a moment ago with
> PARI, so there is no reason to view the NUMS generator as more rigid.
>
> As for the two-generator protocols, I agree there are issues with how
> one would generate two generators. But I've not heard serious
> objections to using a hash function: it's the way that Certicom for
> instance, generated challenges for finding discrete logs, or the way
> that one would close the Dual_EC backdoor. It's true that the attack
> you mentioned is possible if we simply pick a generator, and then try
> to generate another point.
>
> Sincerely,
> Watson
>
>>
>> Adam
>>
>> _______________________________________________
>> 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 Sat Jan  3 15:33:37 2015
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 76A731A19FE for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 15:33:35 -0800 (PST)
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 k_dlnET5oG1c for <cfrg@ietfa.amsl.com>; Sat,  3 Jan 2015 15:33:33 -0800 (PST)
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 D2D261A19F8 for <cfrg@irtf.org>; Sat,  3 Jan 2015 15:33:32 -0800 (PST)
Received: by mail-oi0-f46.google.com with SMTP id a3so13210088oib.5 for <cfrg@irtf.org>; Sat, 03 Jan 2015 15:33:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lyf1FSZwJr/VBgTPLM9AbMCmpuPOFM5gJJmEin6SzsY=; b=0XQYnB08Sn7yrtGDHztTEh3zEgFOikAJMK2lgaAsGBXOwO/u11IFzifIB4AMBOVxxr baNe4yzIgudH4cqEhMA0LnoatEjlANf/rEJT6BkwhW79faXz1YgBOUYYpUqne/UD2K17 deEBevddqNnhoUXmtD7ieFSaZkNU1vrYluJI9ZOw2E7xoozNs6FG4p5l+l8NHXqkdPzm uwzT7KM4qm/xGNFxQwnrRvye3I2l9Ze+oZnxGJyVi1QzyPNOwSUMN/5IgjgQ+1iCGHbP 46rcp3bKBSuo+py93zalPWJDlesd33ONInnA3YQYdpV5fwqGi/do/Svp+RgzRltyIKEG BXQA==
X-Received: by 10.60.133.4 with SMTP id oy4mr48990813oeb.28.1420328012049; Sat, 03 Jan 2015 15:33:32 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.227.225 with HTTP; Sat, 3 Jan 2015 15:33:11 -0800 (PST)
In-Reply-To: <CAFewVt53366Axg-WZVGtVsTvipeHrCjtNBGcdmgR58CZwz47rg@mail.gmail.com>
References: <54A1E049.9000404@shiftleft.org> <D0CA0568.3B27A%kenny.paterson@rhul.ac.uk> <CAFewVt53366Axg-WZVGtVsTvipeHrCjtNBGcdmgR58CZwz47rg@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Sat, 3 Jan 2015 15:33:11 -0800
Message-ID: <CAHOTMVKS-yUcAxyhC3heeEbVfUEaN0OGoTSBfkYKSGRYW-Gz6A@mail.gmail.com>
To: Brian Smith <brian@briansmith.org>
Content-Type: multipart/alternative; boundary=047d7b471fe29f74f8050bc7e212
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/kv93DlHuOYwDYL8sx8jMFKocuaY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Benchmarks: 384 vs 389 vs Goldilocks vs ... on Haswell
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 03 Jan 2015 23:33:35 -0000

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

On Sat, Jan 3, 2015 at 11:54 AM, Brian Smith <brian@briansmith.org> wrote:

> FWIW, I don't think it's fair to assume that P384-mers 8-9%
> performance disadvantage can be optimized away, especially when the
> thing that's 9% faster is also slightly stronger


If future optimizations are a concern, given the P389 implementation is
completely new, I think it should probably be given the benefit of the
doubt as to how much it can be optimized. Especially given remarks like
this:

On Mon, Dec 29, 2014 at 3:14 PM, Mike Hamburg <mike@shiftleft.org> wrote:

> The P389 code is probably less tuned than its competitors. The MS code is
> written in pure asm, but it doesn't take advantage of BMI2.  The Goldilocks
> and P389 code are C with an asm multiply/accumulate intrinsic, but I spent
> more time tuning the Goldilocks code.


-- 
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On S=
at, Jan 3, 2015 at 11:54 AM, Brian Smith <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:brian@briansmith.org" target=3D"_blank" onclick=3D"window.open(&#39;h=
ttps://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dbrian@briansmith=
.org&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);retu=
rn false;">brian@briansmith.org</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">=
FWIW, I don&#39;t think it&#39;s fair to assume that P384-mers 8-9%<br>
performance disadvantage can be optimized away, especially when the<br>
thing that&#39;s 9% faster is also slightly stronger</blockquote><div><br><=
/div><div>If future optimizations are a concern, given the P389 implementat=
ion is completely new, I think it should probably be given the benefit of t=
he doubt as to how much it can be optimized. Especially given remarks like =
this:</div><div><br></div><div>On Mon, Dec 29, 2014 at 3:14 PM, Mike Hambur=
g=C2=A0<span dir=3D"ltr">&lt;<a href=3D"mailto:mike@shiftleft.org" target=
=3D"_blank" onclick=3D"window.open(&#39;https://mail.google.com/mail/?view=
=3Dcm&amp;tf=3D1&amp;to=3Dmike@shiftleft.org&amp;cc=3D&amp;bcc=3D&amp;su=3D=
&amp;body=3D&#39;,&#39;_blank&#39;);return false;">mike@shiftleft.org</a>&g=
t;</span>=C2=A0wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204=
,204);border-left-style:solid;padding-left:1ex"><span style=3D"font-size:13=
px">The P389 code is probably less tuned than its competitors. The MS code =
is written in pure asm, but it doesn&#39;t take advantage of BMI2.=C2=A0 Th=
e Goldilocks and P389 code are C with an asm multiply/accumulate intrinsic,=
 but I spent more time tuning the Goldilocks code.=C2=A0</span></blockquote=
><div>=C2=A0</div></div>-- <br><div>Tony Arcieri<br></div>
</div></div>

--047d7b471fe29f74f8050bc7e212--


From nobody Mon Jan  5 00:26:39 2015
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 9EF371A1BE4 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 00:26:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.099
X-Spam-Level: ***
X-Spam-Status: No, score=3.099 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MANGLED_DEALS=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 LL3RXudK3wpu for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 00:26:35 -0800 (PST)
Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 676231A1E0B for <cfrg@irtf.org>; Mon,  5 Jan 2015 00:26:35 -0800 (PST)
Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-04v.sys.comcast.net with comcast id c8Sa1p0012LrikM018SaCx; Mon, 05 Jan 2015 08:26:34 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-ch2-12v.sys.comcast.net with comcast id c8SZ1p0024uhcbK018SZ7N; Mon, 05 Jan 2015 08:26:34 +0000
Message-ID: <54AA4AB9.70505@brainhub.org>
Date: Mon, 05 Jan 2015 00:26:33 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1420446394; bh=Y73mcZ4GbsVWEgukKc+5bcaUeu+F33z7waWXt/h+fGY=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=JHl4FS25VrFm88S14/RRR06P22jFYrVoT7VsYbgSCYy268LlNaV2l4SIidRQy589M 4hI4wi+jSVheXbam1FB7Gv23o/TVnNEcJhetXU5BPyzTyWdWx17yq7iqWzywNX0Z12 67XQ+FFFQkcXCzRAMBc0jnUjSJ00pR2teiDAmq25Mnuc6aqVwh0vTw2aG11qZYctiQ Z70J06I9IouNeUpCYXApeTTcW0IvvmBmVtZM718BXFhZCQ4hVnVqwWmPMWOG1BG7bg mV/9tlSMoWAznX61siQe/vQuNTKS6nAfarRf/Hff5FtF7Yj3MpF3v3VBAUXXgvuL7W GSryPHob8qcpw==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/9KoGU8f98JLxLfVVprG-2itbp_o
Subject: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 08:26:37 -0000

I timed the EdDSA using the code recommended in 
http://www.ietf.org/mail-archive/web/cfrg/current/msg05034.html

To my surprise the performance of the verification v.s. variable base 
ECDH are about the same on a (non-Haswell) i5-3550 CPU @ 3.30GHz CPU ( 
the same I used before in prior reports).

git clone https://github.com/brainhub/curve25519-donna.git
$ make speed-curve25519-donna-c64 && ./speed-curve25519-donna-c64
71 us, 14063.8 op/s, 234115 cycles/op

git clone https://github.com/floodyberry/ed25519-donna && cd ed25519-donna
$ gcc ed25519.c -m64 -O3 -c  && gcc test.c ed25519.o -l crypto -o _ && ./_
61965 ticks/public key generation
65268 ticks/signature
223425 ticks/signature verification
60219 ticks/curve25519 basepoint scalarmult
failed to generate expected result
want: 
51,e7,68,e0,f7,a1,88,45,de,a1,cb,d9,37,d4,78,53,1b,95,db,be,66,59,29,3b,94,51,2f,bc,0d,66,ba,3f,
got : 
a9,62,ab,6a,f7,93,6c,52,a6,4e,68,34,04,1c,db,6b,47,7d,5e,f8,14,c0,fc,5c,1d,99,98,1b,b5,c5,05,53,
diff: f8,85,c3,8a, 
,32,e4,17,78,ef,a3,ed,33,c8,a3,38,5c,e8,85,46,72,99,d5,67,89,c8,b7,a7,b8,a3,bf,6c,

110063 ticks/verification (batch)

(I commented out exit(1) in test.c due to tests failing and added 
"batch" above).

I then changed the ge25519_double_scalarmult_vartime, which is doing 
"[s1]p1 + [s2]basepoint" to only do [s1]p1, making sure that the piece 
that takes window values from the precomputed static const 
ge25519_double_scalarmult_vartime is disabled.

This resulted in:
...
202080 ticks/signature verification
...

We have ECDH performance: 234115,  a relevant portion of signature 
verification: 202080.

This shows that the performance of Montgomery ladder v.s. Edwards 
variable base scalar multiplication for p ~= 2^256 is about 15% faster. 
The table for the window values is only 40*4*2^3=1280 bytes. This is 
with 64-bit C code in both cases.


I was expecting that a Montgomery ladder will be faster. Which brings 
the question how much faster should we expect Montgomery ladder to be 
for p ~= 2^256 x86 or other architecture? I don't see it on x86 in my 
quick tests.

Also, I saw a remark in 
https://www.ietf.org/mail-archive/web/cfrg/current/msg05712.html "At the 
128-bit security level the ladder can be faster. At the > 200-bit+ 
security levels the ladder is slower."


From nobody Mon Jan  5 01:35:21 2015
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 4859D1A212D for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 01:35:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.255
X-Spam-Level: ****
X-Spam-Status: No, score=4.255 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 Uxs3e7YHhUNn for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 01:35:17 -0800 (PST)
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 904381A1F20 for <cfrg@irtf.org>; Mon,  5 Jan 2015 01:35:17 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 016F83AA43; Mon,  5 Jan 2015 01:32:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420450368; bh=cLZqOTIKlOurWrnUUo68tfCdzUf/65a4ooMmNCBWtEE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=iiuRjnA+hjZcFQloNqJA1xKvOqHpQpWpXYmwQFOTEdjFMNOLsyou1qc6+DXMlkwFD bvn6F4Nl1Of8czYE2uS7zG/61X+aihwn4XQFryiHqDESp5a+z1hFxDRBdTecCwLlaD 1QgYLkRTu3etgdlLBklyWQyNOmvr/if7VB1uIYOY=
Message-ID: <54AA5AD3.9020009@shiftleft.org>
Date: Mon, 05 Jan 2015 01:35:15 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Andrey Jivsov <crypto@brainhub.org>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AA4AB9.70505@brainhub.org>
In-Reply-To: <54AA4AB9.70505@brainhub.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/UnyRsKYkqM95DOrVYLxQ4AafXVs
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 09:35:19 -0000

On 01/05/2015 12:26 AM, Andrey Jivsov wrote:
>
> I was expecting that a Montgomery ladder will be faster. Which brings 
> the question how much faster should we expect Montgomery ladder to be 
> for p ~= 2^256 x86 or other architecture? I don't see it on x86 in my 
> quick tests.
>
> Also, I saw a remark in 
> https://www.ietf.org/mail-archive/web/cfrg/current/msg05712.html "At 
> the 128-bit security level the ladder can be faster. At the > 200-bit+ 
> security levels the ladder is slower."
Hi Andrey,

I don't know about Donna, but I have fairly comprehensive benchmarks on 
a 252-bit curve (Ed252-MontgomeryStation) and the Goldilocks curves.

Ed252 runs a shared secret computation in 133k cycles on my 3.6GHz 
i7-4790 machine (TB off, HT off).  The microbenchmark breaks this down 
as 120k cycles of constant-time Montgomery laddering, about 13k cycles 
compression, and about 1300 cycles unaccounted.

Constant-time windowed Edwards would replace the ladder with 126k 
cycles.  Variable-time wNAF Edwards takes 112k cycles. So variable-time 
Edwards is 7% faster, and constant-time Edwards is 5% slower, than the 
Montgomery ladder, not counting the final compression.  But the 
Montgomery ladder takes compressed points as input.  Decompression takes 
13.4k  cycles to Edwards, or about 11% of the ladder.  So if you're 
operating on compressed points throughout, the Montgomery ladder is 
about 16% faster (and the whole ECDH about 14-15% faster) than 
constant-time Edwards.


For Ed448, it's a little closer.  The Montgomery ladder and compression 
take 529kcy, and the Edwards consttime window and compression (but not 
decompression) take 540kcy.  The compression function itself is about 
48kcy for either, and decompression is 49kcy.  So with no decompression, 
Montgomery is 2% faster, and with decompression it's 11% faster.

However, replace that Edwards with a fixed-window with cache-vulnerable 
indexing, and it goes down to 503kcy.  Replace it with wNAF and it goes 
down to 490kcy.  At that point it's still slower than the Montgomery 
ladder on compressed points, but only by 2%.

This ratio should be affected by the S/M/m ratio of the field 
arithmetic, the speed of constant-time lookup and condswap, and the size 
of the scalars.  Montgomery does more S,m, and Edwards does more M, 
except that the decompression is also S heavy.  As the curve gets 
larger, the windows can get larger which favors Edwards.  But Edwards 
also burns some 7-8% of its time on constant-time lookups on Ed448, and 
that's with AVX2 to speed them up.

Microsoft's benchmarks on Ed-384-mers, and even some of my earlier Ed448 
numbers disagree with the Ed448 data above.  My earlier numbers were 
about 6% less favorable to Montgomery, and Microsoft's numbers were 
about 10-15% less favorable to Montgomery.  I don't know why my latest 
tests are more favorable to Montgomery than my earlier ones; it may be 
machine or compiler-dependent, or it may have been caused by source 
changes since then.  I tried to hash out the discrepancy between my 
numbers and Microsoft's with Patrick Longa Pierola, but that's as close 
as we got.

So, for larger primes, the Montgomery ladder is probably slightly faster 
than Edwards when operating on compressed points, and slower or the same 
otherwise.


Cheers,
-- Mike


From nobody Mon Jan  5 02:32:57 2015
Return-Path: <baronsz@freemail.hu>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD65E1A1B8A for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 02:32:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.896
X-Spam-Level: **
X-Spam-Status: No, score=2.896 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, FREEMAIL_FROM=0.001, HELO_EQ_HU=1.35, HOST_EQ_HU=1.245, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_NONE=-0.0001, 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 WUU1i82FnZLt for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 02:32:51 -0800 (PST)
Received: from iwiw03d.mail.t-online.hu (iwiw03d.mail.t-online.hu [84.2.42.68]) by ietfa.amsl.com (Postfix) with ESMTP id D9EC11A2130 for <cfrg@irtf.org>; Mon,  5 Jan 2015 02:32:50 -0800 (PST)
Received: from fmx25.freemail.hu (fmx25.freemail.hu [195.228.245.75]) by iwiw03d.mail.t-online.hu (Postfix) with SMTP id 4F4994E9516 for <cfrg@irtf.org>; Mon,  5 Jan 2015 11:31:46 +0100 (CET)
Received: (qmail 62848 invoked by uid 151); 5 Jan 2015 11:32:48 +0100
Received: from fmlb00.freemail.hu (HELO fmxmldata04.freemail.hu) (195.228.245.211) by fmx25.freemail.hu with SMTP; 5 Jan 2015 11:32:48 +0100
Received: from webmail by smtp gw id t05AWmLM023568; Mon, 5 Jan 2015 11:32:48 +0100 (CET)
Date: Mon, 5 Jan 2015 11:32:48 +0100 (CET)
From: =?UTF-8?Q?Szab=C3=B3_=C3=81ron?= <baronsz@freemail.hu>
To: cfrg@irtf.org
Message-ID: <freemail.20150105113248.23567.1@fmxmldata04.freemail.hu>
X-Originating-IP: [91.120.40.131]
X-HTTP-User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
X-Original-User: baronsz
MIME-Version: 1.0
Content-Type: TEXT/plain; CHARSET=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/JmZb2i2yK4FMHBd2xgGfMBY4wlI
Subject: [Cfrg] LDWM implementation questions (Hash-Based Signatures - draft-mcgrew-hash-sigs-02)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 10:32:54 -0000

Dear Members,

I am not a mathematician, but as a developer some questions came up during implementation the LDWM algorithm of standard draft (https://tools.ietf.org/html/draft-mcgrew-hash-sigs-02). Please, explain things that I imagine/understand wrong! Thx!

a)
"The LDWM public key is generated from the private key by applying the function F^(2^w - 1) to each individual element of x, then hashing all of the resulting values."

If I understand well the notations, "m" stands for length of (private) key chunks assigned as signature chunks based on the 0/1 value of H(message) "i"th bit (e.g. 256 bits in case of SHA-256, or 512 bits in case of SHA-512) and "n" stands for length of H(message) (e.g. 256 bits in case of SHA-256, or 512 bits in case of SHA-512).

In case of n=length(H(message)), there are no restrictions to the output length and the applied hash algorithm. It is also true in case of m=length(private_key_chunk[i]), but Winternitz parameter - { 1, 2, 4, 8 } - shall be applied to derive public_key_chunk[i] values before hashing (as I saw the pseudo-code in the draft). But why is this transformation specified as a "MUST" requirement? I mean, if I have a restriction that I shall not lose entropy at any sub-step of implementing the algorithm (e.g. because of Grover's algorithm) how can I use e.g. SHA-512 public keys as they are (without any kind of key size reduction) if the maximum value is just w=8 (2^8=256 bits)? So, shall/can I use e.g. w=16? Or is there any way to skip the size reduction sub-step of derived public keys in the pseudo-code (e.g. by inserting an "if-else" in it)?

b)
"A checksum is used to ensure that any forgery attempt that manipulates the elements of an existing signature will be detected."

Could you explain what the exact reason, and added value of this checksum is? I found nothing about this in the core descriptions of Lamport-Diffie one-time signature scheme in Bernstein-Buchmann-Dahmen's book. OK, I understand that this provides an easy way to pre-check signature validity before computing all the needed hashes (good from "developer" viewpoint), but if it is not a core step of algorithm (seeing from "mathematician" viewpoint), then I think this should be just an optional thing, isn't it? I have already read "8.1. Security of LDWM Checksum" section where it is described that "an attacker may try to change the values of h and c" and "then the attacker can compute F^a'(x[j]) from F^a(x[j]) = y[j]" which is the array of public key chunks. But if I assume a trusted-third-party model (e.g. trusted CAs issuing signed public keys as X.509 certificates) the alteration of end user public keys is not possible (OK, hacking the whole trusted chain or finding a new PRNG backdoor w
 ould provide a solution, of course, but now I think about the expected way of operation). So, in case of public key chunks are signed by some kind of CA, perhaps performing and concatenating this C(H(message)) can be avoided...

c)
>From the developer and user viewpoint: beyond the specification of the core algorithm, I think the IETF RFC 5280 (X.509) and/or IETF RFC 3447 (PKCS#1) standard (or maybe this draft itself) shall be modified with an update/amendment in order to describe the exact ASN.1 data structures of private/public keys and created signatures. I know that CA softwares, and applied crypto libraries will not implement these modifications immediately, but for development and testing reasons it would be important to involve these now. (As I see, the OID of algorithm - which is important part of SubjectPublicKeyInfo - is already defined: 1.2.840.113549.1.9.16.3.17.X). So, could you also define the ASN.1-level data structures? (see my attempt below)

LDWMPublicKey ::= SEQUENCE {
 version Version,
 algorithm AlgorithmIdentifier,
 keyChunks KeyChunks,
 otherInfo OtherInfo OPTIONAL
}

LDWMPrivateKey ::= SEQUENCE {
 version Version,
 algorithm AlgorithmIdentifier,
 keyChunks KeyChunks
}

LDWMSignature ::= SEQUENCE {
 version Version,
 signatureChunks KeyChunks,
 checksum Checksum OPTIONAL
}

Version ::= INTEGER { v1(0) }

AlgorithmIdentifier ::= SEQUENCE {
 algorithm OBJECT IDENTIFIER,
 parameters ANY DEFINED BY algorithm OPTIONAL
}

KeyChunks ::= SEQUENCE SIZE(1..MAX) OF KeyChunk

KeyChunk ::= SEQUENCE {
 chunk0 BIT STRING,
 chunk1 BIT STRING
}

OtherInfo ::= SEQUENCE {
 winternitz INTEGER,
 keyDerivation AlgorithmIdentifier OPTIONAL
}

Checksum ::= SEQUENCE {
 checksumCalculation AlgorithmIdentifier,
 leftShiftBits INTEGER
}

Best regards,
Aron Szabo

P.S.: I apologise for that if you get this e-mail twice.


From nobody Mon Jan  5 10:26:31 2015
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 2EC5E1A87A5 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:26:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.111
X-Spam-Level: 
X-Spam-Status: No, score=-0.111 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CTVxbcdPh5jo for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:26:26 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 0BF541A8732 for <cfrg@irtf.org>; Mon,  5 Jan 2015 10:26:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420482385; d=isode.com; s=selector; i=@isode.com; bh=ZZuQsE+3wsq47ePrzapjEbJ7wTsaiOQ9JcqQvvvosAc=; 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=AVY3mNIdg/GkJPPb6zgDm3l3JBmRirhgLwDci8amtEAT+Ft2BahQqMT39DqkVJsfL15DJu q7m/FMXoyoYm9WfejCx9Ke4O6kAt8lakqpHLXdZ55I/Wl/DWRHCnE6RV7Ayak1mCc6hQWD /45w+adcCU9Zqx76u4xRcvIrt3u3sOA=;
Received: from [192.168.0.5] (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 <VKrXTgAKaMQB@waldorf.isode.com>; Mon, 5 Jan 2015 18:26:25 +0000
Message-ID: <54AAD751.6060102@isode.com>
Date: Mon, 05 Jan 2015 18:26:25 +0000
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/BSzWp5gJAImI0jfCIlixl1u0RkE
Subject: [Cfrg] Status of ECC discussion
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 18:26:28 -0000

Dear CFRG participants,

As many people are accusing chairs of "continuing the farce" and 
generally being slow with declaring consensus on ECs, I think chairs
need to clarify their position and elaborate on what is guiding our actions.

We strive to be impartial. If you don't believe that that is the case, 
please bring this to our attention or appeal to IRTF Chair Lars Eggert.

We believe that having an algorithm for generating suitable secure 
curves at any given level will benefit Internet long term. I personally
don't want to repeat this discussion every couple of years, if I can 
avoid it. This topic caused chairs lots of stress and it is requiring 
too much bandwidth.

We don't want to just rubber stamp curve25519 or any alternative.

We try to steer people to reach some sort of agreement on curves and 
curve generation procedures. Chairs admit that they are not always
successful at that.

There is significant external pressure to get this work complete from 
the TLS WG. Yes, we missed 2 deadlines (and got 2 extensions) already,
but the pressure is still there. If CFRG can't have even rough consensus 
on anything, CFRG will fail to make a positive difference and choices 
will be made elsewhere in IETF, most likely in multiple incompatible 
ways. This is going to be a net loss for the Internet.

After observing recent discussions on the mailing list and answering to 
multiple private emails, chairs are in agreement that we reached the
point of diminishing returns. So we are planning to declare outcome of 
the discussion on curve choices within 2 weeks from today (decision 
about signature algorithm, and point formats will be done after that), 
unless significant new facts are posted on the mailing list. We would 
prefer for that not to be "no consensus". So when posting any email, 
people should be calm and as constructive as possible. Constructive 
proposals like the one made by Adam Langley recently should be the norm, 
not the exception.


Other observations:

Please avoid second guessing other people (including chairs) and 
attributing motives to them.

People MUST NOT imply that other mailing list participants are not 
acting in good faith and they must treat all contributions with respect.
In particular, we don't think that some reaction to work done by authors 
of draft-black-rpgecc was warranted.

Some people are not behaving very professionally on the mailing list. We 
want to remind people that bullying behaviour is not acceptable on CFRG 
mailing list. Chairs are a bit tired of slapping every hand and mouth.

Best Regards,
Kenny & Alexey


From nobody Mon Jan  5 10:34:55 2015
Return-Path: <david.rufino@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 CD8D81A879C for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:34:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.3
X-Spam-Level: 
X-Spam-Status: No, score=-1.3 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 OqXUCP7aKG9O for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:34:51 -0800 (PST)
Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F22D1A8789 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:34:51 -0800 (PST)
Received: by mail-vc0-f171.google.com with SMTP id hy4so8554162vcb.2 for <cfrg@ietfa.amsl.com>; Mon, 05 Jan 2015 10:34:50 -0800 (PST)
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=N6EbjGlo3fnyd+6F4aR1X0Wl69nZiXvXPoaiqzVFu3I=; b=ME1nXYrtLYTNLQHTBaPmaWFtbiTa7oYfc5/SYFqqulQ14uHP5UGH+eWPCMqGOCzCAL ylEX8zDORX6tz01gMewICzxJhNnYjLDRp66v7TRRfGnrbFJ6hKuXQHH8piQKhb0V41RU 8iFb4CdAX2n1sBvwNG0xlu+ks0mMr574oxKzIrb+ZxS+EHFC4k6k6spNpHo+ApOmv+0e +CtgDhQM6mMPJj2zJMRdfrSQIcA3iLQLakQ3DiApyAY50MiQWv8YOFQuNM+Fxh1iSi2S KLMrugiylW1q7ZX3OBg29KDV5+D9JRva1i3God46Qm3zvBdGNXGgOgxqnz5UPfOnneK/ qogw==
MIME-Version: 1.0
X-Received: by 10.220.74.197 with SMTP id v5mr58770518vcj.27.1420482890464; Mon, 05 Jan 2015 10:34:50 -0800 (PST)
Received: by 10.52.138.143 with HTTP; Mon, 5 Jan 2015 10:34:50 -0800 (PST)
In-Reply-To: <20150102193819.GB28778@cph.win.tue.nl>
References: <CAAwjuuy19Yg-TVWm5BAEkPnwRkfvC2M0T=Aeck5iG7Y9FM13cw@mail.gmail.com> <20150102193819.GB28778@cph.win.tue.nl>
Date: Mon, 5 Jan 2015 18:34:50 +0000
Message-ID: <CAAwjuux_kvVb4wpNCav6n4btaO6Mqd6OTAM4yNGz_sd56mWwLg@mail.gmail.com>
From: David Rufino <david.rufino@gmail.com>
To: Tanja Lange <tanja@hyperelliptic.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/T5dKW3jRl2GQPDGnwyncIQ4pjDw
Cc: agl@imperialviolet.org, cfrg@ietfa.amsl.com
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 18:34:54 -0000

Ok, thank you (and Watson) for pointing that out. So presumably
modifying one of draft-black/draft-turner/draft-cfrgcurve to use the
montgomery-style NUMS procedure, which will generate curve25519 at
WF128, should satisfy everyone's requirements ?

Cheers,
David

On 2 January 2015 at 19:38, Tanja Lange <tanja@hyperelliptic.org> wrote:
>>    Perhaps it's worth making an explicit decision on whether or not
>>    'rigidity' is actually a required feature. The very rough consensus
>>    appears to be 'no', because it's regarded as improbable ('alien
>>    technology') that anyone would be able to 'backdoor' the elliptic curve.
>>    In either case it appears to me that deciding this question ought to fix
>>    the curve on purely technical grounds (no -> curve25519, yes -> rpgecc)
>>
> This would be quite a mischaracterization of X25519. The 2006 paper
> contains full justifications about every single choice made and
> X25519 is historically the first fully rigid curve (unless one includes
> Koblitz curves or other curves with very special properties which
> coincidentally limit the choice down to just one curve). Its coefficient
> A is the smallest one achieving all required properties. The reason
> that this draft finds a different (isogenous) curve is that it searches
> for the smallest coefficient d for a curve in _Edwards_ form rather
> than for the smallest coefficient A for a curve in _Montgomery_ form.
>
> This 'wiggle room' of choosing a curve shape cannot be eliminated
> but it's quite small. (Note that the paper introducing the NUMS curves
> had 26 curves spread over 3 levels of security, because of this and
> a similar decision of how to optimize the prime choice.)
>
> I don't understand why the procedure should be part of the draft
> anyways. A description of how to rigidly choose curves already
> appears in ACM-CSS 2013 [1]. This could be cited along with the
> NUMS paper as informative references in the security considerations.
> The generation method does not matter for the implementor
>
> Regards
>         Tanja
>
> [1] "Elligator: Elliptic-curve points indistinguishable from uniform
> random strings", Bernstein, Hamburg, Krasnova, Lange, ACM-CCS 2013,
> http://dx.doi.org/10.1145/2508859.2516734 (Open Access)
>


From nobody Mon Jan  5 10:38:10 2015
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 658691A8788 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:38:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K7LXQYHhKT5s for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 10:38:03 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 6C64A1A8785 for <cfrg@irtf.org>; Mon,  5 Jan 2015 10:38:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420483082; d=isode.com; s=selector; i=@isode.com; bh=EPwCFNiYh5NkMEs9Fji9efG6llH8buZYR72dGRgw7xY=; 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=neHcrQCx5y1CEIltnJJb5+F2nm4Zq2yoF2NRjZPqEmGbbyhLkxmWBIJb2ZQsOPoq56I0Te 6nr+sbGrqIPZouhWwNx6R2zZg/8CUXyn737epyS1FnAEWdi1vdKp1RF4jLabWHdbGSkYam 8KMO143SAbU+5hZMmDorbJuvsIJ7Xic=;
Received: from [192.168.0.5] (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 <VKraCQAKaJYx@waldorf.isode.com>; Mon, 5 Jan 2015 18:38:02 +0000
Message-ID: <54AADA0C.3010901@isode.com>
Date: Mon, 05 Jan 2015 18:38:04 +0000
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: Adam Langley <agl@imperialviolet.org>, Watson Ladd <watsonbladd@gmail.com>
References: <CAMfhd9Vi=VJw2NW1CX1aE_qjXFmQ1Cmd1F4s7C9eEvuVog-f=Q@mail.gmail.com> <CAMfhd9UAkNBXvof3SgJLQ4Ld6=jNdvLnpCUrMsJFUCepGZytqA@mail.gmail.com> <CACsn0c=GVLh3vYm=dxW=FKKx3Zd=5L6qdh8m_xzjZpb+mk9+0w@mail.gmail.com> <CAMfhd9XJiatX7KoXmYbgoMPkyEV=kprEhZGW33wGZHZ4XbUX7w@mail.gmail.com> <CAMfhd9XxD0vApwjZBq6V9ZmgefEfEYN8y+g_soRa6t2XaEajzQ@mail.gmail.com>
In-Reply-To: <CAMfhd9XxD0vApwjZBq6V9ZmgefEfEYN8y+g_soRa6t2XaEajzQ@mail.gmail.com>
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/0dAtjknsV_lJlZkX9Vqy39dEUSw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A draft merging rpgecc and thecurve25519function.
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 18:38:05 -0000

On 02/01/2015 01:16, Adam Langley wrote:
> On Thu, Jan 1, 2015 at 4:51 PM, Adam Langley <agl@imperialviolet.org> wrote:
>> However, I don't agree that the algorithm is simply ignored. It's
>> clearly important to some that the generation algorithm be explicit
>> and transparent. Yes, it's odd that at the end we have to do an
>> arbitrary isogeny but I think the motivation for that is clear and
>> it's a "safe" step (i.e. we can't have hidden anything dodgy in there
>> to my knowledge.)
>>
>> The algorithm could be written to reflect how curve25519 was
>> developed: i.e. that it output a Montgomery curve and then the twisted
>> Edwards is the obvious isomorphism from there (if needed). That might
>> well be clearer if we don't recommend any other curves.
>>
>> But dealing with Edwards curves and having the algorithm generate them
>> makes it easier if we recommend another, or in the optimistic scenario
>> that we also end up specifying a signature scheme.
> I think I've fallen into the "details" trap in that reply.
>
> However the generation is structured to make it most clear, and
> whether or not we mention (twisted) Edwards curves, I think that the
> important point is this:
>
> Unless the chairs believe, and state within weeks, that we can move
> forward with something shaped like this draft (whether it's based on
> it or not)
Chairs believe that your draft is a very reasonable compromise  (in IETF 
sense, not in security sense) between technically sound proposals and 
will initiate Last Call on acceptance of your document as a starting 
point for CFRG document shortly.
> then I don't think that this RG will be able to recommend
> any specific curves. I don't think anything will be more generally
> agreeable.
Agreed.
> If we can't recommend curves then the best that we might be able to do
> is to put out a document that states the requirements for safe
> elliptic curves and mentions that curve25519, curve25519-isogeny,
> 41417, Goldilocks, E-521, etc are all fine, cryptographically. Then
> other WGs will have to do the picking.
Indeed. This outcome would be suboptimal (IMHO), but still a bit better 
than "no consensus on anything in CFRG".


From nobody Mon Jan  5 11:28:10 2015
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 87C451A893B for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 11:28:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oXMsPWpaSEpm for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 11:28:05 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id C73B71A879D for <cfrg@irtf.org>; Mon,  5 Jan 2015 11:15:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420485328; d=isode.com; s=selector; i=@isode.com; bh=tbKLTBZ9iS1tAsv3rEIoM5nNWOuwhZzzKCMPcBALeW4=; 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=iGj7pUcY9fakoFKlfiC1jGke77k5SHfh7+/74ZLIWQLlh7U/+FLwADDqvXnSk+EFBkj6BR QxfTdnYQullBK8sgEBsLTRTesFPftEcfrE8iAQA0cOpk9sIwMIF7pqw0Q6Z767vM2wxWxp yn+Ry0WikFXSSyeXNL2Rn65JIogPIXY=;
Received: from [192.168.0.5] (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 <VKrixwAKaKf7@waldorf.isode.com>; Mon, 5 Jan 2015 19:15:27 +0000
Message-ID: <54AAE2CA.1080701@isode.com>
Date: Mon, 05 Jan 2015 19:15:22 +0000
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/O40a7b4_IWbV8Lr-7yVbemnhs3A
Subject: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 19:28:06 -0000

This message starts 2 weeks adoption call (ending on January 19th 2015) on:

https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml

as the starting point for the CFRG document which describes an algorithm 
for safe curve parameter generation for a particular security level and 
also recommends a specific curve (2^255-19) for the 128-bit security level.

Please reply to this message or directly to CFRG chairs, stating whether 
you support (or not) adoption of this document. If you do not support 
adoption of this document, please state whether you support adoption of 
any alternative document or whether you want a particular change be made 
to the document before adoption.

Chairs ask not to reiterate previously expressed technical opinions or 
arguments. But clarifying questions on the adoption call are welcome.

While making your decision, please keep in mind

http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html

Alexey,
On behalf of CFRG chairs.

P.S. Editors of draft-black-rpgecc-01 and 
draft-turner-thecurve25519function-01 can become co-editors of the 
adopted document, if they choose to do so. Email chairs directly if you 
are willing or not willing to do so.


From nobody Mon Jan  5 12:02:34 2015
Return-Path: <alangley@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 CA9A21A8966 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:02:31 -0800 (PST)
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 stKY_Pq39y3u for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:02:30 -0800 (PST)
Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2512C1A89F0 for <cfrg@irtf.org>; Mon,  5 Jan 2015 11:49:49 -0800 (PST)
Received: by mail-lb0-f169.google.com with SMTP id p9so18611920lbv.28 for <cfrg@irtf.org>; Mon, 05 Jan 2015 11:49:47 -0800 (PST)
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=7Z6kuDWGzzLAlwT9OTlgcD4kzwcAblUOlOm3xt5EfhQ=; b=uBkdC3Jw2hfmfU4TegLI6IhNv7wd4Ii5Vr/y6ZFVwXhkwWgbdfOydbOZFAmlb5ttOq WkTExvXomC13gQvv87p4LNrmMFz1iFvMn9k9BRvsVBqolkKUDQDtTIlXDj5dPqn/qhXi uN/K9Dkco4Youn2FqhL/Y55B5iLC5BmtjwD0ZjJCNtAGxODKLWlnolIPrm+Wm5U9N9en IZASfxeqvsM7oXEK7vq7b4wy2khRT0kl6ObGRx+y5loAmenRor/1BNlH1dKChmPZ5t6h Oi28VDdozz3RaYseZFU6pKcxFnn/Ml2RDqzeRXD06Kg2QcFKCW476xmlcZrqc59Gayeb dkTA==
MIME-Version: 1.0
X-Received: by 10.112.163.167 with SMTP id yj7mr47831607lbb.96.1420487387329;  Mon, 05 Jan 2015 11:49:47 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Mon, 5 Jan 2015 11:49:47 -0800 (PST)
In-Reply-To: <54AAE2CA.1080701@isode.com>
References: <54AAE2CA.1080701@isode.com>
Date: Mon, 5 Jan 2015 11:49:47 -0800
X-Google-Sender-Auth: s5Py4ThiXzR7MkSebWQRdL4MEl4
Message-ID: <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/QW_h6UDbzmaHTEia2I7paEuYe4Y
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 20:02:32 -0000

On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov
<alexey.melnikov@isode.com> wrote:
> whether you want a particular change be made to the
> document before adoption.

The structure of the current draft anticipates an additional curve and
also signature work so I'd like to point out a couple of changes to
save others having to do so:

1) If no other curves end up being recommended, then the current
generation process is overly complicated and could well be replaced
with a description that mirrors how curve25519 was actually chosen:
i.e. that the minimal sensible A value in Montgomery form be chosen.
It really depends on how important a generic procedure is seen to be.

2) The procedure for generating base points is currently unused and,
if change (1) is done, it could be tweaked to reflect how the
curve25519 base point was generated.

3) If we don't end up saying anything about signatures, all mention of
Edwards curves could conceivably be dropped.

Not to mention that several sections should be greatly expanded upon,
clarified etc. I think such changes can be considered as a given.


To contrast, if you desire changes like "a different curve should be
recommended" then I think that translates to not supporting adoption.


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Mon Jan  5 12:04:54 2015
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 A0B121A8973 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:04:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level: 
X-Spam-Status: No, score=-2.009 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, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qxtvRQ8GxEFd for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:04:40 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id EF8DD1A896E for <cfrg@irtf.org>; Mon,  5 Jan 2015 11:55:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420487744; d=isode.com; s=selector; i=@isode.com; bh=6OampgYcLuNRpHB+EhEBksOkNlNJNhV+ZDlj0cq5dXU=; 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=rAYc7DDYO4h+JTgjKQj68BYKwBQoSBID9dh35OxhFXW+Bwt/XTiHeyu2fZQvBhetVzP8LC 92715sOOPqLNeAE5tSY94Qlfn9oUSZuX62FMCOXBiQ+QmXRmkj1iux/m27NauJvcsAN8Ie Dg86u7zooBtq0AVp83cnMIZTD5Gprms=;
Received: from [192.168.0.5] (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 <VKrsPQAKaIxe@waldorf.isode.com>; Mon, 5 Jan 2015 19:55:43 +0000
Message-ID: <54AAEC3F.1090308@isode.com>
Date: Mon, 05 Jan 2015 19:55:43 +0000
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>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com>
In-Reply-To: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------090407010402000002020307"
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/tQawNFXDNSHdCNXyUMJ62CeT8IA
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG 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, 05 Jan 2015 20:04:47 -0000

--------------090407010402000002020307
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 14/12/2014 16:41, Alexey Melnikov wrote:
> Hi,
> This message starts 3 weeks adoption call for draft-ladd-spake2. 
> Please reply to this message or directly to CFRG chairs, stating one 
> of the following
>
> 1) that you are happy to adopt the draft as a starting point
> 2) that you are not happy to adopt this draft
> or
> 3) that you think the document needs more work before the RG should 
> consider adopting it
>
> While detailed document reviews are generally welcome, this not a call 
> to provide detailed comments on the document.
So far I have 4 people in favour of working on this and 3 against (some 
of these replied privately). I have emailed a few more, but I would like 
more feedback.

Thank you,
Alexey



--------------090407010402000002020307
Content-Type: text/html; charset=UTF-8
Content-transfer-encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Type"=
>
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    <div class=3D"moz-cite-prefix">On 14/12/2014 16:41, Alexey Melnikov
      wrote:<br>
    </div>
    <blockquote
      cite=3D"mid:BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com"
      type=3D"cite">
      <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-=
8">
      <div><span></span></div>
      <div>
        <meta http-equiv=3D"content-type" content=3D"text/html;
          charset=3DUTF-8">
        Hi,
        <div><span style=3D"background-color: rgba(255, 255, 255, 0);">This
            message starts 3 weeks adoption call for=C2=A0</span><span
            style=3D"background-color: rgba(255, 255, 255, 0); font-size:
            medium;">draft-ladd-spake2. Please reply to this message or
            directly to CFRG chairs, stating one of the following</span></di=
v>
        <div><span style=3D"background-color: rgba(255, 255, 255, 0);
            font-size: medium;"><br>
          </span></div>
        <div><span style=3D"background-color: rgba(255, 255, 255, 0);
            font-size: medium;">1) that you are happy to adopt the draft
            as a starting point</span></div>
        <div><span style=3D"background-color: rgba(255, 255, 255, 0);
            font-size: medium;">2) that you are not happy to adopt this
            draft</span></div>
        <div><font size=3D"3">or</font></div>
        <div><font size=3D"3">3) that you think the document needs more
            work before the RG should consider adopting it</font></div>
        <div><font size=3D"3"><br>
          </font></div>
        <div><font size=3D"3">While detailed document reviews are
            generally welcome, this not a call to provide detailed
            comments on the document.</font></div>
      </div>
    </blockquote>
    <font size=3D"3">So far I have 4 people in favour of working on this
      and 3 against (some of these replied privately). I have emailed a
      few more, but I would like more feedback.<br>
      <br>
      Thank you,<br>
      Alexey<br>
      <br>
    </font><br>
  </body>
</html>

--------------090407010402000002020307--


From nobody Mon Jan  5 12:06:23 2015
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 2CAAB1A1BA2 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:06:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IgjBa4nlhOYh for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:06:12 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68F281A89F9 for <cfrg@irtf.org>; Mon,  5 Jan 2015 11:57:01 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 38DB5BE97; Mon,  5 Jan 2015 19:57:00 +0000 (GMT)
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 oZch3_GEY6JH; Mon,  5 Jan 2015 19:56:58 +0000 (GMT)
Received: from [10.87.48.73] (unknown [86.42.19.48]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id CD678BE8E; Mon,  5 Jan 2015 19:56:58 +0000 (GMT)
Message-ID: <54AAEC8A.40902@cs.tcd.ie>
Date: Mon, 05 Jan 2015 19:56:58 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Alexey Melnikov <alexey.melnikov@isode.com>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PE831d1Dz70Irf2q97jxZdEFfkw
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 20:06:16 -0000

On 05/01/15 19:15, Alexey Melnikov wrote:
> 
> 
> Please reply to this message or directly to CFRG chairs, stating whether
> you support (or not) adoption of this document.

I support adoption of AGL's text. I don't care how the text
ends up in one or more cfrg documents and am fine that that
be figured out after the chairs have evaluated the level of
consensus for the content. I'm also fine if changes are made
later to the generation text, (section 6 of [1]) but if the
chairs do conclude that there is consensus for Curve25519 as
part of the output of this exercise then I would have a
problem were that to change later on (assuming no substantive
show-stopper reason is found of course).

S.

[1] https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml


From nobody Mon Jan  5 12:22:03 2015
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 A30421A8A50 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:22:01 -0800 (PST)
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_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, J_CHICKENPOX_54=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1sg34gXfygiR for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:21:59 -0800 (PST)
Received: from resqmta-po-02v.sys.comcast.net (resqmta-po-02v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:161]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EBF381A891A for <cfrg@irtf.org>; Mon,  5 Jan 2015 12:07:26 -0800 (PST)
Received: from resomta-po-10v.sys.comcast.net ([96.114.154.234]) by resqmta-po-02v.sys.comcast.net with comcast id cL7S1p00353iAfU01L7Snz; Mon, 05 Jan 2015 20:07:26 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by resomta-po-10v.sys.comcast.net with comcast id cL7Q1p00l4uhcbK01L7RHT; Mon, 05 Jan 2015 20:07:26 +0000
Message-ID: <54AAEEFC.9060309@brainhub.org>
Date: Mon, 05 Jan 2015 12:07:24 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Mike Hamburg <mike@shiftleft.org>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org>
In-Reply-To: <54AA5AD3.9020009@shiftleft.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=1420488446; bh=paFND5hPRAyR4tkZZl6zQHOJ2sR4jUKMyym9PWy0A8s=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=jP6SS4UgbvN7RiOCNnaZMa5gKYXDjI8N4gPZrMVVx/xXnWsSItS20b2PiZTwvHUvc v7ELcPJqra8Fn/cVJatXYdIur8UN1iPoRMc+6qbCbmnVO4KLMQW169UpipWZeebzBA m44FdVxpC+MvrJKXMnwwoMGxF1VTVNqFTcEN80TRgTt9m7HbAjy/noz55z/Zd8crqQ 8OSrRStXrF0wMvcOB2uJEYDZ77EIr8e/SBOt0XFPqnTHzxsTSMcplhcsC4/IpyGtk/ 56XDy1Gkq+VPGUDKMOSafqnRubpqtCIEx7tAnbOgIXzteesXXnHrcTxJ9S0p5TbkWk apfIVhzWGu2oQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/PWs7GAogP55-FNbdjzFICxwWavw
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 20:22:01 -0000

Thank you, Mike, this is helpful. This brings a few thoughts, below.

On 01/05/2015 01:35 AM, Mike Hamburg wrote:
> Microsoft's benchmarks on Ed-384-mers, and even some of my earlier 
> Ed448 numbers disagree with the Ed448 data above.  My earlier numbers 
> were about 6% less favorable to Montgomery, and Microsoft's numbers 
> were about 10-15% less favorable to Montgomery.  ...
My tests seem to confirm this that Montgomery is 10-15% less favourable 
as well.

>
> So, for larger primes, the Montgomery ladder is probably slightly 
> faster than Edwards when operating on compressed points, and slower or 
> the same otherwise. 

A common assumption is that we need point compression in ECDH, from 
which it follows that Montgomery representation is a wash for p ~ 2^256.

However, for the sake of technical argument let's leave aside the weight 
assigned to "widespread existing practice" and:
* assume that the curve is specified in Edwards form, e.g. as in 
http://www.ietf.org/id/draft-black-rpgecc-01.txt
* assume that the point is sent uncompressed.


This is fine for authenticated keys, e.g. because these will be 
distributed in X.509 certificates, DNS records, etc. Point validation is 
cheaper than decompression in other cases, and this is is how it's 
presently done on the Internet. Optional point compression is also 
well-understood.

* The fixed-base scalar multiplication is very fast, e.g. 15 times 
faster with 5.24 Mb of pre-computed static tables for the 13 bit window.

This is beneficial for protocols or implementation that cannot reuse an 
ephemeral EC key. E.g. a command-line application launched to encrypt 
data, a browser launched with open tabs, etc.

Given that the calculation of a client ECDH share is so fast relatively 
to an ECDH shared secret point calculation, an implementation may as 
well always calculate it fresh. This reduces complexity and fits many 
APIs. This is because there is no need to to maintain a "state" with 
reused ephemeral share.

* The same F(p) and ECC code can be used for signing and ECDH. Also, a 
small d in the Edwards equation is used.

Down the road, something like EdDSA+ECDH, uncompressed points in Edwards 
form, looks like the fastest alternative. Essentially this enables the 
system design with a single ECC primitive that does x*P for same field 
size, which is very fast when P=G, the base point.

* Traditional ECC assumed that one can add points. This may affect 
adoption of the new curve.

This is the case for NIST P-256. It may be desirable to sign with an 
ECDH key, e.g. for proof of key possession, without a special protocol.

* Curves that allow point addition offer space/speed tradeoff option 
through the window size, and other methods.


Unfortunately, the conversion between representations costs ~10% due to 
F(p) inverse. Decompression costs about the same. We also know that the 
performance difference between Montgomery/Edwards operations is in the 
similar range. Therefore, selection of the format on the wire determines 
the implementation. If we are sending a Montgomery x, we are committing 
to Montgomery ladder implementation. Is this justified?


From nobody Mon Jan  5 12:23:31 2015
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 909AD1A895C for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:23:24 -0800 (PST)
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 0NX-6sBCjOpc for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:23:19 -0800 (PST)
Received: from mail-yk0-x22e.google.com (mail-yk0-x22e.google.com [IPv6:2607:f8b0:4002:c07::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 77D961A1B73 for <cfrg@irtf.org>; Mon,  5 Jan 2015 12:11:36 -0800 (PST)
Received: by mail-yk0-f174.google.com with SMTP id 10so10625977ykt.5 for <cfrg@irtf.org>; Mon, 05 Jan 2015 12:11:35 -0800 (PST)
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=nCH7S0CpblXqucPws5jwmEkTy9xphX5kQIaalSBBl1g=; b=oKW/Wy+gSelJLJvFCkCs7YNdwGZHGYIG45VZFP2NLGh4EXRTmTXscpNRFSKzOTTrYs HMEysZIbzHImEpaLajqP9Zj4EsJXvb4GzHJy741YEWzRwmrYlPTEf56binOP+EnQ5JNJ ZXMGl+sfT2pHLoCHHdgRySVOXcc5sC5qQN0Skqonf1nT4UEWCA3FmCp/RYumA5UTp/S/ wt4rxWXoqnvsWIsEbaumTjiiq8RUPW/PtgWZjMo6ywVfT93Vw1aa0VJBFwAd0y89lI/R WK1G40DD/20aPcWNnXe/IP+js73F859eJqqgpGuFj2F1s23K8pzYZfMOOnODFVDOe6Ax 2EGQ==
MIME-Version: 1.0
X-Received: by 10.170.132.65 with SMTP id y62mr26883661ykb.34.1420488695581; Mon, 05 Jan 2015 12:11:35 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Mon, 5 Jan 2015 12:11:35 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Mon, 5 Jan 2015 12:11:35 -0800 (PST)
In-Reply-To: <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com>
References: <54AAE2CA.1080701@isode.com> <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com>
Date: Mon, 5 Jan 2015 15:11:35 -0500
Message-ID: <CACsn0ckrvpfVL1mEPA5bbDxSfEeHdGsA0U0vkQciLHXKr_wKwA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Adam Langley <agl@imperialviolet.org>
Content-Type: multipart/alternative; boundary=001a113923101b94f4050bed4c04
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lpSzAxOOPLi5BZ7dXrYwxS9HfFk
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 20:23:25 -0000

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

On Jan 5, 2015 3:02 PM, "Adam Langley" <agl@imperialviolet.org> wrote:
>
> On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov
> <alexey.melnikov@isode.com> wrote:
> > whether you want a particular change be made to the
> > document before adoption.
>
> The structure of the current draft anticipates an additional curve and
> also signature work so I'd like to point out a couple of changes to
> save others having to do so:
>
> 1) If no other curves end up being recommended, then the current
> generation process is overly complicated and could well be replaced
> with a description that mirrors how curve25519 was actually chosen:
> i.e. that the minimal sensible A value in Montgomery form be chosen.
> It really depends on how important a generic procedure is seen to be.

Minimal Montgomery is as generic as minimal Edwards unless I am missing
something.

>
> 2) The procedure for generating base points is currently unused and,
> if change (1) is done, it could be tweaked to reflect how the
> curve25519 base point was generated.
>
> 3) If we don't end up saying anything about signatures, all mention of
> Edwards curves could conceivably be dropped.
>
> Not to mention that several sections should be greatly expanded upon,
> clarified etc. I think such changes can be considered as a given.

Were above made, I believe said draft would be largely identical to the
version of draft Turner in github, which has added a description of the
generation proceedure.

I support adoption of either one.

>
>
> To contrast, if you desire changes like "a different curve should be
> recommended" then I think that translates to not supporting adoption.
>
>
> Cheers
>
> AGL
>
> --
> Adam Langley agl@imperialviolet.org https://www.imperialviolet.org
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg

--001a113923101b94f4050bed4c04
Content-Type: text/html; charset=UTF-8

<p dir="ltr"><br>
On Jan 5, 2015 3:02 PM, &quot;Adam Langley&quot; &lt;<a href="mailto:agl@imperialviolet.org">agl@imperialviolet.org</a>&gt; wrote:<br>
&gt;<br>
&gt; On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov<br>
&gt; &lt;<a href="mailto:alexey.melnikov@isode.com">alexey.melnikov@isode.com</a>&gt; wrote:<br>
&gt; &gt; whether you want a particular change be made to the<br>
&gt; &gt; document before adoption.<br>
&gt;<br>
&gt; The structure of the current draft anticipates an additional curve and<br>
&gt; also signature work so I&#39;d like to point out a couple of changes to<br>
&gt; save others having to do so:<br>
&gt;<br>
&gt; 1) If no other curves end up being recommended, then the current<br>
&gt; generation process is overly complicated and could well be replaced<br>
&gt; with a description that mirrors how curve25519 was actually chosen:<br>
&gt; i.e. that the minimal sensible A value in Montgomery form be chosen.<br>
&gt; It really depends on how important a generic procedure is seen to be.</p>
<p dir="ltr">Minimal Montgomery is as generic as minimal Edwards unless I am missing something.</p>
<p dir="ltr">&gt;<br>
&gt; 2) The procedure for generating base points is currently unused and,<br>
&gt; if change (1) is done, it could be tweaked to reflect how the<br>
&gt; curve25519 base point was generated.<br>
&gt;<br>
&gt; 3) If we don&#39;t end up saying anything about signatures, all mention of<br>
&gt; Edwards curves could conceivably be dropped.<br>
&gt;<br>
&gt; Not to mention that several sections should be greatly expanded upon,<br>
&gt; clarified etc. I think such changes can be considered as a given.</p>
<p dir="ltr">Were above made, I believe said draft would be largely identical to the version of draft Turner in github, which has added a description of the generation proceedure.</p>
<p dir="ltr">I support adoption of either one.</p>
<p dir="ltr">&gt;<br>
&gt;<br>
&gt; To contrast, if you desire changes like &quot;a different curve should be<br>
&gt; recommended&quot; then I think that translates to not supporting adoption.<br>
&gt;<br>
&gt;<br>
&gt; Cheers<br>
&gt;<br>
&gt; AGL<br>
&gt;<br>
&gt; --<br>
&gt; Adam Langley <a href="mailto:agl@imperialviolet.org">agl@imperialviolet.org</a> <a href="https://www.imperialviolet.org">https://www.imperialviolet.org</a><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></p>

--001a113923101b94f4050bed4c04--


From nobody Mon Jan  5 12:25:30 2015
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 52FEC1A6FFB for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:25:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.71
X-Spam-Level: 
X-Spam-Status: No, score=-1.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, MIME_8BIT_HEADER=0.3, T_RP_MATCHES_RCVD=-0.01] 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 CLA-axSSRUYm for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:25:26 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id E1CE71A88D8 for <cfrg@irtf.org>; Mon,  5 Jan 2015 12:18:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420489111; d=isode.com; s=selector; i=@isode.com; bh=62xZejTWGpnOZUU6aqjjS+K33NqLriqV6mnofLA6LTc=; 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=LkOIeUJsdcywXSOfAk8GcOVbgyRQolyIkPfK/bUyP0Lx9BJUdpgVQmiMfBTNp/Sa4Pt0Aa 71GvRo0bP+NpNXgh3wtOXcORSCRN/Hvf2eMUNjTibh24gcmXbxxH+xcqcqzg+M5CFD//XF yVVXkjNeUHlpmdP1NCnn+Ibp3hW45mw=;
Received: from [192.168.0.5] (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 <VKrxkgAKaGbC@waldorf.isode.com>; Mon, 5 Jan 2015 20:18:30 +0000
Message-ID: <54AAF194.30209@isode.com>
Date: Mon, 05 Jan 2015 20:18:28 +0000
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: Alyssa Rowan <akr@akr.io>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <CAHOTMVLrThLThuHP_U6idVCJCGEJSSOkS-71HOPo3mSLQUGcUw@mail.gmail.com> <CAHOTMVJf_k8YN0g5aV+oSOnS-6Wo-O__R9yDcVo4iiqmDtkL-A@mail.gmail.com> <20150101030058.GZ24442@localhost> <54A54AA4.3050809@akr.io>
In-Reply-To: <54A54AA4.3050809@akr.io>
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/cGjstTAZ66O3AcDzdKAtQiw7ZuE
Subject: Re: [Cfrg] =?iso-8859-1?q?=A0Ed25519_draft=3F?=
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 20:25:27 -0000

Hi Alyssa,

On 01/01/2015 13:24, Alyssa Rowan wrote:
> On 01/01/2015 03:01, Nico Williams wrote:
>
>> EdDSA is quite convincing and has some convenient advantages over
>> ECDSA. It'd be nice to see a complete treatment of it by CFRG.
> Given the running code out there already using it, I wonder: would an
> informational draft/RFC describing Ed25519 specifically be valuable?
> (Or does the existing paper and code provide enough information?)
>
> I note that we've touched on signature schemes, but seem to be nowhere
> near any kind of consensus about recommendations, as Rich said. If not
> a product of the RG, then an individual one?
CFRG chairs would like to reach decision on curves first. So from our 
point of view, not now. The answer might be different once the decision 
on curves is made.

Best Regards,
Alexey


From nobody Mon Jan  5 12:26:03 2015
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 0EE141A1BAA for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:26:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q2BjkysM7Rcl for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:25:56 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id D64DB1A899E for <cfrg@irtf.org>; Mon,  5 Jan 2015 12:21:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420489290; d=isode.com; s=selector; i=@isode.com; bh=EtxDQj05SPulSCeJ3sUSz5s5Rn0nCSdJl40vLEt2J/0=; 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=jKG89fe9xC+oyn/O9IxPE4SCd/QAiRfr8gR1s5a1W6hAKYkwiwQhpDCHpwyhudBFQB/mQc ZN7pJXD9/fZJnQtjVI5bPPszUX5sqY/qAss2lA/gxG6FHLthUfSp1lEzvNsIKXsMoWf7Pz w0qeNDh05vf5q+idoljqLm2UUF6pwk0=;
Received: from [192.168.0.5] (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 <VKrySAAKaJXM@waldorf.isode.com>; Mon, 5 Jan 2015 20:21:29 +0000
Message-ID: <54AAF24B.1020306@isode.com>
Date: Mon, 05 Jan 2015 20:21:31 +0000
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: Dan Harkins <dharkins@lounge.org>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <cc1a22e2ad7758b65dcadf70f816fc66.squirrel@www.trepanning.net>
In-Reply-To: <cc1a22e2ad7758b65dcadf70f816fc66.squirrel@www.trepanning.net>
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/9VJirWJCIjkT0QQJznnUBzx2GyQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG 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, 05 Jan 2015 20:26:01 -0000

On 15/12/2014 18:19, Dan Harkins wrote:
> I'm in favor of another PAKE being documented but I'm not sure
> why SPAKE2 is the one.
I was asking about documenting SPAKE2. There is currently no intent in 
declaring it to be "the one". And if chairs decide to investigate 
declaring it the one, there would be another consensus call on the 
mailing list.


From nobody Mon Jan  5 12:27:27 2015
Return-Path: <prvs=844737ea30=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 7F0B81A1BA5 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:27:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.209
X-Spam-Level: 
X-Spam-Status: No, score=-4.209 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, 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 hXpoZ3rktaKv for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:27:22 -0800 (PST)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by ietfa.amsl.com (Postfix) with ESMTP id 1C6F91A8991 for <cfrg@irtf.org>; Mon,  5 Jan 2015 12:25:44 -0800 (PST)
Received: from LLE2K10-HUB02.mitll.ad.local (LLE2K10-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id t05KPgYb002323; Mon, 5 Jan 2015 15:25:42 -0500
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Adam Langley <agl@imperialviolet.org>
Thread-Topic: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
Thread-Index: AQHQKR2/pK7em6wX/EunHC1zSAtHn5yyQxqA//+2L4A=
Date: Mon, 5 Jan 2015 20:25:42 +0000
Message-ID: <D0D05CFA.1F356%uri@ll.mit.edu>
References: <54AAE2CA.1080701@isode.com> <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com>
In-Reply-To: <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.6.141106
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3503316335_1248392"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-05_03:2015-01-05,2015-01-05,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-1501050200
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/pWpjIfqbn81uk0MMGrYCseEOy4M
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 20:27:25 -0000

--B_3503316335_1248392
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

On 1/5/15, 14:49 , "Adam Langley" <agl@imperialviolet.org> wrote:

>The structure of the current draft anticipates an additional curve and
>also signature work so I'd like to point out a couple of changes to
>save others having to do so:
>
>1) If no other curves end up being recommended, then the current
>generation process is overly complicated and could well be replaced
>with a description that mirrors how curve25519 was actually chosen:
>i.e. that the minimal sensible A value in Montgomery form be chosen.
>It really depends on how important a generic procedure is seen to be.

It may be that no other curves are recommended *now*. IMHO it would still
make sense to keep the door open for the possible future need.

>2) The procedure for generating base points is currently unused and,
>if change (1) is done, it could be tweaked to reflect how the
>curve25519 base point was generated.

IMHO, it should not be done.

>3) If we don't end up saying anything about signatures, all mention of
>Edwards curves could conceivably be dropped.

Likewise. I=E2=80=99d keep this stuff in.

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

MIIUOAYJKoZIhvcNAQcCoIIUKTCCFCUCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghIHMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7bYbBUuDpN25Lc86P9RaOiiICtyu
ZZP2P/2kkKYRAgMBAAGjggGyMIIBrjAdBgNVHQ4EFgQUEN9QHIi9GvlGjs9Th46jrfPir+Uw
DgYDVR0PAQH/BAQDAgbAMB8GA1UdIwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1Ud
HwQsMCowKKAmoCSGImh0dHA6Ly9jcmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYB
BQUHAQEEWjBYMC0GCCsGAQUFBzAChiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExD
QTMwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3
FQcEMDAuBiYrBgEEAYI3FQiDg+Udh+ynZoathxWD6vBFhbahHx2Fy94yh/+KcwIBZAIBBTAi
BgNVHSUBAf8EGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDDDAYBgNVHSAEETAPMA0GCyqGSIb3
EgIBAwEIMBkGA1UdEQQSMBCBDnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABM
AFUAcwBlAHIAUwBpAGcALQBTAFcwDQYJKoZIhvcNAQELBQADggEBAL2kCh9ovO8AbHgAVU6T
eH5qRmKnOrfTUfn9JnHzkspdWMQA1IdtftSpiZZ7C3lCmblSDCgPqbQl4zMZxXeTgxnQsB6m
1LA6uDHM/0G27RcOJH4OTN9sQ0/2CKb4JPIXXIps1z+s8XjSRzPJZuD8fPC8R8QWvOH3owL2
BLzZebZTOMa5yws3kohY02vP/Clv0KQXYVzUZUYXoYmhUSYmQ1UZZZSFJ2rNdgNn0z8fPrUQ
NIYlVaJV0kKQYjlHWTfomVapLEfIY7xRHZy9g997IjYReD0t9IZd6tTwcJES+2ijFM8l/fxk
u/cQ4WCYyI+58DaBaV9p68/AC147b0HhvLUwggS8MIIDpKADAgECAgEpMA0GCSqGSIb3DQEB
BQUAMFQxCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGluY29sbiBMYWJvcmF0b3J5MQww
CgYDVQQLEwNQS0kxFjAUBgNVBAMTDU1JVExMIFJvb3QgQ0EwHhcNMTMxMjE3MDAwMDAwWhcN
MjAxMjMxMjM1OTU5WjBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFi
b3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0zMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2jBSdW18tuW1tNxG6h8B0kqckFZQAAtoHCkvUpUEX6jF
vBd8mQI53GyLYRuAo4HWJpe7/izFXOfSJDs6UM5ovvCOfXg2bJgDYlBC9JDcLBFIn0nppOu9
RvpjWSixtC56crwJ5Us5QPdtxtKdek5LJXl2oKw3w8lihUixePbxWad1m7ZMKKagvm9zTybP
6FumKRxeYJjSpB2+cAYjoGGEbSVHyx8uzHm6xAoBMHxa8by+yDz8Jzk6sP9iilgP3iXSGoCA
mhyBzvlQQ5QNNWP+Emo9jz/ukKhYVB/VwdxtoquPAqn4ifDAIaM9dtb05cy1gXAFSP3Z/iUk
xyBZZUORfwIDAQABo4IBmjCCAZYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU12Bm
DntJjXVMDf3PRt7IxxKHyr8wHwYDVR0jBBgwFoAUZ6p6z/QKprlytYqg0p3yEMND7SkwDgYD
VR0PAQH/BAQDAgGGMGYGCCsGAQUFBwEBBFowWDAtBggrBgEFBQcwAoYhaHR0cDovL2NybC5s
bC5taXQuZWR1L2dldHRvP0xMUkNBMCcGCCsGAQUFBzABhhtodHRwOi8vb2NzcC5sbC5taXQu
ZWR1L29jc3AwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sbC5taXQuZWR1L2dldGNy
bD9MTFJDQTCBkgYDVR0gBIGKMIGHMA0GCyqGSIb3EgIBAwEGMA0GCyqGSIb3EgIBAwEIMA0G
CyqGSIb3EgIBAwEHMA0GCyqGSIb3EgIBAwEJMA0GCyqGSIb3EgIBAwEKMA0GCyqGSIb3EgIB
AwELMA0GCyqGSIb3EgIBAwEOMA0GCyqGSIb3EgIBAwEPMA0GCyqGSIb3EgIBAwEQMA0GCSqG
SIb3DQEBBQUAA4IBAQAsf9HBn72qU7UTgkxarjAc7iynhcDEgWwezYKtd/SLGSQ0DhtzIV/L
TCxqULjOd+H+HTqMJXB8+nHnzhyqQ43RsnGZOFT5RfzPh94db/ZJ3ql244DwlJI7yXBA2DkZ
cEEgOWC9bHcrElzU6NnigahSW5odVJrhmH/XhQAcMS77E5H62yyxK1WPPgcBipGVnu1xSHbT
iHe7DqfWQ2tVMLUf23XYhIua94kJsQd4jSh71NVD0e7F4snAoqQMI98MzDYeLOkjlzKRs77r
/aMsPAKx6nMaOvRL7Cy0Pjp51i2qFkbGmX8ofnh2kerjTTvRJ/g22r1MV8RR1PktjMsNOsPf
MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQUFADBUMQswCQYDVQQGEwJVUzEfMB0GA1UE
ChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRYwFAYDVQQDEw1NSVRM
TCBSb290IENBMB4XDTA4MDkyMzEyMDAwMFoXDTI5MTIzMTIzNTk1OVowVDELMAkGA1UEBhMC
VVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTEWMBQG
A1UEAxMNTUlUTEwgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMVO
KRdYsiay+a2Kv1wQCoPd5AkwExuwcNDRhaRCdQN17K+lCCKvf9VSQToAsA6q1bACtZUcMv5Z
Kx8z5KG4jK9cM40NvEkf/bIOZAHJqzKgWG3N9NqrcAhimcXTXYQIdp1DgjtdADKVLAjXaYpD
2PbpE/JbAPnqKzOENa3Py9CegB0abTlOyLgwXWY/rXTW+4L/hipJ6+sI/ZtrFRmsKGhuwAKo
bFr0FDP6uIfx+RaWJcJ1QBIdgM4aohvW8JeriSSMyf/LlFpXTZFcM9SOX0f7wmsYi1yFuKFM
nQbkSkxvnpBKMRxrg+98seSbbEnIkvB0C9qBDPLb/lQAvmpW6oMCAwEAAaNgMF4wDwYDVR0T
AQH/BAUwAwEB/zAdBgNVHQ4EFgQUZ6p6z/QKprlytYqg0p3yEMND7SkwHwYDVR0jBBgwFoAU
Z6p6z/QKprlytYqg0p3yEMND7SkwCwYDVR0PBAQDAgGGMA0GCSqGSIb3DQEBBQUAA4IBAQA+
G20FYNB4eNhKWF+PyT5DUtzlABFkf2IM2VGNUBova0GeKX3I1Nf02qDU/GO2H9ETvnvTYhvf
gQ4UB/5EImTkKPa7/TVG/MQ7SgmAmne8xELVbGLFrrytly8PyYtZtngb6DgeEUv+SwFnzcLO
1vg1rdmss3kwsqy0q8e2VYAY8zTptEzyJG36aXcIMbqOxWS/LbPjNuPdgJfO3d1WrHr1Etaa
a0QRLqQoZj07dYY7Wo5EDqU+AUAMz9ZVRGK1s5b/jv5Wz/YroyqWFnH2KkNxRn9+2Ar7g3rn
rOMZvp6psq2jbDXiPBod1wyMKn8x5y4cuGPNFcqjfyY/HX90ivQAMIIEzjCCA7agAwIBAgIK
PVEvPAAAAACTsDANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlU
IExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0y
MB4XDTE0MDIxMjE4NTMwMVoXDTE1MDIxMjE4NTMwMVowYTELMAkGA1UEBhMCVVMxHzAdBgNV
BAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMX
Qmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQCKHhhu75bRiOvWhbZ//TxS76yI2d+rHN2s8bp8wxW8oMjmsaplLeGQusUFRyRNSkfYtdB4
YApjnV6TCxS0Mqzly5BaoeZWoP+CbbMDNGYMszus9iFj22SSlTzGRo+gaL6rqsDKdwDOzs3C
PYqh4Uu8sLzEq+QD9rhqAuMJ76635JKWELxK0uDehpNBMCGqVeAY8ht5u2h4ojPdwiuDQDW2
QxWRJjPDL8n1JczuEHY71jHldER3b2+UhpDDYRQ9aVOiGCjW8BwJOruVsBfLNxyDxgffNQ1D
1konuneMpL9H2S8ciHOdy5+Gi7snCQJ+7w30rIJ2NTldWaY6avZAaCa3AgMBAAGjggGWMIIB
kjAdBgNVHQ4EFgQUZ7oGjnu6gWRmom/4UswgdVBW/3wwDgYDVR0PAQH/BAQDAgUgMB8GA1Ud
IwQYMBaAFI5KfYmhYxccgYg0VzcmRV4Zin4kMDMGA1UdHwQsMCowKKAmoCSGImh0dHA6Ly9j
cmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTIwYgYIKwYBBQUHAQEEVjBUMC0GCCsGAQUFBzAC
hiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExDQTIwIwYIKwYBBQUHMAGGF2h0dHA6
Ly9vY3NwLmxsLm1pdC5lZHUvMAwGA1UdEwEB/wQCMAAwPQYJKwYBBAGCNxUHBDAwLgYmKwYB
BAGCNxUIg4PlHYfsp2aGrYcVg+rwRYW2oR8dhevQcIPr7SACAWQCAQQwJQYDVR0lBB4wHAYE
VR0lAAYIKwYBBQUHAwQGCisGAQQBgjcKAwQwGAYDVR0gBBEwDzANBgsqhkiG9xICAQMBCDAZ
BgNVHREEEjAQgQ51cmlAbGwubWl0LmVkdTANBgkqhkiG9w0BAQsFAAOCAQEAJiU3WfJ9GvGJ
iDNPClLazyh252wxxOc/TmClMKtyqHnbFObDEoXAMaoHGxrvs+lU8fU2F2ELpV8q8eYgqLLw
7PG09z5s/GkajlxVZ/FHj/9hNHTfwlicrCRY3zrna1GbOMZgWFz8R6akAoLKpqGulNrvjvU8
c63U+JVmgJmBPCMv5JlH10m87+WPJ+ToK0m4XfZjl7n5OKDJ/hOyBwbBntc+W2gDppfR1BCt
DNfEG0+zHjFqF+Of1Q5NI5abhgvw5IEuVA1M4SV/utwmmdreBEv/YuLnDd/PhVgQwp3LHGCX
X1dANyiKso2aACl9jrkylq39cA/WgvAlS21w9vxVpDGCAfUwggHxAgEBMF8wUTELMAkGA1UE
BhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTET
MBEGA1UEAxMKTUlUTEwgQ0EtMwIKH0XZoAAAAAABzTANBglghkgBZQMEAgEFAKBpMC8GCSqG
SIb3DQEJBDEiBCAe96/rSRfJ8zHcIBzPuhp7N3QrIeGQtDh+lxAwviTg8TAYBgkqhkiG9w0B
CQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNTAxMDUyMDI1MzVaMA0GCSqGSIb3
DQEBAQUABIIBALH7dEiOMJ/xJjfRtIOQNqw4cseMKsgMjeOubqBBRONs0tgxSYbWKicQqued
2WlYOaOrMar27KlO6ST9LqgQZUmqh6O9L1u193f5VUKktW49w8g1EsLwp1SISmIVJgBFW8Hn
PGWzl3vqgd/WZdVrWIOvIwmlEoWcFSoOTYIkWI2h6xuQ4VqdRU7625EPwVqB2b4lNbMgMKqx
DjUUD06oLNjPb1ABu+93jpGb+r/cV37dp3wji9AvZZyfm89ibJ0Q04BVYiBp4gpJbQj4pDQA
VTCqTIIuXXtrw0e/o0BQ99XntgSa0dgbZH0lXhbHVFoX5MjhxZnnOyClVtEyyGq0nfU=

--B_3503316335_1248392--


From nobody Mon Jan  5 12:38:33 2015
Return-Path: <alangley@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 118941A89F5 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:38:31 -0800 (PST)
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 R9rCUgAvLI7D for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 12:38:29 -0800 (PST)
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 2EE211A89A5 for <cfrg@irtf.org>; Mon,  5 Jan 2015 12:38:15 -0800 (PST)
Received: by mail-lb0-f175.google.com with SMTP id z11so10301018lbi.6 for <cfrg@irtf.org>; Mon, 05 Jan 2015 12:38:13 -0800 (PST)
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=OyUi7qsWDnqcmbqAwwwszPBBZOpnCS1b3ssiVL6FVPI=; b=Tli2Lp7ZpDWoYhwN1PALfh5CrCzNlBtt03y7u7NeCJxUWimmJ4E/xw5ZmS+CTS9NfH sGJ+c7gPi8whGx/11OkIduUUdtSU9tD0LgkQZ4T5ImhU+i9Y1uunkm7NhIKqK+Pu2dHA oBJUKyam0EucemZiQVvAW6HQevT1001dXCRIvz/RR2Qk6UP5coAd2459i56jEmPlMy5z tbBcmpnlf7bVaoHMIeHgu9e5xCf7Ku4Nhrl7Klit0kzFhaDVxjDeDB4VRdw7BYvGQweH i3Gjv6DcqWUIR+C+g8sT7186AaEm2pj06oo9vJf3o8uvhcCRe/NZ8lilU5CdFGaVb+yW crrA==
MIME-Version: 1.0
X-Received: by 10.112.52.229 with SMTP id w5mr82366297lbo.52.1420490293559; Mon, 05 Jan 2015 12:38:13 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Mon, 5 Jan 2015 12:38:13 -0800 (PST)
In-Reply-To: <CACsn0ckrvpfVL1mEPA5bbDxSfEeHdGsA0U0vkQciLHXKr_wKwA@mail.gmail.com>
References: <54AAE2CA.1080701@isode.com> <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com> <CACsn0ckrvpfVL1mEPA5bbDxSfEeHdGsA0U0vkQciLHXKr_wKwA@mail.gmail.com>
Date: Mon, 5 Jan 2015 12:38:13 -0800
X-Google-Sender-Auth: 7lP2GwHXTWuDlcKKWtYgxXk5ZYA
Message-ID: <CAMfhd9X5_Of4uA4Ni=XELOd_Ri4JnXifKwahGkhKP_Dq8gckOg@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/oYuJrHfDaz5qcYQ-G_LNy_VFzm4
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 20:38:31 -0000

On Mon, Jan 5, 2015 at 12:11 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
> Minimal Montgomery is as generic as minimal Edwards unless I am missing
> something.

That's true, but the world seems to have collectively decided to
minimise the Edwards 'd' these days (NUMS, 41417, Goldilocks, E-521).
So, if we want to publish a generation procedure, an Edward's focused
one might be more helpful.

I don't have strong feelings on this point.


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Mon Jan  5 13:18:28 2015
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 014C41A8A92 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 13:18:24 -0800 (PST)
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 hr2rPGHue24H for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 13:18:21 -0800 (PST)
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 25AF61A8A70 for <cfrg@irtf.org>; Mon,  5 Jan 2015 13:18:20 -0800 (PST)
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 727EF1887A2; Mon,  5 Jan 2015 23:18:18 +0200 (EET)
Date: Mon, 5 Jan 2015 23:18:18 +0200
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Adam Langley <agl@imperialviolet.org>
Message-ID: <20150105211817.GA24029@LK-Perkele-VII>
References: <54AAE2CA.1080701@isode.com> <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CAMfhd9Vk8X55jbddsh_Dz9gc=qC3NqM5-EiUi7LakjdrziX0Sg@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/i5dxVJ3hKV58Ag1dfjztoa68tpQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 21:18:24 -0000

On Mon, Jan 05, 2015 at 11:49:47AM -0800, Adam Langley wrote:
> On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov
> <alexey.melnikov@isode.com> wrote:
> > whether you want a particular change be made to the
> > document before adoption.
> 
> The structure of the current draft anticipates an additional curve and
> also signature work so I'd like to point out a couple of changes to
> save others having to do so:
> 
> 1) If no other curves end up being recommended, then the current
> generation process is overly complicated and could well be replaced
> with a description that mirrors how curve25519 was actually chosen:
> i.e. that the minimal sensible A value in Montgomery form be chosen.
> It really depends on how important a generic procedure is seen to be.

I think curve generation procedure should be there.
 
> 2) The procedure for generating base points is currently unused and,
> if change (1) is done, it could be tweaked to reflect how the
> curve25519 base point was generated.

Also, the past precent on base point generation on Edwards curves seems
to be the least y, least x with big prime order.

But the procedure here looks acceptable as well.

> 3) If we don't end up saying anything about signatures, all mention of
> Edwards curves could conceivably be dropped.

Also, depending on exact signature scheme, having full isogeny/isomorphism
chains to Weierstrass (these are easy enough to either find or derive, but
still) and back (the dual isogeny for Edwards and Montgomery is more
difficult to find) would be useful.

Specifically, the place where that dual isogneny would be useful is
if using ECDSA (yes, I know) with Weierstrass public keys. That would
avoid implementing Weierstrass (which is somewhat annoying, even if
doing public-only computations and having the field routines).


-Ilari


From nobody Mon Jan  5 13:42:45 2015
Return-Path: <rstruik.ext@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 05F7D1A8ACE for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 13:42:43 -0800 (PST)
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 ppPRWc-xRovm for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 13:42:40 -0800 (PST)
Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001: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 B4C771A8A97 for <cfrg@irtf.org>; Mon,  5 Jan 2015 13:42:40 -0800 (PST)
Received: by mail-ig0-f176.google.com with SMTP id a13so24320igq.9 for <cfrg@irtf.org>; Mon, 05 Jan 2015 13:42:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=jSYPkZ3T74l1ss11tS9EYkT9T305/nGHDw1NHj4JdJ8=; b=qr8qTnWNXbjTDRU/jnztbgMsKOpLzbQIHWzZtffENryebB+dqiqHFf5RLWqU+T0DvG 03Z10edJv8Lxlfw3P/iQuiSgwhMLfAHkyKb0OfDMiXOUmFARf/eGvyM/iOGxdFWQ5Gzl XWBnsmpFfvFH3gJbczQKdTRXUJWSdQAXDSETAae3WXtPnE84ZwlmT60OKPJEBbmAlI6S S1x2rErwBzDFJOhHTZ+nXIHiLNStJJyUrFcIIDSoDIKrxQeddSPTwl2Iw0DZIwjWi14d l59HK5jsBWjISLLBGFEnjM4mpf4nJX6B/ZwHtXupXKgljEUTTEeESOBIpkCJjQ24dw2n Nkdw==
X-Received: by 10.50.108.83 with SMTP id hi19mr13007791igb.8.1420494159739; Mon, 05 Jan 2015 13:42:39 -0800 (PST)
Received: from [192.168.0.10] (CPE7cb21b2cb904-CM7cb21b2cb901.cpe.net.cable.rogers.com. [99.231.49.38]) by mx.google.com with ESMTPSA id d3sm4120349igl.7.2015.01.05.13.42.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jan 2015 13:42:39 -0800 (PST)
Message-ID: <54AB053E.6070309@gmail.com>
Date: Mon, 05 Jan 2015 16:42:22 -0500
From: Rene Struik <rstruik.ext@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Alexey Melnikov <alexey.melnikov@isode.com>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/NKyxnRa5h9djqOF_NEAYVBd61jo
Subject: [Cfrg] (please make draft an IETF document first) Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 21:42:43 -0000

Hi Alexey:

Just a small process note here: there is no such thing as an IETF draft 
called draft-agl-cfrgcurve-00.

Given the history of the topic area of this draft, I would strongly 
recommend first submitting this as an IETF/IRTF draft using the ordinary 
IETF submission process. The resulting draft would then be frozen and 
the system would make it easy to track evolution over time. The adoption 
call can then be re-issued with reference to a draft that is actually in 
the IETF system.

Best regards, Rene

On 1/5/2015 2:15 PM, Alexey Melnikov wrote:
> This message starts 2 weeks adoption call (ending on January 19th 
> 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an 
> algorithm for safe curve parameter generation for a particular 
> security level and also recommends a specific curve (2^255-19) for the 
> 128-bit security level.
>
> Please reply to this message or directly to CFRG chairs, stating 
> whether you support (or not) adoption of this document. If you do not 
> support adoption of this document, please state whether you support 
> adoption of any alternative document or whether you want a particular 
> change be made to the document before adoption.
>
> Chairs ask not to reiterate previously expressed technical opinions or 
> arguments. But clarifying questions on the adoption call are welcome.
>
> While making your decision, please keep in mind
>
> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>
> Alexey,
> On behalf of CFRG chairs.
>
> P.S. Editors of draft-black-rpgecc-01 and 
> draft-turner-thecurve25519function-01 can become co-editors of the 
> adopted document, if they choose to do so. Email chairs directly if 
> you are willing or not willing to do so.
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


-- 
email: rstruik.ext@gmail.com | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363


From nobody Mon Jan  5 13:45:33 2015
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 24D9E1A8ADF for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 13:45:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.155
X-Spam-Level: **
X-Spam-Status: No, score=2.155 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_NET=0.311, J_CHICKENPOX_54=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 soUIY9waJU52 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 13:45:29 -0800 (PST)
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 1D32E1A8AD8 for <cfrg@irtf.org>; Mon,  5 Jan 2015 13:45:29 -0800 (PST)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id A6F4C3AA43; Mon,  5 Jan 2015 13:42:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420494178; bh=8Fwc/9taQbKOp9RoBQ9zcAJcb7gY9BfIBWDBfBoqHEw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=CTV2csmG+nkYRabkOt0Uz+6YTjmMFPMKDUEJWII56h9EqogYwZNv9HfRD2n3toBfC cuu+/00m/INK22os3XwasRgHmqmk8EVQtycbW/djo3jjkMpwL0z8HljQaNZ1ajlNtz SfWdfpa3iO7UxhnplzLOy9Ke0Kc1KlGH+pjsPQoQ=
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <54AAEEFC.9060309@brainhub.org>
Date: Mon, 5 Jan 2015 13:45:26 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <EBF3EC55-3057-496A-8BAE-7EAD405518A7@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.2064)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6iXIBxKoBLq5KOUrqQNY991Yh0k
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 21:45:31 -0000

> On Jan 5, 2015, at 12:07 PM, Andrey Jivsov <crypto@brainhub.org> =
wrote:
>=20
> Thank you, Mike, this is helpful. This brings a few thoughts, below.

You=92re welcome.

> On 01/05/2015 01:35 AM, Mike Hamburg wrote:
>> Microsoft's benchmarks on Ed-384-mers, and even some of my earlier =
Ed448 numbers disagree with the Ed448 data above.  My earlier numbers =
were about 6% less favorable to Montgomery, and Microsoft's numbers were =
about 10-15% less favorable to Montgomery.  ...
> My tests seem to confirm this that Montgomery is 10-15% less =
favourable as well.

But it looks to me like you compared a constant-time Montgomery =
implementation to a variable-time Edwards one.

>> So, for larger primes, the Montgomery ladder is probably slightly =
faster than Edwards when operating on compressed points, and slower or =
the same otherwise.=20
>=20
> A common assumption is that we need point compression in ECDH, from =
which it follows that Montgomery representation is a wash for p ~ 2^256.
>=20
> However, for the sake of technical argument let's leave aside the =
weight assigned to "widespread existing practice" and:
> * assume that the curve is specified in Edwards form, e.g. as in =
http://www.ietf.org/id/draft-black-rpgecc-01.txt
> * assume that the point is sent uncompressed.
>=20
>=20
> This is fine for authenticated keys, e.g. because these will be =
distributed in X.509 certificates, DNS records, etc. Point validation is =
cheaper than decompression in other cases, and this is is how it's =
presently done on the Internet. Optional point compression is also =
well-understood.

Sure, this is an OK option.  I prefer always-compressed for reasons =
which have come up before, but optional compression is reasonable.

> * The fixed-base scalar multiplication is very fast, e.g. 15 times =
faster with 5.24 Mb of pre-computed static tables for the 13 bit window.

Most designers don't do this, because it=92s vulnerable to timing =
attacks and can have caching problems (important for anything other than =
benchmarks).  More common values are somewhere between 3kiB and 20kiB, =
with constant-time table lookups, yielding about a 3x performance =
improvement instead of 15x.

> This is beneficial for protocols or implementation that cannot reuse =
an ephemeral EC key. E.g. a command-line application launched to encrypt =
data, a browser launched with open tabs, etc.
>=20
> Given that the calculation of a client ECDH share is so fast =
relatively to an ECDH shared secret point calculation, an implementation =
may as well always calculate it fresh. This reduces complexity and fits =
many APIs. This is because there is no need to to maintain a "state" =
with reused ephemeral share.
>=20
> * The same F(p) and ECC code can be used for signing and ECDH. Also, a =
small d in the Edwards equation is used.

Implementations which compress points and/or use the ladder will share =
F(p) code.  The small d in the Edwards equation can be used in either =
the isomorphic curve (as Robert Ransom and I found) or the isogenous one =
(a la Microsoft).  If an implementor wants to use the Edwards code for =
Montgomery-x ECDH as well, it costs no more than with any other point =
compression scheme.

> Down the road, something like EdDSA+ECDH, uncompressed points in =
Edwards form, looks like the fastest alternative. Essentially this =
enables the system design with a single ECC primitive that does x*P for =
same field size, which is very fast when P=3DG, the base point.

Faster than compressed, yes.  Better, though=85 maybe?  Speaking of =
faster, most verifies will use double-scalar multiply because it=92s =
faster, and they usually have different code between signing/ECDH and =
verification for side-channel reasons.

> * Traditional ECC assumed that one can add points. This may affect =
adoption of the new curve.
>=20
> This is the case for NIST P-256. It may be desirable to sign with an =
ECDH key, e.g. for proof of key possession, without a special protocol.
>=20
> * Curves that allow point addition offer space/speed tradeoff option =
through the window size, and other methods.
>=20
> Unfortunately, the conversion between representations costs ~10% due =
to F(p) inverse. Decompression costs about the same. We also know that =
the performance difference between Montgomery/Edwards operations is in =
the similar range. Therefore, selection of the format on the wire =
determines the implementation. If we are sending a Montgomery x, we are =
committing to Montgomery ladder implementation. Is this justified?


Exactly what features are possible or desirable in a point encoding =97 =
and at what cost in complexity and generality =97 is an interesting =
question.

The point format in the experimental Goldilocks software (and in Ed252) =
allows adding points, because it transmits sign information.  I used the =
same format is used for laddered ECDH and for signatures.  It is =
suitable for both the Montgomery ladder and Edwards windowed =
implementations.  Furthermore, it reduces the curve=92s cofactor to 2 =
(see also my post on reducing the cofactor to 1), and allows the =
Montgomery ladder to reject twist points.  It costs about the same as an =
ordinary point compression/decompression system, but it is slightly more =
complex and not batchable either for compression or decompression.

Others have also advocated a simpler format with similar properties, =
such as (Montgomery x, low bit of Edwards x).  This doesn=92t reduce the =
cofactor, but it=92s easier to describe and it allows compression to be =
batched.

Cheers,
=97 Mike=


From nobody Mon Jan  5 14:01:24 2015
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 E7C091A016A for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:01:19 -0800 (PST)
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 BnDuzjf9HvWM for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:01:14 -0800 (PST)
Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 221E61A00E6 for <cfrg@irtf.org>; Mon,  5 Jan 2015 14:01:14 -0800 (PST)
Received: by mail-oi0-f43.google.com with SMTP id i138so45217495oig.2 for <cfrg@irtf.org>; Mon, 05 Jan 2015 14:01:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=DmiiwbJ1xXe0aU4tK35bpa2Mk6lUPvdEb3GrPaoEiEg=; b=0ZYjToGthpDzm4l1mIkvB2ZP4UPbAi0iHprrb9KVPvDulUXHJ75CbVe42fyjBefovp ZeJB6VHk5RJVxIoEeD4Gd+W7634qzRSywsq/PfHG9v211hMphGQuaA9mKFBZQ3SM3QA3 flJLO2QI96S8OfwKYxWT9ks2fe/vUDpLUkQiHEyqZjagoieODCc43fR9BJdp+h7uA6Pw KsiblVobG/2zsEW3PG8CkUkBALQfEitaQSCwcFyl6iQsvOAjIwdm37PIsNE8UHxT7WYA kaa4NMAADTzwpS7V660Fd8d2uQH2GZSxlxVgefVOI1GOpum8iQ3uk89y+0EoZi2bEwht USeQ==
X-Received: by 10.202.226.2 with SMTP id z2mr7446720oig.64.1420495273465; Mon, 05 Jan 2015 14:01:13 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.227.225 with HTTP; Mon, 5 Jan 2015 14:00:53 -0800 (PST)
In-Reply-To: <54AAE2CA.1080701@isode.com>
References: <54AAE2CA.1080701@isode.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Mon, 5 Jan 2015 14:00:53 -0800
Message-ID: <CAHOTMV+GAk_+0nqLn_cVf1AkQmSeG12WdYeANP_S19i+nC8ctQ@mail.gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: multipart/alternative; boundary=001a1141bac02e1ecb050beed49c
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/hoF5WLHlchnQ68fXq2Nb5gy6ZyM
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 22:01:20 -0000

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

On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov <alexey.melnikov@isode.com>
wrote:

> This message starts 2 weeks adoption call (ending on January 19th 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an algorithm
> for safe curve parameter generation for a particular security level and
> also recommends a specific curve (2^255-19) for the 128-bit security level.
>
> Please reply to this message or directly to CFRG chairs, stating whether
> you support (or not) adoption of this document. If you do not support
> adoption of this document, please state whether you support adoption of any
> alternative document or whether you want a particular change be made to the
> document before adoption.


My support of this document is contextual: at present it does not provide a
similar defense for Ed25519 (despite the rigid curve selection guidelines
dealing primarily in Edwards curves) as it does for Curve25519 (which is
Montgomery)

I hope the CFRG does not paint itself into a corner with this document, and
when the question of a signature system arises, I hope Ed25519 will not be
struck down due to an incompatibility with the outlined rigid curve
selection guidelines.

I'm not saying the CFRG should adopt Ed25519, but I would prefer the door
remained open for them to do so.

tl;dr: I would accept this draft so long as it's not a blocker for Ed25519

-- 
Tony Arcieri

--001a1141bac02e1ecb050beed49c
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, Jan 5, 2015 at 11:15 AM, Alexey Melnikov <span dir=3D"ltr">&lt;<a href=
=3D"mailto:alexey.melnikov@isode.com" target=3D"_blank">alexey.melnikov@iso=
de.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:1ex">This message=
 starts 2 weeks adoption call (ending on January 19th 2015) on:<br>
<br>
<a href=3D"https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml" target=
=3D"_blank">https://www.imperialviolet.<u></u>org/cfrgcurve/cfrgcurve.xml</=
a><br>
<br>
as the starting point for the CFRG document which describes an algorithm fo=
r safe curve parameter generation for a particular security level and also =
recommends a specific curve (2^255-19) for the 128-bit security level.<br>
<br>
Please reply to this message or directly to CFRG chairs, stating whether yo=
u support (or not) adoption of this document. If you do not support adoptio=
n of this document, please state whether you support adoption of any altern=
ative document or whether you want a particular change be made to the docum=
ent before adoption.</blockquote><div><br></div><div>My support of this doc=
ument is contextual: at present it does not provide a similar defense for E=
d25519 (despite the rigid curve selection guidelines dealing primarily in E=
dwards curves) as it does for Curve25519 (which is Montgomery)</div><div><b=
r></div><div>I hope the CFRG does not paint itself into a corner with this =
document, and when the question of a signature system arises, I hope Ed2551=
9 will not be struck down due to an incompatibility with the outlined rigid=
 curve selection guidelines.</div><div><br></div><div>I&#39;m not saying th=
e CFRG should adopt Ed25519, but I would prefer the door remained open for =
them to do so.</div><div><br></div><div>tl;dr: I would accept this draft so=
 long as it&#39;s not a blocker for Ed25519</div></div><div><br></div>-- <b=
r><div class=3D"gmail_signature">Tony Arcieri<br></div>
</div></div>

--001a1141bac02e1ecb050beed49c--


From nobody Mon Jan  5 14:07:53 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E6D011A8FD5 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:07:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0YwRXHs94X8u for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:07:48 -0800 (PST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49E391A8AE1 for <cfrg@irtf.org>; Mon,  5 Jan 2015 14:07:47 -0800 (PST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t05M5SWo016713; Mon, 5 Jan 2015 14:07:46 -0800
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0b-0016f401.pphosted.com with ESMTP id 1rqrtjht81-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 05 Jan 2015 14:07:46 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([::1]) with mapi; Mon, 5 Jan 2015 14:07:45 -0800
From: Paul Lambert <paul@marvell.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Mon, 5 Jan 2015 14:07:44 -0800
Thread-Topic: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
Thread-Index: AdApNAg1xHmGyzs6S2S1XoOO4rv1Sg==
Message-ID: <D0D0463B.572B9%paul@marvell.com>
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-05_04:2015-01-05,2015-01-05,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501050218
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Qh4jbnCklOZzjWER60bRVAP9Z5k
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 22:07:50 -0000

>Please reply to this message or directly to CFRG chairs, stating whether
>you support (or not) adoption of this document. If you do not support
>adoption of this document, please state whether you support adoption of
>any alternative document or whether you want a particular change be made
>to the document before adoption.

Suport!
Excellent start for clear specification

>
>Chairs ask not to reiterate previously expressed technical opinions or
>arguments. But clarifying questions on the adoption call are welcome.

Initial Review Comments:
 - order, #Ed(GF(p)) should be defined in section 5
 - the draft must (eventually) also include a definition of a signature
mechanism
   Picking a curve just for DH would miss system requirements to have
   other public key protocol mechanisms available besides raw DH



Paul


From nobody Mon Jan  5 14:08:12 2015
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 84B431A9006 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:08:09 -0800 (PST)
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 OwdSxLI_n7cm for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:08:04 -0800 (PST)
Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3950B1A8BB2 for <cfrg@irtf.org>; Mon,  5 Jan 2015 14:08:04 -0800 (PST)
Received: by mail-ie0-f179.google.com with SMTP id rp18so20514317iec.10 for <cfrg@irtf.org>; Mon, 05 Jan 2015 14:08:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=f+eGXmYbiVyTMN1zi0BIIDgHm3qehdJZ5i6S1HSLRqU=; b=VXd/JsvT9z+96yd1/eONLfGoayNyuI2VDTemN/2DpJYCdi20rt78DkAwfhvcIMh6Sq qID4Pd2F1DMGkw9e5g24KP/sfVkWcPk+eELmdCAJMRQxC7V2H5Ue85guHjEWUbYNIJCq zdMaVqwdt0hleJNvlQpP9CBvikDSyOKus1DC8BxLzG8llQr032gaxnKnrxBHF7gjcXKw MVzA7w3r0ltOzTTnTyf01X6C1bCQC3rHRO/JC0F7upRT0vX7UDF/qDgiYkHUhWI2LSX9 QseZMOyD9ZasL5zr1fG464bquaq/pzJ3vLiTM5HTOlJNanTxMuZAp7LRxutk7lF8o62k j3lw==
X-Received: by 10.50.79.200 with SMTP id l8mr13098100igx.14.1420495683363; Mon, 05 Jan 2015 14:08:03 -0800 (PST)
MIME-Version: 1.0
References: <54AAE2CA.1080701@isode.com> <CAHOTMV+GAk_+0nqLn_cVf1AkQmSeG12WdYeANP_S19i+nC8ctQ@mail.gmail.com>
From: David Leon Gil <coruus@gmail.com>
Date: Mon, 05 Jan 2015 22:08:03 +0000
Message-ID: <CAA7UWsWpMj13XawvbUGM65RJVJ=xG9-BdHX6yZhe5Y2UNFbO3Q@mail.gmail.com>
To: Tony Arcieri <bascule@gmail.com>, Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: multipart/alternative; boundary=089e012946149cadee050beeec7c
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/36T5HpRKcb0MpK44Kl2nLj-G1nY
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 22:08:09 -0000

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

Is there any particular need to choose between minimal A and minimal d? Why
not simply specify that both are acceptable options?

This is a minuscule loss to rigidity; two curves versus one per prime.
On Mon, Jan 5, 2015 at 2:01 PM Tony Arcieri <bascule@gmail.com> wrote:

> On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov <
> alexey.melnikov@isode.com> wrote:
>
>> This message starts 2 weeks adoption call (ending on January 19th 2015)
>> on:
>>
>> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>>
>> as the starting point for the CFRG document which describes an algorithm
>> for safe curve parameter generation for a particular security level and
>> also recommends a specific curve (2^255-19) for the 128-bit security level.
>>
>> Please reply to this message or directly to CFRG chairs, stating whether
>> you support (or not) adoption of this document. If you do not support
>> adoption of this document, please state whether you support adoption of any
>> alternative document or whether you want a particular change be made to the
>> document before adoption.
>
>
> My support of this document is contextual: at present it does not provide
> a similar defense for Ed25519 (despite the rigid curve selection guidelines
> dealing primarily in Edwards curves) as it does for Curve25519 (which is
> Montgomery)
>
> I hope the CFRG does not paint itself into a corner with this document,
> and when the question of a signature system arises, I hope Ed25519 will not
> be struck down due to an incompatibility with the outlined rigid curve
> selection guidelines.
>
> I'm not saying the CFRG should adopt Ed25519, but I would prefer the door
> remained open for them to do so.
>
> tl;dr: I would accept this draft so long as it's not a blocker for Ed25519
>
> --
> Tony Arcieri
>  _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

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

Is there any particular need to choose between minimal A and minimal d? Why=
 not simply specify that both are acceptable options?<br><br>This is a minu=
scule loss to rigidity; two curves versus one per prime. <br><div class=3D"=
gmail_quote">On Mon, Jan 5, 2015 at 2:01 PM Tony Arcieri &lt;<a href=3D"mai=
lto:bascule@gmail.com">bascule@gmail.com</a>&gt; wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gm=
ail_quote">On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov <span dir=3D"lt=
r">&lt;<a href=3D"mailto:alexey.melnikov@isode.com" target=3D"_blank">alexe=
y.melnikov@isode.com</a>&gt;</span> wrote:<br></div></div></div><div dir=3D=
"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">This message starts 2 weeks adoption call (ending on Januar=
y 19th 2015) on:<br>
<br>
<a href=3D"https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml" target=
=3D"_blank">https://www.imperialviolet.<u></u>org/cfrgcurve/cfrgcurve.xml</=
a><br>
<br>
as the starting point for the CFRG document which describes an algorithm fo=
r safe curve parameter generation for a particular security level and also =
recommends a specific curve (2^255-19) for the 128-bit security level.<br>
<br>
Please reply to this message or directly to CFRG chairs, stating whether yo=
u support (or not) adoption of this document. If you do not support adoptio=
n of this document, please state whether you support adoption of any altern=
ative document or whether you want a particular change be made to the docum=
ent before adoption.</blockquote><div><br></div></div></div></div><div dir=
=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div>My supp=
ort of this document is contextual: at present it does not provide a simila=
r defense for Ed25519 (despite the rigid curve selection guidelines dealing=
 primarily in Edwards curves) as it does for Curve25519 (which is Montgomer=
y)</div><div><br></div><div>I hope the CFRG does not paint itself into a co=
rner with this document, and when the question of a signature system arises=
, I hope Ed25519 will not be struck down due to an incompatibility with the=
 outlined rigid curve selection guidelines.</div><div><br></div><div>I&#39;=
m not saying the CFRG should adopt Ed25519, but I would prefer the door rem=
ained open for them to do so.</div><div><br></div><div>tl;dr: I would accep=
t this draft so long as it&#39;s not a blocker for Ed25519</div></div></div=
></div><div dir=3D"ltr"><div class=3D"gmail_extra"><div><br></div>-- <br><d=
iv>Tony Arcieri<br></div>
</div></div>
______________________________<u></u>_________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/<u></u>listinfo/cfrg</a><br>
</blockquote></div>

--089e012946149cadee050beeec7c--


From nobody Mon Jan  5 14:11:05 2015
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 75C031A9024 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:11:04 -0800 (PST)
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 3FjyX1ao4CnI for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 14:11:02 -0800 (PST)
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 96B8A1A901E for <cfrg@irtf.org>; Mon,  5 Jan 2015 14:11:02 -0800 (PST)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 1AF983AA43; Mon,  5 Jan 2015 14:08:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420495711; bh=Jduwa0jl1T2Vh3+g5Ca0zQv1eNwnf+lRa+34BpHKh8Y=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=EuEpwYGpfP+Rx/2tVHs25eAxBciH/mUNw2CGhQr/Z/eloF0z++AqhGoA3TjTb72mO pORaWBf2hDLopjhqVGKj30DO8PsRU8ZrV6sMxrmTcDpnQyF19hT+po+/RZAIvbWHEB fRZWwPp/sNZvPplFh1Uys8xXo6p5fPbsCrVlQHiI=
Content-Type: multipart/alternative; boundary="Apple-Mail=_EB7CD01D-1E2D-4E89-B458-CA21414614BA"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CAA7UWsWpMj13XawvbUGM65RJVJ=xG9-BdHX6yZhe5Y2UNFbO3Q@mail.gmail.com>
Date: Mon, 5 Jan 2015 14:11:00 -0800
Message-Id: <656B184C-9B2C-4853-B028-A2874CD28CC9@shiftleft.org>
References: <54AAE2CA.1080701@isode.com> <CAHOTMV+GAk_+0nqLn_cVf1AkQmSeG12WdYeANP_S19i+nC8ctQ@mail.gmail.com> <CAA7UWsWpMj13XawvbUGM65RJVJ=xG9-BdHX6yZhe5Y2UNFbO3Q@mail.gmail.com>
To: David Leon Gil <coruus@gmail.com>
X-Mailer: Apple Mail (2.2064)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/JyfGzpzPailUI2B0uGcPa3_WtmU
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 05 Jan 2015 22:11:04 -0000

--Apple-Mail=_EB7CD01D-1E2D-4E89-B458-CA21414614BA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Support, though I agree that minor changes are important for clarity.

Also, I thought Curve25519 used minimal (2 mod 4) A.  Isn=E2=80=99t that =
equivalent to minimal d due to the isogeny?

Cheers,
=E2=80=94 Mike

> On Jan 5, 2015, at 2:08 PM, David Leon Gil <coruus@gmail.com> wrote:
>=20
> Is there any particular need to choose between minimal A and minimal =
d? Why not simply specify that both are acceptable options?
>=20
> This is a minuscule loss to rigidity; two curves versus one per prime.=20=

> On Mon, Jan 5, 2015 at 2:01 PM Tony Arcieri <bascule@gmail.com =
<mailto:bascule@gmail.com>> wrote:
> On Mon, Jan 5, 2015 at 11:15 AM, Alexey Melnikov =
<alexey.melnikov@isode.com <mailto:alexey.melnikov@isode.com>> wrote:
> This message starts 2 weeks adoption call (ending on January 19th =
2015) on:
>=20
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml =
<https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml>
>=20
> as the starting point for the CFRG document which describes an =
algorithm for safe curve parameter generation for a particular security =
level and also recommends a specific curve (2^255-19) for the 128-bit =
security level.
>=20
> Please reply to this message or directly to CFRG chairs, stating =
whether you support (or not) adoption of this document. If you do not =
support adoption of this document, please state whether you support =
adoption of any alternative document or whether you want a particular =
change be made to the document before adoption.
>=20
> My support of this document is contextual: at present it does not =
provide a similar defense for Ed25519 (despite the rigid curve selection =
guidelines dealing primarily in Edwards curves) as it does for =
Curve25519 (which is Montgomery)
>=20
> I hope the CFRG does not paint itself into a corner with this =
document, and when the question of a signature system arises, I hope =
Ed25519 will not be struck down due to an incompatibility with the =
outlined rigid curve selection guidelines.
>=20
> I'm not saying the CFRG should adopt Ed25519, but I would prefer the =
door remained open for them to do so.
>=20
> tl;dr: I would accept this draft so long as it's not a blocker for =
Ed25519
>=20
> --=20
> Tony Arcieri
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org <mailto:Cfrg@irtf.org>
> http://www.irtf.org/mailman/listinfo/cfrg =
<http://www.irtf.org/mailman/listinfo/cfrg>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--Apple-Mail=_EB7CD01D-1E2D-4E89-B458-CA21414614BA
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;" =
class=3D""><div class=3D"">Support, though I agree that minor changes =
are important for clarity.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Also, I thought Curve25519 used minimal (2 mod 4) A. =
&nbsp;Isn=E2=80=99t that equivalent to minimal d due to the =
isogeny?</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cheers,</div><div class=3D"">=E2=80=94 Mike</div><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
Jan 5, 2015, at 2:08 PM, David Leon Gil &lt;<a =
href=3D"mailto:coruus@gmail.com" class=3D"">coruus@gmail.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D"">Is =
there any particular need to choose between minimal A and minimal d? Why =
not simply specify that both are acceptable options?<br class=3D""><br =
class=3D"">This is a minuscule loss to rigidity; two curves versus one =
per prime. <br class=3D""><div class=3D"gmail_quote">On Mon, Jan 5, 2015 =
at 2:01 PM Tony Arcieri &lt;<a href=3D"mailto:bascule@gmail.com" =
class=3D"">bascule@gmail.com</a>&gt; wrote:<br class=3D""><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div dir=3D"ltr" class=3D""><div =
class=3D"gmail_extra"><div class=3D"gmail_quote">On Mon, Jan 5, 2015 at =
11:15 AM, Alexey Melnikov <span dir=3D"ltr" class=3D"">&lt;<a =
href=3D"mailto:alexey.melnikov@isode.com" target=3D"_blank" =
class=3D"">alexey.melnikov@isode.com</a>&gt;</span> wrote:<br =
class=3D""></div></div></div><div dir=3D"ltr" class=3D""><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">This message starts 2 weeks adoption call =
(ending on January 19th 2015) on:<br class=3D"">
<br class=3D"">
<a href=3D"https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml" =
target=3D"_blank" class=3D"">https://www.imperialviolet.<u =
class=3D""></u>org/cfrgcurve/cfrgcurve.xml</a><br class=3D"">
<br class=3D"">
as the starting point for the CFRG document which describes an algorithm =
for safe curve parameter generation for a particular security level and =
also recommends a specific curve (2^255-19) for the 128-bit security =
level.<br class=3D"">
<br class=3D"">
Please reply to this message or directly to CFRG chairs, stating whether =
you support (or not) adoption of this document. If you do not support =
adoption of this document, please state whether you support adoption of =
any alternative document or whether you want a particular change be made =
to the document before adoption.</blockquote><div class=3D""><br =
class=3D""></div></div></div></div><div dir=3D"ltr" class=3D""><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><div class=3D"">My =
support of this document is contextual: at present it does not provide a =
similar defense for Ed25519 (despite the rigid curve selection =
guidelines dealing primarily in Edwards curves) as it does for =
Curve25519 (which is Montgomery)</div><div class=3D""><br =
class=3D""></div><div class=3D"">I hope the CFRG does not paint itself =
into a corner with this document, and when the question of a signature =
system arises, I hope Ed25519 will not be struck down due to an =
incompatibility with the outlined rigid curve selection =
guidelines.</div><div class=3D""><br class=3D""></div><div class=3D"">I'm =
not saying the CFRG should adopt Ed25519, but I would prefer the door =
remained open for them to do so.</div><div class=3D""><br =
class=3D""></div><div class=3D"">tl;dr: I would accept this draft so =
long as it's not a blocker for Ed25519</div></div></div></div><div =
dir=3D"ltr" class=3D""><div class=3D"gmail_extra"><div class=3D""><br =
class=3D""></div>-- <br class=3D""><div class=3D"">Tony Arcieri<br =
class=3D""></div>
</div></div>
______________________________<u class=3D""></u>_________________<br =
class=3D"">
Cfrg mailing list<br class=3D"">
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank" =
class=3D"">Cfrg@irtf.org</a><br class=3D"">
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank" =
class=3D"">http://www.irtf.org/mailman/<u =
class=3D""></u>listinfo/cfrg</a><br class=3D"">
</blockquote></div>
_______________________________________________<br class=3D"">Cfrg =
mailing list<br class=3D""><a href=3D"mailto:Cfrg@irtf.org" =
class=3D"">Cfrg@irtf.org</a><br =
class=3D"">http://www.irtf.org/mailman/listinfo/cfrg<br =
class=3D""></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_EB7CD01D-1E2D-4E89-B458-CA21414614BA--


From nobody Mon Jan  5 15:08:05 2015
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 8C19C1A017C for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 15:08:02 -0800 (PST)
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_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, J_CHICKENPOX_54=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VMYJgnPu3Bqr for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 15:07:58 -0800 (PST)
Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CCA0A1A01A5 for <cfrg@irtf.org>; Mon,  5 Jan 2015 15:07:57 -0800 (PST)
Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-04v.sys.comcast.net with comcast id cP7r1p0052S2Q5R01P7wsr; Mon, 05 Jan 2015 23:07:56 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by resomta-ch2-16v.sys.comcast.net with comcast id cP7u1p00L4uhcbK01P7vrP; Mon, 05 Jan 2015 23:07:56 +0000
Message-ID: <54AB194A.6020104@brainhub.org>
Date: Mon, 05 Jan 2015 15:07:54 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org> <EBF3EC55-3057-496A-8BAE-7EAD405518A7@shiftleft.org>
In-Reply-To: <EBF3EC55-3057-496A-8BAE-7EAD405518A7@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=1420499276; bh=j751Z77PhUBPNUCnbyeLmarc3+9JpUP6CJ/CIfoXuOI=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=bFSbsW3t0ZgLXCIwtx+bQjHpqNbaQARBPlkmdzzGLhxHGXinIQ4VyMP8iKVBfV1Ro 2aFRqlXrlc+4/IpVeFP30nLnEKBb/ewm+9OSwdUbM7HnOtK2qCYs9ZiacLSPNPSMPZ zLRt9ptz9HP1JqTi1SkkGMg/ngMPD5f4VmGNxZ3aSlhwWp+IWn0dCz7TMJKjI0ev6V 8S9DxMW2V2A6oVZTXzt1CZX+j9o+EiaR97kXhc1ML7L2DzykCbp/CeIW4Is9I36YqV oQyYEKSbTXizglOhn4xm0imNc+f5G0DUaHBZvNnwA328YnQiuwKrBZWwGdzXpRvBI2 uwkfoOjiX2hpg==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/fMvBhi4OCEZ4No7GxZBMOAPCpfo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 05 Jan 2015 23:08:03 -0000

On 01/05/2015 01:45 PM, Michael Hamburg wrote:
>> On Jan 5, 2015, at 12:07 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>>
>> Thank you, Mike, this is helpful. This brings a few thoughts, below.
> Youre welcome.
>
>> On 01/05/2015 01:35 AM, Mike Hamburg wrote:
>>> Microsoft's benchmarks on Ed-384-mers, and even some of my earlier Ed448 numbers disagree with the Ed448 data above.  My earlier numbers were about 6% less favorable to Montgomery, and Microsoft's numbers were about 10-15% less favorable to Montgomery.  ...
>> My tests seem to confirm this that Montgomery is 10-15% less favourable as well.
> But it looks to me like you compared a constant-time Montgomery implementation to a variable-time Edwards one.

The method uses window exponentiation-style scalar multiplication with 
doubling for each bit. The data-dependent decisions are done for 
additions, which are additional ~ 50% of these. The fix may lower the 
performance gap, but I think it will be within these 15%.

>
>>> So, for larger primes, the Montgomery ladder is probably slightly faster than Edwards when operating on compressed points, and slower or the same otherwise.
>> A common assumption is that we need point compression in ECDH, from which it follows that Montgomery representation is a wash for p ~ 2^256.
>>
>> However, for the sake of technical argument let's leave aside the weight assigned to "widespread existing practice" and:
>> * assume that the curve is specified in Edwards form, e.g. as in http://www.ietf.org/id/draft-black-rpgecc-01.txt
>> * assume that the point is sent uncompressed.
>>
>>
>> This is fine for authenticated keys, e.g. because these will be distributed in X.509 certificates, DNS records, etc. Point validation is cheaper than decompression in other cases, and this is is how it's presently done on the Internet. Optional point compression is also well-understood.
> Sure, this is an OK option.  I prefer always-compressed for reasons which have come up before, but optional compression is reasonable.
>
>> * The fixed-base scalar multiplication is very fast, e.g. 15 times faster with 5.24 Mb of pre-computed static tables for the 13 bit window.
> Most designers don't do this, because its vulnerable to timing attacks and can have caching problems (important for anything other than benchmarks).  More common values are somewhere between 3kiB and 20kiB, with constant-time table lookups, yielding about a 3x performance improvement instead of 15x.
The openssl does this for in ECDSA P-256 code with w=7. My comments are 
regarding the generalization of this code for w=13, which means you are 
doing 20 ECC additions for the entire P-256 fixed-base scalar 
multiplication. At this rate the memory access is what slows you down, 
and things like unneeded inverse in ECDSA v.s. EdDSA.

It may not be necessary to have side-channel protected code that 
generates one-time ECDH pair, otherwise, one can add cache line SC 
protection.

>
>> This is beneficial for protocols or implementation that cannot reuse an ephemeral EC key. E.g. a command-line application launched to encrypt data, a browser launched with open tabs, etc.
>>
>> Given that the calculation of a client ECDH share is so fast relatively to an ECDH shared secret point calculation, an implementation may as well always calculate it fresh. This reduces complexity and fits many APIs. This is because there is no need to to maintain a "state" with reused ephemeral share.
>>
>> * The same F(p) and ECC code can be used for signing and ECDH. Also, a small d in the Edwards equation is used.
> Implementations which compress points and/or use the ladder will share F(p) code.  The small d in the Edwards equation can be used in either the isomorphic curve (as Robert Ransom and I found) or the isogenous one (a la Microsoft).  If an implementor wants to use the Edwards code for Montgomery-x ECDH as well, it costs no more than with any other point compression scheme.

I put some of this here 
http://www.ietf.org/mail-archive/web/cfrg/current/msg05113.html

However, "free" assumes that you use compression. Removing compression 
gives you 10% performance gain, if you don't need to do conversions to 
isogenous curves.

Is it worth to subject the X.509 cert verifiers to the 10% penalty for 
32 byte saving?

>> Down the road, something like EdDSA+ECDH, uncompressed points in Edwards form, looks like the fastest alternative. Essentially this enables the system design with a single ECC primitive that does x*P for same field size, which is very fast when P=G, the base point.
> Faster than compressed, yes.  Better, though maybe?  Speaking of faster, most verifies will use double-scalar multiply because its faster, and they usually have different code between signing/ECDH and verification for side-channel reasons.
"Batching" is a good thing. When x * basepoint is just a few additions, 
the main benefit of doing double scalar multiply is probably due to 
"simultaneous inverse" (single conversion to affine v.s. twice). TLS 1.3 
enables additional "batching" between ECDH and signature. These cases 
can be handled by a single x*P primitive with a n-point export function.

>
>> * Traditional ECC assumed that one can add points. This may affect adoption of the new curve.
>>
>> This is the case for NIST P-256. It may be desirable to sign with an ECDH key, e.g. for proof of key possession, without a special protocol.
>>
>> * Curves that allow point addition offer space/speed tradeoff option through the window size, and other methods.
>>
>> Unfortunately, the conversion between representations costs ~10% due to F(p) inverse. Decompression costs about the same. We also know that the performance difference between Montgomery/Edwards operations is in the similar range. Therefore, selection of the format on the wire determines the implementation. If we are sending a Montgomery x, we are committing to Montgomery ladder implementation. Is this justified?
>
> Exactly what features are possible or desirable in a point encoding  and at what cost in complexity and generality  is an interesting question.
>
> The point format in the experimental Goldilocks software (and in Ed252) allows adding points, because it transmits sign information.  I used the same format is used for laddered ECDH and for signatures.  It is suitable for both the Montgomery ladder and Edwards windowed implementations.  Furthermore, it reduces the curves cofactor to 2 (see also my post on reducing the cofactor to 1), and allows the Montgomery ladder to reject twist points.  It costs about the same as an ordinary point compression/decompression system, but it is slightly more complex and not batchable either for compression or decompression.
>
> Others have also advocated a simpler format with similar properties, such as (Montgomery x, low bit of Edwards x).  This doesnt reduce the cofactor, but its easier to describe and it allows compression to be batched.

As a side note, I see difficulties in implementing batching in practice. 
I think, realistically, it's an engineering challenge to batch ECC 
operations for parallel TLS streams. A realistic pattern for batching is 
something like double scalar multiplication that are guaranteed to occur 
at the protocol level. Therefore, the 10% hit due to extra inverse is, 
unfortunately, might not be easy to lower to below 5% (and that's when 
you are lucky e.g. when the cert and DH group match)


From nobody Mon Jan  5 16:04:48 2015
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 6373E1A9092 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 16:04:47 -0800 (PST)
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_54=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 9gKA8QPXUdmT for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 16:04:45 -0800 (PST)
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 88DCE1A9096 for <cfrg@irtf.org>; Mon,  5 Jan 2015 16:04:45 -0800 (PST)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 918EE3AA43; Mon,  5 Jan 2015 16:02:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420502533; bh=mUIVUU/rZ9h7/DNVwYv+XjBrcn3s5uYgDy+d8LpxiLk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Jbm4UxQhPTs726dmQfjWGfJRRjvn4zUB+gdKta8NAnt/wyenVZBaez/5cwCFRCT37 TIjrFw8YX2sLslJiWLieCovle6MbCwnsRn1L/LOI9ftefTTvCb2dwi2OuAmbey4MC1 droe5C09IljvxADr6L8WUoKc7Hc477mD0bN1sbEw=
Content-Type: multipart/alternative; boundary="Apple-Mail=_71F50B2B-A9DB-4D5D-BDB9-9F4BB68084CD"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <54AB194A.6020104@brainhub.org>
Date: Mon, 5 Jan 2015 16:04:42 -0800
Message-Id: <322BA3AD-7F5F-4A77-ADBA-7E5260DC690A@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org> <EBF3EC55-3057-496A-8BAE-7EAD405518A7@shiftleft.org> <54AB194A.6020104@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.2064)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/6hObRkYmpelc4XjHhOg3GKuaGdo
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 06 Jan 2015 00:04:47 -0000

--Apple-Mail=_71F50B2B-A9DB-4D5D-BDB9-9F4BB68084CD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


> On Jan 5, 2015, at 3:07 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> The method uses window exponentiation-style scalar multiplication with =
doubling for each bit. The data-dependent decisions are done for =
additions, which are additional ~ 50% of these. The fix may lower the =
performance gap, but I think it will be within these 15%.

The difference is about 15% in my code.

> The openssl does this for in ECDSA P-256 code with w=3D7. My comments =
are regarding the generalization of this code for w=3D13, which means =
you are doing 20 ECC additions for the entire P-256 fixed-base scalar =
multiplication. At this rate the memory access is what slows you down, =
and things like unneeded inverse in ECDSA v.s. EdDSA.

2^13 >> 2^7.

> It may not be necessary to have side-channel protected code that =
generates one-time ECDH pair, otherwise, one can add cache line SC =
protection.

Partial SC protection can be very tricky to analyze.  I don=92t know =
what you mean by =93cache line SC protection=94.  A cache line may not =
even hold 2^13 bits.

The same fixed-base code is likely to be used for both ECDH ephemeral =
keygen, and for signing.  This sort of leak in signing code could be =
disastrous.

> However, "free" assumes that you use compression. Removing compression =
gives you 10% performance gain, if you don't need to do conversions to =
isogenous curves.
>=20
> Is it worth to subject the X.509 cert verifiers to the 10% penalty for =
32 byte saving?

Maybe.  We=92re talking maybe a 50=B5s difference on a 1GHz Cortex-A9 =
phone.  While you can send 32 bytes in 50=B5s over a 5Mbit LTE link, I =
don=92t know which will use more power.  On a laptop, it=92s about 5=B5s =
(on one core), which equates to a 50Mbit link.  Obviously not all points =
will be sent over slow links, but the point is that the actual =
performance penalty is on the same order as the space savings.

Also, converting to an isogenous curve will be done in projective form =
in practice, so it=92s =93free=94.

>>> Down the road, something like EdDSA+ECDH, uncompressed points in =
Edwards form, looks like the fastest alternative. Essentially this =
enables the system design with a single ECC primitive that does x*P for =
same field size, which is very fast when P=3DG, the base point.
>> Faster than compressed, yes.  Better, though=85 maybe?  Speaking of =
faster, most verifies will use double-scalar multiply because it=92s =
faster, and they usually have different code between signing/ECDH and =
verification for side-channel reasons.
> "Batching" is a good thing. When x * basepoint is just a few =
additions, the main benefit of doing double scalar multiply is probably =
due to "simultaneous inverse" (single conversion to affine v.s. twice). =
TLS 1.3 enables additional "batching" between ECDH and signature. These =
cases can be handled by a single x*P primitive with a n-point export =
function.

I don=92t mean batching, I mean Straus=92 algorithm (aka Shamir=92s =
trick) for linear combinations, as used within a single ECDSA verify.

Cheers,
=97 Mike=

--Apple-Mail=_71F50B2B-A9DB-4D5D-BDB9-9F4BB68084CD
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;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Jan 5, 2015, at 3:07 PM, Andrey Jivsov &lt;<a =
href=3D"mailto:crypto@brainhub.org" class=3D"">crypto@brainhub.org</a>&gt;=
 wrote:</div><div class=3D""><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;" class=3D"">The method uses =
window exponentiation-style scalar multiplication with doubling for each =
bit. The data-dependent decisions are done for additions, which are =
additional ~ 50% of these. The fix may lower the performance gap, but I =
think it will be within these 15%.</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;" class=3D""></div></blockquote><div><br =
class=3D""></div><div>The difference is about 15% in my code.</div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><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;" class=3D"">The openssl does this for in ECDSA P-256 code =
with w=3D7. My comments are regarding the generalization of this code =
for w=3D13, which means you are doing 20 ECC additions for the entire =
P-256 fixed-base scalar multiplication. At this rate the memory access =
is what slows you down, and things like unneeded inverse in ECDSA v.s. =
EdDSA.</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;" =
class=3D""></div></blockquote><div><br class=3D""></div><div>2^13 =
&gt;&gt; 2^7.</div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><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;" class=3D"">It may not be =
necessary to have side-channel protected code that generates one-time =
ECDH pair, otherwise, one can add cache line SC protection.</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;" =
class=3D""></div></blockquote><div><br class=3D""></div><div>Partial SC =
protection can be very tricky to analyze. &nbsp;I don=92t know what you =
mean by =93cache line SC protection=94. &nbsp;A cache line may not even =
hold 2^13 bits.</div><div><br class=3D""></div><div>The same fixed-base =
code is likely to be used for both ECDH ephemeral keygen, and for =
signing. &nbsp;This sort of leak in signing code could be =
disastrous.</div><div><br class=3D""></div><blockquote type=3D"cite" =
class=3D""><div class=3D""><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;" class=3D"">However, "free" =
assumes that you use compression. Removing compression gives you 10% =
performance gain, if you don't need to do conversions to isogenous =
curves.</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;" =
class=3D""><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;" =
class=3D""><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;" class=3D"">Is it worth to subject the =
X.509 cert verifiers to the 10% penalty for 32 byte saving?</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;" =
class=3D""></div></blockquote><div><br class=3D""></div><div>Maybe. =
&nbsp;We=92re talking maybe a 50=B5s difference on a 1GHz Cortex-A9 =
phone. &nbsp;While you can send 32 bytes in 50=B5s over a 5Mbit LTE =
link, I don=92t know which will use more power. &nbsp;On a laptop, it=92s =
about 5=B5s (on one core), which equates to a 50Mbit link. =
&nbsp;Obviously not all points will be sent over slow links, but the =
point is that the actual performance penalty is on the same order as the =
space savings.</div><div><br class=3D""></div><div>Also, converting to =
an isogenous curve will be done in projective form in practice, so it=92s =
=93free=94.</div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D""><blockquote type=3D"cite" 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;" class=3D""><blockquote type=3D"cite" class=3D"">Down the road, =
something like EdDSA+ECDH, uncompressed points in Edwards form, looks =
like the fastest alternative. Essentially this enables the system design =
with a single ECC primitive that does x*P for same field size, which is =
very fast when P=3DG, the base point.<br class=3D""></blockquote>Faster =
than compressed, yes. &nbsp;Better, though=85 maybe? &nbsp;Speaking of =
faster, most verifies will use double-scalar multiply because it=92s =
faster, and they usually have different code between signing/ECDH and =
verification for side-channel reasons.<br class=3D""></blockquote><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;" class=3D"">"Batching" is a good thing. When x * basepoint =
is just a few additions, the main benefit of doing double scalar =
multiply is probably due to "simultaneous inverse" (single conversion to =
affine v.s. twice). TLS 1.3 enables additional "batching" between ECDH =
and signature. These cases can be handled by a single x*P primitive with =
a n-point export function.</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;" class=3D""></div></blockquote><div><br class=3D""></div><div>I =
don=92t mean batching, I mean Straus=92 algorithm (aka Shamir=92s trick) =
for linear combinations, as used within a single ECDSA =
verify.</div></div><br class=3D""><div class=3D"">Cheers,</div><div =
class=3D"">=97 Mike</div></body></html>=

--Apple-Mail=_71F50B2B-A9DB-4D5D-BDB9-9F4BB68084CD--


From nobody Mon Jan  5 16:07:47 2015
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 38EA51A909E for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 16:07:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.956
X-Spam-Level: **
X-Spam-Status: No, score=2.956 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 VHgNqD7YIkQa for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 16:07:44 -0800 (PST)
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 812E71A909C for <cfrg@irtf.org>; Mon,  5 Jan 2015 16:07:44 -0800 (PST)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id EC3943AA43; Mon,  5 Jan 2015 16:05:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420502713; bh=6/UAsaiJLbRAPskUnmoQktqCw3xmi6Ap48PnKm2WyY4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=c+6CdYUOyk4ej1mpYoFeFUzIroKjFYgPqTRSrYFif9zdOG8HyBNmmER4VLYPjRRAG dsCMS1RcUBzfIcJ8b0miIIbKex+VcCA+uK7EOAQUJa9lwofLIzVSE2FZ/vGzA/TvIQ jmx3CP7PknSrUYYeZdAMgsIFdccNFpL/Tdxxuzgk=
Content-Type: multipart/alternative; boundary="Apple-Mail=_83B135B9-FC37-4EA9-BA59-2764EBD4DD65"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <322BA3AD-7F5F-4A77-ADBA-7E5260DC690A@shiftleft.org>
Date: Mon, 5 Jan 2015 16:07:42 -0800
Message-Id: <A45CA193-7C3D-4D14-8D38-A6EE70F4D4A1@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org> <EBF3EC55-3057-496A-8BAE-7EAD405518A7@shiftleft.org> <54AB194A.6020104@brainhub.org> <322BA3AD-7F5F-4A77-ADBA-7E5260DC690A@shiftleft.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.2064)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/T_uYoXaU319sjcqIdXeKj4-7p6c
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 06 Jan 2015 00:07:46 -0000

--Apple-Mail=_83B135B9-FC37-4EA9-BA59-2764EBD4DD65
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


> On Jan 5, 2015, at 4:04 PM, Michael Hamburg <mike@shiftleft.org> =
wrote:
>=20
>=20
>> On Jan 5, 2015, at 3:07 PM, Andrey Jivsov <crypto@brainhub.org =
<mailto:crypto@brainhub.org>> wrote:
>> The method uses window exponentiation-style scalar multiplication =
with doubling for each bit. The data-dependent decisions are done for =
additions, which are additional ~ 50% of these. The fix may lower the =
performance gap, but I think it will be within these 15%.
>=20
> The difference is about 15% in my code.

Sorry, I meant 12%.

=97 Mike


--Apple-Mail=_83B135B9-FC37-4EA9-BA59-2764EBD4DD65
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;" =
class=3D""><div class=3D""><br class=3D""></div><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Jan 5, 2015, at 4:04 PM, =
Michael Hamburg &lt;<a href=3D"mailto:mike@shiftleft.org" =
class=3D"">mike@shiftleft.org</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dwindows-1252" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D""><br =
class=3D""><div class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Jan 5, 2015, at 3:07 PM, Andrey Jivsov &lt;<a =
href=3D"mailto:crypto@brainhub.org" class=3D"">crypto@brainhub.org</a>&gt;=
 wrote:</div><div class=3D""><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;" class=3D"">The method uses =
window exponentiation-style scalar multiplication with doubling for each =
bit. The data-dependent decisions are done for additions, which are =
additional ~ 50% of these. The fix may lower the performance gap, but I =
think it will be within these 15%.</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;" class=3D""></div></blockquote><div =
class=3D""><br class=3D""></div><div class=3D"">The difference is about =
15% in my code.</div></div></div></div></blockquote><div><br =
class=3D""></div>Sorry, I meant 12%.</div><div><br class=3D""></div><div>=97=
 Mike</div><div><br class=3D""></div></body></html>=

--Apple-Mail=_83B135B9-FC37-4EA9-BA59-2764EBD4DD65--


From nobody Mon Jan  5 16:28:26 2015
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 E25FC1A9096 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 16:28:22 -0800 (PST)
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 WSp2_fibVIsx for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 16:28:21 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 53E041A9094 for <cfrg@irtf.org>; Mon,  5 Jan 2015 16:28:21 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id A51D91022404C; Mon,  5 Jan 2015 16:28:20 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Mon, 5 Jan 2015 16:28:21 -0800 (PST)
Message-ID: <6b4e86200ec088a86b4b2d18e3ec7232.squirrel@www.trepanning.net>
In-Reply-To: <54AAF24B.1020306@isode.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <cc1a22e2ad7758b65dcadf70f816fc66.squirrel@www.trepanning.net> <54AAF24B.1020306@isode.com>
Date: Mon, 5 Jan 2015 16:28:21 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Alexey Melnikov" <alexey.melnikov@isode.com>
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/ECYYZVtGaZY8UxEyyyAOVkgB6Qw
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 00:28:23 -0000

On Mon, January 5, 2015 12:21 pm, Alexey Melnikov wrote:
> On 15/12/2014 18:19, Dan Harkins wrote:
>> I'm in favor of another PAKE being documented but I'm not sure
>> why SPAKE2 is the one.
> I was asking about documenting SPAKE2. There is currently no intent in
> declaring it to be "the one". And if chairs decide to investigate
> declaring it the one, there would be another consensus call on the
> mailing list.

  Well if I am not already on the "work on this" side of the ledger
then please add me there; if you had placed me on the "don't work
on this" side then please move me.

  regards,

  Dan.




From nobody Mon Jan  5 20:28:22 2015
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 B33EA1A1A33 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 20:28:14 -0800 (PST)
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, LOTS_OF_MONEY=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 4tHTJ6lYaKBY for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 20:28:12 -0800 (PST)
Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5830B1A1A2D for <cfrg@irtf.org>; Mon,  5 Jan 2015 20:28:12 -0800 (PST)
Received: by mail-yk0-f181.google.com with SMTP id 142so10843232ykq.26 for <cfrg@irtf.org>; Mon, 05 Jan 2015 20:28:11 -0800 (PST)
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=d0/aER5hVOgwpxaQTyynAL5YVk/2PBMdTb5n+TTz/eE=; b=SWhagHZg1QrPg1mimdAJDlHbQ8GvDJ+vFi+1HG7FxiXHOpOMUWVNKgItlmoH0FZ3Kx 0ej87PKkRupm0eysDHULlTLvlkdP4gaaN3/DWmZ3qYkyOoCVUMF/A+BBxSNTYyBI3Jr5 ClNbS5BXxcmgAp+eQVap7yHisegiXxtdHKJjx16k7kOFGOf/Tgto0tFcKdytMp7w6o5z ICi+j4Prj2rWy+KrNGe3Hbd+9gBm/j2nPLQ9HVqIwPCY8oZqCSj8BdPA+Us9OBDT2PRU 4XplpyhrowQs+wwQ+cHDxOMDmIQxz4L95ncT0r6p9286nl68tKClxCjjQa7OaocX8VJ1 ls3A==
MIME-Version: 1.0
X-Received: by 10.170.89.130 with SMTP id g124mr67836607yka.24.1420518491579;  Mon, 05 Jan 2015 20:28:11 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Mon, 5 Jan 2015 20:28:11 -0800 (PST)
In-Reply-To: <54AAEEFC.9060309@brainhub.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org>
Date: Mon, 5 Jan 2015 23:28:11 -0500
Message-ID: <CACsn0c=nFHgwmx7aENVAp=xBm8QkqV0CLDSvFnydXSXcRVpG6A@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/KOhl25huydkWRHz8VboMO7OKRl8
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 06 Jan 2015 04:28:14 -0000

On Mon, Jan 5, 2015 at 3:07 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> Thank you, Mike, this is helpful. This brings a few thoughts, below.
<snip>
>
>
> Unfortunately, the conversion between representations costs ~10% due to F(p)
> inverse. Decompression costs about the same. We also know that the
> performance difference between Montgomery/Edwards operations is in the
> similar range. Therefore, selection of the format on the wire determines the
> implementation. If we are sending a Montgomery x, we are committing to
> Montgomery ladder implementation. Is this justified?

Yes. Despite claims earlier in your email that certification stops the
problem, invalid point attacks are a real threat. In RFC 4492,
ECDH_ECDSA authentication of servers to clients involves one signed
point and one unsigned point, the unsigned point being sent by the
client.  An attacker can extract the private key relatively quickly
from a vulnerable implementation, which do exist: I've found some, and
I believe Kenny Patterson has a student or two working on finding more
now, as well as attacking other protocols. RFC 6090 doesn't mention
the need for point validation, for instance.

Point compression doesn't solve this issue: there is a presentation by
Adrian Antipa, Dan Brown, Alfred Menezes, Rene Struik, and Scott
Vanstone at PKCS 2003 which demonstrates attacks even when point
compression is mandatory. DJB has also found a patent on point
validation, which may mean we have a problem. (This is why RFC 6090
doesn't mention point validation: the relevant patent is US7215773)

That's why NUMS switched to x-coordinate only Montgomery: the security
issues associated with invalid point attacks go away. The Montgomery
ladder is so simple that adding it to an Edwards form implementation
adds very little complexity. The architectural issues being claimed
are in my view irrelevant: most protocol implementations are able to
integrate RSA and ECC, which are radically different: an x-coordinate
only key exchange isn't much harder to integrate, and if it was,
people wouldn't be doing it.

The consequences of these attacks are losing one's private key, and
telling implementors to check inputs isn't stopping them.

Sincerely,
Watson Ladd

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



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


From nobody Mon Jan  5 22:03:43 2015
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 4FD561A1B86 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 22:03:42 -0800 (PST)
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 5PTfYkJMCK4L for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 22:03:39 -0800 (PST)
Received: from resqmta-ch2-11v.sys.comcast.net (resqmta-ch2-11v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:43]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 36B311A90F6 for <cfrg@irtf.org>; Mon,  5 Jan 2015 22:03:38 -0800 (PST)
Received: from resomta-ch2-15v.sys.comcast.net ([69.252.207.111]) by resqmta-ch2-11v.sys.comcast.net with comcast id cW3Z1p0052Qkjl901W3e3P; Tue, 06 Jan 2015 06:03:38 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-ch2-15v.sys.comcast.net with comcast id cW3d1p0074uhcbK01W3dvU; Tue, 06 Jan 2015 06:03:38 +0000
Message-ID: <54AB7AB9.10604@brainhub.org>
Date: Mon, 05 Jan 2015 22:03:37 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org> <EBF3EC55-3057-496A-8BAE-7EAD405518A7@shiftleft.org> <54AB194A.6020104@brainhub.org> <322BA3AD-7F5F-4A77-ADBA-7E5260DC690A@shiftleft.org>
In-Reply-To: <322BA3AD-7F5F-4A77-ADBA-7E5260DC690A@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=1420524218; bh=Au0K+wWv5xcDimh902PIyusd/lX53Q2FyaBx2Rfu2vU=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=CXOu4Q6LA5Xi+Ohb/yrzeETa5QFHYtR9KPikGkA7YtV+KLP7f15Ca5kp0ei4Z+IAE 6wjOU0bkkPMYsH8PAZ54SJYwAVkVBcn3Q1YOc/G5QkvCdDfZ/x58sAato+5GAVndHq FKSh5T+I9H5ZoyFoz0Nx9HjiZCoaI0F2abBA0MsdzysmrLe7f9PTv1JP8ASMWd28vp VVgIqDtSlh7lVS0BQz4ruBv/aOuddYAXDx0HOmVtNlJAoCxEzvIPj895K37zvi/mBF JDiwaf3ysjX1CADFZYCgzNKY9nIVUu6QiBDf+ptF3k9XcduqKW7hsrRiy2b4QLl+vs QN4z3cycIhyJQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/HiThyeTV1-jmBZCmPn-IXDvZslg
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 06 Jan 2015 06:03:42 -0000

On 01/05/2015 04:04 PM, Michael Hamburg wrote:
>
>> On Jan 5, 2015, at 3:07 PM, Andrey Jivsov <crypto@brainhub.org
>> <mailto:crypto@brainhub.org>> wrote:
>> The method uses window exponentiation-style scalar multiplication with
>> doubling for each bit. The data-dependent decisions are done for
>> additions, which are additional ~ 50% of these. The fix may lower the
>> performance gap, but I think it will be within these 15%.
>
> The difference is about 15% in my code.
>
>> The openssl does this for in ECDSA P-256 code with w=7. My comments
>> are regarding the generalization of this code for w=13, which means
>> you are doing 20 ECC additions for the entire P-256 fixed-base scalar
>> multiplication. At this rate the memory access is what slows you down,
>> and things like unneeded inverse in ECDSA v.s. EdDSA.
>
> 2^13 >> 2^7.

Understood, but diverse implementations would be free to choose any the 
most suitable value of w for the same format on the wire.

Contrast this with Montgomery coordinate on the wire, which can be 
viewed as an implementation with fixed w=1 (but fewer F(p) per w).

>
>> It may not be necessary to have side-channel protected code that
>> generates one-time ECDH pair, otherwise, one can add cache line SC
>> protection.
>
> Partial SC protection can be very tricky to analyze.  I dont know what
> you mean by cache line SC protection.  A cache line may not even hold
> 2^13 bits.

As a side note, I think that only 2^w / (256/w) need be protected.  W.g. 
for w=13 there are 20 sub-tables Ti, where Ti is always accesses in step 
i=[0,19]. The access within each Ti may need side channel protection, if 
this fits a threat model. These Tis are public, read-only tables that 
can be shared between processes and can reside in ROM.

>
> The same fixed-base code is likely to be used for both ECDH ephemeral
> keygen, and for signing.  This sort of leak in signing code could be
> disastrous.

Shouldn't it be possible to get a value T[i] from a public table T with 
a private i in a secure fashion?

In the worst case an implementation can use Montgomery ladder internally 
if this is the most suitable option.

>
>> However, "free" assumes that you use compression. Removing compression
>> gives you 10% performance gain, if you don't need to do conversions to
>> isogenous curves.
>>
>> Is it worth to subject the X.509 cert verifiers to the 10% penalty for
>> 32 byte saving?
>
> Maybe.  Were talking maybe a 50΅s difference on a 1GHz Cortex-A9 phone.
>   While you can send 32 bytes in 50΅s over a 5Mbit LTE link, I dont
> know which will use more power.  On a laptop, its about 5΅s (on one
> core), which equates to a 50Mbit link.  Obviously not all points will be
> sent over slow links, but the point is that the actual performance
> penalty is on the same order as the space savings.
>
> Also, converting to an isogenous curve will be done in projective form
> in practice, so its free.

Thinking more about it, here is an interesting observation (probably 
that's what you meant).

Let's say that the wire coordinates are twisted Edwards (x,y).

The implementation that wants to use the t.Edwards curve will use (x,y) 
directly, validating the point as needed first.

An implementation that wants to use Montgomery ladder will do

   X = -(y+1)
   Z =   y-1

and proceed with the currently written X25519 code, other than it will 
use initial Z=y-1 v.s. Z=1. An interesting fact is that the (x,y) can be 
compressed as (y) and this will work without decompression penalty with 
a Montgomery ladder.

This is significant because doing it as in Adam's draft doesn't seem to 
avoid 10% penalty in some cases, specifically, if an implementation uses 
Edwards formula I think one needs to obtain Y for Montgomery X first, 
which involves a square root. This makes sense because Edwards 
calculation needs both (x,y), while Montgomery formula -- only X (and, 
even better, X happen to depend only on y).

This is largely from 
http://www.ietf.org/mail-archive/web/cfrg/current/msg05113.html, which 
relies on http://eprint.iacr.org/2008/013.pdf .

This means that the format on the wire is

   compressed:   t.Edwards (y)
   uncompressed: t.Edwards (x,y)

and the conversion to Montgomery is indeed free.

...


From nobody Mon Jan  5 22:18:14 2015
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 3DC621A90F9 for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 22:18:11 -0800 (PST)
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 nw8KasI1AdHu for <cfrg@ietfa.amsl.com>; Mon,  5 Jan 2015 22:18:08 -0800 (PST)
Received: from resqmta-ch2-09v.sys.comcast.net (resqmta-ch2-09v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:41]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 711A01A90F8 for <cfrg@irtf.org>; Mon,  5 Jan 2015 22:18:08 -0800 (PST)
Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-09v.sys.comcast.net with comcast id cWHu1p0012N9P4d01WJ7MC; Tue, 06 Jan 2015 06:18:07 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-ch2-13v.sys.comcast.net with comcast id cWJ61p00E4uhcbK01WJ63G; Tue, 06 Jan 2015 06:18:07 +0000
Message-ID: <54AB7E1E.50706@brainhub.org>
Date: Mon, 05 Jan 2015 22:18:06 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org> <CACsn0c=nFHgwmx7aENVAp=xBm8QkqV0CLDSvFnydXSXcRVpG6A@mail.gmail.com>
In-Reply-To: <CACsn0c=nFHgwmx7aENVAp=xBm8QkqV0CLDSvFnydXSXcRVpG6A@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1420525087; bh=HiblT3Bqsfz6w3vnCVJGdIN619OLfosOziDog7z+U4g=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=SQIhhTZ5vOH25PnYZASaeus2Iz37XlLdAPPjxGz/goY25ShsMAr1jRQMoR4YaxxW+ rUCvF7Au+iBT7/CR+bXV6OmZdv0kAVbXyfyHiAX+bxgaJ7h8w+58xUqG1Gk9HIKL0J NXwhPmjutSzQDKPaKzU68LVgIrOllJ/vvshl9Ed61erY4G3Z+DMOM18FIQ06En1Y0y Fsyhb67K5IYM6l38cRLP+qhGOz3z8Nf25iBsKhXyrNeQ+MjbSajpk0T9nfLgQhegvs TvAkCfGWqX8+XQCV8bMlH/WzCI7gAO2YbAjk7/qoOMb61YkNgMaj+MXTbMnWfjnAL8 nBkxCF4VndGiQ==
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/17QYkqrL1KxjXllEDq0pMEojC7Q
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 06 Jan 2015 06:18:11 -0000

On 01/05/2015 08:28 PM, Watson Ladd wrote:
> Despite claims earlier in your email that certification stops the
> problem, invalid point attacks are a real threat.

I didn't mean to say it this way. Implementations have plenty of chances 
to do this wrong. One should not overestimate what this group can do, 
for example, about preventing an application from hardcoding an 
"ephemeral" ECDH key pair into the source code.

The point validation is a part of the group of tests that can be 
legitimately not claimed on the FIPS 140-2 validation. This is in 
ECDSAVS, sec 6.3 
http://csrc.nist.gov/groups/STM/cavp/documents/dss2/ecdsa2vs.pdf

Interesting about validation patents. I try not to read them. Checking 
that (x,y) satisfies some f(x,y)=0 seems to have prior art.


From nobody Tue Jan  6 00:11:30 2015
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 3B6D31A9122 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 00:11:28 -0800 (PST)
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 oN21ht9S-e58 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 00:11:26 -0800 (PST)
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 B755C1A911D for <cfrg@irtf.org>; Tue,  6 Jan 2015 00:09:49 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 221503AA43; Tue,  6 Jan 2015 00:07:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420531636; bh=OlBg3XUdn+9VEmXevXxmauXVK9OJrIlRi0Jq833NRuE=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=UZ3WwZNszodA31xdGnz8HbiHl5RbnIB8G9eGclzMt+8u+jrR9NM8OmAKpdJYa7L1y NJQPzI2wSHUnGbeY4EI1uQ1ALwWI+eUWCo+GjbnfrseqOqUp/lZj6eCmF0xJjGFc81 JhdTvELE4ISGbGbnxeCcLlGAkyXqpWw6NnpN8Ync=
Message-ID: <54AB984B.90009@shiftleft.org>
Date: Tue, 06 Jan 2015 00:09:47 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Andrey Jivsov <crypto@brainhub.org>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org> <EBF3EC55-3057-496A-8BAE-7EAD405518A7@shiftleft.org> <54AB194A.6020104@brainhub.org> <322BA3AD-7F5F-4A77-ADBA-7E5260DC690A@shiftleft.org> <54AB7AB9.10604@brainhub.org>
In-Reply-To: <54AB7AB9.10604@brainhub.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/AiVrqyRKE87qEzyZXNJ1onA-FTQ
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 06 Jan 2015 08:11:28 -0000

On 1/5/2015 10:03 PM, Andrey Jivsov wrote:
> On 01/05/2015 04:04 PM, Michael Hamburg wrote:
>> 2^13 >> 2^7.
>
> Understood, but diverse implementations would be free to choose any 
> the most suitable value of w for the same format on the wire.
>
> Contrast this with Montgomery coordinate on the wire, which can be 
> viewed as an implementation with fixed w=1 (but fewer F(p) per w).
You can use an Edwards fixed-window method to generate ephemerals in 
Montgomery-x wire format.  Ed25519-donna already does this.

> As a side note, I think that only 2^w / (256/w) need be protected. 
> W.g. for w=13 there are 20 sub-tables Ti, where Ti is always accesses 
> in step i=[0,19]. The access within each Ti may need side channel 
> protection, if this fits a threat model. These Tis are public, 
> read-only tables that can be shared between processes and can reside 
> in ROM.
Sure, but protecting 2^13 (or 2^12) points per comb is not going to come 
cheap.  In my measurements the highest speed was about w=5 or 6.

As a side note of my own, all the cool kids are using combs for 
fixed-point scalarmuls these days.  They provide a better tradeoff of 
performance to table size.  The only issue is that one '907 patent, 
which I'm pretty sure doesn't apply to my combs... but MS hasn't gotten 
back to the list on that yet.
>>
>> The same fixed-base code is likely to be used for both ECDH ephemeral
>> keygen, and for signing.  This sort of leak in signing code could be
>> disastrous.
>
> Shouldn't it be possible to get a value T[i] from a public table T 
> with a private i in a secure fashion?
>
> In the worst case an implementation can use Montgomery ladder 
> internally if this is the most suitable option.
Yeah, vs timing attacks you can use vectorized AND/OR/mux/whatever to do 
it.  Vs power attacks you might just have to go back to direct RAM 
access, blind a lot and hope it's enough.

>> Also, converting to an isogenous curve will be done in projective form
>> in practice, so its free.
>
> Thinking more about it, here is an interesting observation (probably 
> that's what you meant).
>
> Let's say that the wire coordinates are twisted Edwards (x,y).
>
> The implementation that wants to use the t.Edwards curve will use 
> (x,y) directly, validating the point as needed first.
>
> An implementation that wants to use Montgomery ladder will do
>
>   X = -(y+1)
>   Z =   y-1
>
> and proceed with the currently written X25519 code, other than it will 
> use initial Z=y-1 v.s. Z=1. An interesting fact is that the (x,y) can 
> be compressed as (y) and this will work without decompression penalty 
> with a Montgomery ladder.
It's cheaper to divide by Z up front (+~256S) than to multiply by both Z 
and X at each step (+~256M).  There is also an Edwards curve y-only 
ladder but it's significantly more of a pain than the ladder on 
Montgomery curves.
> This is significant because doing it as in Adam's draft doesn't seem 
> to avoid 10% penalty in some cases, specifically, if an implementation 
> uses Edwards formula I think one needs to obtain Y for Montgomery X 
> first, which involves a square root. This makes sense because Edwards 
> calculation needs both (x,y), while Montgomery formula -- only X (and, 
> even better, X happen to depend only on y).
>
> This is largely from 
> http://www.ietf.org/mail-archive/web/cfrg/current/msg05113.html, which 
> relies on http://eprint.iacr.org/2008/013.pdf .
>
> This means that the format on the wire is
>
>   compressed:   t.Edwards (y)
>   uncompressed: t.Edwards (x,y)
>
> and the conversion to Montgomery is indeed free.
I actually meant the opposite.  Sending Montgomery (x,y) or similar is 
easier because the Edwards math won't be hurt as much by a projective 
input point -- it's like 1-2% instead of 10%.  Though that does mean you 
can't encode the identity anymore.

Cheers,
-- Mike


From nobody Tue Jan  6 02:04:02 2015
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 5176D1A0178 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 02:04:00 -0800 (PST)
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 iOuf9s2ZFi-P for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 02:03:57 -0800 (PST)
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 993161A1EF1 for <cfrg@irtf.org>; Tue,  6 Jan 2015 02:03:57 -0800 (PST)
In-Reply-To: <54AAE2CA.1080701@isode.com>
References: <54AAE2CA.1080701@isode.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Tue, 06 Jan 2015 10:03:54 +0000
To: cfrg@irtf.org
Message-ID: <78115F4C-2784-452B-A2A4-55D52461D52D@akr.io>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/UPqxrV6sQaL7nHTe9ajhSGEXBik
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 10:04:01 -0000

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

On 5 January 2015 19:15:22 GMT+00:00, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
>This message starts 2 weeks adoption call (ending on January 19th 2015) on:
>https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>as the starting point for the CFRG document which describes an algorithm for safe curve parameter generation for a particular security level and also recommends a specific curve (2^255-19) for the 128-bit security level.

Support.

Needs some work doing, of course, but it's a good draft representing where we are.

Regarding Rene's point: Agreed. In particular, for everyone's protection and peace of mind, please be mindful that the IPR disclosure rules ought to stay in full effect for all contributions to this document and throughout this process. (Easily editable where it is, but move it here on CFRG adoption: is that the plan?)

Regarding Tony's point: also agreed, in the main. Signatures will be needed in due course (but perhaps not quite as urgently as the rest?). Ed25519 is one potential candidate on the table, and I don't think we've really explored signatures enough to rule anything out at this stage. We can deal with that later on, I hope.

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

iQI3BAEBCgAhBQJUq7MJGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t605sP/2+nXfYtgBr1XU0yUq7RA1MO0I8csrPGfZFSzJ/+BvGntcnaPZse
bxAw0eGO71OKZTrzxE86SOT7UVQwBF824wLpdB6BuABSHMLmDrnqnGFvlfTGiTtW
BS4qY7GvUP1pEt75yKj6oBhrhwIg5LzRa/XkCQDEfUGBkTaCai5384WjE1snl8eH
kK8Uz5Ug/0Pkrde7Oi3E9np09/lvWYWT59BaBRtxDRdAMoYou2uNy+h3LSiyhAPB
IJwVevWMnLsh73/WX8Pxhenr+ivIOSn7HdTlK86DXrPYhh6VGMMnvJiME1ZpBMOI
6c1LdQI2g4wjwSzVwO29233K0COYk13CBin9RzyfERN3FwlfkGLeQVt3pggCD5OC
TWvPxE2sY8SevLAzydBpgFeqnK60Wadj57YUy6U80EWQ63hk2BKmVdJfKVtZuP2H
Hn3q+XgLpX4ihs5NgZipPJTeZRDkvvLVRnm6i7XaVPl8qfE78qr/dxMQevbjAUNT
XyL5FgtbNIS4xXH69i8aRmnV3AfNPYdUzabXa+wSxkzG3oRuCrGqyV7ItOK77gyf
KxD5lIgPDcIIFfgIy1H1/GiBKlG9rPGHyCTdE+wNUMwAKoorRoc5ZYSj4KetdJMM
fzpY9o+hM+BmDn0/yDYKgAsyD/WXpsUn8RCqWZ6uzP8FXADhBbx8lD45
=KXgV
-----END PGP SIGNATURE-----


From nobody Tue Jan  6 02:25:24 2015
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 A07601A9164 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 02:25:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level: 
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6H0VQAb7Y1Hg for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 02:25:19 -0800 (PST)
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 972C41A9153 for <cfrg@irtf.org>; Tue,  6 Jan 2015 02:25:19 -0800 (PST)
Received: from men75-11-88-175-104-179.fbx.proxad.net ([88.175.104.179] helo=[192.168.1.36]) by jay.w3.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <hhalpin@w3.org>) id 1Y8RK8-0008D7-O1; Tue, 06 Jan 2015 05:25:16 -0500
Message-ID: <54ABB7FC.2080509@w3.org>
Date: Tue, 06 Jan 2015 11:25:00 +0100
From: Harry Halpin <hhalpin@w3.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: David Gil <dgil@yahoo-inc.com>, Adam Langley <agl@imperialviolet.org>
References: <1223557431.954984.1419630657780.JavaMail.yahoo@jws100194.mail.ne1.yahoo.com>
In-Reply-To: <1223557431.954984.1419630657780.JavaMail.yahoo@jws100194.mail.ne1.yahoo.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/N4XTr1zXiHJn_7KhLA5Ft9x542M
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Curve manipulation, revisited
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 10:25:22 -0000

On 12/26/2014 10:50 PM, David Gil wrote:
> On Thursday, December 25, 2014 1:05 PM, Adam Langley <agl@imperialviolet.org> wrote:
> [replying to someone else]
>> . . .               On the other hand, each additional curve dilutes
>> implementation resources and implementation bugs happen.
> 
> I assume that you mean finite fields, not curves?
> 
> (This would seem to be just as good of an argument for generating
> Edwards curves over the Salinas primes, which are rather widely
> implemented...)
> 
> On Thu, Dec 25, 2014 at 8:38 PM, David Gil <dgil@yahoo-inc.com> wrote:
>>> In particular, w.r.t. Yahoo's eventual release of an End-to-End
>>> messaging extension, we will generate EC keys for extension users
>>> on a curve subgroup with log2(#K) >= 376. The additional computational
>>> expense is, frankly, negligible.
>>
>> I think my argument here is the same as above. (Although, in this
>> situation, you would have the advantage of being able to use the
>> simplest, clearest code possible . . . 
> 
> Alas, no, I don't have that advantage: WebCrypto [has more-or-less
> decided][w3c_curves] that they will only implement CFRG-recommended
> curves. I need WebCrypto support -- for non-extractable keys.
> But I also need to have something that is relatively clean to
> implement in JS, for support of legacy-ish browsers.

Quick point of clarification re W3C's position - we have an formal
position that *if* the decision is made by CFRG  made by March 12th [1],
we will return to Last Call Working Draft. After a month or so, if
implementers believe the proposal is mature, there are no objections,
and it is possible to achieve interop within a reasonable time-frame,
then we will add it to the algorithms listed in the spec for interop
testing and return to implementation interop.

If the decision is made *after* March 12th, we can amend the
recommendation using the "errata" process detailed here [2] (and likely
to be made easier in future) and return to interop testing.

>From WebCrypto's side, we can only recommend that browsers follow CFRG's
recommendation, but if we do not end up with two inter-operable
implementations of the CFRG recommendation by the time we exit Candidate
Recommendation, we will drop that curve from the Recommendation although
the "errata" path can be taken at any time, even after WebCrypto has
achieved Recommendation status. This lets "legacy" browsers upgrade when
they see fit.

In summary, we can add a curve at anytime, and only a curve that has
genuine interop will stay in the W3C spec. So while we have a preferred
deadline, CFRG is not bound to it and we can cope with CFRG's decision
whenever it is made.

We do not want to hurry CFRG's decision along, and believe the decision
should be made purely on technical merits, as makes sense for a Research
Group, and in public as is fitting given the amount of public attention
on crypto post-Snowden. In that regard, the earlier draft of technical
requirements (not sure what happened to it) was very useful and any
proposal should ideally be judged against such requirements.

The Working Groups like TLS or W3C Web Crypto can then deal with the
politics around implementation, but obviously we do understand having
major implementers on board with the CFRG decision helps. If there's
anything we can do to help, just ask.

   cheers,
      harry

[1] http://www.w3.org/TR/2014/CR-WebCryptoAPI-20141211/
[2] http://www.w3.org/2005/10/Process-20051014/tr.html#errata


> 
> And I'm not convinced that the NUMS curve proposal can be implemented with decent performance in simple and clear JS.
> 
>> . . . because performance isn't a concern.)
> 
> And alas, it is: JavaScript is not particularly ideal for k-time
> bignum arithmetic. The choice of finite field has a major impact
> on performance.
> 
> --
> 
>> TOP SECRET just needed to have a bigger number than SECRET :)
> 
> Sure; but why then not secp224r1/SHA-224 and secp256r1/SHA-256?
> 
> And does a code-breaking agency have any reason to publicly
> *overestimate* the probability a cryptosystem might be broken?
> 
> (Or: perhaps they chose randomly ;)
> 
> --
> 
> [w3c_curves]: http://lists.w3.org/Archives/Public/public-webcrypto/2014Sep/0011.html "[W3C Web Crypto WG] CfC : Call for Consensus on the integration of new curves in Web Crypto API - vote before the 16th of sept"
> 
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
> 


From nobody Tue Jan  6 08:30:39 2015
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 E98ED1A0222 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 08:30:34 -0800 (PST)
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 hOHWL6qEtXYH for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 08:30:33 -0800 (PST)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 731FA1A88C8 for <cfrg@irtf.org>; Tue,  6 Jan 2015 08:29:13 -0800 (PST)
Received: from xct108cnc.rim.net ([10.65.161.208]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 06 Jan 2015 11:28:39 -0500
Received: from XCT104CNC.rim.net (10.65.161.204) by XCT108CNC.rim.net (10.65.161.208) with Microsoft SMTP Server (TLS) id 14.3.210.2; Tue, 6 Jan 2015 11:28:39 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT104CNC.rim.net ([::1]) with mapi id 14.03.0210.002; Tue, 6 Jan 2015 11:28:38 -0500
From: Dan Brown <dbrown@certicom.com>
To: "'alexey.melnikov@isode.com'" <alexey.melnikov@isode.com>, "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
Thread-Index: AQHQKR3I8AqvOYsAREaLvOHF0ec9BpyzK0iw
Date: Tue, 6 Jan 2015 16:28:38 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5D38DAE@XMB116CNC.rim.net>
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
Accept-Language: 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_0041_01D029A3.EA5CC220"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/nul4Imqa9zqq2BRYPl0bqu4_aJw
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 16:30:35 -0000

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


> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Alexey Melnikov
> 
> This message starts 2 weeks adoption call (ending on January 19th 2015)
on:
> 
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
> 
> as the starting point for the CFRG document which describes an algorithm
for
> safe curve parameter generation for a particular security level and also
> recommends a specific curve (2^255-19) for the 128-bit security level.
> 
> Please reply to this message or directly to CFRG chairs, stating whether
you
> support (or not) adoption of this document. 

[DB] I would definitely support this if the CFRG is open to later (say,
perhaps after a six-month cooling-off period) discussion of some alternative
elliptic curves, such as, a similar set of curves with say random
j-invariant, and perhaps some other security characteristics.

I trust the other CFRG members to have verified that the current proposals
have made improvements over older curves on side channel resistance,
ease-of-implementation, and efficiency (which can also be useful for a
security by boosting the curve size).  So, I think any future curves should
maintain those characteristics: my condition above does not hinge on
revisiting those issues.

I agree that a rigidity-like property does indeed slightly reduce the
security risk compared to an inexplicably-chosen curve.  I'm for
risk-reduction. I think there is room to reduce the security risk further
(or at least in a different direction), compared to the rigid-type curves,
hence the condition on my support.  I am not too worried on the details of
how rigidity is achieved, since it is rather small thing compared to
resisting known attacks (e.g. side channels, error-prone complexity), and
compared to what I think are the more realistic risks, or at least possibly
better risk-reduction methods. So, if the current logjam in CFRG consensus
is only about which rigidity-like properties to prefer, with the effect that
the other more substantial security improvements are being delayed, then I
support the chairs pushing ahead.  That leaves a small risk between flavours
of rigidity, but I see that small risk as worth the other substantial
security gains, especially if we are open to revisiting risk-reduction in
the future.

Best regards,

Dan


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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3duQHJpbS5uZXSB
E2Ricm93bkBjZXJ0aWNvbS5jb20wHQYDVR0OBBYEFFdFrujr5LyMGa3Hl1U4MTjlEtfvMB8GA1Ud
IwQYMBaAFObbryVSYEL0jYI1VF2A64ahrO/cMIIBMQYDVR0fBIIBKDCCASQwggEgoIIBHKCCARiG
gctsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1NQ0EwMllL
RixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmln
dXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFz
ZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIZIaHR0cDovL21jYTAyeWtmLnJpbS5u
ZXQvQ2VydEVucm9sbC9SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YuY3JsMIIBQQYI
KwYBBQUHAQEEggEzMIIBLzCBwgYIKwYBBQUHMAKGgbVsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGlu
YXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049
U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNh
dGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MGgGCCsGAQUFBzAChlxo
dHRwOi8vbWNhMDJ5a2YucmltLm5ldC9DZXJ0RW5yb2xsL01DQTAyWUtGLnJpbS5uZXRfUklNJTIw
U3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGKDQpLmNydDANBgkqhkiG9w0BAQUFAAOCAQEActBk
hryrMh5+C+8YiOrR8xi+G1NkUycfNLuz4fYdQzFNB9yWxyRs2K0ydl0X5PZXejhbIif0dFoyaxnh
g/D5hYfeGIhXfAOFG22EpMJWXVOavqYLxslnc2enihWAYcWkjPfE6tf3XMXkodFkMYvEd+qFj8eU
vxbbcR1dBqiBFNNDcKlAKn/oElp/iI/LjUGMEb+tJdHttsGExvQzSd1zwk1U6cOinYD82Y08zA5b
z38l5bE2+plmfX3EQ8vCKYA95psgGg3hsffn150smpY7HeEPGRZh9vglGfi2wnMqY/QgO+qs78dq
O/C1be3quQU3WHQ6YcZr3JP1Rc7yj76K7jCCBr8wggSnoAMCAQICEDIa85KxFFmUTU0vlRGze+Ew
DQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcwFQYKCZImiZPyLGQBGRYH
d2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcNMDYxMDEzMDEyNDU1WhcN
MTYxMDEzMDEzMDQxWjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxFzAVBgoJkiaJk/IsZAEZFgd3
aW5kb3dzMR0wGwYDVQQDExRSSU0gUm9vdCBDQSBNQ0EwMVlLRjCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAMbous78rVQBLT87+jYSuzmZ2osP40BMhFbJA3+cs3BZC0//uT87SG7/nhZi
9Qj9hYby7/HkGSQyheGL/lLIzxDdZV+AwxiirdDT6ck/acEMxWolLdK5xEYEmm6OxLaUuEvg7i/B
vXPpZlsA6m9FFrTzHVX2693w8IoMs9cofr1TAB3YYDnvZTwupz7YifSF02pu1eZiZg09Jjaav9Hy
aNyRGjbwyqFwTpCr+iHW7SsSszyJxulWGgnYCQgE95loK/ZMYhEBFCSq7yNn1yNM0WJ5S+uPILyv
OKXbE9sWSxba+DnWQJuEZCvFPnILq5Ugq+jVap326uv9zejBpsnPUgdgMoZNlUuuu+e1eJwc3mng
/rK6ZOCF1NzUzP/mIEdc1UuNV8L2WqvVH+fY9EyYTfcRlWTvO9XlVa9lXzca9MTqlKcHMYeSWWJF
nJlCRZWIkIdAjNj632g0U06kWUHeBd8VJXFxQFzhob2lyr4pHiOv7rZ1+rwpw8DFMZnp85b/HqTW
rcQ7LiIDljuKX6oBjMs1qNobnUPe/ucp1Kgy19+J61M7MxniBNyqKmLJLMTBd7aiIGnbfYTVl2j/
xJJ2aUQJmj9LNFeWb4Isl8PVK6p1sJkWy0JOx52HNIR0AY16AcikojsoYEkvci+mvuwANq4QT6bE
lSPS2AbNnDSpT7GXAgMBAAGjggGVMIIBkTATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMC
AUYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU1mmCZCQWwcwk2/EUfUcSfNzJTe4wggEpBgNV
HR8EggEgMIIBHDCCARigggEUoIIBEIaBxGxkYXA6Ly8vQ049UklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YsQ049TUNBMDFZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJl
dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGR2h0dHA6
Ly9tY2EwMXlrZi53aW5kb3dzLmxvY2FsL0NlcnRFbnJvbGwvUklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YuY3JsMBAGCSsGAQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4ICAQBDnlhbuDlU58ff
o2JPdog62tn9QXOY9VnrBBiDZeFQmPVicup9e2/4dnw5o4/SnyLaNyxNlno++5Uiar/y0ne8J300
FWVW9cAXtmbfi7jwKour1kgwEFTn3TjGFbuYps553/mTTC3bk6l2f2xUCk1rINqoQVsGomH8RGO5
1YN/mX0rasHPUd7/7Rx/m/ZF9xbii6FUOikq6lMgYn4SEY+e3jsOvyYzwPkiHf6dshGfsZgDUN9b
xNwRxUZttJGRx6gH3Qpk7dUuyw0ixwY9xmVyBVIHvWjyqswF3ntgwmEz92GHIKz/xWxRdkahkSIT
zPjHYya2jI3sfpzU/tigvxCFrG1PQ4BSCNMByqUcfK5STTfJJm/x/ahqnDWlvUP6cFE6V9W10nW8
72BbNzWOypmGIouENEUAhq/ejrw09P0uvyK51vr6mY5z1djF6hLskNC+R11Tpwou+vbhmHEZBKOc
cxCfxDL49O7wlpxu4fcpDYSxBDHMoFZgXVz/ajqqIHcjyQdAM8QGBqgkjE/Dq7NTP7K2Ul1An0nx
DR+YgXe28R+7l5he5GzhIIaJuwHHAtgpbeA1NLY/bBciFoOR+s8ujS3rZtv5M3Q95hmN7trVrYo1
Z3dglmNmLM2KNZWwwHxH4xi//bhaR+/WbfXpEUg+WW0p9Uja9Z443hqVd48MrjCCB0YwggUuoAMC
AQICChJuoPAAAAAAAiswDQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcw
FQYKCZImiZPyLGQBGRYHd2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcN
MTQwNDAyMDA1MTEyWhcNMTYwNDAyMDEwMTEyWjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYK
CZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZS0YwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzrn3UT996pLvUIVlnExxcXGmYftIOq1qMwitW
RCBe2j32VmDvzlJseIkfQuXDqjWnoqoE4sxQjxD5QNwhyBw9eXMCvLjHBW+HM4+HcmGIdan2w17E
4rR+RHVK6NzvkE1Gm4ziBTDr2jzSliZJpowLM+M/+cY2pyym074TQx+QCZQOKIqLnEgZ2uYw4kSj
nCcE7eJ+WmJFq9bX6Cv9SONQfgN5Z3O1N/36lgavm/G6Amt/ePNE0AhcJwxin7Fahkx6/SjRbf0r
Oa8uhCMxK8ebqTqD0+0VpViARFterasW5FTU2rcRFLHwwWV67yoFc2fbozkj5iseBXctM8NmqKt5
AgMBAAGjggMhMIIDHTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTm268lUmBC9I2CNVRdgOuG
oazv3DALBgNVHQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQQwIwYJKwYBBAGCNxUCBBYEFCLdxB/L
akuvuaYdTyqIgHmfibLUMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMB8GA1UdIwQYMBaAFNZp
gmQkFsHMJNvxFH1HEnzcyU3uMIIBKQYDVR0fBIIBIDCCARwwggEYoIIBFKCCARCGgcRsZGFwOi8v
L0NOPVJJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLENOPU1DQTAxWUtGLENOPUNEUCxDTj1QdWJs
aWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPXdpbmRv
d3MsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNS
TERpc3RyaWJ1dGlvblBvaW50hkdodHRwOi8vbWNhMDF5a2Yud2luZG93cy5sb2NhbC9DZXJ0RW5y
b2xsL1JJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLmNybDCCATwGCCsGAQUFBwEBBIIBLjCCASow
gbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1SSU0lMjBSb290JTIwQ0ElMjBNQ0EwMVlLRixDTj1B
SUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlv
bixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0
aWZpY2F0aW9uQXV0aG9yaXR5MGoGCCsGAQUFBzAChl5odHRwOi8vbWNhMDF5a2Yud2luZG93cy5s
b2NhbC9DZXJ0RW5yb2xsL01DQTAxWUtGLndpbmRvd3MubG9jYWxfUklNJTIwUm9vdCUyMENBJTIw
TUNBMDFZS0YuY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCUe8BMuuw2GW4AUAag80hqgwOQyezrSatL
SIadEDvzg3LgXMJcN7onC+1B7vHsMxVMbFz3V+85WSKtzCtaBe5rhUCXLBZEGbM+WPavYgYMnUsD
TpJwSXiDaM9Ym/ZLFsgfo3Qv7rfglydpqPCBfHUEQys2KeBVsDGd7HDK5Nk5fNaSmK0KgIBIvbXR
bJKzhTsuctYGlOf/2nFtuoxWcdhu7t6UR7DbSTerjug7rvCZH4bie5cphsu4lZDXdNRp2IKWVEF6
0VcEK8dXK1hZXEGgjuen7R03uaA+7VsSr7eUZSLiouG7XnvXWik11aNCgBiQcIGsHVRIccHphmfS
sFaZ0Bc+4/c/+K/v7X7RvdE29J9b1DqB2iV2SGZp58M0JLscohJ9uY0SJj8Hwl9YeuznijFBIC2y
Psb1V9CgoRtBl+Ek37tPp1Wm4XSS+as2kcdcsZwiM/LywbFvYDEBa71b0mquxjisPyPvmVccA0e6
WW6RDNYKUqBJsZDpjTbRZkQA7CmzrOK6YHip2F/92ZYmpqM84BsEkLuf6kzzk+r0OVsWaFP+plU3
MfqtAeKtBgJu6yd4SYbA9eFX9ePeIzBaCjTzIcd+CclwA8SeoAgP07Ut2WcB3QnD7fcU6CBegHSd
7504Ty34G+FymbG6ZBBUU0exF44VAplxv4rWFA7mPTGCAvMwggLvAgEBMF4wUDETMBEGCgmSJomT
8ixkARkWA25ldDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEwNjE2MjgzOFowIwYJKoZIhvcNAQkEMRYEFJxW
4add2R36XxfFbTG7wNd7EAFgMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYATOcHH9/6BvAniJciklvG4bk4YS1An
dQ3iM49I3vx7F22RwrsrHDUfLqxPrQHXqpN2kkNZ5pNmqtu7eX0LICoS1vvcEFt3OK2u/2y6RtsR
lmSS8+zSpjB73Kv2pw/inuDWvyWjFn6wJxQfA3O081bhGg/PoduJJ1FIKOEYEblnbAAAAAAAAA==

------=_NextPart_000_0041_01D029A3.EA5CC220--


From nobody Tue Jan  6 10:30:55 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 18AEE1A1B18 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 10:30:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.266
X-Spam-Level: 
X-Spam-Status: No, score=-2.266 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kKMnbL0lb2Qi for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 10:30:53 -0800 (PST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 427CE1A0016 for <cfrg@irtf.org>; Tue,  6 Jan 2015 10:30:53 -0800 (PST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t06IUCQR010317; Tue, 6 Jan 2015 10:30:52 -0800
Received: from sc-owa03.marvell.com ([199.233.58.149]) by mx0b-0016f401.pphosted.com with ESMTP id 1rqrtjmqe7-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 06 Jan 2015 10:30:52 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA03.marvell.com ([::1]) with mapi; Tue, 6 Jan 2015 10:30:50 -0800
From: Paul Lambert <paul@marvell.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Date: Tue, 6 Jan 2015 10:30:48 -0800
Thread-Topic: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
Thread-Index: AdAp3uTq+UpIuphXTi+AubHg9QIYtQ==
Message-ID: <D0D165D8.5757E%paul@marvell.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com>
In-Reply-To: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_D0D165D85757Epaulmarvellcom_"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-06_07:2015-01-06,2015-01-06,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501060183
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/_ccbgBOU1kKWdSKMjihnlU3LsEw
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 18:30:55 -0000

--_000_D0D165D85757Epaulmarvellcom_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable




Hi,
This message starts 3 weeks adoption call for draft-ladd-spake2. Please rep=
ly to this message or directly to CFRG chairs, stating one of the following

1) that you are happy to adopt the draft as a starting point
Starting point for what?  A definition of SPAKE2, or can we step back brief=
ly and discuss requirements?
A PAKE is a building block =85 but not one with attributes that I=92d recom=
mend except for some very narrow use cases.

2) that you are not happy to adopt this draft
It might be a starting point for a PAKE, but is incomplete.  So, no.  Howev=
er, it is worth discussing and improving if the goal is to provide a stable=
 reference for SPAKE2.

3) that you think the document needs more work before the RG should conside=
r adopting it
Yes. It=92s missing:
 -  M and N definitions missing
 - Use of names and addresses in the calculation needs some work or rethink=
 =85 again, what are requirements and what are we authenticating.
 - test vectors and wire formats
 - would be better if made into a more symmetric protocol and had a state m=
achine definition


While detailed document reviews are generally welcome, this not a call to p=
rovide detailed comments on the document.
SPAKE2 has been used in industry.  Is the goal to document current practice=
?  That would lead to one set of comments.

Are we working to define a generally useful security protocol exchange with=
 specific properties? That would be a different set of comments and perhaps=
 more useful for long term impact.  I=92d rather see energy spend on this t=
opic than perpetuate PAKE based solutions, but this need not be mutually ex=
clusive to defining SPAKE2.

Paul



Alexey,
On bahalf of CFRG chairs.




--_000_D0D165D85757Epaulmarvellcom_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space;=
 -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14p=
x; font-family: Calibri, sans-serif;"><div><br></div><div><br></div><div><b=
r></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATT=
RIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5=
; MARGIN:0 0 0 5;"><div><div dir=3D"auto"><div><span></span></div><div>Hi,<=
div><span style=3D"background-color: rgba(255, 255, 255, 0);">This message =
starts 3 weeks adoption call for&nbsp;</span><span style=3D"background-colo=
r: rgba(255, 255, 255, 0); font-size: medium;">draft-ladd-spake2. Please re=
ply to this message or directly to CFRG chairs, stating one of the followin=
g</span></div><div><span style=3D"background-color: rgba(255, 255, 255, 0);=
 font-size: medium;"><br></span></div><div><span style=3D"background-color:=
 rgba(255, 255, 255, 0); font-size: medium;">1) that you are happy to adopt=
 the draft as a starting point</span></div></div></div></div></blockquote><=
/span><div>Starting point for what? &nbsp;A definition of SPAKE2, or can we=
 step back briefly and discuss requirements?</div><div>A PAKE is a building=
 block =85 but not one with attributes that I=92d recommend except for some=
 very narrow use cases. &nbsp;</div><div><br></div><span id=3D"OLK_SRC_BODY=
_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BO=
RDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"a=
uto"><div><span style=3D"background-color: rgba(255, 255, 255, 0); font-siz=
e: medium;">2) that you are not happy to adopt this draft</span></div></div=
></blockquote></span><div>It might be a starting point for a PAKE, but is i=
ncomplete. &nbsp;So, no. &nbsp;However, it is worth discussing and improvin=
g if the goal is to provide a stable reference for SPAKE2. &nbsp;</div><div=
><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_=
ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 =
0 5; MARGIN:0 0 0 5;"><div dir=3D"auto"><div><font size=3D"3">3) that you t=
hink the document needs more work before the RG should consider adopting it=
</font></div></div></blockquote></span><div>Yes. It=92s missing:</div><div>=
&nbsp;- &nbsp;M and N definitions missing&nbsp;</div><div>&nbsp;- Use of na=
mes and addresses in the calculation needs some work or rethink =85 again, =
what are requirements and what are we authenticating.</div><div>&nbsp;- tes=
t vectors and wire formats</div><div>&nbsp;- would be better if made into a=
 more symmetric protocol and had a state machine definition</div><div><br><=
/div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIB=
UTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; M=
ARGIN:0 0 0 5;"><div dir=3D"auto"><div><font size=3D"3"><br></font></div><d=
iv><font size=3D"3">While detailed document reviews are generally welcome, =
this not a call to provide detailed comments on the document.</font></div><=
/div></blockquote></span><div>SPAKE2 has been used in industry. &nbsp;Is th=
e goal to document current practice? &nbsp;That would lead to one set of co=
mments. &nbsp;</div><div><br></div><div>Are we working to define a generall=
y useful security protocol exchange with specific properties? That would be=
 a different set of comments and perhaps more useful for long term impact. =
&nbsp;I=92d rather see energy spend on this topic than perpetuate PAKE base=
d solutions, but this need not be mutually exclusive to defining SPAKE2.</d=
iv><div><br></div><div>Paul</div><div><br></div><div><br></div><span id=3D"=
OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"=
 style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><=
div dir=3D"auto"><div><font size=3D"3"><br></font></div><div><font size=3D"=
3">Alexey,</font></div><div><font size=3D"3">On bahalf of CFRG chairs.</fon=
t></div><div><font size=3D"3"><br></font></div></div></blockquote></span><d=
iv><br></div><div><br></div></body></html>

--_000_D0D165D85757Epaulmarvellcom_--


From nobody Tue Jan  6 10:54:40 2015
Return-Path: <dgil@yahoo-inc.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 34C931A1B3D for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 10:54:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.3
X-Spam-Level: 
X-Spam-Status: No, score=-14.3 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, USER_IN_DEF_WHITELIST=-15] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GqPkz7DARcH1 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 10:54:38 -0800 (PST)
Received: from mrout4.yahoo.com (mrout4.yahoo.com [216.145.54.109]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74F7D1A1B5A for <cfrg@irtf.org>; Tue,  6 Jan 2015 10:54:18 -0800 (PST)
Received: from omp1014.mail.ne1.yahoo.com (omp1014.mail.ne1.yahoo.com [98.138.86.156]) by mrout4.yahoo.com (8.14.9/8.14.9/y.out) with ESMTP id t06IrnYK088492 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for <cfrg@irtf.org>; Tue, 6 Jan 2015 10:53:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1420570430; bh=syJSvLgc81r4hlyBl5pBPfoPqlachAwSinx2qbJMQrc=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject; b=M2b4KI923jj+zm02Gt/9gnAgtHNKkPZKhmbaRndZ5r3PwzZmTlkkhXAd8Rxk27wzt NSR0Y6cI0boayio+NVO0+fvkVFCaAy4OC+Phm1owcJYPcqJCJfBUiRJFp01PKPLfCw MOMihMytmgf+se3+HJzH2skW6DkOvLiSY1r2MF30=
Received: (qmail 37576 invoked by uid 1000); 6 Jan 2015 18:53:49 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo-inc.com; s=ginc1024; t=1420570429; bh=syJSvLgc81r4hlyBl5pBPfoPqlachAwSinx2qbJMQrc=; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type; b=ZRbDBp3OKX72CyQ1T+kqox8n0VFhJu67Ck3uIyR7W0rHVWtONntMnr6rzFYyCU98p4lt4VNajtSE60pqpqW+M7xzD1mm//ICs+fsb5Mp3+oOnCtghFd6nElClTZudeglBIGQp5vcHu1akhs2EdS6jIF70Kw/JSvGsIAalt5BUbY=
X-YMail-OSG: qa9MCEMVM1lv35flr.aMY4OU6FADP9X1aFHEE4Lcgz1s09pR3fvIwoIOcVyhqBg udBx0R3gxKsRi3.TDUDAohCaN5q33G5tMk5HkDm9mGbI0VGh4kWVR2_e5lOPtrkotfl3bR30j_ZS bumUIanwVTgoRAtBFQamXIpmOLI4CdrzyuEcfFZgPDUapkUlWv7Ir7Ef11LZfPYurMU5g97qt9pm 5B2EWeSj1sV8tvqnkpUmYayYdgAwymLLC7INpUp.eO35c0SA7_S6uXTw-
Received: by 98.138.105.204; Tue, 06 Jan 2015 18:53:48 +0000 
Date: Tue, 6 Jan 2015 18:53:48 +0000 (UTC)
From: David Gil <dgil@yahoo-inc.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Message-ID: <825211981.3237925.1420570428299.JavaMail.yahoo@jws100208.mail.ne1.yahoo.com>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D38DAE@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D38DAE@XMB116CNC.rim.net>
MIME-Version: 1.0
Content-Type: multipart/alternative;  boundary="----=_Part_3237924_202913688.1420570428297"
X-Milter-Version: master.31+4-gbc07cd5+
X-CLX-ID: 570429005
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/Mj2dRq0SVVJ4jtOwYXqd_iCtMUQ
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: David Gil <dgil@yahoo-inc.com>
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 18:54:39 -0000

------=_Part_3237924_202913688.1420570428297
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Support.
------=_Part_3237924_202913688.1420570428297
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_1_1420563051019_107876">Support.</div></div></body></html>
------=_Part_3237924_202913688.1420570428297--


From nobody Tue Jan  6 12:14:23 2015
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 1BAB91A6EE8 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 12:14:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L36W2Qu2LCme for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 12:14:15 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 41A9E1A1EF5 for <cfrg@irtf.org>; Tue,  6 Jan 2015 12:14:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420575245; d=isode.com; s=selector; i=@isode.com; bh=53B+V+aMv01Dhu32uhKNkKGLCI7Z2Q19Pxf0cxFdf3s=; 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=ev7/zbxjevdjRTLxG69OjJ+4zW1InKGmz+aJxDs8g4hssekA516Pg1cD8Ex7CKPbI0x05u S8YSLzYtBLEeoyqzCYYGWJz2YS1E8RhE/bW5A8uxi7kVpKQ3ihaH7WXu4s7+Qw+r2gh2X/ oTpX/S6YnCKB79tKxDw3xB0R4M+0HhQ=;
Received: from [192.168.0.12] (cpc5-nmal20-2-0-cust24.19-2.cable.virginm.net [92.234.84.25])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VKxCDAAKaFZy@waldorf.isode.com>; Tue, 6 Jan 2015 20:14:05 +0000
X-SMTP-Protocol-Errors: PIPELINING
From: Alexey Melnikov <alexey.melnikov@isode.com>
X-Mailer: iPad Mail (12B435)
In-Reply-To: <54AB053E.6070309@gmail.com>
Date: Tue, 6 Jan 2015 20:18:52 +0000
Message-Id: <BC6CAEB4-DB84-4302-B9C4-3C902AC72D08@isode.com>
References: <54AAE2CA.1080701@isode.com> <54AB053E.6070309@gmail.com>
To: Rene Struik <rstruik.ext@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/jLInNX6nJMlVIXhukVIXnDT74WE
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] (please make draft an IETF document first) Re: Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jan 2015 20:14:20 -0000

Hi Rene,

> On 5 Jan 2015, at 21:42, Rene Struik <rstruik.ext@gmail.com> wrote:
>=20
> Hi Alexey:
>=20
> Just a small process note here: there is no such thing as an IETF draft ca=
lled draft-agl-cfrgcurve-00.

True. I was referring the document on Adam's website.

> Given the history of the topic area of this draft, I would strongly recomm=
end first submitting this as an IETF/IRTF draft using the ordinary IETF subm=
ission process. The resulting draft would then be frozen and the system woul=
d make it easy to track evolution over time. The adoption call can then be r=
e-issued with reference to a draft that is actually in the IETF system.

There is no requirement to post a draft as IETF draft before asking for adop=
tion, but obviously the draft need to be posted as an IRTF draft, if it ends=
 up being adopted by CFRG. But considering that Adam copied text from two ex=
isting drafts and Adam's history of participation in IETF/IRTF, I don't fore=
see any problems.

Anyway, I asked Adam to post his version to datatracker. In the meantime, I w=
ould ask people to continue to comment on the version on Adam's website.

> Best regards, Rene
>=20
>> On 1/5/2015 2:15 PM, Alexey Melnikov wrote:
>> This message starts 2 weeks adoption call (ending on January 19th 2015) o=
n:
>>=20
>> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>>=20
>> as the starting point for the CFRG document which describes an algorithm f=
or safe curve parameter generation for a particular security level and also r=
ecommends a specific curve (2^255-19) for the 128-bit security level.
>>=20
>> Please reply to this message or directly to CFRG chairs, stating whether y=
ou support (or not) adoption of this document. If you do not support adoptio=
n of this document, please state whether you support adoption of any alterna=
tive document or whether you want a particular change be made to the documen=
t before adoption.
>>=20
>> Chairs ask not to reiterate previously expressed technical opinions or ar=
guments. But clarifying questions on the adoption call are welcome.
>>=20
>> While making your decision, please keep in mind
>>=20
>> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>>=20
>> Alexey,
>> On behalf of CFRG chairs.
>>=20
>> P.S. Editors of draft-black-rpgecc-01 and draft-turner-thecurve25519funct=
ion-01 can become co-editors of the adopted document, if they choose to do s=
o. Email chairs directly if you are willing or not willing to do so.
>>=20
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>=20
>=20
> --=20
> email: rstruik.ext@gmail.com | Skype: rstruik
> cell: +1 (647) 867-5658 | US: +1 (415) 690-7363
>=20


From nobody Tue Jan  6 16:20:22 2015
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 D601E1A87A8 for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 16:20:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.567
X-Spam-Level: 
X-Spam-Status: No, score=-1.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 471Rki5UOt1e for <cfrg@ietfa.amsl.com>; Tue,  6 Jan 2015 16:20:00 -0800 (PST)
Received: from gateway07.websitewelcome.com (gateway07.websitewelcome.com [67.18.53.18]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37B451A8790 for <cfrg@irtf.org>; Tue,  6 Jan 2015 16:20:00 -0800 (PST)
Received: by gateway07.websitewelcome.com (Postfix, from userid 5007) id 86D4EE3F3BD89; Tue,  6 Jan 2015 18:19:59 -0600 (CST)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway07.websitewelcome.com (Postfix) with ESMTP id 770E6E3F3BD4A for <cfrg@irtf.org>; Tue,  6 Jan 2015 18:19:59 -0600 (CST)
Received: from [96.231.218.201] (port=50464 helo=[192.168.1.7]) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <turners@ieca.com>) id 1Y8eLu-0001X9-Rg; Tue, 06 Jan 2015 18:19:58 -0600
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Sean Turner <turners@ieca.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
Date: Tue, 6 Jan 2015 19:19:56 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <04652A05-131E-4891-AAF7-72819649F553@ieca.com>
References: <54AAE2CA.1080701@isode.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
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.218.201
X-Exim-ID: 1Y8eLu-0001X9-Rg
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: ([192.168.1.7]) [96.231.218.201]:50464
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 1
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/-Ydzen5E2rmCzfwCLOneUZiuf7U
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 07 Jan 2015 00:20:04 -0000

support adoption

These nits can be fixed whenever:

0) In s9, Watson/Tanja reminded me that we got this wrong in our draft =
(fixed in the editor=92s working copy but not published):

old:
	e.g., as mask(s_t) =3D 1 - s_t
new:
	e.g., as mask(s_t) =3D 0 - s_t

1) In s9.1 (from a comment Rich Barnes made on our draft):

old:
	where 9 is the number 9
new:
	where 9 is the number 9, represented as a 32-byte
	integer in the little-endian representation described
	in Section 8.

2) In s9 & s9.1: (also from Richard):

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

3) In s9.1 (also from Richard):

r/leftmost/most significant
r/rightmost/least significant

4) Needs a security considerations and an iana considerations section.

spt

On Jan 05, 2015, at 14:15, Alexey Melnikov <alexey.melnikov@isode.com> =
wrote:

> This message starts 2 weeks adoption call (ending on January 19th =
2015) on:
>=20
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>=20
> as the starting point for the CFRG document which describes an =
algorithm for safe curve parameter generation for a particular security =
level and also recommends a specific curve (2^255-19) for the 128-bit =
security level.
>=20
> Please reply to this message or directly to CFRG chairs, stating =
whether you support (or not) adoption of this document. If you do not =
support adoption of this document, please state whether you support =
adoption of any alternative document or whether you want a particular =
change be made to the document before adoption.
>=20
> Chairs ask not to reiterate previously expressed technical opinions or =
arguments. But clarifying questions on the adoption call are welcome.
>=20
> While making your decision, please keep in mind
>=20
> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>=20
> Alexey,
> On behalf of CFRG chairs.
>=20
> P.S. Editors of draft-black-rpgecc-01 and =
draft-turner-thecurve25519function-01 can become co-editors of the =
adopted document, if they choose to do so. Email chairs directly if you =
are willing or not willing to do so.
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jan  7 10:34:05 2015
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 B28781A014C for <cfrg@ietfa.amsl.com>; Wed,  7 Jan 2015 10:34:03 -0800 (PST)
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 iGUzKFkVQar9 for <cfrg@ietfa.amsl.com>; Wed,  7 Jan 2015 10:34:00 -0800 (PST)
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 5B3161A00B0 for <cfrg@irtf.org>; Wed,  7 Jan 2015 10:34:00 -0800 (PST)
Received: from [10.184.148.249] (unknown [209.36.6.242]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id C6DDE3AA43; Wed,  7 Jan 2015 10:31:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1420655480; bh=FTiQw7TLNYtBe1IlJzke7xF0SqYFOmkIalFDbtLmbc4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=OG897iAqXbOItVnWSICHqN40ke4g5C9sxR9UXGSjHASOl6g5/9NrMnIDOUW0DVIA5 hWEfIE6pihiMBJOq4vOeQdwssCDKAtRybJkca8021PFAIEBrzjdiHJ8GCKTL4hA2tn VUpzgJxqe+oqFzFvgOBmcr+7zsHdaKcIiNmJZj3I=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2064\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <54A51E97.5060508@bouncycastle.org>
Date: Wed, 7 Jan 2015 10:33:58 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <FE4218BA-0CE1-4971-8A7B-4E3440088560@shiftleft.org>
References: <CAMfhd9W684XMmXn3ueDmwrsQ_ZdiFG+VqYLxkvs7qDwiJdpk6w@mail.gmail.com> <1725646678.805875.1419539885135.JavaMail.yahoo@jws100115.mail.ne1.yahoo.com> <CAMfhd9Ua5fFZk46Xx1AN2VgyJ=Yng6fnO8aN-_ZfzXQn0Xbxhg@mail.gmail.com> <CA+Vbu7zqFcu8d1053mZ_eEm0q=np6T3snSQ4rfY0k1-4hBVDsA@mail.gmail.com> <CAMfhd9XEqMwFzJ4sK4aHGbke6REZb26uaEEv9gbM5v_goDzwUA@mail.gmail.com> <54A51E97.5060508@bouncycastle.org>
To: Peter Dettman <peter.dettman@bouncycastle.org>
X-Mailer: Apple Mail (2.2064)
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/yhP17YgbWN_x9m9e1oBYnE849GE
Cc: Adam Langley <agl@imperialviolet.org>, cfrg@irtf.org
Subject: Re: [Cfrg] Curve manipulation, revisited
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 18:34:03 -0000

> On Jan 1, 2015, at 2:16 AM, Peter Dettman =
<peter.dettman@bouncycastle.org> wrote:
>=20
> On 29/12/2014 8:31 pm, Adam Langley wrote:
>> (An implementation that wants to use a windowed method with a =
Montgomery-X *input* will need to perform a square-root first, but =
that's the same cost as a design where compressed Edwards points are =
sent. Note: smarter people than I might be able to eliminate the =
square-root but I don't see it)
>=20
> I believe I can give an example of how to eliminate the square-root =
for a random-base scalar-mult. I'll use short Weierstrass to describe it =
though, as I'm less familiar with Edwards and Montgomery. I assume we =
can convert easily enough between forms, and that twist security carries =
across.
>=20
> - Given input X0, use curve equation to calculate {Y0}^2, let K =3D =
{Y0}^2.
> - Initial point P0 is (X0,{Y0}) where {Y0} is unevaluated.
> - Change of variables to an isomorphic curve: x' =3D u^2.x, y' =3D =
u^3.y, a' =3D u^4.a, with u =3D {Y0} (b' =3D u^6.b, but not typically =
needed).
> - Can now write P0' as (K.X0, K^2) without unknowns.
> - Proceed with scalar multiplication of P0' to result point Pn'.
> - Recover output Xn from Pn' as Xn'/(K.Zn^2).
>=20
> Note that the doubling formula is affected by the changed a' curve =
parameter (unless a=3D=3D0); assume modified-Jacobian coordinates are =
used.
>=20
> In the case where the original curve has a=3D=3D-3, the extra cost of =
the windowing using the isomorphism in modified-Jacobian coordinates is =
+2S(quares) per addition (doubling cost is unchanged). The total extra =
cost using width 5 windows is therefore < 40% of the best-case cost of a =
sqrt.
>=20
> However, there are actually good performance reasons to already be =
using an isomorphism: to allow mixed addition with precomputed points =
without needing an inversion in the precomputation. In that case, there =
is very little additional overhead for the scheme above.
>=20
> Regards,
> Pete Dettman

This is neat.  Have you tested it?  Does it work, and do you know if =
it=E2=80=99s better than a Montgomery ladder?  =46rom your high-level =
description it looks like it should be competitive with the short =
Weierstrass XZ Montgomery ladder (8M + 7S + 5m IIUC).

Cheers,
=E2=80=94 Mike=


From nobody Wed Jan  7 22:49:42 2015
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 87B0B1A885A for <cfrg@ietfa.amsl.com>; Wed,  7 Jan 2015 22:49:40 -0800 (PST)
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_50=0.8,  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 X_jebuokFYbL for <cfrg@ietfa.amsl.com>; Wed,  7 Jan 2015 22:49:38 -0800 (PST)
Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001: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 2FF201A887B for <cfrg@irtf.org>; Wed,  7 Jan 2015 22:49:38 -0800 (PST)
Received: by mail-ie0-f170.google.com with SMTP id rd18so8043058iec.1 for <cfrg@irtf.org>; Wed, 07 Jan 2015 22:49:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:from:date:message-id:subject:to:content-type; bh=Z3E02v7EAKGynLXguMLI6wHx2jeV5Twv/RnlzieHHOo=; b=nS0K57aWjVJ9hjFLkeDKUgTuuAVXWwcWdOSP/4Bawwqp0tg9ja63l/0p57wyRLmajf plgohburdgsRkeyfuHeNhunIkw3XRaxoC7ytDkzN5SrRWlSKfAcTPKV1HN7hjCcelFW9 GJZCTYuqbdrodQhtIaOFoiADHj2Um14xatzCCZp+zI7j1t+9eqRpETCKGA8fWFpsiHQF KnO5Geoq95cbK2MmEFr9bSnT2zX/a4Qh2IRHr/ED9O3n7uFOsxDRFT9mGQBBBVRE2qyS rVg3KBuzuupdkyNfnZInj1dc+4xXYT5OgFFEqy0LwWDyI3hG0dcY+CSEniC6YZikljzi 02JQ==
X-Received: by 10.50.117.68 with SMTP id kc4mr26446695igb.25.1420699777270; Wed, 07 Jan 2015 22:49:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.107.132.211 with HTTP; Wed, 7 Jan 2015 22:49:16 -0800 (PST)
From: David Leon Gil <coruus@gmail.com>
Date: Wed, 7 Jan 2015 22:49:16 -0800
Message-ID: <CAA7UWsVi+TszTYxKd4KSGYNryV24Bq+0FpxN2GO5LWA5khdqjg@mail.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/LQIyeCFGgoROzsx_UBf9cjlsS-A
Subject: [Cfrg] How rigid is rigid enough?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 08 Jan 2015 06:49:40 -0000

# How rigid are rigid curves?

(About 138 reasonable choices of curve for the range 2^300
to 2^521.)

## Rigid fast primes in the range 2^300 to 2^521

Mersennes:
  2^521 - 1       == 3 mod 4   M521

(Granger-Scott have presented a fast algorithm for platforms where
the number of limbs is too small for FFT-based multiplication to
be efficient.)

A minimal Crandall is a prime of the form:

  2^n - c, !E c' < c : is_prime(2^n - c)

Crandalls are fast when log2(c) <<< limb_bits. If we want a Crandall
that's fast on any platform, this effectively restricts us to c < 32.
(LCD platform: JavaScript, where bignums typically use 12/24 limbs.)

Crandalls:
  2-bit:
    2^336 -  3    == 1 mod 4
    2^452 -  3    == 1 mod 4   C452 (???)

  4-bit:
    2^321 -  9    == 3 mod 4
    2^322 - 11    == 1 mod 4
    2^338 - 15    == 1 mod 4

  5-bit:
    2^414 - 17    == 3 mod 4   C414 (djb)
    2^444 - 17    == 3 mod 4
    2^468 - 17    == 3 mod 4
    2^488 - 17    == 3 mod 4
    2^379 - 19    == 1 mod 4
    2^389 - 21    == 3 mod 4   C389 (rr?)
    2^413 - 21    == 3 mod 4
    2^489 - 21    == 3 mod 4
    2^324 - 23    == 1 mod 4
    2^369 - 25    == 3 mod 4   C369 (???)
    2^383 - 31    == 1 mod 4   C383 (NUMS)
    2^401 - 31    == 1 mod 4
    2^495 - 31    == 1 mod 4

Define an `m`-splitting `Ridinghood` as a prime of the form:

    2^n - 2^(n/2) - 1, n|2 /\ (n/2)|2^m

There is at most one Ridinghood per `n`. (And these are,
in fact, extremely rare primes.)

(Michael Hamburg has described how multiplication modulo these
primes can take advantage of their Karatsuba-friendly shape.)

Ridinghoods:
  5-splitting:
    2^448 - 2^224 - 1 == 3 mod 4  R448 (mh)
  4-splitting:
    2^480 - 2^240 - 1 == 3 mod 4  R480 (mh)
    2^416 - 2^208 - 1 == 3 mod 4
  1-splitting:
    2^322 - 2^161 - 1 == 3 mod 4
    2^450 - 2^225 - 1 == 3 mod 4

So, in total: 22 plausible fast primes. (There are really
fewer than this, even; some of these are not sufficiently
larger than 2^255-19 to be interesting.)

## Minimal-cost curve parameters and corresponding basepoints

Minimal curve parameters. Let `c(x)` be a cost function, and
choose the value of a free parameter `x` such that there
does not exist another `x' != x` with `c(x') <= c(x)`.

Safe curves. Set `c(x) == \inf` if `#E/h` and `#Et/ht` are
not prime, or if some set of safety criteria are not
satisfied. (Insert SafeCurves criteria here.)

Choosing basepoints. Choose the unique point of order `#E/h`
whose single-coordinate representation in the chosen curve
model is minimal in value.

Choosing curve parameters. Suppose that we want an Edwards
curve; so we have a cofactor != 1. Choose the cofactor to
be minimal consistent with safety. Then:

    q == 1 mod 4: h = 8, ht = 4
    q == 3 mod 4: h = 4, ht = 4

Curve form and parameter, *x*:
- Proposed:
  BLE form, a=-1: d
  BLE form, a=+1: d
  Montgomery form: A
- Possible:
  Weierstrass, a=-3: b
- For mathematicians, mainly:
  Legendre form: lambda
  j-invariant

Cost functions, *c(x)*:
  - Proposed:
    min(x)
    min(abs(x))
  - Possible:
    min( (hamming(x), x) )

Am I missing any plausible proposals?

This gives 6 proposed methods of choosing Edwards curves.
Several of these are always equivalent up to isogeny, but for
the choice of basepoint.

# How rigid is rigid enough?

One way we might answer this is by asking whether there are any
cryptographically interesting properties of curves that we know of
that occur with probability on the order of 1/132.

There's at least one, now historical, example:

Only about 1/50 prime-order Weierstrass curves at this
bitlength is twist-secure. (See, e.g., traces for the prime
Salinas384; available at https://github.com/coruus/sally)

(Or, had CFRG then been in the business of choosing curves,
there would have been -- assuming that the CFRG process
is an effective means of selecting a curve uniformly at random
-- a < 0.2% chance of getting P384 right.)

So...is rigidity good? Yes. Do we know that a "rigid" choice
is, in fact, rigid enough to prevent an adversary from selecting
a curve with a chosen, cryptographically interesting property?
. . . . ?

Perhaps we can now hope -- with all of our problems for the
moment solved -- for an end to the rigider-than-thou holy wars,
and a return to collaborating to make ECC safer.

- dlg


From nobody Thu Jan  8 04:08:19 2015
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 6C9C11ACD34; Thu,  8 Jan 2015 04:07:59 -0800 (PST)
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 BrZ0-cA7kuT5; Thu,  8 Jan 2015 04:07:50 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A09EB1ACD24; Thu,  8 Jan 2015 04:07:28 -0800 (PST)
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.10.0.p6
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150108120728.3620.37125.idtracker@ietfa.amsl.com>
Date: Thu, 08 Jan 2015 04:07:28 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/7RjdZIspxRSFiEPRHcyTxq84Eco>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-05.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: Thu, 08 Jan 2015 12:07: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 Working Group of the IETF.

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-irtf-cfrg-chacha20-poly1305-05.txt
	Pages           : 43
	Date            : 2015-01-08

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.  It is a
   product of the Crypto Forum Research Group (CFRG)


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

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


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 Thu Jan  8 05:12:25 2015
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 A91481A1EEB for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 05:12:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4I_hmclsXR83 for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 05:12:22 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 4F86E1A1BE4 for <cfrg@irtf.org>; Thu,  8 Jan 2015 05:12:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420722741; d=isode.com; s=selector; i=@isode.com; bh=sXb1wPvEl51dVHZw3EMxSSR2VafOTRhu0b5hTPCwg+g=; 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=FKK76UcDutYuMJMF0X4jGNFLClC8YurRKk065OnVRePYiobpBf/gRzBocyjd8KMQGTAmFS do2eXQWa/zSWo6tbUC6u+yuvL4ySZiI8MMMNYZ1GkrtwGwG8A2lSAtx45oRf/ccwrHCb/K 3OLULPMe6c8LfuHhc3YB8s6m5ihkpds=;
Received: from [10.37.106.100] ((unknown) [94.117.76.2])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VK6CNQAKaAIF@waldorf.isode.com>; Thu, 8 Jan 2015 13:12:21 +0000
X-SMTP-Protocol-Errors: NORDNS PIPELINING
From: Alexey Melnikov <alexey.melnikov@isode.com>
X-Mailer: iPad Mail (12B435)
In-Reply-To: <BC6CAEB4-DB84-4302-B9C4-3C902AC72D08@isode.com>
Date: Thu, 8 Jan 2015 13:17:13 +0000
Message-Id: <4FBF3FFC-F684-411C-8E6E-7D94C40BBD90@isode.com>
References: <54AAE2CA.1080701@isode.com> <54AB053E.6070309@gmail.com> <BC6CAEB4-DB84-4302-B9C4-3C902AC72D08@isode.com>
To: Rene Struik <rstruik.ext@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/JjuhGl8K_DbHL63EgrKgC7K5dDs>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] (please make draft an IETF document first) Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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: Thu, 08 Jan 2015 13:12:24 -0000

Hi Rene,

> On 6 Jan 2015, at 20:18, Alexey Melnikov <alexey.melnikov@isode.com> wrote=
:
>=20
> Hi Rene,
>=20
>> On 5 Jan 2015, at 21:42, Rene Struik <rstruik.ext@gmail.com> wrote:
>>=20
>> Hi Alexey:
>>=20
>> Just a small process note here: there is no such thing as an IETF draft c=
alled draft-agl-cfrgcurve-00.
>=20
> True. I was referring the document on Adam's website.
>=20
>> Given the history of the topic area of this draft, I would strongly recom=
mend first submitting this as an IETF/IRTF draft using the ordinary IETF sub=
mission process. The resulting draft would then be frozen and the system wou=
ld make it easy to track evolution over time. The adoption call can then be r=
e-issued with reference to a draft that is actually in the IETF system.
>=20
> There is no requirement to post a draft as IETF draft before asking for ad=
option, but obviously the draft need to be posted as an IRTF draft, if it en=
ds up being adopted by CFRG. But considering that Adam copied text from two e=
xisting drafts and Adam's history of participation in IETF/IRTF, I don't for=
esee any problems.
>=20
> Anyway, I asked Adam to post his version to datatracker. In the meantime, I=
 would ask people to continue to comment on the version on Adam's website.

Adam done that.
>=20
>> Best regards, Rene
>>=20
>>> On 1/5/2015 2:15 PM, Alexey Melnikov wrote:
>>> This message starts 2 weeks adoption call (ending on January 19th 2015) o=
n:
>>>=20
>>> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>>>=20
>>> as the starting point for the CFRG document which describes an algorithm=
 for safe curve parameter generation for a particular security level and als=
o recommends a specific curve (2^255-19) for the 128-bit security level.
>>>=20
>>> Please reply to this message or directly to CFRG chairs, stating whether=
 you support (or not) adoption of this document. If you do not support adopt=
ion of this document, please state whether you support adoption of any alter=
native document or whether you want a particular change be made to the docum=
ent before adoption.
>>>=20
>>> Chairs ask not to reiterate previously expressed technical opinions or a=
rguments. But clarifying questions on the adoption call are welcome.
>>>=20
>>> While making your decision, please keep in mind
>>>=20
>>> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>>>=20
>>> Alexey,
>>> On behalf of CFRG chairs.
>>>=20
>>> P.S. Editors of draft-black-rpgecc-01 and draft-turner-thecurve25519func=
tion-01 can become co-editors of the adopted document, if they choose to do s=
o. Email chairs directly if you are willing or not willing to do so.
>>>=20
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> http://www.irtf.org/mailman/listinfo/cfrg
>>=20
>>=20
>> --=20
>> email: rstruik.ext@gmail.com | Skype: rstruik
>> cell: +1 (647) 867-5658 | US: +1 (415) 690-7363
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Thu Jan  8 07:00:24 2015
Return-Path: <peter.dettman@bouncycastle.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 06BEA1A8A55 for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 07:00:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.202
X-Spam-Level: 
X-Spam-Status: No, score=-0.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, 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 5N7pjPxHlx0A for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 07:00:21 -0800 (PST)
Received: from tauceti.org.au (mail.tauceti.org.au [203.32.61.25]) by ietfa.amsl.com (Postfix) with ESMTP id 630F41A8979 for <cfrg@irtf.org>; Thu,  8 Jan 2015 07:00:20 -0800 (PST)
X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=ppp-49-237-170-4.revip6.asianet.co.th; 
Message-ID: <54AE9B71.5030409@bouncycastle.org>
Date: Thu, 08 Jan 2015 22:00:01 +0700
From: Peter Dettman <peter.dettman@bouncycastle.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <CAMfhd9W684XMmXn3ueDmwrsQ_ZdiFG+VqYLxkvs7qDwiJdpk6w@mail.gmail.com> <1725646678.805875.1419539885135.JavaMail.yahoo@jws100115.mail.ne1.yahoo.com> <CAMfhd9Ua5fFZk46Xx1AN2VgyJ=Yng6fnO8aN-_ZfzXQn0Xbxhg@mail.gmail.com> <CA+Vbu7zqFcu8d1053mZ_eEm0q=np6T3snSQ4rfY0k1-4hBVDsA@mail.gmail.com> <CAMfhd9XEqMwFzJ4sK4aHGbke6REZb26uaEEv9gbM5v_goDzwUA@mail.gmail.com> <54A51E97.5060508@bouncycastle.org> <FE4218BA-0CE1-4971-8A7B-4E3440088560@shiftleft.org>
In-Reply-To: <FE4218BA-0CE1-4971-8A7B-4E3440088560@shiftleft.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Authenticated-User: peter.dettman@bouncycastle.org 
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ohWCJuDa0Gg1EgHXwo6QKgU4nQM>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Curve manipulation, revisited
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jan 2015 15:00:24 -0000

On 8/01/2015 1:33 am, Michael Hamburg wrote:
>> On Jan 1, 2015, at 2:16 AM, Peter Dettman <peter.dettman@bouncycastle.org> wrote:
>>
>> On 29/12/2014 8:31 pm, Adam Langley wrote:
>>> (An implementation that wants to use a windowed method with a Montgomery-X *input* will need to perform a square-root first, but that's the same cost as a design where compressed Edwards points are sent. Note: smarter people than I might be able to eliminate the square-root but I don't see it)
>> I believe I can give an example of how to eliminate the square-root for a random-base scalar-mult. I'll use short Weierstrass to describe it though, as I'm less familiar with Edwards and Montgomery. I assume we can convert easily enough between forms, and that twist security carries across.
<snip>
> This is neat. Have you tested it? Does it work, and do you know if 
> itβs better than a Montgomery ladder? From your high-level description 
> it looks like it should be competitive with the short Weierstrass XZ 
> Montgomery ladder (8M + 7S + 5m IIUC). Cheers, β Mike 

I did some basic tests of the sqrt-avoiding isomorphism using secp256k1 
(a==0 makes the testing easier) and it works, yes.

Regarding performance, I can give numbers from a modified version of the 
Granger/Scott P-521 implementation; there I changed the precomputation 
so that all the precomputed points would have a common Z, then used an 
isomorphism on which those points are affine, and switched to 
modified-Jacobian coordinates. That scheme is 3M + 5S for doubling, 7M + 
6S per point addition, 9M + 3S per precomputed point, plus a handful of 
ops to shift to/from the isomorphic curve. So, with width 5 windows, I 
make that roughly (4.7M + 6.2S)/bit for P-521, or for something around 
256 bits, (5M + 6.3S)/bit.

The sqrt-avoiding scheme would have the same per-bit cost as above, with 
a few extra ops at the start/end.

Regards,
Pete Dettman


From nobody Thu Jan  8 13:36:34 2015
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 CE06C1A01A9 for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 13:36:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.779
X-Spam-Level: 
X-Spam-Status: No, score=-0.779 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001, URI_HEX=1.122] 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 5wkqfhpZTfkH for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 13:36:24 -0800 (PST)
Received: from resqmta-po-11v.sys.comcast.net (resqmta-po-11v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:170]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69C361A1A0B for <cfrg@irtf.org>; Thu,  8 Jan 2015 13:36:23 -0800 (PST)
Received: from resomta-po-16v.sys.comcast.net ([96.114.154.240]) by resqmta-po-11v.sys.comcast.net with comcast id dZbm1p0025BUCh401ZcNkK; Thu, 08 Jan 2015 21:36:22 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by resomta-po-16v.sys.comcast.net with comcast id dZcM1p00k4uhcbK01ZcNj1; Thu, 08 Jan 2015 21:36:22 +0000
Message-ID: <54AEF855.4090100@brainhub.org>
Date: Thu, 08 Jan 2015 13:36:21 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
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=1420752982; bh=1xSMNwpbJpvKCryyHEjCiW/+eoCQxViVf+PbD6VdY8Y=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=YUi4nWEkNHYlSPe3xY79ka7mkk/dw+RIPrvhRFIPkmbTi98cdSsM97x1p/ZbhTUaK MgFPIXxYLYa04rO88osKsqzYZ/fboyGMeECB8Vsb0r4wm6xBjzmqgkTcI52fhJ/Sui HQ22cu7uYpL3l2w8kM67iio1J3xXB0pwPbcmLoKJHS4rkSIYdK/ii3dFD2QjVvTIVy XCoLObYmy6d54DOlPkCf/mGdJP25wsBuxZIsKuHAw3+gNnmSB60KXE8zHxuErwsAwP NjqXarJEaf27yKmIaAFNJylFONzGRp2xhcmRcQFXxaQQTyc+tA+VdxYTo2iHwCTl/7 agwuY8633JYQQ==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/sp25tJrMkD848hDjRQVDJ1nC19k>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Thu, 08 Jan 2015 21:36:28 -0000

On 01/05/2015 11:15 AM, Alexey Melnikov wrote:
> This message starts 2 weeks adoption call (ending on January 19th 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an algorithm
> for safe curve parameter generation for a particular security level and
> also recommends a specific curve (2^255-19) for the 128-bit security level.
>
> Please reply to this message or directly to CFRG chairs, stating whether
> you support (or not) adoption of this document. If you do not support
> adoption of this document, please state whether you support adoption of
> any alternative document or whether you want a particular change be made
> to the document before adoption.


For http://tools.ietf.org/html/draft-agl-cfrgcurve-00:
>
> 9. Elliptic Curve Diffie-Hellman
>
>
...
>        z_2 = E * (AA + a24 * E)
>        // Conditional swap; see text below.
>        (x_2, x_3) = cswap (s_t, x_2, x_3)
>        (z_2, z_3) = cswap (s_t, z_2, z_3)
>    Return x_2 * (z_2^(p - 1))

should be

      Return x_2 * (z_2^(p - 2))

> 8. Wire-format of field elements

>    When transmitting field elements in the Diffie-Hellman protocol
>    below, they MUST be encoded as an array of bytes, x,

I would like to see an uncompressed format allowed as (x,y) as an 
optional format. This avoids ~10% performance penalty for some 
applications, v.s. the case when only (x) is sent.

the y above can be calculated for "free" at the end of Montgomery ladder 
calculation due to the above z_2^-1 inverse calculation, using a method 
described in section 5 (p.13-14) in 
http://ed25519.cr.yp.to/ed25519-20110705.pdf. The code would be needed 
anyway for decompression with signatures that use compressed point.

Likewise, receiving (x,y) allows a conversion to a projective form of 
twisted Edwards coordinates for "free" for a peer. At the same time a 
peer is free to ignore y and proceed with the Montgomery ladder 
multiplication exactly as described in sec 9.

Therefore, (x,y) on the wire allows the most suitable choice of 
implementation for ECDH, whereas (x) limits it to Montgomery ladder 
given that one needs to overcome the 10% penalty of recovering y with a 
square root.

Many applications and protocols will require generation of a new ECDH 
key pair (i.e. they cannot reuse it). For these applications fixed-base 
scalar multiplication on Edwards curve is much faster. These 
applications may prefer to use the same code for variable-base scalar 
multiplication as well. Likewise, the code reuse argument applies to 
applications that support signatures on Curve25519.

I support the draft with the above tweak.


From nobody Thu Jan  8 13:51:39 2015
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 5D12F1A005D for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 13:51:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.878
X-Spam-Level: 
X-Spam-Status: No, score=-0.878 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, URI_HEX=1.122] 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 ZSLj3R3Yhsxn for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 13:51:20 -0800 (PST)
Received: from mail-yh0-x22f.google.com (mail-yh0-x22f.google.com [IPv6:2607:f8b0:4002:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F09D51A0AFE for <cfrg@irtf.org>; Thu,  8 Jan 2015 13:51:19 -0800 (PST)
Received: by mail-yh0-f47.google.com with SMTP id f73so2501947yha.6 for <cfrg@irtf.org>; Thu, 08 Jan 2015 13:51:19 -0800 (PST)
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=PJfLCLQRsYFy5W9VGTe2AqIo0VLPx8FfgxIfnW0BXKQ=; b=O700XtpLKtV+2Kyv1t7aC7Z7XDMra0RRHwmY34HmjUya2/ThBvwoWthSzE1WOmmvSO sMprm3EvtyTAsx/yRkCgj8FZihIrJORcJLGz9B3ICLcDJ9aUUiLZfVMQRAMZZea5/xPg FAC6smOfDwjBaVggZfvZEPdNmjZ9kkEzXHtChoTETENjUPr0P8IBhKCMGBSCuugrTXpA 3y4UlH7/yrQOpzWx6A/LTFdiJVjsqZadvueCJS9gAXR1a9dkUnpbnqa25prhRcZDcCKX zcsr58LR1yppV1pGREEG79TMdXiEJWpsB3yBQ4BEe+vMp1in7xxBtiEUGqWReCNrcchL 8t6w==
MIME-Version: 1.0
X-Received: by 10.170.89.130 with SMTP id g124mr9927079yka.24.1420753878975; Thu, 08 Jan 2015 13:51:18 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Thu, 8 Jan 2015 13:51:18 -0800 (PST)
In-Reply-To: <54AEF855.4090100@brainhub.org>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org>
Date: Thu, 8 Jan 2015 16:51:18 -0500
Message-ID: <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Mus7Lzp4fJONulWwnw_oGPe3XIE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Thu, 08 Jan 2015 21:51:22 -0000

On Thu, Jan 8, 2015 at 4:36 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 01/05/2015 11:15 AM, Alexey Melnikov wrote:
>>
>> This message starts 2 weeks adoption call (ending on January 19th 2015)
>> on:
>>
>> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>>
>> as the starting point for the CFRG document which describes an algorithm
>> for safe curve parameter generation for a particular security level and
>> also recommends a specific curve (2^255-19) for the 128-bit security
>> level.
>>
>> Please reply to this message or directly to CFRG chairs, stating whether
>> you support (or not) adoption of this document. If you do not support
>> adoption of this document, please state whether you support adoption of
>> any alternative document or whether you want a particular change be made
>> to the document before adoption.
>
>
>
> For http://tools.ietf.org/html/draft-agl-cfrgcurve-00:
>>
>>
>> 9. Elliptic Curve Diffie-Hellman
>>
>>
> ...
>>
>>        z_2 = E * (AA + a24 * E)
>>        // Conditional swap; see text below.
>>        (x_2, x_3) = cswap (s_t, x_2, x_3)
>>        (z_2, z_3) = cswap (s_t, z_2, z_3)
>>    Return x_2 * (z_2^(p - 1))
>
>
> should be
>
>      Return x_2 * (z_2^(p - 2))
>
>> 8. Wire-format of field elements
>
>
>>    When transmitting field elements in the Diffie-Hellman protocol
>>    below, they MUST be encoded as an array of bytes, x,
>
>
> I would like to see an uncompressed format allowed as (x,y) as an optional
> format. This avoids ~10% performance penalty for some applications, v.s. the
> case when only (x) is sent.
>
> the y above can be calculated for "free" at the end of Montgomery ladder
> calculation due to the above z_2^-1 inverse calculation, using a method
> described in section 5 (p.13-14) in
> http://ed25519.cr.yp.to/ed25519-20110705.pdf. The code would be needed
> anyway for decompression with signatures that use compressed point.

Three points:

1: There are recurring security issues caused by not sending
compressed points, as well as additional complexity
2: We're not talking about signatures in this draft.
3: Options are bad.

>
> Likewise, receiving (x,y) allows a conversion to a projective form of
> twisted Edwards coordinates for "free" for a peer. At the same time a peer
> is free to ignore y and proceed with the Montgomery ladder multiplication
> exactly as described in sec 9.
>
> Therefore, (x,y) on the wire allows the most suitable choice of
> implementation for ECDH, whereas (x) limits it to Montgomery ladder given
> that one needs to overcome the 10% penalty of recovering y with a square
> root.
>
> Many applications and protocols will require generation of a new ECDH key
> pair (i.e. they cannot reuse it). For these applications fixed-base scalar
> multiplication on Edwards curve is much faster. These applications may
> prefer to use the same code for variable-base scalar multiplication as well.
> Likewise, the code reuse argument applies to applications that support
> signatures on Curve25519.

4: Fixed based scalar optimizations already require different code
from variable base for maximal speed: combs vs. radix. The Montgomery
ladder is so small that using it for variable base multiplication
isn't a major complexity increase.

>
> I support the draft with the above tweak.
>
>
> _______________________________________________
> 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 Jan  8 14:36:47 2015
Return-Path: <alangley@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 AAA7B1A0177 for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 14:36:45 -0800 (PST)
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 1ywvXlxv2pr7 for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 14:36:44 -0800 (PST)
Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com [IPv6:2a00:1450:4010:c04::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 41D631A1B1B for <cfrg@irtf.org>; Thu,  8 Jan 2015 14:36:08 -0800 (PST)
Received: by mail-lb0-f172.google.com with SMTP id z12so5400513lbi.3 for <cfrg@irtf.org>; Thu, 08 Jan 2015 14:36:06 -0800 (PST)
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=zpwR8CC/1nygbaGnk10J/iBZHZqnLmfahOEW+b5fX+w=; b=LWq3jy3MNM5Ulv7inx52Q7uwEHIhtbw0HbGuW4bWz8l808H7k7QYz4DIWTksFXmVGi 3a1QyMDWwY+dnk9dLMPLHQZCHEIcSQ3K6Dc+D0eTTs2hy9o9BvXOstCqqA/h2eh1d3g/ qleqTU6wGrzopaP41LIdAYYDEpfi3dSqZTZ7n0IDzIii1X5j7RUedEVWj8szL7eRORVX OQTm9bZWz1C1NTRBrFF3/B6OOKaN9JjPFtc5oyO438KaGM7v+Y53LSe09i5tP29pv0vn KPu2e0O4y0ulF0RSnhEP3M8HEv4Uw2jiNJm/9K2vL2w2nvW4ASmVoP/srmS0GpINrP/g 7NfQ==
MIME-Version: 1.0
X-Received: by 10.152.27.228 with SMTP id w4mr17991604lag.75.1420756566402; Thu, 08 Jan 2015 14:36:06 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Thu, 8 Jan 2015 14:36:06 -0800 (PST)
In-Reply-To: <54AEF855.4090100@brainhub.org>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org>
Date: Thu, 8 Jan 2015 14:36:06 -0800
X-Google-Sender-Auth: SlCSUc4dE8QopmKidQ4PjMaVgSI
Message-ID: <CAMfhd9VKyPKv+YDt7xGvFuWBNpvv3em9jVy4DyN+h+8fFKYsbg@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/h7OffrFr-VLKoxI0EPbi6CGaXOU>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Thu, 08 Jan 2015 22:36:45 -0000

On Thu, Jan 8, 2015 at 1:36 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> should be
>
>      Return x_2 * (z_2^(p - 2))

Thanks, fixed in Github.


Cheers

AGL


From nobody Thu Jan  8 16:11:11 2015
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 8D9191A6FE7 for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 16:11:09 -0800 (PST)
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 D79K5lUScYnM for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 16:11:07 -0800 (PST)
Received: from resqmta-po-06v.sys.comcast.net (resqmta-po-06v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:165]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B7E9A1A1B69 for <cfrg@irtf.org>; Thu,  8 Jan 2015 16:11:07 -0800 (PST)
Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-06v.sys.comcast.net with comcast id dcAB1p0044xDoy801cB7VG; Fri, 09 Jan 2015 00:11:07 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by resomta-po-05v.sys.comcast.net with comcast id dcB51p00X4uhcbK01cB60w; Fri, 09 Jan 2015 00:11:06 +0000
Message-ID: <54AF1C99.5070308@brainhub.org>
Date: Thu, 08 Jan 2015 16:11:05 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com>
In-Reply-To: <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1420762267; bh=0kqsJYiKSpP8jBqqM/OjvYrhpKfwIN+xUbgW9NzFjZ4=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=myzcfqNhJHAT4bSBAAuq7zvr4H+c6e5pYnw8LODywGxNVibjr7oKakbkXw/RYt7oP RpPX2DKR0mSo0znGNC5/P9oC3ZrPEWaDiao21bbeawj1snL5PNpmYuM9jrVZhaVrLK 7MPDk7bK6vsUVlbwxqqHNW9fwDi1mp0zvoufB1UuIzhFmqtjSvCEGgT2qRV2ysHKsX BO6Dh1D67HXzxPVEl9D/9vwFbfb1i7pC0pBVZR9cw12Ke8R2EsfjmxTC57y/GMawGU hxUrTW8e/FuuD6QuAZBZkLiZ3K9zAnJgOBKVbQqXtOCvspvN/0tT9zoZvO6Jg1IRPA 99Q1l8zi7i9fQ==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/rv1m5mUiH4koZlt55UObKU29zTY>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 00:11:09 -0000

On 01/08/2015 01:51 PM, Watson Ladd wrote:
> Three points:
>
> 1: There are recurring security issues caused by not sending
> compressed points, as well as additional complexity
> 2: We're not talking about signatures in this draft.
> 3: Options are bad.

Regarding options, this draft is a foundational document of a low-level 
crypto primitive. Protocols above can still pick a single wire format.

The spec should allow, for example, S/MIME to select (x) for space 
saving, while TLS to select (x,y) for performance. (I am not making 
these choices here).

The entire document is an optional primitive. SuiteB and Brainpool 
curves will be around for awhile.

One might say that the proposed tweak retains a single format, which is 
(x,y), with an available (internal) optimization to use x with a 
Montgomery ladder.


Re: security issues, the easiest fix would be to add one paragraph to to 
check that (x,y) is on the curve. The spec already deals with the 
cofactor>1 in section 9.1.


From nobody Thu Jan  8 16:50:20 2015
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 2F90C1A701D for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 16:50:17 -0800 (PST)
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 uygogwZG_Dys for <cfrg@ietfa.amsl.com>; Thu,  8 Jan 2015 16:50:15 -0800 (PST)
Received: from mail-yh0-x22a.google.com (mail-yh0-x22a.google.com [IPv6:2607:f8b0:4002:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB5A61A7017 for <cfrg@irtf.org>; Thu,  8 Jan 2015 16:50:14 -0800 (PST)
Received: by mail-yh0-f42.google.com with SMTP id v1so2824682yhn.1 for <cfrg@irtf.org>; Thu, 08 Jan 2015 16:50:14 -0800 (PST)
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=8a2ASOiH0MBzq19zMtDv9FdGeZhYrlW9cav149xZpXU=; b=LvBDqb68YntvyHYQikThsE7Wy6SgISWmYKkpRacB0U6ybWnw/jj4Lwomw+Hi9FRy3/ zO+mSRTw/AKXhbSHjF8OBg1961OHX2XKcYzqCsHS9M8Upka01eUJwYmySWn9/onFMGjs 99EYJLF6nlB5S9d1ZkwN7G+BigvMYpZCBpbrdcoe19jUmq+Y1JhFT8wEJ6BfJVs3gno/ 5FWO+Fmx29Mdl4qxGC3ZK+0qN8y7nVxeaIqyJRgJ1MPg6HPx6lllADslDzSbVxAs3aqW mRz8hUOKWnYPPlMFEVnDF9r/+iebRi3/U1EPVMi3FQuvx+86rQdaRIZIlKKFt/P5vnyR h1ZQ==
MIME-Version: 1.0
X-Received: by 10.236.26.233 with SMTP id c69mr9049598yha.49.1420764614107; Thu, 08 Jan 2015 16:50:14 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Thu, 8 Jan 2015 16:50:14 -0800 (PST)
In-Reply-To: <54AF1C99.5070308@brainhub.org>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org>
Date: Thu, 8 Jan 2015 19:50:14 -0500
Message-ID: <CACsn0cmY1wVLTTznxz_gkHpP101sOXVwg+R9K_Lf4ODTJseSqg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/CdCTzJPstwM13JCoyK5Rm6gqYpg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 00:50:17 -0000

On Thu, Jan 8, 2015 at 7:11 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 01/08/2015 01:51 PM, Watson Ladd wrote:
>>
>> Three points:
>>
>> 1: There are recurring security issues caused by not sending
>> compressed points, as well as additional complexity
>> 2: We're not talking about signatures in this draft.
>> 3: Options are bad.
>
>
> Regarding options, this draft is a foundational document of a low-level
> crypto primitive. Protocols above can still pick a single wire format.
>
> The spec should allow, for example, S/MIME to select (x) for space saving,
> while TLS to select (x,y) for performance. (I am not making these choices
> here).

The performance gain you've been repeatedly citing is nonexistent for
variable base multiplications, and can be achieved for fixed based
mults anyway. Let's look at Curve25519 in detail:

A Montgomery ladder implementation does 255 rounds of a differential
addition and doubling, each differential addition 8.2 multiplications
(z=1 initially) This is a total cost of 2091 multiplications. At the
end there is an inversion, cost around 400 multiplications, grand
total 2491.

An Edwards-based implementation, using the fastest coordinates (which
are incomplete: I'll neglect this) with a window of width 5 will first
compute 31 multiples of the basepoint, then carry out 51 additions and
254 doublings. Each point addition costs 9.8 muls, each doubling 6.2
muls. The cheapest computation of the table is 15 doublings and 15
additions. At the end there is again an inversion, cost around 400
multiplications. The cost of this computation is 2714 multiplications.

Now, you could object that I've not used a large enough window, but
larger windows slow down side-channel protected lookups. You could
also object to my eschewing wNAF or some other advanced encoding, but
these are harder to protect against side-channels due to an irregular
pattern of additions. You could try to add in additional inversions to
save on multiplications by forcing z=1, but for curves this size the
gains are small. You could object to my inversion numbers: they are
probably too large.

For fixed based multiplications we use combs, so there is a speedup,
but Montgomery wire format doesn't interfere with this operation.

Furthermore, the TLS WG doesn't know nearly as much about cryptography
as we do. Other WGs are likely to know even less.

>
> The entire document is an optional primitive. SuiteB and Brainpool curves
> will be around for awhile.
>
> One might say that the proposed tweak retains a single format, which is
> (x,y), with an available (internal) optimization to use x with a Montgomery
> ladder.
>
>
> Re: security issues, the easiest fix would be to add one paragraph to to
> check that (x,y) is on the curve. The spec already deals with the cofactor>1
> in section 9.1.

An implementer who omits clearing the low bits isn't going to
completely break everything. One who omits this check will. Despite
lots of documents explaining the necessity of validation, plenty of
implementations fail to do it consistently.

Sincerely,
Watson Ladd

>



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


From nobody Fri Jan  9 01:38:19 2015
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 4BC341A86FE for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 01:38:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GTG2oD4EIE2S for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 01:38:06 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EC7441A8730 for <cfrg@irtf.org>; Fri,  9 Jan 2015 01:38:05 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id D8FC9BF04; Fri,  9 Jan 2015 09:38:03 +0000 (GMT)
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 VhhqNVZnc69r; Fri,  9 Jan 2015 09:38:02 +0000 (GMT)
Received: from [10.87.48.73] (unknown [86.42.18.221]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 1EC25BEF0; Fri,  9 Jan 2015 09:38:02 +0000 (GMT)
Message-ID: <54AFA179.4010403@cs.tcd.ie>
Date: Fri, 09 Jan 2015 09:38:01 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Andrey Jivsov <crypto@brainhub.org>, Watson Ladd <watsonbladd@gmail.com>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org>
In-Reply-To: <54AF1C99.5070308@brainhub.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/RD-Pz7VkRKgotxHwuW5Exx_HwC8>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] options (was: Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 09:38:16 -0000

Hiya,

Not on the crypto but on the options bit, and with an IETF
participant hat firmly on my head...

I would hope that CFRG will not include any optional things
unless there is a significant benefit from doing so *and*
very very clear guidance for non-security experts on when
to pick which option.

Having options that only offer a marginal benefit would I
think be fairly clearly harmful. I'm happy that CFRG folks
can and will evaluate the performance and side channel
etc. aspects of that. If some help is needed with information
as to whether there's a possible significant benefit for
some particular (kind of) protocol, then I'm very happy
to help find the right developers or IETF folk to ask.
(I'm sure Alexey would do that anyway though, but I can
help if needed.)

If the result of this exercise does have some options, then
it'll be very important that those come with very clear and
easy to understand guidance as to when to choose which option.
That guidance needs to be understandable by a non-security
expert - there are many cases where non-security folks add
security features to their protocols and by the time those
do get reviewed by someone who'd understand ECC it can be
too late to make changes to PDU formats, management models
etc.

If CFRG cannot include such explanatory text, then I really
hope you just pick one of the optional things and drop the
rest.

The reasons to not like options here are that IETF WGs and
then implementers will make different choices leading to
a lack of interop and tooling difficulty.

The interop issue would likely arise if the guidance on
when to use which option wasn't sufficiently clear. Or if
a protocol has use-cases that match the guidance for more
than one option. In either case protocol designers will
probably just include all the options and pass on the
difficulty to implementers and deployments. And when those
make different choices we'd see interop issues.

The tooling issue would be arise if different protocols
make different choices. In that case, we'd likely see tools
developed that only support one option and that could delay
deployment for protocols that need one of the other options.

So pretty please, no options without significant benefits
*and* utterly crisp and easily understood guidance as to
when to use which option.

Thanks,
S.

On 09/01/15 00:11, Andrey Jivsov wrote:
> On 01/08/2015 01:51 PM, Watson Ladd wrote:
>> Three points:
>>
>> 1: There are recurring security issues caused by not sending
>> compressed points, as well as additional complexity
>> 2: We're not talking about signatures in this draft.
>> 3: Options are bad.
> 
> Regarding options, this draft is a foundational document of a low-level
> crypto primitive. Protocols above can still pick a single wire format.
> 
> The spec should allow, for example, S/MIME to select (x) for space
> saving, while TLS to select (x,y) for performance. (I am not making
> these choices here).
> 
> The entire document is an optional primitive. SuiteB and Brainpool
> curves will be around for awhile.
> 
> One might say that the proposed tweak retains a single format, which is
> (x,y), with an available (internal) optimization to use x with a
> Montgomery ladder.
> 
> 
> Re: security issues, the easiest fix would be to add one paragraph to to
> check that (x,y) is on the curve. The spec already deals with the
> cofactor>1 in section 9.1.
> 
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
> 


From nobody Fri Jan  9 04:13:25 2015
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 60CD51A8784 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 04:13:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8DXvEaJxZX6H for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 04:13:17 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 232851A8780 for <cfrg@irtf.org>; Fri,  9 Jan 2015 04:13:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1420805596; d=isode.com; s=selector; i=@isode.com; bh=GFigzQ386O37OB2fuB69urqTsYew60OngfoN4YF+nyg=; 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=FxoBeqxdj4LdvEEKsyp+7UdTBIIk5x2cO3Wo7+wZ0aWzVgpLd1UtTZ0qblhcVGpce5Y5JK cudA7EXfFZFv+Dwu29DXka3zEklxJ+QZRt3K6cnByt9ja6l/0tu04KanuZaWP2/1Tz67bb Uq4yAND11x93yM4lHPCICVEN7jV5j6w=;
Received: from [10.37.109.107] ((unknown) [94.117.105.137])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VK=F2wAKaAwt@waldorf.isode.com>; Fri, 9 Jan 2015 12:13:15 +0000
X-SMTP-Protocol-Errors: NORDNS PIPELINING
From: Alexey Melnikov <alexey.melnikov@isode.com>
X-Mailer: iPad Mail (12B435)
In-Reply-To: <CACsn0cmY1wVLTTznxz_gkHpP101sOXVwg+R9K_Lf4ODTJseSqg@mail.gmail.com>
Date: Fri, 9 Jan 2015 12:18:08 +0000
Message-Id: <0C9BE4D2-2E6C-4E4E-B32B-EC103071CB55@isode.com>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org> <CACsn0cmY1wVLTTznxz_gkHpP101sOXVwg+R9K_Lf4ODTJseSqg@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>, Andrey Jivsov <crypto@brainhub.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/PImOGN01vsB4d7qZ1sGtq9ZTm8w>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] No longer talking about Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 12:13:22 -0000

Hi,
I would like to remind people to rename subjects when changing topics in ord=
er to help people to follow discussions.

Thank you,
Alexey

On 9 Jan 2015, at 00:50, Watson Ladd <watsonbladd@gmail.com> wrote:

>>> On Thu, Jan 8, 2015 at 7:11 PM, Andrey Jivsov <crypto@brainhub.org> wrot=
e:
>>> On 01/08/2015 01:51 PM, Watson Ladd wrote:
>>>=20
>>> Three points:
>>>=20
>>> 1: There are recurring security issues caused by not sending
>>> compressed points, as well as additional complexity
>>> 2: We're not talking about signatures in this draft.
>>> 3: Options are bad.
>>=20
>>=20
>> Regarding options, this draft is a foundational document of a low-level
>> crypto primitive. Protocols above can still pick a single wire format.
>>=20
>> The spec should allow, for example, S/MIME to select (x) for space saving=
,
>> while TLS to select (x,y) for performance. (I am not making these choices=

>> here).


From nobody Fri Jan  9 06:00:24 2015
Return-Path: <joppe.bos@nxp.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 5908D1A879C for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 06:00:22 -0800 (PST)
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 zToO1298oe-m for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 06:00:17 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0677.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::677]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 750831A87A2 for <cfrg@irtf.org>; Fri,  9 Jan 2015 06:00:08 -0800 (PST)
Received: from AMSPR04MB518.eurprd04.prod.outlook.com (10.242.20.156) by AMSPR04MB520.eurprd04.prod.outlook.com (10.242.20.28) with Microsoft SMTP Server (TLS) id 15.1.49.12; Fri, 9 Jan 2015 13:59:45 +0000
Received: from AMSPR04MB518.eurprd04.prod.outlook.com ([10.242.20.156]) by AMSPR04MB518.eurprd04.prod.outlook.com ([10.242.20.156]) with mapi id 15.01.0049.002; Fri, 9 Jan 2015 13:59:45 +0000
From: Joppe Bos <joppe.bos@nxp.com>
To: "alexey.melnikov@isode.com" <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
Thread-Index: AQHQKR3CPwjtAQnV00eRzIHuVeF6CJy31HLw
Date: Fri, 9 Jan 2015 13:59:45 +0000
Message-ID: <AMSPR04MB518728EF88645B6263C87B5E3440@AMSPR04MB518.eurprd04.prod.outlook.com>
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [92.121.32.14]
authentication-results: spf=none (sender IP is ) smtp.mailfrom=joppe.bos@nxp.com; 
x-dmarcaction: None
x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:AMSPR04MB520;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:AMSPR04MB520;
x-forefront-prvs: 04519BA941
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(53754006)(54014002)(13464003)(199003)(189002)(377454003)(4396001)(66066001)(107886001)(107046002)(1720100001)(40100003)(2656002)(87936001)(20776003)(64706001)(99396003)(2900100001)(68736005)(74316001)(77096005)(15975445007)(102836002)(2950100001)(62966003)(77156002)(122556002)(54606007)(50986999)(120916001)(99936001)(19580405001)(19580395003)(2501002)(54356999)(76176999)(97736003)(46102003)(54206007)(101416001)(105586002)(92566001)(106116001)(106356001)(21056001)(31966008)(76576001)(33656002)(86362001)(230783001); DIR:OUT; SFP:1101; SCL:1; SRVR:AMSPR04MB520; H:AMSPR04MB518.eurprd04.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts)
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0235_01D02C1C.E659DDE0"
MIME-Version: 1.0
X-OriginatorOrg: nxp.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2015 13:59:45.5063 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR04MB520
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/isl31k4Vz2Nnw5cTT1NQEPJvpoo>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 14:00:23 -0000

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

Hi all,

The current version of the draft contains methods for parameter selection
(section 6) and a single recommended curve (section 7). 
IMO the natural approach would be to first agree upon a parameter selection
procedure (one draft) and subsequently, when a large portion of the
community agrees that this selection procedure is sound, use this procedure
to select new curves (another draft). Currently, we are changing the
selection procedure to match an existing curve. If we want curve25519
because it is fast and widely deployed then we should state this clearly and
refrain from modifying the selection procedures because this might have a
negative impact on the potential selection of curves in the future. 

Please find below some comments on the current version of the draft.

Section 7: 
- The specification of the parameters is done either in formula form (p), in
decimal (d) or a formula + hexadecimal (order). Maybe use the same notation
(e.g. either decimal or hexadecimal) everywhere to avoid confusion?
- For completeness it might be good to give the corresponding (short)
Weierstrass form of the curve(s).

Section 8-10:
These sections are curve25519 specific, this should be stated much clearer.

Section 8:
As far as my understanding goes there was no consensus on the wire format of
field elements. 
This section states that "when transmitting field elements in the
Diffie-Hellman protocol below, they MUST be encoded as an array of bytes, x,
in little-endian order". Maybe some notation got confused here, what is this
x-coordinate? The only x defined are on the Edwards curve while I think here
the Montgomery curve is meant (the u-coordinate from section 7). This should
be fixed or stated clearer to avoid confusion.

Section 9:
- It is not entirely clear to me why such low-level details are provided in
this draft. Is it expected from the CFRG to deliver implementation details
for algorithms or just a specification of curves plus related info (such as
wire formats)? If we want to provide such low-level details then why not
also state how to implement the field arithmetic?
- Why is only the approach based on the Montgomery ladder stated in this
section? There is nothing wrong with the Montgomery ladder but it is not the
best solution for all reasonable definitions of best. The implementer has
the choice, as stated before on this list, to compute DH on (for instance)
the corresponding Edwards or Weierstrass curve. Currently it looks as if the
CFRG recommends to use the Montgomery ladder for all scenarios;  something
we know is suboptimal in terms of performance for higher security levels.
Moreover, imagine the scenarios where people use (twisted) Edwards curves
for signatures. Then implementing DH using the Montgomery ladder implies
managing code for both the Montgomery and the twisted Edwards curve and,
following the reasoning expressed by some people on this list, a larger code
base implies more room for errors which implies a less secure approach. 
- This ladder implementation defines the usage of cswap ("due to the
existence of side-channels in commodity hardware"). Although this adds some
protection this algorithm is not secure in many realistic threat models
(e.g. in hardware security). To me, it looks quite arbitrary to just protect
against one type of attack and not against a whole range of other
side-channel attacks. The threat model should depend on where the
implementation will be used and therefore it is up to the implementer to
make the appropriate design decisions and introduce the adequate
countermeasures. 

Best regards,

Joppe

-----Original Message-----
From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Alexey Melnikov
Sent: Monday, January 05, 2015 8:15 PM
To: cfrg@irtf.org
Subject: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document

This message starts 2 weeks adoption call (ending on January 19th 2015) on:

https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml

as the starting point for the CFRG document which describes an algorithm for
safe curve parameter generation for a particular security level and also
recommends a specific curve (2^255-19) for the 128-bit security level.

Please reply to this message or directly to CFRG chairs, stating whether you
support (or not) adoption of this document. If you do not support adoption
of this document, please state whether you support adoption of any
alternative document or whether you want a particular change be made to the
document before adoption.

Chairs ask not to reiterate previously expressed technical opinions or
arguments. But clarifying questions on the adoption call are welcome.

While making your decision, please keep in mind

http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html

Alexey,
On behalf of CFRG chairs.

P.S. Editors of draft-black-rpgecc-01 and
draft-turner-thecurve25519function-01 can become co-editors of the adopted
document, if they choose to do so. Email chairs directly if you are willing
or not willing to do so.

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

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIkPDCCBJ4w
ggOGoAMCAQICCmEDaZgAAAAAAAwwDQYJKoZIhvcNAQEFBQAwcTELMAkGA1UEBhMCTkwxFjAUBgNV
BAgTDU5vb3JkLUJyYWJhbnQxEjAQBgNVBAcTCUVpbmRob3ZlbjERMA8GA1UEChMITlhQIEIuVi4x
CzAJBgNVBAsTAklUMRYwFAYDVQQDEw1OWFAgUE9MSUNZIENBMB4XDTEzMDExNjE1MTkyOFoXDTE4
MDExNjE1MjkyOFowXTETMBEGCgmSJomT8ixkARkWA2NvbTETMBEGCgmSJomT8ixkARkWA254cDET
MBEGCgmSJomT8ixkARkWA3diaTEcMBoGA1UEAxMTTlhQIEVudGVycHJpc2UgQ0EgMTCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAI5ipF3jm/OvyLt8mkqwa9FE12Jn/GagAcUyB9wysoJ3
q9RuhTEXFztx/sS/NMA4ZGcoG2t1MG2DH4DYtIXQrLdLLNlsrhDgPoAlm2fWjx66AuUyeBxGWKUp
m/vbKGfmrNA9JogP/CS5SRuop92Ap4rKxm7FBGRpSzLHHwZZyfp6GfgqhlBRtonsO2g4WH7u0WMl
4Wm09UntE7RAfBqygAGZDLjjAUyfkijy4a9jHwVUKrnN8DpowloD+zDjohPdLl71UpX4Xq4P91Qe
tW24YznyQvW1bSfAspmx/SAIgDNVoy2KRQVDe9374VwwMASsNvNJ+9/b1/+IpkqKk9KnVaMCAwEA
AaOCAUowggFGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFOYv7mEvNoJFwkUYiKoCYJ/FdhTI
MAsGA1UdDwQEAwIBhjASBgkrBgEEAYI3FQEEBQIDAQABMCMGCSsGAQQBgjcVAgQWBBTED+ZQ/tPn
womZx337qdNQLl8kEzAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTAfBgNVHSMEGDAWgBT0BDiR
rs2HB2RZZD7C6BpUsFOo3zA7BgNVHR8ENDAyMDCgLqAshipodHRwOi8vbnd3Lm54cC5jb20vcGtp
L2NybC9OWFBQb2xpY3lDQS5jcmwwVQYIKwYBBQUHAQEESTBHMEUGCCsGAQUFBzAChjlodHRwOi8v
bnd3Lm54cC5jb20vcGtpL2NhY2VydGlmaWNhdGUvTlhQUG9saWN5Q0EtMjAwOC5jcnQwDQYJKoZI
hvcNAQEFBQADggEBACp3nK3WGDfgU3g0YzL8mmmIBTHTDMC60CUFULAxPUyCZ0joQ36saGfooqwe
I17slWlRy6g9tKxhfXZScOncGK1x+Ze2I/1giGcUJn0aLYqc/+fJeelsOxEk6pa+IxgqsOeaJJ9E
k7UDERxwu4BelAZaoRbQvEubfFDMzwDHSPB0WfAJMv56a2qQLUW/rM3fNW7Kl+dinP2meVZsqMs+
v18vx7C5UmTp2jtJZgvhbicDRRprxROMr84HAA1YnXG62tQulY5wrHqMo0dWNfmhGnHbnX8JqZIZ
yqkHrU1kUCGWvYZE8NvmvCkIITk85K04/zX6V4dCz/ms6FLRcTLeqogwggd0MIIGXKADAgECAgpU
GCh/AAEACMv/MA0GCSqGSIb3DQEBBQUAMF0xEzARBgoJkiaJk/IsZAEZFgNjb20xEzARBgoJkiaJ
k/IsZAEZFgNueHAxEzARBgoJkiaJk/IsZAEZFgN3YmkxHDAaBgNVBAMTE05YUCBFbnRlcnByaXNl
IENBIDEwHhcNMTQwMzMxMTQyODU1WhcNMTYwMzMwMTQyODU1WjCBmjETMBEGCgmSJomT8ixkARkW
A2NvbTETMBEGCgmSJomT8ixkARkWA254cDETMBEGCgmSJomT8ixkARkWA3diaTEMMAoGA1UECxMD
TlhQMQswCQYDVQQLEwJCRTEWMBQGA1UECxMNTWFuYWdlZCBVc2VyczETMBEGA1UECxMKRGV2ZWxv
cGVyczERMA8GA1UEAxMIbnhwNzk0ODUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCq
/9Xx+iLK0x8xrPuqO3SRscAYJBDmkyP1hnDXTQs5+UWjU9oY5+4UOGtjUFYCq4PMS+OZL2/s+STv
Y6Rv4/9LJcq72rx7xXCT7xLZkOC4SFe+ZYhOIsVGuz2IQWa8pDJ9sSsCP5TiK1W8nOmvLIRxFwDL
cI/IIOf6i60LaI6NChYOIFYhFR45Mj3sSZoW2auH/6GlePhwXT4ROLLRZbFfbSz4kgdDchV+aXFX
47A6Ed2eUu78ZzNwio9ZOOkpyXbWGYUBA+t4RpCYCWMnxNqDJjOyVyKIobtQCIWZk/MjOSz1cYOS
hipCdAYZvmYJUUfwXb/tQNT4nls59jN+6C25AgMBAAGjggP2MIID8jA8BgkrBgEEAYI3FQcELzAt
BiUrBgEEAYI3FQiFgsB+gY70VYbthTiC65lLmpJWP4XFoSWHldZaAgFkAgETMB0GA1UdJQQWMBQG
CCsGAQUFBwMCBggrBgEFBQcDBDAOBgNVHQ8BAf8EBAMCB4AwJwYJKwYBBAGCNxUKBBowGDAKBggr
BgEFBQcDAjAKBggrBgEFBQcDBDAdBgNVHQ4EFgQU8jU+ZdxVDJyiIwY0FOEJ2gc77gcwHwYDVR0j
BBgwFoAU5i/uYS82gkXCRRiIqgJgn8V2FMgwggGLBgNVHR8EggGCMIIBfjCCAXqgggF2oIIBcoaB
zmxkYXA6Ly8vQ049TlhQJTIwRW50ZXJwcmlzZSUyMENBJTIwMSgxKSxDTj1FVTFSRENSREMxTVMx
MDEsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZp
Z3VyYXRpb24sREM9d2JpLERDPW54cCxEQz1jb20/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9i
YXNlP29iamVjdENsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50hk5odHRwOi8vZXUxcmRjcmRjMW1z
MTAxLndiaS5ueHAuY29tL0NlcnRFbnJvbGwvTlhQJTIwRW50ZXJwcmlzZSUyMENBJTIwMSgxKS5j
cmyGT2h0dHA6Ly9ueHBlbnRlcnByaXNlY2ExLndiaS5ueHAuY29tL0NlcnRFbnJvbGwvTlhQJTIw
RW50ZXJwcmlzZSUyMENBJTIwMSgxKS5jcmwwggFIBggrBgEFBQcBAQSCATowggE2MIG7BggrBgEF
BQcwAoaBrmxkYXA6Ly8vQ049TlhQJTIwRW50ZXJwcmlzZSUyMENBJTIwMSxDTj1BSUEsQ049UHVi
bGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13Ymks
REM9bnhwLERDPWNvbT9jQUNlcnRpZmljYXRlP2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNhdGlv
bkF1dGhvcml0eTB2BggrBgEFBQcwAoZqaHR0cDovL2V1MXJkY3JkYzFtczEwMS53YmkubnhwLmNv
bS9DZXJ0RW5yb2xsL0VVMVJEQ1JEQzFNUzEwMS53YmkubnhwLmNvbV9OWFAlMjBFbnRlcnByaXNl
JTIwQ0ElMjAxKDEpLmNydDA/BgNVHREEODA2oCEGCisGAQQBgjcUAgOgEwwRam9wcGUuYm9zQG54
cC5jb22BEWpvcHBlLmJvc0BueHAuY29tMA0GCSqGSIb3DQEBBQUAA4IBAQAlI4JgxPK2C+krr7i5
EEdCS8501xDn0tcwiak/mB3MOX5lWew/TtWVp6ur+yNHs11BI50gT0jfBfceGIfKcOB0tQYW3I9U
EYM1b8QAS9nLZVJG1rVNcxW6S6ELtLd4gk12/HdnNyERYJ4fE7sfrrT7SZhsR8v3f5QptfuJLOJV
hEDFW9rxPNYQGoPuzkBQLCJKbEuOuZY6HAOBmeOnNHcpmP6bDEE2PrrtE11IEPd/qzFZF2EfpxcP
UxhWcK1pMOOaKsKp4LG1HsfuchHfDPZphhQ6jpiDqYSGTpjUZ1sWY0kEEsvk3c4ljePw7rUJ8CqW
F51A491V/ZnT/AI2M6/IMIIHuTCCBaGgAwIBAgIKYVMldgAAAAAAAzANBgkqhkiG9w0BAQUFADBv
MQswCQYDVQQGEwJOTDEWMBQGA1UECBMNTm9vcmQtQnJhYmFudDESMBAGA1UEBxMJRWluZGhvdmVu
MREwDwYDVQQKEwhOWFAgQi5WLjELMAkGA1UECxMCSVQxFDASBgNVBAMTC05YUCBST09UIENBMB4X
DTA4MDQxNDA5NDQ0N1oXDTE4MDQxNDA5NTQ0N1owcTELMAkGA1UEBhMCTkwxFjAUBgNVBAgTDU5v
b3JkLUJyYWJhbnQxEjAQBgNVBAcTCUVpbmRob3ZlbjERMA8GA1UEChMITlhQIEIuVi4xCzAJBgNV
BAsTAklUMRYwFAYDVQQDEw1OWFAgUE9MSUNZIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAvPVLyAv1owVs+TPwckqoR9tXkA+xMCVA6Vsx1HarnNx9fLNclIs7laRpCf9sjBo8sD7h
kFjOmhoLvMvIY0Uh6YRjKDYvN7bov9OdzgsmSlYOkLYRJrqz5Ywgix74Tmup1RVu4SRHPTDO/szy
g7fErs01kwx6oCboKRhqfO9HTGdpvPFt89cN4uT2U1aCWWhPmx4EUbkDAP2U+m+k3ayx4YMZ05zf
TsALxAde+Rv2GzO6K50tKvJF7NtnkoLNkJpH99aie9/sfqPJjch23aEhpnQhtFXP8SaE7Ckxw1oM
6GwYap8tAVP1nVFthdwpEfoGzhRi/1m3VPcE8sRHTygPswIDAQABo4IDUzCCA08wDwYDVR0TAQH/
BAUwAwEB/zAdBgNVHQ4EFgQU9AQ4ka7NhwdkWWQ+wugaVLBTqN8wCwYDVR0PBAQDAgGGMBAGCSsG
AQQBgjcVAQQDAgEAMIICLgYDVR0gBIICJTCCAiEwggIdBgRVHSAAMIICEzA5BggrBgEFBQcCARYt
aHR0cDovL253dy5ueHAuY29tL3BraS9jcHMvTlhQUG9saWN5Q0FDUFMucGRmMIIB1AYIKwYBBQUH
AgIwggHGHoIBwgBUAGgAZQAgAE4AWABQACAAUABvAGwAaQBjAHkAIABDAEEAIABDAGUAcgB0AGkA
ZgBpAGMAYQB0AGUAIABpAHMAIABpAG4AdABlAG4AZABlAGQAIABvAG4AbAB5ACAAZgBvAHIAIAB2
AGUAcgBpAGYAeQBpAG4AZwAgAE4AWABQACAASQBzAHMAdQBpAG4AZwAgAEMAQQAgAEMAZQByAHQA
aQBmAGkAYwBhAHQAZQBzACAAYQBuAGQAIABOAFgAUAAgAEkAcwBzAHUAaQBuAGcAIABDAEEAIABD
AFIATAAnAHMALgAgAFQAaABlACAATgBYAFAAIABQAG8AbABpAGMAeQAgAEMAQQAgAEMAZQByAHQA
aQBmAGkAYwBhAHQAZQAgAFAAcgBhAGMAdABpAGMAZQAgAFMAdABhAHQAZQBtAGUAbgB0ACAAYwBh
AG4AIABiAGUAIABmAG8AdQBuAGQAIABvAG4AIABoAHQAdABwADoALwAvAG4AdwB3AC4AbgB4AHAA
LgBjAG8AbQAvAHAAawBpAC8AYwBwAHMALwBOAFgAUABQAG8AbABpAGMAeQBDAEEAQwBQAFMALgBw
AGQAZjAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTAfBgNVHSMEGDAWgBRKhdiAh9M248uOC9a4
owi7WSglRzA5BgNVHR8EMjAwMC6gLKAqhihodHRwOi8vbnd3Lm54cC5jb20vcGtpL2NybC9OWFBS
b290Q0EuY3JsMFUGCCsGAQUFBwEBBEkwRzBFBggrBgEFBQcwAoY5aHR0cDovL253dy5ueHAuY29t
L3BraS9yb290Y2VydGlmaWNhdGUvTlhQUm9vdENBLTIwMDguY3J0MA0GCSqGSIb3DQEBBQUAA4IC
AQAMygt9N/N5mNW2rZkTUx7+O4RRnOi+agjEk2xAE2ZOVxWBpoYVsUYRZVLxzyy8SJoeLgExm9k8
1QBtAQc8/PwCoHv1FftLvoXTfXdmwxIqphKS5gr/kseje1mPPvnP2PQwg9D/XNiN4SxeiGGXvE3a
F9VhyKjRfFn+f9szsqyV1zJXqUKNsKCi0IT3XiLKuGzW/QxUHpO+dOU9Rw9d9sxo4Wu4BTqDdTTJ
jN54P4Lq9FkWh896JqXMLyJy2w+AYzUjMITbUx8mRUY7wceQU1ImpHb/M8VLUHk7/SacnDLX+aj/
2KAC9w81ZahhkzjTGr2i349x26S6r+o3wZqeIRXfAcOg3izaqT0ydYMjNY4ruLQPxcrFnRl5L5WR
MMdd0eK+hB4zO+/YqH4IZ75BfnbcBny72JGmoZFItzwtZ/je381DZPKCzyu6LMZm0pC5JlS6Fmy7
zuEzLKbKz+R13iw7yehRl/VO+EEa6x/76K5VTUF57VNOtdUx5KxKgGZFEuqKV0HVyV2JNyvnPmxD
CNusFlTuFnlqCbdtHCP1PIA/UMtbhXD+6k9vDpQ1b6aZjL6FHg1TJgi7chc5CUdKv9qvVO+bWCdF
kxOs2JIXjjzH1b0ijobqiFTeCYlUMx0A5HZWEV3gn4wiJzpqWESnrY8CAC6DbboU19rasWgisGwn
iDCCB+wwggbUoAMCAQICClQYJ5QAAQAIy/4wDQYJKoZIhvcNAQEFBQAwXTETMBEGCgmSJomT8ixk
ARkWA2NvbTETMBEGCgmSJomT8ixkARkWA254cDETMBEGCgmSJomT8ixkARkWA3diaTEcMBoGA1UE
AxMTTlhQIEVudGVycHJpc2UgQ0EgMTAeFw0xNDAzMzExNDI4NTRaFw0xNjAzMzAxNDI4NTRaMIGa
MRMwEQYKCZImiZPyLGQBGRYDY29tMRMwEQYKCZImiZPyLGQBGRYDbnhwMRMwEQYKCZImiZPyLGQB
GRYDd2JpMQwwCgYDVQQLEwNOWFAxCzAJBgNVBAsTAkJFMRYwFAYDVQQLEw1NYW5hZ2VkIFVzZXJz
MRMwEQYDVQQLEwpEZXZlbG9wZXJzMREwDwYDVQQDEwhueHA3OTQ4NTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBANStLJhC9fWMV07PcmUWwSIkNZ9vWYh20zpx8fwagiaRp6xJ40pLGld0
ARBc7OVsHlNBOlzQegtJqFxe8e9So2XGRVUY/69i9KFCrlktsa92YnGfcED3DEPjhHsV/6wX7Kul
0VxLdSjJvslL/3QPwmCSYQNTh4hIA1hMLIpALlQUTK/8wQ1LRDrwu6hnduZC+HfzdnlCSa6TdYPy
VVnNjb9DiwGxIQ8has7jq7WvVSkyUz/cTplIia6wYro/4h05C34Fh4aNnuyVk+KuZ+KjyYfabTpk
WfaUHW2gse7IT7ThF+aB+pW16ZXr/K4HzBbJnFICEslhoeAYzUBEsGIQuNMCAwEAAaOCBG4wggRq
MDsGCSsGAQQBgjcVBwQuMCwGJCsGAQQBgjcVCIWCwH6BjvRVhu2FOILrmUuaklY/wvA7hYHAAwIB
ZAIBGzAfBgNVHSUEGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDBDAOBgNVHQ8BAf8EBAMCBSAwLQYD
VR0gBCYwJDAiBiArBgEEAYI3FQiFgsB+gY70VYbthTiC65lLmpJWPwGDEDApBgkrBgEEAYI3FQoE
HDAaMAoGCCsGAQUFBwMEMAwGCisGAQQBgjcKAwQwRAYJKoZIhvcNAQkPBDcwNTAOBggqhkiG9w0D
AgICAIAwDgYIKoZIhvcNAwQCAgCAMAcGBSsOAwIHMAoGCCqGSIb3DQMHMB0GA1UdDgQWBBRc5KR3
3gj8vqaRruT0oqUpKwt4azAfBgNVHSMEGDAWgBTmL+5hLzaCRcJFGIiqAmCfxXYUyDCCAYsGA1Ud
HwSCAYIwggF+MIIBeqCCAXagggFyhoHObGRhcDovLy9DTj1OWFAlMjBFbnRlcnByaXNlJTIwQ0El
MjAxKDEpLENOPUVVMVJEQ1JEQzFNUzEwMSxDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2Vydmlj
ZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13YmksREM9bnhwLERDPWNvbT9jZXJ0
aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9p
bnSGTmh0dHA6Ly9ldTFyZGNyZGMxbXMxMDEud2JpLm54cC5jb20vQ2VydEVucm9sbC9OWFAlMjBF
bnRlcnByaXNlJTIwQ0ElMjAxKDEpLmNybIZPaHR0cDovL254cGVudGVycHJpc2VjYTEud2JpLm54
cC5jb20vQ2VydEVucm9sbC9OWFAlMjBFbnRlcnByaXNlJTIwQ0ElMjAxKDEpLmNybDCCAUgGCCsG
AQUFBwEBBIIBOjCCATYwgbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1OWFAlMjBFbnRlcnByaXNl
JTIwQ0ElMjAxLENOPUFJQSxDTj1QdWJsaWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxD
Tj1Db25maWd1cmF0aW9uLERDPXdiaSxEQz1ueHAsREM9Y29tP2NBQ2VydGlmaWNhdGU/YmFzZT9v
YmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MHYGCCsGAQUFBzAChmpodHRwOi8vZXUx
cmRjcmRjMW1zMTAxLndiaS5ueHAuY29tL0NlcnRFbnJvbGwvRVUxUkRDUkRDMU1TMTAxLndiaS5u
eHAuY29tX05YUCUyMEVudGVycHJpc2UlMjBDQSUyMDEoMSkuY3J0MD8GA1UdEQQ4MDagIQYKKwYB
BAGCNxQCA6ATDBFqb3BwZS5ib3NAbnhwLmNvbYERam9wcGUuYm9zQG54cC5jb20wDQYJKoZIhvcN
AQEFBQADggEBADBSN77zHohQv2niNY5Sqt2XZ3+YWdNYFJFCocpn+z2VFvgZx3xMBBBKEpBE0uh8
treQjyvoVkk23Z2hVf44txUQ0CZodmF8bUS+3tjMAmKj2vH5ltYY2BvS5pvApJlzIq7ZuCFLiCOL
x+8C1shIlxAaJvl+uAKw58ktXgN2meyAJmzoCqrT3ZTbmQv8BD40JsY73RyqExLovcweGXv5xCvi
anwM/TMq80L63n50xYUj1ZBeHMa0vMTKhcTwZ8A+vj7ol/kIp87BLbHr5/rM2PHYx1wuhTDiwTx/
iKvFgIWF+HKSCHM1GKggi/iC/jVcfmt00ylzoR6P/rtaodcR7YIwgghxMIIGWaADAgECAhBPjKMK
08ydiEDgwTkocDgIMA0GCSqGSIb3DQEBBQUAMG8xCzAJBgNVBAYTAk5MMRYwFAYDVQQIEw1Ob29y
ZC1CcmFiYW50MRIwEAYDVQQHEwlFaW5kaG92ZW4xETAPBgNVBAoTCE5YUCBCLlYuMQswCQYDVQQL
EwJJVDEUMBIGA1UEAxMLTlhQIFJPT1QgQ0EwHhcNMDgwMzE0MTEyNTUzWhcNMjgwMzE0MTEzNDI3
WjBvMQswCQYDVQQGEwJOTDEWMBQGA1UECBMNTm9vcmQtQnJhYmFudDESMBAGA1UEBxMJRWluZGhv
dmVuMREwDwYDVQQKEwhOWFAgQi5WLjELMAkGA1UECxMCSVQxFDASBgNVBAMTC05YUCBST09UIENB
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmtsLgeNs7bBP4MR9PhN3yQSQ/Mwf3Hoj
PC6s0IWsUmUqgNAvnN/H1XX5zwtaDJ60SAoeWcOF6i7tQXnq68Xzv4KqBiRb+7OvydJwSF+sCte0
CENs86EeKt42sF8ZKSZ0D+QzgHWQQiVdQ/7K4rnfDHW7PxL3UX2QqMh/VEfezsy/n7v9cs0dUHqS
9zO9GXS5I5IWrJ7Ks9Zz+coh2PareutC9Kwbq9gZC8CG4u3yhqq89AE+rGYddOS5PV7NlJkSLpHT
GmIw6wwZApyfO0DC3TYA2dRq/646Hqil61HbTlgaQL6Y90tDXmhlV5ke+cqh3NJneusIpqI66Tex
VBJvZ2yhSlIgvymu65lLoBplIGfm5G5TsZNZdU2punpZ+FexvHBdKDG3QHZ9tQZMWM8x7jBgH0Uq
jZR4VY9dpjBthpoYDW/b/yU3nAHcb00k+W7sUuvIYFesSLnlr/iDSyF3AjETO+5NcEGb83w/Xa08
D43mdMkqQDVKC4MQkKrhWjXEBF0UxmjBHYH+1lR9Vf6cbHKsRJgvLrKkYnH8kp1vYoGhG9Ubei0e
DEpnXIGZbGtp42Vv6KIq1lnwSOegXAV6w/eOHX5rL3HrhXLnmjh2oGDED/SNMavwM1K5PH1cnSlz
cDwqYj55Sz383Jn65inA0HqK7tlgLdAkSA0cuD4LDVECAwEAAaOCAwcwggMDMAsGA1UdDwQEAwIB
hjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRKhdiAh9M248uOC9a4owi7WSglRzA5BgNVHR8E
MjAwMC6gLKAqhihodHRwOi8vbnd3Lm54cC5jb20vcGtpL2NybC9OWFBSb290Q0EuY3JsMBAGCSsG
AQQBgjcVAQQDAgEAMIICHgYDVR0gBIICFTCCAhEwggINBgRVHSAAMIICAzA3BggrBgEFBQcCARYr
aHR0cDovL253dy5ueHAuY29tL3BraS9jcHMvTlhQUm9vdENBQ1BTLnBkZjCCAcYGCCsGAQUFBwIC
MIIBuB6CAbQAVABoAGUAIABOAFgAUAAgAFIAbwBvAHQAIABDAEEAIABDAGUAcgB0AGkAZgBpAGMA
YQB0AGUAIABpAHMAIABpAG4AdABlAG4AZABlAGQAIABvAG4AbAB5ACAAZgBvAHIAIAB2AGUAcgBp
AGYAeQBpAG4AZwAgAE4AWABQACAAUABvAGwAaQBjAHkAIABDAEEAIABDAGUAcgB0AGkAZgBpAGMA
YQB0AGUAcwAgAGEAbgBkACAATgBYAFAAIABSAG8AbwB0ACAAQwBBACAAQwBSAEwAJwBzAC4AVABo
AGUAIABOAFgAUAAgAFIAbwBvAHQAIABDAEEAIABDAGUAcgB0AGkAZgBpAGMAYQB0AGUAIABQAHIA
YQBjAHQAaQBjAGUAIABTAHQAYQB0AGUAbQBlAG4AdAAgAGMAYQBuACAAYgBlACAAZgBvAHUAbgBk
ACAAbwBuACAAaAB0AHQAcAA6AC8ALwBuAHcAdwAuAG4AeABwAC4AYwBvAG0ALwBpAG8ALwBQAEsA
SQAvAGMAcABzAC8ATgBYAFAAUgBvAG8AdABDAEEAQwBQAFMALgBwAGQAZgAuMFUGCCsGAQUFBwEB
BEkwRzBFBggrBgEFBQcwAoY5aHR0cDovL253dy5ueHAuY29tL3BraS9yb290Y2VydGlmaWNhdGUv
TlhQUm9vdENBLTIwMDguY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCMSmmaLTo69vfNVeKN6EAd/DVI
+HLyYjfPb9a4efyMX2ra7hYWM6wE6lZK6zKrPZqAfTTFt13z/cjSqcQJSoOmpXCUeES7bIPZl7zX
N9ruK4MS9ZkW8cOT7/CVQ5xIu6sliC0NgAmFR7//vEDOxDRZM4kNZtG1MZ0NlDOX2J7OrUzN1HSD
0Styc4kv/2TnqF6EVkP2WOzxf75bTUJ3haHBeYsEMVoi7f/Tff4LtvNNvpmu9K/YZV00ksGP1Fvi
1EqGobILtJMz8PRssaY3PrqL6bjDe1rEHsg0Ca9Kqv0CIOeC/Pt1G6h+jH/IIUotnIlJSNhMevMX
1h5zvqJ2rOwr2Hjd5SUsTJ+KvZvGAXdodipvstl9Dn5M3hnJgI8O5iap0FtJ6x/zx51FxrzoI+mU
bZuRb5vVqWQONGQdCsrHCZC3RO5fuLslNZBCFA1ajh0vlp6Z66ZYlXgUKKUcYyIvjSAkpM0nNc1X
Lip5vbnL9im60ymSoGT4zyK+pYx5JYW37LwBZ7KHCdpwXkYLMEh1MJZO40tC/aWwWa+1YJsqy0az
nMsuWNCnUnowXQltn/z02n0w1Vp4GNCEBpPGjuzbjuTojCoJc8Uq/VqB7/DJoHIDplLuU3kcouqh
vl3CZiG6DVmp0iJ9M+hKm9SiZpV7b0DKzXqa7HJiv/G3VTsuYDGCA5swggOXAgEBMGswXTETMBEG
CgmSJomT8ixkARkWA2NvbTETMBEGCgmSJomT8ixkARkWA254cDETMBEGCgmSJomT8ixkARkWA3di
aTEcMBoGA1UEAxMTTlhQIEVudGVycHJpc2UgQ0EgMQIKVBgofwABAAjL/zAJBgUrDgMCGgUAoIIC
BTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNTAxMDkxMzU5NDJa
MCMGCSqGSIb3DQEJBDEWBBT4mdcLuoSFia3mlsKuLepaC4baBDB6BgkrBgEEAYI3EAQxbTBrMF0x
EzARBgoJkiaJk/IsZAEZFgNjb20xEzARBgoJkiaJk/IsZAEZFgNueHAxEzARBgoJkiaJk/IsZAEZ
FgN3YmkxHDAaBgNVBAMTE05YUCBFbnRlcnByaXNlIENBIDECClQYJ5QAAQAIy/4wfAYLKoZIhvcN
AQkQAgsxbaBrMF0xEzARBgoJkiaJk/IsZAEZFgNjb20xEzARBgoJkiaJk/IsZAEZFgNueHAxEzAR
BgoJkiaJk/IsZAEZFgN3YmkxHDAaBgNVBAMTE05YUCBFbnRlcnByaXNlIENBIDECClQYJ5QAAQAI
y/4wgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUDBAEWMAoGCCqGSIb3
DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICAUAw
DQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFlAwQCAjALBglghkgB
ZQMEAgEwDQYJKoZIhvcNAQEBBQAEggEAO0aqlCVpazECP7JtNHLrVvXHLnVYScjXoJhBF2eQCs2R
Yo5noieoPFkQ3euVHKZho68G13uziA51XnNXgmsYSj+2zNPV9+RPeA4ROvyyCbjKUt5AAIxXX1Fi
Fh2t62rC9yPtx/9vMQk3RUndjrIsW5UP0ekq9TAbzMaTQXYpFkwpYfNhfMK2+O4/X4phTBwBsZ1M
U2FtKrsyWaYpnqrNMj0ziCIrCTmx73kS4utNf65ng2jNv+ZRFRl+fWr4iK0CzFj7+xtPrMhvFvZ8
qM/i3yuuwrV3iGFUlJEzz8G8JLTbQqUdpQr73I+xI/QDxFlCAASMYX1/IZ8wQDWNofWp0gAAAAAA
AA==

------=_NextPart_000_0235_01D02C1C.E659DDE0--


From nobody Fri Jan  9 07:37:17 2015
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 D02311A01C6 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 07:37:13 -0800 (PST)
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 QlFbuxARrwVA for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 07:37:10 -0800 (PST)
Received: from mail-yh0-x22b.google.com (mail-yh0-x22b.google.com [IPv6:2607:f8b0:4002:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 86C501A00FC for <cfrg@irtf.org>; Fri,  9 Jan 2015 07:37:10 -0800 (PST)
Received: by mail-yh0-f43.google.com with SMTP id z6so4395728yhz.2 for <cfrg@irtf.org>; Fri, 09 Jan 2015 07:37:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:date:message-id:subject:from:to:cc:content-type;  bh=pbvvpm1HFljwycBPMQxTku3pdfwAu3CEcf3Bd385+4M=; b=hgyV0NuOhLM6Df4ovbu5Xy9WwMDy/xYCcxdwTj6ehIBABGpzVlMD3m3mbZWp+RihJU sJyjPFmKfuZijmgEogp3lhV8xOypvyf9O5JK8cd9HWKiCXfIIYiORibOtiwWBnuWVT/C HDa71NqTfcvi+BVcGS0j6zlL9vy1FPSkc75sssP/FvuOH+v91KhAxGil88x0QPwzG19L ab8DOM7Pf5iGzWWnQXlWmn/lsyzBAOk6A+bCb9QfV5g6qyhtuo5BCxyhcK+Hs0A77+5+ mjbOoxf7Y4gwQ2f7ijc9udduRJUi1ZKcmgWVJ3Hv8H0uzSxrydjQ2Jnf7Srly12bDfeg XbCw==
MIME-Version: 1.0
X-Received: by 10.236.18.168 with SMTP id l28mr11662161yhl.172.1420817829740;  Fri, 09 Jan 2015 07:37:09 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Fri, 9 Jan 2015 07:37:09 -0800 (PST)
Date: Fri, 9 Jan 2015 10:37:09 -0500
Message-ID: <CACsn0cnqc-iHZuS7w6=G5zXM6u3MNWQNN7cgdBf5TkbPhB8LWA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Joppe Bos <joppe.bos@nxp.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/VTxcfz36Q3pOM65IXfTjFyYVDlg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] Montgomery yet again (was Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 15:37:14 -0000

(Replace this email with the discussions had in May on teleconference,
and over this summer as shown in "Progress on curve recommendations
for TLS WG", http://www.ietf.org/mail-archive/web/cfrg/current/msg04760.html
and the ensuing discussion. The last note is from
http://www.ietf.org/mail-archive/web/cfrg/current/msg04966.html. If
you've read these, you don't need to read this email )

On Fri, Jan 9, 2015 at 8:59 AM, Joppe Bos <joppe.bos@nxp.com> wrote:
> Hi all,
>
> The current version of the draft contains methods for parameter selection
> (section 6) and a single recommended curve (section 7).
> IMO the natural approach would be to first agree upon a parameter selection
> procedure (one draft) and subsequently, when a large portion of the
> community agrees that this selection procedure is sound, use this procedure
> to select new curves (another draft). Currently, we are changing the
> selection procedure to match an existing curve. If we want curve25519
> because it is fast and widely deployed then we should state this clearly and
> refrain from modifying the selection procedures because this might have a
> negative impact on the potential selection of curves in the future.

How does the existence of a selection procedure that gives Curve25519
and particular choice of an isogeny equal "changing the selection
procedure to match an existing curve?" In fact, there are good reasons
to favor the particular twist security criteria and use the given
isogeny in any case.

>
> Please find below some comments on the current version of the draft.
>
> Section 7:
> - The specification of the parameters is done either in formula form (p), in
> decimal (d) or a formula + hexadecimal (order). Maybe use the same notation
> (e.g. either decimal or hexadecimal) everywhere to avoid confusion?
> - For completeness it might be good to give the corresponding (short)
> Weierstrass form of the curve(s).

Not sure why we want forms that won't be used. I agree we should
explain the isogeny in more detail.

>
> Section 8-10:
> These sections are curve25519 specific, this should be stated much clearer.
>
> Section 8:
> As far as my understanding goes there was no consensus on the wire format of
> field elements.
> This section states that "when transmitting field elements in the
> Diffie-Hellman protocol below, they MUST be encoded as an array of bytes, x,
> in little-endian order". Maybe some notation got confused here, what is this
> x-coordinate? The only x defined are on the Edwards curve while I think here
> the Montgomery curve is meant (the u-coordinate from section 7). This should
> be fixed or stated clearer to avoid confusion.

Good catch!

>
> Section 9:
> - It is not entirely clear to me why such low-level details are provided in
> this draft. Is it expected from the CFRG to deliver implementation details
> for algorithms or just a specification of curves plus related info (such as
> wire formats)? If we want to provide such low-level details then why not
> also state how to implement the field arithmetic?

Paul Lambert argued that we need implementation details, and I think he's right.

Field arithmetic is going to look different on 32 and 64 bit
platforms, and on some architectures might be very strange. Maybe it's
worth it: I don't have strong feelings one way or the other. I do
agree that side-channel free algorithms may be worth presenting,
particularly as the textbook algorithms are not.

> - Why is only the approach based on the Montgomery ladder stated in this
> section? There is nothing wrong with the Montgomery ladder but it is not the
> best solution for all reasonable definitions of best. The implementer has
> the choice, as stated before on this list, to compute DH on (for instance)
> the corresponding Edwards or Weierstrass curve. Currently it looks as if the
> CFRG recommends to use the Montgomery ladder for all scenarios;  something
> we know is suboptimal in terms of performance for higher security levels.
> Moreover, imagine the scenarios where people use (twisted) Edwards curves
> for signatures. Then implementing DH using the Montgomery ladder implies
> managing code for both the Montgomery and the twisted Edwards curve and,
> following the reasoning expressed by some people on this list, a larger code
> base implies more room for errors which implies a less secure approach.
> - This ladder implementation defines the usage of cswap ("due to the
> existence of side-channels in commodity hardware"). Although this adds some
> protection this algorithm is not secure in many realistic threat models
> (e.g. in hardware security). To me, it looks quite arbitrary to just protect
> against one type of attack and not against a whole range of other
> side-channel attacks. The threat model should depend on where the
> implementation will be used and therefore it is up to the implementer to
> make the appropriate design decisions and introduce the adequate
> countermeasures.

While the hardware threat model is "realistic", I don't see why we
should ignore settings in which cache-based and timing-based attacks
are of concern and DPA isn't, and I don't see why we should remove
information about protections that are adequate to this setting,
because they aren't for all settings. The setting this algorithm is
designed for is rather common. Implementors are free to ignore it if
they have the understanding and need for a more appropriate algorithm
for their setting.

Right now many implementations are not side channel secure at all. We
keep hearing about the implementor having to do this and that and the
other thing, and it's all their fault when it doesn't work. Well, has
anyone bothered to check if the implementor can do the job? I have,
and the results are pretty ugly. We should err on the side of
providing more assistance and guidance rather than chuck the plans
over the wall, and come back to investigate the damage. There are real
risks with using twisted Edwards form for DH that don't exist for
ECDSA style signatures, or signatures that send r and s instead of R
and s in Schnorr.

As for complexity, we are discussing whether or not an additional 20
lines of code (if that!) will make maintenance more difficult.
Certainly, more test vectors and the like will need to be added, but
that's true anyway for signatures and DH. I'm surprised that this
argument is getting made: OpenSSH has adopted Curve25519 and Ed25519,
without worrying about the increased code size. Likewise, implementors
of TLS libraries haven't raised this as a major concern. It's true
that x-coordinate only DH isn't compatible with some protocols like
HMQV, but these are rather uncommon.

Sincerely,
Watson Ladd

>
> Best regards,
>
> Joppe
>
> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Alexey Melnikov
> Sent: Monday, January 05, 2015 8:15 PM
> To: cfrg@irtf.org
> Subject: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
>
> This message starts 2 weeks adoption call (ending on January 19th 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an algorithm for
> safe curve parameter generation for a particular security level and also
> recommends a specific curve (2^255-19) for the 128-bit security level.
>
> Please reply to this message or directly to CFRG chairs, stating whether you
> support (or not) adoption of this document. If you do not support adoption
> of this document, please state whether you support adoption of any
> alternative document or whether you want a particular change be made to the
> document before adoption.
>
> Chairs ask not to reiterate previously expressed technical opinions or
> arguments. But clarifying questions on the adoption call are welcome.
>
> While making your decision, please keep in mind
>
> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>
> Alexey,
> On behalf of CFRG chairs.
>
> P.S. Editors of draft-black-rpgecc-01 and
> draft-turner-thecurve25519function-01 can become co-editors of the adopted
> document, if they choose to do so. Email chairs directly if you are willing
> or not willing to do so.
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>



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


From nobody Fri Jan  9 08:09:08 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E40C11A8951 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 08:09:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2mwpCe-Ja0GZ for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 08:09:05 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 E64051A872E for <cfrg@irtf.org>; Fri,  9 Jan 2015 08:09:04 -0800 (PST)
Received: from [10.20.30.90] (50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91]) (authenticated bits=0) by proper.com (8.15.1/8.14.7) with ESMTPSA id t09G93hK043619 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <cfrg@irtf.org>; Fri, 9 Jan 2015 09:09:04 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <54AFA179.4010403@cs.tcd.ie>
Date: Fri, 9 Jan 2015 08:09:02 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <9AF74D70-8742-4E03-AF88-CA5BA3EEF96D@vpnc.org>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org> <54AFA179.4010403@cs.tcd.ie>
To: "cfrg@irtf.org" <cfrg@irtf.org>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/AAW-VtQI-MinTLM0yBytg899lxs>
Subject: Re: [Cfrg] options (was: Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 16:09:06 -0000

+1 to everything Stephen said about "please don't give us options unless =
you explain them very clearly, and maybe not even then". IPsec =
implementers and, more importantly, users have suffered badly over the =
past two decades due to excessive optionality, particularly in the =
crypto. TLS has this problem too, of course.

--Paul Hoffman=


From nobody Fri Jan  9 10:25:59 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5875A1A8860 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 10:25:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yr0lFu3itF3n for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 10:25:55 -0800 (PST)
Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4321A1A882E for <cfrg@irtf.org>; Fri,  9 Jan 2015 10:25:55 -0800 (PST)
Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t09IPl1V015969; Fri, 9 Jan 2015 10:25:53 -0800
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0a-0016f401.pphosted.com with ESMTP id 1rs21r125w-3 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 09 Jan 2015 10:25:52 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([::1]) with mapi; Fri, 9 Jan 2015 10:24:36 -0800
From: Paul Lambert <paul@marvell.com>
To: Watson Ladd <watsonbladd@gmail.com>, Joppe Bos <joppe.bos@nxp.com>
Date: Fri, 9 Jan 2015 10:24:34 -0800
Thread-Topic: [Cfrg] Montgomery yet again (was Re: Adoption of draft-agl-cfrgcurve-00 as a RG document)
Thread-Index: AdAsOYUdzjLQK4SXTCqrcrCQu1lMrg==
Message-ID: <D0D55524.58071%paul@marvell.com>
References: <CACsn0cnqc-iHZuS7w6=G5zXM6u3MNWQNN7cgdBf5TkbPhB8LWA@mail.gmail.com>
In-Reply-To: <CACsn0cnqc-iHZuS7w6=G5zXM6u3MNWQNN7cgdBf5TkbPhB8LWA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
acceptlanguage: en-US
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-09_07:2015-01-09,2015-01-09,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501090157
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/UbOLG_OOYyyTmXbZRptb65bjC9A>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Montgomery yet again (was Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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: Fri, 09 Jan 2015 18:25:58 -0000

On 1/9/15, 7:37 AM, "Watson Ladd" <watsonbladd@gmail.com> wrote:

>(Replace this email with the discussions had in May on teleconference,
>and over this summer as shown in "Progress on curve recommendations
>for TLS WG",=20
>http://www.ietf.org/mail-archive/web/cfrg/current/msg04760.html
>and the ensuing discussion. The last note is from
>http://www.ietf.org/mail-archive/web/cfrg/current/msg04966.html. If
>you've read these, you don't need to read this email )
>
>On Fri, Jan 9, 2015 at 8:59 AM, Joppe Bos <joppe.bos@nxp.com> wrote:
>> Hi all,
>>
>> The current version of the draft contains methods for parameter
>>selection
>> (section 6) and a single recommended curve (section 7).
>> IMO the natural approach would be to first agree upon a parameter
>>selection
>> procedure (one draft) and subsequently, when a large portion of the
>> community agrees that this selection procedure is sound, use this
>>procedure
>> to select new curves (another draft). Currently, we are changing the
>> selection procedure to match an existing curve. If we want curve25519
>> because it is fast and widely deployed then we should state this
>>clearly and
>> refrain from modifying the selection procedures because this might have
>>a
>> negative impact on the potential selection of curves in the future.
>
>How does the existence of a selection procedure that gives Curve25519
>and particular choice of an isogeny equal "changing the selection
>procedure to match an existing curve?" In fact, there are good reasons
>to favor the particular twist security criteria and use the given
>isogeny in any case.
>
>>
>> Please find below some comments on the current version of the draft.
>>
>> Section 7:
>> - The specification of the parameters is done either in formula form
>>(p), in
>> decimal (d) or a formula + hexadecimal (order). Maybe use the same
>>notation
>> (e.g. either decimal or hexadecimal) everywhere to avoid confusion?
>> - For completeness it might be good to give the corresponding (short)
>> Weierstrass form of the curve(s).
>
>Not sure why we want forms that won't be used. I agree we should
>explain the isogeny in more detail.
>
>>
>> Section 8-10:
>> These sections are curve25519 specific, this should be stated much
>>clearer.
>>
>> Section 8:
>> As far as my understanding goes there was no consensus on the wire
>>format of
>> field elements.
>> This section states that "when transmitting field elements in the
>> Diffie-Hellman protocol below, they MUST be encoded as an array of
>>bytes, x,
>> in little-endian order". Maybe some notation got confused here, what is
>>this
>> x-coordinate? The only x defined are on the Edwards curve while I think
>>here
>> the Montgomery curve is meant (the u-coordinate from section 7). This
>>should
>> be fixed or stated clearer to avoid confusion.
>
>Good catch!
>
>>
>> Section 9:
>> - It is not entirely clear to me why such low-level details are
>>provided in
>> this draft. Is it expected from the CFRG to deliver implementation
>>details
>> for algorithms or just a specification of curves plus related info
>>(such as
>> wire formats)? If we want to provide such low-level details then why not
>> also state how to implement the field arithmetic?
>
>Paul Lambert argued that we need implementation details, and I think he's
>right.

Thanks - yes.  Section 9 is my favorite section :-)  I amy be an
extremist, but the closer algorithms are to real code the better =8A with
and emphasis on readable code over optimizations.

The CFRG should not fall into the trap of just defining the parameters
associated with a curve.  We are clearly now very focused on algorithms
using the curve parameters that have specific security properties.

As a systems designer, if we consider the object model, the methods
associated with the data are of critical importance.  The details of the
methods now must go beyond just interoperability, they must include the
detailed steps to describe both optimizations and the demonstration of
constant time performance.

One of the failing now with the NIST curves is their lack of well
documented constant time implementations.  Yes - I know technical papers
abound that describes approaches.  What=B9s published now as a =8Ccookbook
type=B9 algorithm is: https://www.nsa.gov/ia/_files/nist-routines.pdf
There=B9s also: http://www.rfc-base.org/txt/rfc-6090.txt

Paul

>
>Field arithmetic is going to look different on 32 and 64 bit
>platforms, and on some architectures might be very strange. Maybe it's
>worth it: I don't have strong feelings one way or the other. I do
>agree that side-channel free algorithms may be worth presenting,
>particularly as the textbook algorithms are not.
>
>> - Why is only the approach based on the Montgomery ladder stated in this
>> section? There is nothing wrong with the Montgomery ladder but it is
>>not the
>> best solution for all reasonable definitions of best. The implementer
>>has
>> the choice, as stated before on this list, to compute DH on (for
>>instance)
>> the corresponding Edwards or Weierstrass curve. Currently it looks as
>>if the
>> CFRG recommends to use the Montgomery ladder for all scenarios;
>>something
>> we know is suboptimal in terms of performance for higher security
>>levels.
>> Moreover, imagine the scenarios where people use (twisted) Edwards
>>curves
>> for signatures. Then implementing DH using the Montgomery ladder implies
>> managing code for both the Montgomery and the twisted Edwards curve and,
>> following the reasoning expressed by some people on this list, a larger
>>code
>> base implies more room for errors which implies a less secure approach.
>> - This ladder implementation defines the usage of cswap ("due to the
>> existence of side-channels in commodity hardware"). Although this adds
>>some
>> protection this algorithm is not secure in many realistic threat models
>> (e.g. in hardware security). To me, it looks quite arbitrary to just
>>protect
>> against one type of attack and not against a whole range of other
>> side-channel attacks. The threat model should depend on where the
>> implementation will be used and therefore it is up to the implementer to
>> make the appropriate design decisions and introduce the adequate
>> countermeasures.
>
>While the hardware threat model is "realistic", I don't see why we
>should ignore settings in which cache-based and timing-based attacks
>are of concern and DPA isn't, and I don't see why we should remove
>information about protections that are adequate to this setting,
>because they aren't for all settings. The setting this algorithm is
>designed for is rather common. Implementors are free to ignore it if
>they have the understanding and need for a more appropriate algorithm
>for their setting.
>
>Right now many implementations are not side channel secure at all. We
>keep hearing about the implementor having to do this and that and the
>other thing, and it's all their fault when it doesn't work. Well, has
>anyone bothered to check if the implementor can do the job? I have,
>and the results are pretty ugly. We should err on the side of
>providing more assistance and guidance rather than chuck the plans
>over the wall, and come back to investigate the damage. There are real
>risks with using twisted Edwards form for DH that don't exist for
>ECDSA style signatures, or signatures that send r and s instead of R
>and s in Schnorr.
>
>As for complexity, we are discussing whether or not an additional 20
>lines of code (if that!) will make maintenance more difficult.
>Certainly, more test vectors and the like will need to be added, but
>that's true anyway for signatures and DH. I'm surprised that this
>argument is getting made: OpenSSH has adopted Curve25519 and Ed25519,
>without worrying about the increased code size. Likewise, implementors
>of TLS libraries haven't raised this as a major concern. It's true
>that x-coordinate only DH isn't compatible with some protocols like
>HMQV, but these are rather uncommon.
>
>Sincerely,
>Watson Ladd
>
>>
>> Best regards,
>>
>> Joppe
>>
>> -----Original Message-----
>> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Alexey Melnikov
>> Sent: Monday, January 05, 2015 8:15 PM
>> To: cfrg@irtf.org
>> Subject: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
>>
>> This message starts 2 weeks adoption call (ending on January 19th 2015)
>>on:
>>
>> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>>
>> as the starting point for the CFRG document which describes an
>>algorithm for
>> safe curve parameter generation for a particular security level and also
>> recommends a specific curve (2^255-19) for the 128-bit security level.
>>
>> Please reply to this message or directly to CFRG chairs, stating
>>whether you
>> support (or not) adoption of this document. If you do not support
>>adoption
>> of this document, please state whether you support adoption of any
>> alternative document or whether you want a particular change be made to
>>the
>> document before adoption.
>>
>> Chairs ask not to reiterate previously expressed technical opinions or
>> arguments. But clarifying questions on the adoption call are welcome.
>>
>> While making your decision, please keep in mind
>>
>> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>>
>> Alexey,
>> On behalf of CFRG chairs.
>>
>> P.S. Editors of draft-black-rpgecc-01 and
>> draft-turner-thecurve25519function-01 can become co-editors of the
>>adopted
>> document, if they choose to do so. Email chairs directly if you are
>>willing
>> or not willing to do so.
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>>
>
>
>
>--=20
>"Those who would give up Essential Liberty to purchase a little
>Temporary Safety deserve neither  Liberty nor Safety."
>-- Benjamin Franklin
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg


From nobody Fri Jan  9 12:51:17 2015
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 52F521A1A2F for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 12:51:15 -0800 (PST)
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 IFYXrhqp_K4G for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 12:51:12 -0800 (PST)
Received: from resqmta-ch2-03v.sys.comcast.net (resqmta-ch2-03v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:35]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 845BC1A1A23 for <cfrg@irtf.org>; Fri,  9 Jan 2015 12:51:12 -0800 (PST)
Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-03v.sys.comcast.net with comcast id dwpl1p0062N9P4d01wrBk6; Fri, 09 Jan 2015 20:51:11 +0000
Received: from [IPv6:::1] ([71.202.164.227]) by resomta-ch2-13v.sys.comcast.net with comcast id dwrA1p0084uhcbK01wrA57; Fri, 09 Jan 2015 20:51:11 +0000
Message-ID: <54B03F3E.3020108@brainhub.org>
Date: Fri, 09 Jan 2015 12:51:10 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>,  Watson Ladd <watsonbladd@gmail.com>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org> <54AFA179.4010403@cs.tcd.ie>
In-Reply-To: <54AFA179.4010403@cs.tcd.ie>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1420836671; bh=SvzfKYKMN+8Idq9q+keL3HPS3BGClBaZq2mggutb1rA=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=uuSqJ28rB0VFfaSgIjm538GWgVBDkjqFUfMahXOD2ROPSdScOx305mxWs7DFkJR+2 all2e+CI1s1ckYHhCI2Aj6gBNOHFSrwoohC2kAM8UyMRKUbtaQlaC0vCNYpfyQObho dV8m5n/Trd4G9hlaI/v2VjcY59vj75Nc11ZKZRHlzsPfP4RZuzwZz4EsydMWvgX85s LokzQ+46bRxVmlrHbyLz+ALGKJ+HBR3IKJAANbKvUT8+4QRNw/58sObL1lKd8K/pX2 LQ4KND/7tR/H30MM3kq3u1MZElMrHap3avwRIVljXy7wSY0plRV0Z7T20BwfSsB/pJ IOhr3HFiD7bqw==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/DLwFRO-3w2RqvWl0dXzH0LuGAP4>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] options
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Jan 2015 20:51:15 -0000

Hello Stephen. I agree in general that fewer options is a good thing.

The current format on the wire:
   (x)
proposal:
   (x,y)

The second covers the first.

While the point representation negotiation defined in TLS works OK IMO, 
the de-facto standard on the Internet is to use uncompressed point. 
(x,y) above is a natural choice then. (If you like Montgomery ladder, 
just ignore the other 32 bytes representing the y; one shouldn't care 
about 32 bytes in a ~4Kb TLS handshake).

Assessing significance is subjective. Not sending y means square root 
calculation for some implementations, which has cost of recovering y at 
~10%, which narrows the choice of implementations (including the future 
ones). I would say that I care about 10% because Curve25519 Montgomery 
ladder is ~60% faster than P-256 on modern x86.

There is likely to be a greater performance benefit to send y at 
security level beyond P-256. A single format across security strengths 
and algorithm types means fewer options.

On 01/09/2015 01:38 AM, Stephen Farrell wrote:
>
> Hiya,
>
> Not on the crypto but on the options bit, and with an IETF
> participant hat firmly on my head...
>
> I would hope that CFRG will not include any optional things
> unless there is a significant benefit from doing so *and*
> very very clear guidance for non-security experts on when
> to pick which option.
>
> Having options that only offer a marginal benefit would I
> think be fairly clearly harmful. I'm happy that CFRG folks
> can and will evaluate the performance and side channel
> etc. aspects of that. If some help is needed with information
> as to whether there's a possible significant benefit for
> some particular (kind of) protocol, then I'm very happy
> to help find the right developers or IETF folk to ask.
> (I'm sure Alexey would do that anyway though, but I can
> help if needed.)
>
> If the result of this exercise does have some options, then
> it'll be very important that those come with very clear and
> easy to understand guidance as to when to choose which option.
> That guidance needs to be understandable by a non-security
> expert - there are many cases where non-security folks add
> security features to their protocols and by the time those
> do get reviewed by someone who'd understand ECC it can be
> too late to make changes to PDU formats, management models
> etc.
>
> If CFRG cannot include such explanatory text, then I really
> hope you just pick one of the optional things and drop the
> rest.
>
> The reasons to not like options here are that IETF WGs and
> then implementers will make different choices leading to
> a lack of interop and tooling difficulty.
>
> The interop issue would likely arise if the guidance on
> when to use which option wasn't sufficiently clear. Or if
> a protocol has use-cases that match the guidance for more
> than one option. In either case protocol designers will
> probably just include all the options and pass on the
> difficulty to implementers and deployments. And when those
> make different choices we'd see interop issues.
>
> The tooling issue would be arise if different protocols
> make different choices. In that case, we'd likely see tools
> developed that only support one option and that could delay
> deployment for protocols that need one of the other options.
>
> So pretty please, no options without significant benefits
> *and* utterly crisp and easily understood guidance as to
> when to use which option.
>
> Thanks,
> S.
>
> On 09/01/15 00:11, Andrey Jivsov wrote:
>> On 01/08/2015 01:51 PM, Watson Ladd wrote:
>>> Three points:
>>>
>>> 1: There are recurring security issues caused by not sending
>>> compressed points, as well as additional complexity
>>> 2: We're not talking about signatures in this draft.
>>> 3: Options are bad.
>>
>> Regarding options, this draft is a foundational document of a low-level
>> crypto primitive. Protocols above can still pick a single wire format.
>>
>> The spec should allow, for example, S/MIME to select (x) for space
>> saving, while TLS to select (x,y) for performance. (I am not making
>> these choices here).
>>
>> The entire document is an optional primitive. SuiteB and Brainpool
>> curves will be around for awhile.
>>
>> One might say that the proposed tweak retains a single format, which is
>> (x,y), with an available (internal) optimization to use x with a
>> Montgomery ladder.
>>
>>
>> Re: security issues, the easiest fix would be to add one paragraph to to
>> check that (x,y) is on the curve. The spec already deals with the
>> cofactor>1 in section 9.1.
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>>


From nobody Fri Jan  9 15:11:54 2015
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 30C481A1AAE for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 15:11:50 -0800 (PST)
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 Shp3jL0SisfT for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 15:11:48 -0800 (PST)
Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E03C91A1AEB for <cfrg@irtf.org>; Fri,  9 Jan 2015 15:10:58 -0800 (PST)
Received: by mail-ob0-f170.google.com with SMTP id wp18so15478037obc.1 for <cfrg@irtf.org>; Fri, 09 Jan 2015 15:10:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:from:date:message-id:subject:to:content-type; bh=9fflF3ncDmukwBqcqo1YFiMXxrgNPl8Vc48PyMXq+9g=; b=Dl4DdWEV3NsDGet/mhg8CRkfsEwbTupfxlUCPqEc7ScFtkw9dxbOtAkYnKzE/2Qc19 TFrFCdmKo7HPMxIKNtbAEG/2rMP0xMk02pWL7nOWjKth541Zjw/Ihfb74oUSele+H12Z GC/qW3lmOBMunwFW3lHXAD/yP6VjWSEYCGBKZGr6VH9/EHVQgK9BoOtFnrdVEghXXL5A 3Q7GpqshccLC7fyk8k+dzaIhhPXLp5yjk7wKrbBE2RRmKoD6QFguN9Y/iXfPDPAEIsj0 Bxx9fIErqpKnErhN0FZcLag/Xxii8BMuFWqP4D2WphexBrc8/p2oNj2MT2Z0yCPXONCK mbzQ==
X-Received: by 10.202.230.145 with SMTP id d139mr10435305oih.8.1420845058032;  Fri, 09 Jan 2015 15:10:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.227.225 with HTTP; Fri, 9 Jan 2015 15:10:37 -0800 (PST)
From: Tony Arcieri <bascule@gmail.com>
Date: Fri, 9 Jan 2015 15:10:37 -0800
Message-ID: <CAHOTMV+xQV6uqp-tB1Hs8xry5L+od=UW7RgtRYY-Lte4SGwxHA@mail.gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=001a1141745af759b7050c40443b
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/3Tf6s8h1eAnxb1dccfzDqchOOf4>
Subject: [Cfrg] Is draft-agl-cfrgcurve-00 incompatible with Ed25519?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Jan 2015 23:11:50 -0000

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

It would be good to get a definitive answer on this question before
draft-agl-cfrgcurve-00 adopted (which I'm guessing is likely to happen)

For clarity: I like draft-agl-cfrgcurve-00 and I hope it does get adopted.
I would simply like the CFRG to have the option to adopt Ed25519 in the
future. I am not necessarily saying the CFRG *should* adopt Ed25519
wholesale. However I would like for the CFRG to specifically address this
question in advance in anticipation of it coming up in the future.

If Ed25519 is incompatible with draft-agl-cfrgcurve-00, I would suggest
that drafg-agl-cfrgcurve-00 be specifically amended to include the
possibility of using Ed25519 for signatures in the future.

Ed25519 is already being deployed in SSH and OpenPGP contexts, so I hope
the CFRG would not accidentally rule it out in the name of "compromise".
Having similar-but-incompatible Edwards curves used in different protocol
contexts sounds like a recipe for disaster.

--
Tony Arcieri

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

<div dir=3D"ltr">It would be good to get a definitive answer on this questi=
on before draft-agl-cfrgcurve-00 adopted (which I&#39;m guessing is likely =
to happen)<div><br></div><div>For clarity: I like=C2=A0draft-agl-cfrgcurve-=
00 and I hope it does get adopted. I would simply like the CFRG to have the=
 option to adopt Ed25519 in the future. I am not necessarily saying the CFR=
G *should* adopt Ed25519 wholesale. However I would like for the CFRG to sp=
ecifically address this question in advance in anticipation of it coming up=
 in the future.<div><br></div><div>If Ed25519 is incompatible with draft-ag=
l-cfrgcurve-00, I would suggest that drafg-agl-cfrgcurve-00 be specifically=
 amended to include the possibility of using Ed25519 for signatures in the =
future.<br clear=3D"all"><div><br></div><div>Ed25519 is already being deplo=
yed in SSH and OpenPGP contexts, so I hope the CFRG would not accidentally =
rule it out in the name of &quot;compromise&quot;. Having similar-but-incom=
patible Edwards curves used in different protocol contexts sounds like a re=
cipe for disaster.</div><div><br></div>--<br><div class=3D"gmail_signature"=
>Tony Arcieri<br></div>
</div></div></div>

--001a1141745af759b7050c40443b--


From nobody Fri Jan  9 15:15:45 2015
Return-Path: <alangley@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 BFA8E1A1AF5 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 15:15:44 -0800 (PST)
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 a62IwNYupMVH for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 15:15:42 -0800 (PST)
Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2D9C41A1ACE for <cfrg@irtf.org>; Fri,  9 Jan 2015 15:15:42 -0800 (PST)
Received: by mail-la0-f45.google.com with SMTP id gq15so16975408lab.4 for <cfrg@irtf.org>; Fri, 09 Jan 2015 15:15:40 -0800 (PST)
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=gtxYa7Pp9sYqgdLxVaHTYzDgxwCJmPFDoHTHLwpgTZ4=; b=oPT0v9FC58Q1mWIVqm4PKdOIMFF442EQEewRfe8uTekgKc4C3VEm1JroUZ7RZ/aGzy jMuaD4xUP0LWKmbcSblSixR8aK+HIMkqpSPW5vpaZGymtEB8Da8yVLDKGdCZqY/eEU2P SU2CD4F1j4XJ2gIeHXSyz9fRf/9aKO9amquN6VPGS8HTHrUadRjkHdBS8VEZzQsO1wae sAmnIpfIBhILfSOsAgt+jMNWeWDp/Q88iaAsEDk4qe7jJXYAdMj+JHeFcsCxq20TtVPh sem9uka70qBXvXpXhaaca8AvgDFdg25eP12a2UzFR7ETrTg/XluOwKni+bjldJ1k5shr 3GYQ==
MIME-Version: 1.0
X-Received: by 10.153.5.1 with SMTP id ci1mr23735266lad.67.1420845340506; Fri, 09 Jan 2015 15:15:40 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Fri, 9 Jan 2015 15:15:40 -0800 (PST)
In-Reply-To: <CAHOTMV+xQV6uqp-tB1Hs8xry5L+od=UW7RgtRYY-Lte4SGwxHA@mail.gmail.com>
References: <CAHOTMV+xQV6uqp-tB1Hs8xry5L+od=UW7RgtRYY-Lte4SGwxHA@mail.gmail.com>
Date: Fri, 9 Jan 2015 15:15:40 -0800
X-Google-Sender-Auth: _qmEyiKu2Q04CFA-0P5xLw8vmqI
Message-ID: <CAMfhd9U4DkYB-BmEo6xz6SZkqnR=_MCiBTrJhXEaoGNxNdYGag@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Tony Arcieri <bascule@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/_fbfKSNHkRtQQMNfTKAxXZMyOng>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Is draft-agl-cfrgcurve-00 incompatible with Ed25519?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Jan 2015 23:15:45 -0000

On Fri, Jan 9, 2015 at 3:10 PM, Tony Arcieri <bascule@gmail.com> wrote:
> It would be good to get a definitive answer on this question before
> draft-agl-cfrgcurve-00 adopted (which I'm guessing is likely to happen)

The Edwards curve recommended in draft-agl-cfrgcurve-00 is the curve
behind Ed25519. The draft doesn't say anything about EdDSA, or even
signatures, but I don't think there's an incompatibility=E2=80=94just an
incompleteness.


Cheers

AGL

--=20
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Fri Jan  9 15:17:31 2015
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 9C7C21A1A3B for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 15:17:29 -0800 (PST)
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 kwm8skBa5lo0 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 15:17:28 -0800 (PST)
Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9EE341A00F5 for <cfrg@irtf.org>; Fri,  9 Jan 2015 15:17:27 -0800 (PST)
Received: by mail-oi0-f51.google.com with SMTP id h136so14031596oig.10 for <cfrg@irtf.org>; Fri, 09 Jan 2015 15:17:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Dk0SwjcOe76Nq7K8W8Sb0bwzNSC3aqIvswiBWf9N3jQ=; b=yLlLWStdY1Ah4nqBSC9z0GsftzqwkUB3cCA8ei5Sr7hI10rjZdbZ3epoFcXLAZSdrh EmcPHc17jTx0SV8ry4zFdzNtcCVCjuIt4AghiGmlSL+A5eZUJpkid+sNpcPKKvje3nlW NxykNQXtZ/mYC30VyWCCXebYp9qIKusXYRtTqNgqLOqJ8KPg00GGESJlHTzKMS8WTB3X aFLhkmRY2w6yQFy1HokARDzj/7y2S+oGbb9IzJBp85TZZ10AYOzmNIxGxPCkSF6dUMpi wdQBiMqJLhwa7qGazF/suqx+4CYSFPHUZKRxO9kJhEI5Wy23BD857RuKhjnuU/4AMIwW vhRw==
X-Received: by 10.182.148.229 with SMTP id tv5mr10859348obb.41.1420845447027;  Fri, 09 Jan 2015 15:17:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.227.225 with HTTP; Fri, 9 Jan 2015 15:17:06 -0800 (PST)
In-Reply-To: <CAMfhd9U4DkYB-BmEo6xz6SZkqnR=_MCiBTrJhXEaoGNxNdYGag@mail.gmail.com>
References: <CAHOTMV+xQV6uqp-tB1Hs8xry5L+od=UW7RgtRYY-Lte4SGwxHA@mail.gmail.com> <CAMfhd9U4DkYB-BmEo6xz6SZkqnR=_MCiBTrJhXEaoGNxNdYGag@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Fri, 9 Jan 2015 15:17:06 -0800
Message-ID: <CAHOTMVKcZ5rK8RzLwZ7+5xC4N39npa=Cad81pHzKBOxytiLK1w@mail.gmail.com>
To: Adam Langley <agl@imperialviolet.org>
Content-Type: multipart/alternative; boundary=089e013d0a2c26a3ac050c405cce
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/j7Br6HJO-QTMwygAqGW_yIc8kJQ>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Is draft-agl-cfrgcurve-00 incompatible with Ed25519?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 09 Jan 2015 23:17:29 -0000

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

On Fri, Jan 9, 2015 at 3:15 PM, Adam Langley <agl@imperialviolet.org> wrote=
:

> The Edwards curve recommended in draft-agl-cfrgcurve-00 is the curve
> behind Ed25519. The draft doesn't say anything about EdDSA, or even
> signatures, but I don't think there's an incompatibility=E2=80=94just an
> incompleteness.


EdDSA is a separate can of worms. In the worst case, if Ed25519 public keys
are used, then ECDSA can be used by doing point conversion from Edwards to
Weierstrass. Or perhaps "FrankenECDSA"... but that would be
less-than-ideam, IMO.

I am more specifically concerned about the curve itself, not the signature
algorithm.

--=20
Tony Arcieri

--089e013d0a2c26a3ac050c405cce
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 F=
ri, Jan 9, 2015 at 3:15 PM, Adam Langley <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:agl@imperialviolet.org" target=3D"_blank">agl@imperialviolet.org</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The Edwards curve recom=
mended in draft-agl-cfrgcurve-00 is the curve<br>
behind Ed25519. The draft doesn&#39;t say anything about EdDSA, or even<br>
signatures, but I don&#39;t think there&#39;s an incompatibility=E2=80=94ju=
st an<br>
incompleteness.</blockquote><div><br></div><div>EdDSA is a separate can of =
worms. In the worst case, if Ed25519 public keys are used, then ECDSA can b=
e used by doing point conversion from Edwards to Weierstrass. Or perhaps &q=
uot;FrankenECDSA&quot;... but that would be less-than-ideam, IMO.</div><div=
><br></div><div>I am more specifically concerned about the curve itself, no=
t the signature algorithm.=C2=A0</div></div><div><br></div>-- <br><div clas=
s=3D"gmail_signature">Tony Arcieri<br></div>
</div></div>

--089e013d0a2c26a3ac050c405cce--


From nobody Fri Jan  9 23:29:39 2015
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 4B6BF1A002A for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 23:29:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.6
X-Spam-Level: 
X-Spam-Status: No, score=-0.6 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 eU3cFuqPhBy3 for <cfrg@ietfa.amsl.com>; Fri,  9 Jan 2015 23:29:37 -0800 (PST)
Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 01A001A802E for <cfrg@irtf.org>; Fri,  9 Jan 2015 23:29:37 -0800 (PST)
Received: by mail-ig0-f177.google.com with SMTP id z20so5213146igj.4 for <cfrg@irtf.org>; Fri, 09 Jan 2015 23:29:36 -0800 (PST)
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=QBUTXYeaWfkkIU9hQ+/AoSbprtTicBY+pkKFjUEUBkc=; b=Mhdp/Ad4Ok4uA9HFfXT/hEa4k8HAnmoX7Gphfjlfh3x7crxo7kGXExo3ZNbO05fJwB tG7oMoRnIg6sktNuZIHWRzjNJymZl9ah2lWMBfu0kiC5CE6B892H/nTgIPKeqtXPhkdg mO68qgMkBTvw/HOW/TNW5OYGBZRbnDtkkRsg4Sl4YpYSrPCOB4rTLTwCvh/PKMVZgb26 /D+VGJSddkbSElUJGJTfgokIwTi30cZDXKsJj9CwiYDCw5kpS5tc4pP93ZHySFh+F5BX cYh2hW7AJsE5REWwvF3dlGwerHKbqEyBkNXJRuU49TFcxbpNeL/HU6hvndV16hyfC2xn SF7w==
X-Received: by 10.42.12.147 with SMTP id y19mr16307597icy.80.1420874976135; Fri, 09 Jan 2015 23:29:36 -0800 (PST)
MIME-Version: 1.0
Received: by 10.107.132.211 with HTTP; Fri, 9 Jan 2015 23:29:15 -0800 (PST)
In-Reply-To: <CAA7UWsVi+TszTYxKd4KSGYNryV24Bq+0FpxN2GO5LWA5khdqjg@mail.gmail.com>
References: <CAA7UWsVi+TszTYxKd4KSGYNryV24Bq+0FpxN2GO5LWA5khdqjg@mail.gmail.com>
From: David Leon Gil <coruus@gmail.com>
Date: Fri, 9 Jan 2015 23:29:15 -0800
Message-ID: <CAA7UWsWm9iPyFuWeahXsSQfbYY4Ahb7j_k4BveuRxidNGbf2sA@mail.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/5lZ74cJr0O5mUoKto-MhNy7Pxa0>
Subject: Re: [Cfrg] How rigid is rigid enough?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 07:29:38 -0000

On Wed, Jan 7, 2015 at 10:49 PM, David Leon Gil <coruus@gmail.com> wrote:
>     2^389 - 21    == 3 mod 4   C389 (wl)

And, to correct the record: 2^389 - 21 should be attributed to Watson
Ladd. Robert Ransom has been perhaps its most vocal critic. (As he has
noted, it would be painful to implement.)


From nobody Sat Jan 10 04:35:04 2015
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 86E9A1A875B for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 04:35:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, LOTS_OF_MONEY=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id evJGMsKmJtck for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 04:34:57 -0800 (PST)
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 954131A1EED for <cfrg@irtf.org>; Sat, 10 Jan 2015 04:34:57 -0800 (PST)
Message-ID: <54B11C8E.8070001@akr.io>
Date: Sat, 10 Jan 2015 12:35:26 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org> <54AFA179.4010403@cs.tcd.ie> <54B03F3E.3020108@brainhub.org>
In-Reply-To: <54B03F3E.3020108@brainhub.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/v2vEiq0KTfzAiM526-B_FQEdlVg>
Subject: Re: [Cfrg] draft-agl-cfrgcurve-00 point format (was: options)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 12:35:00 -0000

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

On 09/01/2015 20:51, Andrey Jivsov wrote:

> Hello Stephen. I agree in general that fewer options is a good 
> thing.

Agreed there too.

> A single format across security strengths and algorithm types means
> fewer options.

Now, the upstream WG asking for these curves has actually already
covered this point (if you'll excuse the pun!).

The TLS WG discussed point compression specificallyΒΉ and thought there
was value for TLS 1.3.

In HawaiiΒ² they decided to use uncompressed points for existing NIST &
Brainpool curves (due to the inertia you noted, and the now-expired
patent, essentially nobody used compressed points with the NIST &
Brainpool curves) - but to allow new curves (i.e. us) to define their
own wire format individually, which is what is done in the draft, and
that this could be compressed. (X25519, as Curve25519, was in fact
specifically raised within that discussionΒ³.) Soβ¦

> β¦the point representation negotiation defined in TLSβ¦

β¦is being removed from TLS 1.3. And we can do pretty much what we want.

> (If you like Montgomery ladder, just ignore the other 32 bytes 
> representing the y; one shouldn't care about 32 bytes in a ~4Kb TLS
> handshake).

"Ignore it if you like" is just an option (to ignore it) in a fancy hat.
Drawback: fingerprinting. An attacker can tell which ignore y and which
don't (and therefore which might have omitted or screwed up a vital
validation step).

I also note patent US6563928 appears (to me, and others) to claim on
point validation to avoid small-subgroup attacksβ΄ in some contexts. Dan
Brown disclosed this patent previously on the list, querying whether it
may impact twist securityβ΅. It expires (I believe) mid-May 2015 - and I
(again) do not specifically address its applicability or validity here,
merely note the concerns.

djb, in Curve25519, specifically used the point format from Miller
[1986], and deliberately doesn't compute y. Soβ¦

> β¦the de-facto standard on the Internet is to use uncompressed 
> point.

β¦the de-facto standard for _this curve_ is to use _compressed_ point, as
in the draft. It:

β’ is simpler as it doesn't need a (critical) point validation check;
β’ seems to have clearer IPR, because that check may have patent claims;
β’ is slightly smaller; and,
β’ is already supported by all the widely-deployed code for this curve.

No sale on a change there, as far as I'm concerned: I don't see the
significant benefit.

> I would say that I care about 10% because Curve25519 Montgomery 
> ladder is ~60% faster than P-256 on modern x86.

Um, perhaps I just haven't had enough tea this morning to follow what
you mean here?

I'm also not sure the performance gap is that wide anymore, see Intel's
nistz256 contribution to OpenSSL.

___

Footnotes (for easy reference):

[1] <https://www.ietf.org/mail-archive/web/tls/current/msg14087.html>

[2]
<https://www.ietf.org/proceedings/interim/2014/11/09/tls/minutes/minutes-interim-2014-tls-4>

[3] <https://www.ietf.org/mail-archive/web/tls/current/msg14088.html>

[4] US6563928, Menezes-Qu-Vanstone, Certicom
<https://www.google.com/patents/US6563928>

[5] <https://www.ietf.org/mail-archive/web/cfrg/current/msg05588.html>
although you may find it easier to read
<https://www.ietf.org/mail-archive/web/cfrg/current/msg05589.html> and
down. Short answer: no.

[6] <https://www.ietf.org/mail-archive/web/cfrg/current/msg04766.html>

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

iQIcBAEBCgAGBQJUsRyOAAoJEOyEjtkWi2t6FfAQAL5R20rwtVXLQMhUfAXLp0TQ
TJjTMig2LkQyyhYCEXO9meeVKLINuWT9EVaXy9fdSP6mAQPB8zOfWosqQiwF5StF
3ER4B20BXc1qNDOfl28lpx8MBdDCoBDyfhtoyiRswsXijBhqZhIEXyqKraIjLlCU
+G2+FUXPhGf66Uzjk95+kbZrTonL/ZDK7kDPxYQqsXSzQoOW/Yduj6bk7aOBnLM+
7VW1XWwOQhcgMESFOuDDtR+nEaGkhSdFRaP18txAUPNdOs99Ju/2LDXTiz5zi10S
2Ou/dY6CkX/pXii6zxl+t34rzEAMOnCtfBr/wu76pZLkxoZ2IJmEXdEFD6o9CBRV
PgOdTdvCT4erKba8xca0Im5x4UaWRgj9br6zowNKmBhsYdS45MKe4+aBouoTaUVl
ShQpYCLKn3jnvteQd3IgM7mtFDHSype3lIbyIdV9S6B7KQYgBBD9I5DtaH9NKbce
OyswkQOkI9weJnIIEqSNe1Det+XKEDKx+186WaKcT2n1SBgOjIyvaGU8ZxINvG31
jW+8LTKDbPqARcLmToUrdoBXwKuEIrjI0IWjtuKkYy/1RCajA7Lbwt6fHopWceIx
/NicdUBVY7wO4RWygqL7HecfXFDY5nG03Xm4LPRqJsTNqqSraJ6AgtlLsrMT0zYw
B8EEe2uCAW9CfDmQ5VIX
=i8dO
-----END PGP SIGNATURE-----


From nobody Sat Jan 10 11:15:52 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45DD11A6FFC for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 11:15:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.232
X-Spam-Level: 
X-Spam-Status: No, score=0.232 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, IP_NOT_FRIENDLY=0.334, J_CHICKENPOX_22=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 0WfK7nHlAgJe for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 11:15:47 -0800 (PST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CFF151A00F8 for <cfrg@irtf.org>; Sat, 10 Jan 2015 11:15:47 -0800 (PST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t0AJFdZ9013978; Sat, 10 Jan 2015 11:15:39 -0800
Received: from sc-owa03.marvell.com ([199.233.58.149]) by mx0b-0016f401.pphosted.com with ESMTP id 1rsdac0974-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 10 Jan 2015 11:15:39 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA03.marvell.com ([::1]) with mapi; Sat, 10 Jan 2015 11:15:38 -0800
From: Paul Lambert <paul@marvell.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>, "agl@google.com" <agl@google.com>, "mpg@elzevir.fr" <mpg@elzevir.fr>, "simon@josefsson.org" <simon@josefsson.org>
Date: Sat, 10 Jan 2015 11:15:36 -0800
Thread-Topic: A2 versus A^2  and BB verus AA
Thread-Index: AdAtCdCSN7hHq9cPQT6BDynBrcNckQ==
Message-ID: <D0D6B088.5815C%paul@marvell.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
acceptlanguage: en-US
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-10_02:2015-01-10,2015-01-10,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501100204
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/RYtOJDmPfZ7Mu-p_jKiGjr2T4eQ>
Subject: [Cfrg] A2 versus A^2  and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 19:15:49 -0000

In reviewing and trying to implement curve25519 from:
   draft-josefsson-tls-curve25519-06,
   draft-agl-cfrgcurve-00
   and http://www.hyperelliptic.org/EFD/g1p/auto-montgom-xz.html

I=B9ve noticed a possible error in draft-josefsson-tls-curve25519-06:

A  =3D X2 + Z2
               AA =3D A2           <=8B should be A^2
               B  =3D X2 - Z2
               BB =3D B2           <=8B=8B should be B^2
               E  =3D AA - BB
               C  =3D X3 + Z3
               D  =3D X3 - Z3
               DA =3D D * A
               CB =3D C * B
               X5 =3D (DA + CB)^2
               Z5 =3D X1 * (DA - CB)^2
               X4 =3D AA * BB
               Z4 =3D E * (BB + a24 * E)    <=8B=8B=8B=8B=8B correctly uses=
 =8CBB=B9


This looks like a cut-and-paste error.  The =8C^2=B9 is a superscript in th=
e
EFD definitions.

In draft-agl-cfrgcurve-00 it appears that the =8CAA=B9 term  is not consist=
ent
with the josefsson text or the EFD that both use BB

A =3D x_2 + z_2
    AA =3D A^2
    B =3D x_2 - z_2
    BB =3D B^2
    E =3D AA - BB
    C =3D x_3 + z_3
    D =3D x_3 - z_3
    DA =3D D * A
    CB =3D C * B
    x_3 =3D (DA + CB)^2
    z_3 =3D x_1 * (DA - CB)^2
    x_2 =3D AA * BB
    z_2 =3D E * (AA + a24 * E)    <=8B=8B=8B=8B=8B=8B  versus E*(BB+a24*E)


Is this a typo? =8A here=B9s the EFD version for reference

A =3D X2+Z2
      AA =3D A^2
      B =3D X2-Z2
      BB =3D B^2
      E =3D AA-BB
      C =3D X3+Z3
      D =3D X3-Z3
      DA =3D D*A
      CB =3D C*B
      X5 =3D (DA+CB)^2
      Z5 =3D X1*(DA-CB)^2
      X4 =3D AA*BB
      Z4 =3D E*(BB+a24*E)             <=8B=8B=8B=8B=8B  also uses =8CBB'


Hummm =8A maybe it works anyway since AA and BB both have z2^2 term =8A.
 Z4 =3D 4*x2*z2*(x2^2+A*x2*z2+z2^2))

Ether way it would be nice to match the EFD and the TLS definition



Paul



From nobody Sat Jan 10 11:29:31 2015
Return-Path: <alangley@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 9A7931A0233 for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 11:29:29 -0800 (PST)
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 HJf30XdZItfu for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 11:29:27 -0800 (PST)
Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8037C1A700D for <cfrg@irtf.org>; Sat, 10 Jan 2015 11:29:27 -0800 (PST)
Received: by mail-la0-f53.google.com with SMTP id gm9so19505335lab.12 for <cfrg@irtf.org>; Sat, 10 Jan 2015 11:29:25 -0800 (PST)
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=qj4uLDRUfJVRluUUSdaDeyOHQFPFYJfrBWsX2nBSYrk=; b=Kfpll3cZXaefpsdOwLYvcBB/h0wRvlspSELPJzoC98zZGmnmqtRPcFJMtIeBQMbfyG WpbdBFNJmWrHZk9W7M8ufTOdVHLnhIwZFLUlHGpJiXy/1yh+rDTLkWrqxxvtqNv1i5QO ipjYexlvCGADWrFPL9cd/5nzc6qPb6XepvyYfj5oWaMJcLNLcm7sCAmq6KmNuJRO7e42 gi2VYyYDEmwF/TvjVrcoKWQL2OCAs1CuW7BgS2+zYRfo5bYUKdtVFg1cF+85lhgN1cka 9Vw+4u2cxk4m0VXJet/eMu7GWzNCAglz1AmAndlLldzGinJjG3oDCPN1lININN4lL68x P4xA==
MIME-Version: 1.0
X-Received: by 10.112.163.167 with SMTP id yj7mr28569727lbb.96.1420918165765;  Sat, 10 Jan 2015 11:29:25 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Sat, 10 Jan 2015 11:29:25 -0800 (PST)
In-Reply-To: <D0D6B088.5815C%paul@marvell.com>
References: <D0D6B088.5815C%paul@marvell.com>
Date: Sat, 10 Jan 2015 11:29:25 -0800
X-Google-Sender-Auth: XWDcf3FXJSqAdVI9V8pdzEPS0Fs
Message-ID: <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Paul Lambert <paul@marvell.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/sGP-O88sg0VZjufDwsz54rRGUAU>
Cc: "simon@josefsson.org" <simon@josefsson.org>, "mpg@elzevir.fr" <mpg@elzevir.fr>, "cfrg@irtf.org" <cfrg@irtf.org>, "agl@google.com" <agl@google.com>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 19:29:29 -0000

On Sat, Jan 10, 2015 at 11:15 AM, Paul Lambert <paul@marvell.com> wrote:
> In draft-agl-cfrgcurve-00 it appears that the =C5=92AA=C2=B9 term  is not=
 consistent
> with the josefsson text or the EFD that both use BB

Whether it works out or not, it's good to match EFD. I've updated the
draft in GitHub to match, thanks!


Cheers

AGL

--=20
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Sat Jan 10 12:39:18 2015
Return-Path: <sneves@dei.uc.pt>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3165C1A8837 for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 12:39:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.312
X-Spam-Level: 
X-Spam-Status: No, score=-2.312 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3auY5vW3aggF for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 12:39:08 -0800 (PST)
Received: from smtp2.dei.uc.pt (smtp2.dei.uc.pt [193.137.203.234]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45BFD1A8828 for <cfrg@irtf.org>; Sat, 10 Jan 2015 12:39:08 -0800 (PST)
Received: from [192.168.1.64] (bl6-191-211.dsl.telepac.pt [82.155.191.211]) (authenticated bits=0) by smtp2.dei.uc.pt (8.14.4/8.14.4) with ESMTP id t0AKcSmU014539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Jan 2015 20:38:34 GMT
Message-ID: <54B18DC4.3000906@dei.uc.pt>
Date: Sat, 10 Jan 2015 20:38:28 +0000
From: Samuel Neves <sneves@dei.uc.pt>
User-Agent: 
MIME-Version: 1.0
To: Adam Langley <agl@imperialviolet.org>
References: <D0D6B088.5815C%paul@marvell.com> <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com>
In-Reply-To: <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp2.dei.uc.pt [193.137.203.234]); Sat, 10 Jan 2015 20:38:34 +0000 (WET)
X-FCTUC-DEI-SIC-MailScanner-Information: Please contact helpdesk@dei.uc.pt for more information
X-FCTUC-DEI-SIC-MailScanner-ID: t0AKcSmU014539
X-FCTUC-DEI-SIC-MailScanner: Found to be clean
X-FCTUC-DEI-SIC-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-60.25, required 3.252, autolearn=not spam, ALL_TRUSTED -10.00, BAYES_00 -0.25, L_SMTP_AUTH -50.00)
X-FCTUC-DEI-SIC-MailScanner-From: sneves@dei.uc.pt
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/wDvgV7YAhQf4wU7boDCjvGHQaT8>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 20:39:16 -0000

On 01/10/2015 07:29 PM, Adam Langley wrote:
> On Sat, Jan 10, 2015 at 11:15 AM, Paul Lambert <paul@marvell.com> wrote:
>> In draft-agl-cfrgcurve-00 it appears that the ΕAAΒΉ term  is not consistent
>> with the josefsson text or the EFD that both use BB
> Whether it works out or not, it's good to match EFD. I've updated the
> draft in GitHub to match, thanks!

It is not a typo: the formulas present in the draft are taken from Appendix B of the Curve25519 paper, where as the
formulas in EFD are taken from the 1987 Montgomery paper.

These formulas also differ in the particular a24 constant used: Curve25519 uses (A - 2)/4 = 121665, whereas Montgomery
uses (A + 2)/4 = 121666. Your fix is missing this second adjustment, if it is to match Montgomery's formulas.

Best regards,
Samuel Neves


From nobody Sat Jan 10 12:42:29 2015
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 4571D1A8860 for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 12:42:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.195
X-Spam-Level: 
X-Spam-Status: No, score=0.195 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545] 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 l-62JvHLYIvl for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 12:42:27 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id 780B71A87C9 for <cfrg@irtf.org>; Sat, 10 Jan 2015 12:42:26 -0800 (PST)
Received: (qmail 3198 invoked from network); 10 Jan 2015 20:42:45 -0000
Received: from pcdhz005.win.tue.nl (HELO hyperelliptic.org) (131.155.71.33) by calvin.win.tue.nl with SMTP; 10 Jan 2015 20:42:45 -0000
Received: (qmail 18291 invoked by uid 1000); 10 Jan 2015 20:42:27 -0000
Date: Sat, 10 Jan 2015 21:42:27 +0100
From: Tanja Lange <tanja@hyperelliptic.org>
To: Adam Langley <agl@imperialviolet.org>
Message-ID: <20150110204227.GF11760@cph.win.tue.nl>
References: <D0D6B088.5815C%paul@marvell.com> <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/OFiigW6ji4jrnNayCVrL7HF5_R4>
Cc: "simon@josefsson.org" <simon@josefsson.org>, "mpg@elzevir.fr" <mpg@elzevir.fr>, "cfrg@irtf.org" <cfrg@irtf.org>, "agl@google.com" <agl@google.com>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 20:42:28 -0000

> Whether it works out or not, it's good to match EFD. I've updated the
> draft in GitHub to match, thanks!
> 
This is not a typo, it is using a different (better) definition
of the curve constant which is what the implementations use.

	Tanja


From nobody Sat Jan 10 13:09:58 2015
Return-Path: <alangley@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 4DDAD1A87DF for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 13:09:56 -0800 (PST)
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 tM5yIJGy4Luy for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 13:09:54 -0800 (PST)
Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74FA31A0406 for <cfrg@irtf.org>; Sat, 10 Jan 2015 13:09:54 -0800 (PST)
Received: by mail-la0-f53.google.com with SMTP id gm9so19667645lab.12 for <cfrg@irtf.org>; Sat, 10 Jan 2015 13:09:52 -0800 (PST)
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=q1ceCifw9Qo6hkF8nRygB8GyY4MzLlNrZUTCmKC4xA4=; b=MH1letsxPmCXRNAvrORsHj2vEMMi+HrnBHuAhmIdHITVcIRo9K50ybOFKXHmoTzwRz QIVgibCdFFQUq/KNUZaOsjJKPe844CjmDDeWHDoO9kNCAchKRW5+EfGM04U2OS/w9nmC rLMm5a16vZW+Bes596AFnk+BzxrFrO3AvmaiLz/5+yCTcccQtW/pbAJB2w7fGuQVKXox Cmy+X88YIto92Xylkn4SLjfVAgwbcQE1hQEwfBOPwxEes9Zu6gaPQqU7vZ3Rl55REn0q gb9EiZB6kdM/Ek9OL5D/Rl7Ccv1mE4VjCpc3X3l7TysqWmwKJMMdJ2KfdNHjeKo5MBLA oIzA==
MIME-Version: 1.0
X-Received: by 10.112.62.194 with SMTP id a2mr28768789lbs.73.1420924192855; Sat, 10 Jan 2015 13:09:52 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Sat, 10 Jan 2015 13:09:52 -0800 (PST)
In-Reply-To: <20150110204227.GF11760@cph.win.tue.nl>
References: <D0D6B088.5815C%paul@marvell.com> <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com> <20150110204227.GF11760@cph.win.tue.nl>
Date: Sat, 10 Jan 2015 13:09:52 -0800
X-Google-Sender-Auth: ZNMX81LiLsmwxx4z1Icx1UEGoQs
Message-ID: <CAMfhd9X7BLhL=n2LtMkAKHqbWLwDZcuneGuM1Hd_r2bh1zJaRA@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Tanja Lange <tanja@hyperelliptic.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/YO20KLAqpidlU86NBqqgQzBhCxs>
Cc: "simon@josefsson.org" <simon@josefsson.org>, "mpg@elzevir.fr" <mpg@elzevir.fr>, "cfrg@irtf.org" <cfrg@irtf.org>, "agl@google.com" <agl@google.com>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 21:09:56 -0000

On Sat, Jan 10, 2015 at 12:42 PM, Tanja Lange <tanja@hyperelliptic.org> wrote:
> This is not a typo, it is using a different (better) definition
> of the curve constant which is what the implementations use.

Thanks both. I've replaced that change with a TODO to note why the
formula will differ from EFD.


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Sat Jan 10 13:29:25 2015
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 E33DE1A0378 for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 13:29:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.595
X-Spam-Level: *
X-Spam-Status: No, score=1.595 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545] 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 zmjralmKboxe for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 13:29:23 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id 964D51A0363 for <cfrg@irtf.org>; Sat, 10 Jan 2015 13:29:22 -0800 (PST)
Received: (qmail 7701 invoked from network); 10 Jan 2015 21:29:42 -0000
Received: from pcdhz005.win.tue.nl (HELO hyperelliptic.org) (131.155.71.33) by calvin.win.tue.nl with SMTP; 10 Jan 2015 21:29:42 -0000
Received: (qmail 18932 invoked by uid 1000); 10 Jan 2015 21:29:27 -0000
Date: Sat, 10 Jan 2015 22:29:27 +0100
From: Tanja Lange <tanja@hyperelliptic.org>
To: Adam Langley <agl@imperialviolet.org>
Message-ID: <20150110212927.GG11760@cph.win.tue.nl>
References: <D0D6B088.5815C%paul@marvell.com> <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com> <20150110204227.GF11760@cph.win.tue.nl> <CAMfhd9X7BLhL=n2LtMkAKHqbWLwDZcuneGuM1Hd_r2bh1zJaRA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMfhd9X7BLhL=n2LtMkAKHqbWLwDZcuneGuM1Hd_r2bh1zJaRA@mail.gmail.com>
User-Agent: Mutt/1.5.11
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/l7__v7Zc0h8e_Xn8S6ujwe2-mds>
Cc: "simon@josefsson.org" <simon@josefsson.org>, "mpg@elzevir.fr" <mpg@elzevir.fr>, "cfrg@irtf.org" <cfrg@irtf.org>, "agl@google.com" <agl@google.com>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 21:29:24 -0000

> > This is not a typo, it is using a different (better) definition
> > of the curve constant which is what the implementations use.
> 
> Thanks both. I've replaced that change with a TODO to note why the
> formula will differ from EFD.
>
Easier option: we'll add the set of formulas to the EFD. Should do that
anyways. Will happen some time after Wednesday.
	Tanja 


From nobody Sat Jan 10 13:31:55 2015
Return-Path: <sneves@dei.uc.pt>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9BE031A0363 for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 13:31:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.211
X-Spam-Level: 
X-Spam-Status: No, score=-4.211 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id icfTh7BWDjXh for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 13:31:52 -0800 (PST)
Received: from smtp.dei.uc.pt (smtp.dei.uc.pt [193.137.203.253]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A40A51A0004 for <cfrg@irtf.org>; Sat, 10 Jan 2015 13:31:51 -0800 (PST)
Received: from [192.168.1.64] (bl6-191-211.dsl.telepac.pt [82.155.191.211]) (authenticated bits=0) by smtp.dei.uc.pt (8.14.4/8.14.4) with ESMTP id t0ALVDHD022233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Jan 2015 21:31:19 GMT
Message-ID: <54B19A21.9060505@dei.uc.pt>
Date: Sat, 10 Jan 2015 21:31:13 +0000
From: Samuel Neves <sneves@dei.uc.pt>
User-Agent: 
MIME-Version: 1.0
To: Tanja Lange <tanja@hyperelliptic.org>, Adam Langley <agl@imperialviolet.org>
References: <D0D6B088.5815C%paul@marvell.com> <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com> <20150110204227.GF11760@cph.win.tue.nl>
In-Reply-To: <20150110204227.GF11760@cph.win.tue.nl>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-FCTUC-DEI-SIC-MailScanner-Information: Please contact helpdesk@dei.uc.pt for more information
X-FCTUC-DEI-SIC-MailScanner-ID: t0ALVDHD022233
X-FCTUC-DEI-SIC-MailScanner: Found to be clean
X-FCTUC-DEI-SIC-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-60.25, required 3.252, autolearn=not spam, ALL_TRUSTED -10.00, BAYES_00 -0.25, L_SMTP_AUTH -50.00)
X-FCTUC-DEI-SIC-MailScanner-From: sneves@dei.uc.pt
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/dvNwxDcF2NEYzvmkc7o0DRoR_8s>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 21:31:53 -0000

On 01/10/2015 08:42 PM, Tanja Lange wrote:
>> Whether it works out or not, it's good to match EFD. I've updated the
>> draft in GitHub to match, thanks!
>>
> This is not a typo, it is using a different (better) definition
> of the curve constant which is what the implementations use.

Not trying to turn this into another pointless discussion, but the choice=
 of a24 seems 50/50 in actual implementations.
=46rom the current SUPERCOP version:

 - amd64-51: 121666
 - amd64-64: 121666
 - athlon: 121665
 - costigan-schwabe: 121666
 - donna: 121665
 - donna_c64: 121665
 - neon2: 121666
 - ref: 121665
 - ref10: 121666

All of these were written by experts. What makes 121665 better?

Best regards,
Samuel Neves


From nobody Sat Jan 10 14:07:13 2015
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 E49601A03A9 for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 14:07:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.195
X-Spam-Level: 
X-Spam-Status: No, score=0.195 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545] 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 fm4E9DIHOqGs for <cfrg@ietfa.amsl.com>; Sat, 10 Jan 2015 14:07:10 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id 0F9761A03A5 for <cfrg@irtf.org>; Sat, 10 Jan 2015 14:07:09 -0800 (PST)
Received: (qmail 11272 invoked from network); 10 Jan 2015 22:07:30 -0000
Received: from pcdhz005.win.tue.nl (HELO hyperelliptic.org) (131.155.71.33) by calvin.win.tue.nl with SMTP; 10 Jan 2015 22:07:30 -0000
Received: (qmail 19652 invoked by uid 1000); 10 Jan 2015 22:07:15 -0000
Date: Sat, 10 Jan 2015 23:07:15 +0100
From: Tanja Lange <tanja@hyperelliptic.org>
To: Samuel Neves <sneves@dei.uc.pt>
Message-ID: <20150110220715.GH11760@cph.win.tue.nl>
References: <D0D6B088.5815C%paul@marvell.com> <CAMfhd9XTQB-QjMpkW9PQ1e7NaV5jc56KfRP12i6WLaiNGqUyRg@mail.gmail.com> <20150110204227.GF11760@cph.win.tue.nl> <54B19A21.9060505@dei.uc.pt>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <54B19A21.9060505@dei.uc.pt>
User-Agent: Mutt/1.5.11
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/u_0hoBQvTQvZ039J4RbyO7M_QYw>
Cc: Adam Langley <agl@imperialviolet.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] A2 versus A^2 and BB verus AA
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 10 Jan 2015 22:07:12 -0000

> All of these were written by experts. What makes 121665 better?
>
Sorry, ignore the "(better)" part. I was thinking about the 
refence implementations being written with these formulas following
the Curve25519 paper but stand corrected.
	Tanja


From nobody Sun Jan 11 16:31:13 2015
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 BD6871A8866 for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 16:31:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.002
X-Spam-Level: 
X-Spam-Status: No, score=-0.002 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 xua-h2TVRx1G for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 16:31:09 -0800 (PST)
Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0BB981A884B for <cfrg@irtf.org>; Sun, 11 Jan 2015 16:31:08 -0800 (PST)
Received: from resomta-ch2-17v.sys.comcast.net ([69.252.207.113]) by resqmta-ch2-08v.sys.comcast.net with comcast id eoWC1p0032TL4Rh01oX79C; Mon, 12 Jan 2015 00:31:07 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-ch2-17v.sys.comcast.net with comcast id eoX61p00Z4uhcbK01oX71n; Mon, 12 Jan 2015 00:31:07 +0000
Message-ID: <54B315CA.6040900@brainhub.org>
Date: Sun, 11 Jan 2015 16:31:06 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <54AA4AB9.70505@brainhub.org>
In-Reply-To: <54AA4AB9.70505@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=1421022667; bh=iiMemkafbx5LiK6yBLTss22g38WAEcdfP6kyhVNlOnQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=UX1X3f+ZaXf8ayiwcyXb4wCNJ0kP+jINlfq/h0cOurZYo2q7uZLafdGsFt8APEZly UDbyKlXrLHeRroJnztFPjCe6XpAVDrXeGDe/U4Ot1qhWu3AN5QUCnkKo07YBJGooxC +mCiEnWq7d8fB2Gdr87ggAiSSYTK+/hT2OUoEl4bxtHagLaaKcMDr5Itp6azuFpevl fC7HGCmVBS3RVq+fwXIJuyHaxr2qpouOsm1DkDxdJnke+11HCAubyh0MaNKSTFx5vz owGvmMCRv/yl332It+ZwH8Y7/2SLVfLKuOiMQ39qkUDeG0VmfVTIOORnLojUyDkNLu M/BzOxvn12hdw==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Z2eoBjLUQNXhYIz-CfQTvwHbtYY>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 00:31:12 -0000

Counting multiplications (M) and squares (S) in F(p), ECC formulas use 
at least 5% more operations v.s. Montgomery.

The lowest non-Montgomery count is reached with twisted Edwards, signed 
window, w=5, which yields 6%/5.5% more M/S.

I pasted my notes below.

It's possible that my initial results in this thread are due to the 
difference in F(p) operations between the two implementations.

See also http://www.ietf.org/mail-archive/web/cfrg/current/msg05857.html

Thanks to Mike and Watson for pointers and comments.


-----------------------------------------------------------------
Montgomery method:
-----------------------------------------------------------------

 From http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html (8.2M for 
differential addition and doubling) with Z1=1: 5M+4S.

256*(5*M+4*S)=1275*M + 1020*S
Inverse: 11*M + 245*S

(also checked curve25519-donna-c64.c)

Total: 1285*M + 1265*S

-----------------------------------------------------------------
t.Edwards window method:
-----------------------------------------------------------------

Write the windows size as w and n-bit E(F(p)) curve (e.g. n=255). 
2^(w-1) signed elements need to be calculated.

The half of 2^(w-1) is filled with doubles, half with additions

2^(w-2) additions, 2^(w-2) doubles, z!=1

addition: 10M+1S
double: 3M+4S
from http://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html

Window filling:
2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S)

For windowed scalar multiplication there are w(ceil(n/w)-1) doubles and 
ceil(255/w)-1 additions

w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)

The formula is 2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S) + 
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)

w=3: 1622*M + 1102*S
w=4: 1438*M + 1091*S
w=5: 1354*M + 1090*S
w=6: 1384*M + 1130*S

Inverse: 11*M + 245*S

Total (w=5) with inverse:
1354*M + 1090*S +11*M + 245*S = 1365*M + 1335*S

So we have

Montgomery (M):     1285*M + 1265*S
t.Edwards w=5 (tE): 1365*M + 1335*S
( tE needs 6% more M, 5.5% more S )

Unifying S+M, this is:

for S=M cost:
M: 2550*M
tE: 2700*M

for S=0.625M cost:
M: 2075M
E: 2200M

Watson's estimate is:
Montgomery: 2491M
t.Edwards w=5: 2714M

-----------------------------------------------------------------
"Jacobian coordinates with a4=0 for short Weierstrass curves", window method
-----------------------------------------------------------------
http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html

doubling: 2M+5S
addition:  11M+5S

2^(w-2)*(11*M+5*S) + 2^(w-2)*(2*M+5*S) + 
w*(ceil(n/w)-1)*(2*M+5*S)+(ceil(n/w)-1)*(11*M+5*S) + 11*M + 245*S

w=5: 1165*M + 1825*S

for S=M cost
2990*M

for S=0.625M cost
2305*M

-----------------------------------------------------------------
variable curve size n, window method
-----------------------------------------------------------------

Hand-waive (extrapolate from Curve25519) the inverse as
0.95*n*S+0.05*n*M

Montgomery:
(n+1)*(5*M+4*S)+0.95*n*S+0.05*n*M

t.Edwards:
F=2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S) + 
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)+ 0.95*n*S+0.05*n*M

n=384:
M: 1944*M + 1904*S
w=5:
tE: 2023*M + 2000*S
w=6:
tE: 1991*M + 2019*S

n=255, w=5  (compare to the actual, above):
M: 1292*M + 1266*S
tE: 1366*M + 1332*S

n=400:
M: 2025*M + 1984*S
w=5:
tE: 2099*M + 2079*S
w=6:
tE: 2076*M + 2110.*S
w=7:
tE: 2203*M + 2193*S

n=512:
M: 2590*M + 2538*S
w=5:
tE: 2679*M + 2668*S
w=6:
tE: 2613*M + 2691*S

-----------------------------------------------------------------
Comb method
-----------------------------------------------------------------
The method is described here: http://eprint.iacr.org/2005/222.pdf, but 
always add O:

precomp: (w-1)*ceil(n/w)(3M+4S) + ((2^w)-w-1)*(10M+1S)
mult: (ceil(n/w)-1)*(3M+4S+10M+1S)
inverse (n=255): 11*M + 245*S

total: (w-1)*ceil(n/w)*(3*M+4*S) + ((2^(w-1))-w-1)*(10*M+S) + 
(ceil(n/w)-1)*(3*M+4*S+10*M+S)+11*M + 245*S

n=255:
w=3:
1653*M + 1349*S
w=4:
1516*M + 1339*S
w=5:
1533*M + 1337*S
w=6:
1772*M + 1372*S


From nobody Sun Jan 11 18:52:21 2015
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 EAFE11A8850 for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 18:52:19 -0800 (PST)
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 rMQNF9S3JdRh for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 18:52:18 -0800 (PST)
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 EA3EA1A1A7C for <cfrg@irtf.org>; Sun, 11 Jan 2015 18:52:17 -0800 (PST)
Received: from [192.168.1.117] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 9B7F93AA12; Sun, 11 Jan 2015 18:49:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1421030961; bh=NBFnPVeUuIT0YxUuOCxpiLU4txYDZy+jlA5GJkU8qIk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=H+rvdoLnXJGWJzzwp+jPYP6S+N6q03WvBLBpkRDP7lgvbj80jo1mxEjuhoJYS0DTf BpauICSkFFN8qhipEHZ1AIV/GvrRLCB97UTSPe5c2h8glOdKCETVajT2R1NIvKyQYj eZwVjuv0gZa8FvpmonBbRr00sQhEdtVA1MJ3o4eM=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.1\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <54B315CA.6040900@brainhub.org>
Date: Sun, 11 Jan 2015 18:52:14 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.2070.1)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/l8BGaPoHyLkb0b5pOslf1snYP7A>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 02:52:20 -0000

Thanks for your analysis!  However, please note that with lazy extended =
homogeneous coordinates on a twisted Edwards curve with a=3D-1, the cost =
of an Edwards addition to an accumulator is 8M and not 10M+1S, and the =
cost of a doubling is still 3M+4S, perhaps with an additional 1M to =
convert from this form to a suitable one for the window table.

Furthermore, the multiplication by a constant in the Montgomery curve is =
not negligible, but neither is the cost of a constant-time lookup in the =
Edwards window table.

Cheers,
=E2=80=94 Mike

> On Jan 11, 2015, at 4:31 PM, Andrey Jivsov <crypto@brainhub.org> =
wrote:
>=20
> Counting multiplications (M) and squares (S) in F(p), ECC formulas use =
at least 5% more operations v.s. Montgomery.
>=20
> The lowest non-Montgomery count is reached with twisted Edwards, =
signed window, w=3D5, which yields 6%/5.5% more M/S.
>=20
> I pasted my notes below.
>=20
> It's possible that my initial results in this thread are due to the =
difference in F(p) operations between the two implementations.
>=20
> See also =
http://www.ietf.org/mail-archive/web/cfrg/current/msg05857.html
>=20
> Thanks to Mike and Watson for pointers and comments.
>=20
>=20
> -----------------------------------------------------------------
> Montgomery method:
> -----------------------------------------------------------------
>=20
> =46rom http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html (8.2M for =
differential addition and doubling) with Z1=3D1: 5M+4S.
>=20
> 256*(5*M+4*S)=3D1275*M + 1020*S
> Inverse: 11*M + 245*S
>=20
> (also checked curve25519-donna-c64.c)
>=20
> Total: 1285*M + 1265*S
>=20
> -----------------------------------------------------------------
> t.Edwards window method:
> -----------------------------------------------------------------
>=20
> Write the windows size as w and n-bit E(F(p)) curve (e.g. n=3D255). =
2^(w-1) signed elements need to be calculated.
>=20
> The half of 2^(w-1) is filled with doubles, half with additions
>=20
> 2^(w-2) additions, 2^(w-2) doubles, z!=3D1
>=20
> addition: 10M+1S
> double: 3M+4S
> from http://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
>=20
> Window filling:
> 2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S)
>=20
> For windowed scalar multiplication there are w(ceil(n/w)-1) doubles =
and ceil(255/w)-1 additions
>=20
> w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)
>=20
> The formula is 2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S) + =
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)
>=20
> w=3D3: 1622*M + 1102*S
> w=3D4: 1438*M + 1091*S
> w=3D5: 1354*M + 1090*S
> w=3D6: 1384*M + 1130*S
>=20
> Inverse: 11*M + 245*S
>=20
> Total (w=3D5) with inverse:
> 1354*M + 1090*S +11*M + 245*S =3D 1365*M + 1335*S
>=20
> So we have
>=20
> Montgomery (M):     1285*M + 1265*S
> t.Edwards w=3D5 (tE): 1365*M + 1335*S
> ( tE needs 6% more M, 5.5% more S )
>=20
> Unifying S+M, this is:
>=20
> for S=3DM cost:
> M: 2550*M
> tE: 2700*M
>=20
> for S=3D0.625M cost:
> M: 2075M
> E: 2200M
>=20
> Watson's estimate is:
> Montgomery: 2491M
> t.Edwards w=3D5: 2714M
>=20
> -----------------------------------------------------------------
> "Jacobian coordinates with a4=3D0 for short Weierstrass curves", =
window method
> -----------------------------------------------------------------
> http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
>=20
> doubling: 2M+5S
> addition:  11M+5S
>=20
> 2^(w-2)*(11*M+5*S) + 2^(w-2)*(2*M+5*S) + =
w*(ceil(n/w)-1)*(2*M+5*S)+(ceil(n/w)-1)*(11*M+5*S) + 11*M + 245*S
>=20
> w=3D5: 1165*M + 1825*S
>=20
> for S=3DM cost
> 2990*M
>=20
> for S=3D0.625M cost
> 2305*M
>=20
> -----------------------------------------------------------------
> variable curve size n, window method
> -----------------------------------------------------------------
>=20
> Hand-waive (extrapolate from Curve25519) the inverse as
> 0.95*n*S+0.05*n*M
>=20
> Montgomery:
> (n+1)*(5*M+4*S)+0.95*n*S+0.05*n*M
>=20
> t.Edwards:
> F=3D2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S) + =
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)+ 0.95*n*S+0.05*n*M
>=20
> n=3D384:
> M: 1944*M + 1904*S
> w=3D5:
> tE: 2023*M + 2000*S
> w=3D6:
> tE: 1991*M + 2019*S
>=20
> n=3D255, w=3D5  (compare to the actual, above):
> M: 1292*M + 1266*S
> tE: 1366*M + 1332*S
>=20
> n=3D400:
> M: 2025*M + 1984*S
> w=3D5:
> tE: 2099*M + 2079*S
> w=3D6:
> tE: 2076*M + 2110.*S
> w=3D7:
> tE: 2203*M + 2193*S
>=20
> n=3D512:
> M: 2590*M + 2538*S
> w=3D5:
> tE: 2679*M + 2668*S
> w=3D6:
> tE: 2613*M + 2691*S
>=20
> -----------------------------------------------------------------
> Comb method
> -----------------------------------------------------------------
> The method is described here: http://eprint.iacr.org/2005/222.pdf, but =
always add O:
>=20
> precomp: (w-1)*ceil(n/w)(3M+4S) + ((2^w)-w-1)*(10M+1S)
> mult: (ceil(n/w)-1)*(3M+4S+10M+1S)
> inverse (n=3D255): 11*M + 245*S
>=20
> total: (w-1)*ceil(n/w)*(3*M+4*S) + ((2^(w-1))-w-1)*(10*M+S) + =
(ceil(n/w)-1)*(3*M+4*S+10*M+S)+11*M + 245*S
>=20
> n=3D255:
> w=3D3:
> 1653*M + 1349*S
> w=3D4:
> 1516*M + 1339*S
> w=3D5:
> 1533*M + 1337*S
> w=3D6:
> 1772*M + 1372*S
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Jan 11 21:26:13 2015
Return-Path: <peter.dettman@bouncycastle.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 BC78C1A88A7 for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 21:26:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.202
X-Spam-Level: 
X-Spam-Status: No, score=-0.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, 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 7Z99gDaOieto for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 21:26:09 -0800 (PST)
Received: from tauceti.org.au (mail.tauceti.org.au [203.32.61.25]) by ietfa.amsl.com (Postfix) with ESMTP id EADAC1A8895 for <cfrg@irtf.org>; Sun, 11 Jan 2015 21:26:08 -0800 (PST)
X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=ppp-49-237-36-181.revip6.asianet.co.th; 
Message-ID: <54B35ADE.8020209@bouncycastle.org>
Date: Mon, 12 Jan 2015 12:25:50 +0700
From: Peter Dettman <peter.dettman@bouncycastle.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org>
In-Reply-To: <54B315CA.6040900@brainhub.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Authenticated-User: peter.dettman@bouncycastle.org 
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/6rMNRTs67fqn8k68fosr-329nUQ>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 05:26:11 -0000

On 12/01/2015 7:31 am, Andrey Jivsov wrote:
> -----------------------------------------------------------------
> "Jacobian coordinates with a4=0 for short Weierstrass curves", window 
> method
> -----------------------------------------------------------------
> http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
>
> doubling: 2M+5S
> addition:  11M+5S
>
> 2^(w-2)*(11*M+5*S) + 2^(w-2)*(2*M+5*S) + 
> w*(ceil(n/w)-1)*(2*M+5*S)+(ceil(n/w)-1)*(11*M+5*S) + 11*M + 245*S
>
> w=5: 1165*M + 1825*S
>
> for S=M cost
> 2990*M
>
> for S=0.625M cost
> 2305*M
[NOTE: I realise GLV curves are not on the table in the current curve 
selection process; this is just a response to the presented numbers, not 
advocacy]

The state-of-the-art precomputation for Weierstrass window method uses 
co-z arithmetic at a cost of ~(5M+2S)/point as set out in 
https://eprint.iacr.org/2008/051. In that paper it's shown how to 
convert the table to affine with a single inversion and total cost of 
~(9M+2S)/point + 1I, observing that the full Montgomery trick is not 
needed because the Z coordinates form a multiplicative chain already. 
However, based on the same observation, it is straightforward to bring 
all precomputed points to a common Z coordinate, avoid the inversion, 
and proceed to calculate on an isomorphic curve where those points are 
affine (by dropping the Z coordinate and setting a4' = Z^4.a4). A single 
multiplication is needed to bring the result point back to the original 
curve.

For a4=0, the isomorphism doesn't affect the formulae, so in the 
windowing, doubling costs (2M+5S), (mixed) addition costs (7M+4S). Also, 
a4=0 is chosen to allow use of a fast endomorphism, so numbers should 
really reflect its usage. It reduces the doublings by half, and (for 
secp256k1) adds an extra 1M per precomputed point (and doubles storage, 
but not lookup costs). Splitting the scalar costs a few multiplications.

So, slightly more roughly than above:
2^(w-1)*(10M + 2S) + (n/2)*(2M + 5S) + (n/w)*(7M + 4S) + (15M+255S) 
<--[Actual cost of inversion in a secp256k1 implementation]

n=256,w=5: 795*M + 1135*S (S=M: 1930*M, S=0.625M: 1505*M).

Regards,
Pete Dettman


From nobody Sun Jan 11 22:36:05 2015
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 A19301A89F2 for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 22:36:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.399
X-Spam-Level: 
X-Spam-Status: No, score=0.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MANGLED_SMALL=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 5Nn77qHqUckj for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 22:36:01 -0800 (PST)
Received: from resqmta-ch2-10v.sys.comcast.net (resqmta-ch2-10v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:42]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD8211A88A7 for <cfrg@irtf.org>; Sun, 11 Jan 2015 22:36:00 -0800 (PST)
Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-10v.sys.comcast.net with comcast id eubz1p0042N9P4d01ubzdi; Mon, 12 Jan 2015 06:35:59 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-ch2-13v.sys.comcast.net with comcast id euby1p00G4uhcbK01ubyjG; Mon, 12 Jan 2015 06:35:59 +0000
Message-ID: <54B36B4E.9010006@brainhub.org>
Date: Sun, 11 Jan 2015 22:35:58 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Michael Hamburg <mike@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>
In-Reply-To: <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1421044559; bh=6OpaLxqqyHpYrKDB+sBdC3AxrYwWqzHamJqyS3rSyQc=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=QH+r9xP8X4Fcsa2bbzvIqSN7GVizzPAqrBFxl9Ev9tIe0F9cEk2CqP8CsiDROSOxU 5Bxhw62BLCRPrwiRzZph14ZQT0z72f9T/cAjpUIROs2nXAk/Fb/If07U7Sgp14bk8O EI87p8Eg8KGjkMr5qwMJpQdha2H3YBOwuJtQ32iD0zeiDJXo0kIdd21frFlK+xnuVO 4Jma9FUSMQpsJ1zPI1ADVSs7YrvGwTwR9sZIQ0BJltwb79WvvOUo020e4Afm+MW1rO H5iSpZiZQ6plPPU2ScXYZaJEDlzh2qgW1bgrlGPDvG/N4CkZQDj/05p7dxoM2VNnxg Gf/36V6/KUOcg==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/UQFiVpESbvjrr1jK4e4iPf41hHc>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 06:36:02 -0000

On 01/11/2015 06:52 PM, Michael Hamburg wrote:
> Thanks for your analysis!  However, please note that with lazy extended homogeneous coordinates on a twisted Edwards curve with a=-1, the cost of an Edwards addition to an accumulator is 8M and not 10M+1S, and the cost of a doubling is still 3M+4S, perhaps with an additional 1M to convert from this form to a suitable one for the window table.
You are welcome. I would appreciate a pointer to the method.

>
> Furthermore, the multiplication by a constant in the Montgomery curve is not negligible, but neither is the cost of a constant-time lookup in the Edwards window table.

Right, I was ignoring additions and multiplication by a constant.

Assuming M/4 for a24 (e.g. 4-limb F(p) operations) and full M for d in 
t.Edwards (corresponding to the 37095705...283555 in 
draft-agl-cfrgcurve-00):

M: n*(5*M+4*S+M/4)+11*M + 245*S=1350*M + 1265*S
tE: 2^(w-2)*(10*M+S+M) + 2^(w-2)*(3*M+4*S) + 
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S+M)+11*M + 245*S=1423*M + 
1335*S

5.4%, 5.5% (M, S). Montgomery is better.

With small curve constants (A, d), M/4 for the multiplication by these 
constants:
M: currently optimal, same 1350*M + 1265*S
tE: 2^(w-2)*(10*M+S+M/4) + 2^(w-2)*(3*M+4*S) + 
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S+M/4)+11*M + 245*S=1380*M 
+ 1335*S

2.2%, 5.5%. Montgomery is better.


From nobody Sun Jan 11 22:52:47 2015
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 0CA021A8A56 for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 22:52:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.855
X-Spam-Level: ***
X-Spam-Status: No, score=3.855 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, MANGLED_SMALL=2.3, 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 VkKL0T2bZIEk for <cfrg@ietfa.amsl.com>; Sun, 11 Jan 2015 22:52:43 -0800 (PST)
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 6D8311A8A50 for <cfrg@irtf.org>; Sun, 11 Jan 2015 22:52:43 -0800 (PST)
Received: from [192.168.1.117] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 2118A3AA12; Sun, 11 Jan 2015 22:49:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1421045387; bh=2broj1f3E3iUaz8TnJ3lPbL/NyoiLZOv8hZ4UWqN5e8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=K1LPqb+V+UDvm5xgf+h/dfK+hq53+yMbqoBAd55QUsi0Hu/yhIeNCgABfO+px9iZ+ pQf1wNqS3MhzZAAmRY/OAmRXpPF4/VBgCCG5ePY2V7WougSz+yWzbEHKKLk1xVO9F9 9aD+x+rFw9r3A36EWOelGYRlEy0LJdk8HbHyfwPs=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.1\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <54B36B4E.9010006@brainhub.org>
Date: Sun, 11 Jan 2015 22:52:41 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <9A155377-9754-44AB-8C62-D2F10C444BCE@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <54B36B4E.9010006@brainhub.org>
To: Andrey Jivsov <crypto@brainhub.org>
X-Mailer: Apple Mail (2.2070.1)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ap6xwjuWbYjOp0GNNc7En82lxlw>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 06:52:45 -0000

> On Jan 11, 2015, at 10:35 PM, Andrey Jivsov <crypto@brainhub.org> =
wrote:
>=20
> On 01/11/2015 06:52 PM, Michael Hamburg wrote:
>> Thanks for your analysis!  However, please note that with lazy =
extended homogeneous coordinates on a twisted Edwards curve with a=3D-1, =
the cost of an Edwards addition to an accumulator is 8M and not 10M+1S, =
and the cost of a doubling is still 3M+4S, perhaps with an additional 1M =
to convert from this form to a suitable one for the window table.
> You are welcome. I would appreciate a pointer to the method.

For the method with lookahead, H=C3=BCseyin H=C4=B1=C5=9F=C4=B1l, =
thesis, =
http://eprints.qut.edu.au/33233/1/H%C3%BCseyin_Hi%C5%9Fil_Thesis.pdf

For the method with a 5-element accumulator,
https://eprint.iacr.org/2012/309

This is also used in the Goldilocks code.

>> Furthermore, the multiplication by a constant in the Montgomery curve =
is not negligible, but neither is the cost of a constant-time lookup in =
the Edwards window table.
>=20
> Right, I was ignoring additions and multiplication by a constant.
>=20
> Assuming M/4 for a24 (e.g. 4-limb F(p) operations) and full M for d in =
t.Edwards (corresponding to the 37095705...283555 in =
draft-agl-cfrgcurve-00):
>=20
> M: n*(5*M+4*S+M/4)+11*M + 245*S=3D1350*M + 1265*S
> tE: 2^(w-2)*(10*M+S+M) + 2^(w-2)*(3*M+4*S) + =
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S+M)+11*M + 245*S=3D1423*M =
+ 1335*S

> 5.4%, 5.5% (M, S). Montgomery is better.

> With small curve constants (A, d), M/4 for the multiplication by these =
constants:
> M: currently optimal, same 1350*M + 1265*S
> tE: 2^(w-2)*(10*M+S+M/4) + 2^(w-2)*(3*M+4*S) + =
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S+M/4)+11*M + 245*S=3D1380*M=
 + 1335*S
>=20
> 2.2%, 5.5%. Montgomery is better.

If a readd is 8M (or 7M for a mixed add, 1M+1m to convert to readd form) =
then:

2^(w-2)*((7+1+1/4)*M) + 2^(w-2)*(3*M+4*S + M+M/4) + =
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(8*M)+11*M + 245*S =3D 1261*M + =
1277*S

That=E2=80=99s -12%M, -4%S vs Montgomery.  But the constant-time lookups =
may nullify that gain.

Cheers,
=E2=80=94 Mike=


From nobody Mon Jan 12 01:02:26 2015
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 4BA2B1A1B3E for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 01:02:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LOTS_OF_MONEY=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 mz3QhA-iAcC3 for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 01:02:21 -0800 (PST)
Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D5EDB1A1B42 for <cfrg@irtf.org>; Mon, 12 Jan 2015 01:02:20 -0800 (PST)
Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-04v.sys.comcast.net with comcast id ex2L1p0012S2Q5R01x2LJV; Mon, 12 Jan 2015 09:02:20 +0000
Received: from [172.18.75.35] ([76.247.118.9]) by resomta-ch2-16v.sys.comcast.net with comcast id ex0B1p00B0CF8l001x0EVj; Mon, 12 Jan 2015 09:00:18 +0000
Message-ID: <54B38D1B.9020501@brainhub.org>
Date: Mon, 12 Jan 2015 01:00:11 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <54AAE2CA.1080701@isode.com> <54AEF855.4090100@brainhub.org> <CACsn0cm01o4vhwwzs_WNpLq6vnA_cBchvLNS+Eyg5YZH_hQyMg@mail.gmail.com> <54AF1C99.5070308@brainhub.org> <54AFA179.4010403@cs.tcd.ie> <54B03F3E.3020108@brainhub.org> <54B11C8E.8070001@akr.io>
In-Reply-To: <54B11C8E.8070001@akr.io>
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=1421053340; bh=3Skw8Rm3RolYcKLtUwRMgfILa71aKDS0eGsgb7mkGgk=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=GbcQVmhi62Fh/c2laVwqyKljvkHbeNODkQDfMgwv3/Tk+kPyX6TApYzSd2WzCLyKL JXdVzrSrjQzxgHFqF2u5C2q4UTBmkcT77xUeVs0OBq58wG8B2ecClrQHPuNhwUPh9N dYGMyznvuPvKGrnOXv1iNR7fLOV1Be9DEO+EDv4KUcCie2OYg3X3069rhhp54zP5yt F36worBVO5BtQ4+8m0mT3k3jINpFGsYu4TmyfUbTHCjUhmBqnBVjeZzN8nDPSLjwN0 irchVzf9ZiMZkD777c6FNfG1f8VMIVB+MhgP4YTKV8ru6yhPDsPVVj+DHlGRpqCYfv u1cmyJco2U0YQ==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/h_qcZVZu7jkrGijBYTrNz3S8XQ0>
Subject: Re: [Cfrg] draft-agl-cfrgcurve-00 point format
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 09:02:24 -0000

On 01/10/2015 04:35 AM, Alyssa Rowan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 09/01/2015 20:51, Andrey Jivsov wrote:
>
>> Hello Stephen. I agree in general that fewer options is a good
>> thing.
>
> Agreed there too.
>
>> A single format across security strengths and algorithm types means
>> fewer options.
>
> Now, the upstream WG asking for these curves has actually already
> covered this point (if you'll excuse the pun!).
>
> The TLS WG discussed point compression specificallyΒΉ and thought there
> was value for TLS 1.3.
>
> In HawaiiΒ² they decided to use uncompressed points for existing NIST &
> Brainpool curves (due to the inertia you noted, and the now-expired
> patent, essentially nobody used compressed points with the NIST &
> Brainpool curves) - but to allow new curves (i.e. us) to define their
> own wire format individually, which is what is done in the draft, and
> that this could be compressed. (X25519, as Curve25519, was in fact
> specifically raised within that discussionΒ³.) Soβ¦
>
>> β¦the point representation negotiation defined in TLSβ¦
>
> β¦is being removed from TLS 1.3. And we can do pretty much what we want.

It looks reasonable to remove compression negotiation packets from TLS.

To allow other implementations besides the Montgomery ladder y is 
probably need to be a part of point format on the wire to avoid the ~10% 
penalty to recover it.

>
>> (If you like Montgomery ladder, just ignore the other 32 bytes
>> representing the y; one shouldn't care about 32 bytes in a ~4Kb TLS
>> handshake).
>
> "Ignore it if you like" is just an option (to ignore it) in a fancy hat.
> Drawback: fingerprinting. An attacker can tell which ignore y and which
> don't (and therefore which might have omitted or screwed up a vital
> validation step).

One would likely need (x,y) to allow the choice of (internal, invisible 
to a peer) implementations. It's almost certain that sending only x 
significantly benefits the Montgomery ladder implementation, because 
there will unlikely be a faster implementation that uses only x (or 
doesn't benefit from the input point being in affine form, so that z!=1 
can be used without cost).

When both (x,y) are used in the scalar multiplication formula, 
re-computing y from x has ~10% cost.

>
> I also note patent US6563928 appears (to me, and others) to claim on
> point validation to avoid small-subgroup attacksβ΄ in some contexts. Dan
> Brown disclosed this patent previously on the list, querying whether it
> may impact twist securityβ΅. It expires (I believe) mid-May 2015 - and I
> (again) do not specifically address its applicability or validity here,
> merely note the concerns.
>
> djb, in Curve25519, specifically used the point format from Miller
> [1986], and deliberately doesn't compute y. Soβ¦

>
>> β¦the de-facto standard on the Internet is to use uncompressed
>> point.
>
> β¦the de-facto standard for _this curve_ is to use _compressed_ point, as
> in the draft. It:

>
> β’ is simpler as it doesn't need a (critical) point validation check;

I think 'critical' is arguable for twist-secure curves and TLS ECDH, 
however, please note that the Montgomery ladder is an implementation 
choice when one doesn't wants these checks.

> β’ seems to have clearer IPR, because that check may have patent claims;

The abstract of the patent telling to multiply by a cofactor (8) to 
avoid a small subgroup is also an issue.

> β’ is slightly smaller; and,
> β’ is already supported by all the widely-deployed code for this curve.
>
> No sale on a change there, as far as I'm concerned: I don't see the
> significant benefit.

Thank you for the feedback, Alyssa.

>
>> I would say that I care about 10% because Curve25519 Montgomery
>> ladder is ~60% faster than P-256 on modern x86.
>
> Um, perhaps I just haven't had enough tea this morning to follow what
> you mean here?
>
> I'm also not sure the performance gap is that wide anymore, see Intel's
> nistz256 contribution to OpenSSL.

The ratio is from 
http://www.ietf.org/mail-archive/web/cfrg/current/msg05251.html . It's 
about the same 60% on Haswell.

>
> ___
>
> Footnotes (for easy reference):
>
> [1] <https://www.ietf.org/mail-archive/web/tls/current/msg14087.html>
>
> [2]
> <https://www.ietf.org/proceedings/interim/2014/11/09/tls/minutes/minutes-interim-2014-tls-4>
>
> [3] <https://www.ietf.org/mail-archive/web/tls/current/msg14088.html>
>
> [4] US6563928, Menezes-Qu-Vanstone, Certicom
> <https://www.google.com/patents/US6563928>
>
> [5] <https://www.ietf.org/mail-archive/web/cfrg/current/msg05588.html>
> although you may find it easier to read
> <https://www.ietf.org/mail-archive/web/cfrg/current/msg05589.html> and
> down. Short answer: no.
>
> [6] <https://www.ietf.org/mail-archive/web/cfrg/current/msg04766.html>
>
> - --
> /akr
...


From nobody Mon Jan 12 07:28:20 2015
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 841811ABC0F for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 07:28:16 -0800 (PST)
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 k0kRuqTuw_BM for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 07:28:12 -0800 (PST)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10DC81AC3A0 for <cfrg@irtf.org>; Mon, 12 Jan 2015 07:28:12 -0800 (PST)
Received: by mail-yk0-f179.google.com with SMTP id 19so9441443ykq.10 for <cfrg@irtf.org>; Mon, 12 Jan 2015 07:28:11 -0800 (PST)
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=iTpwh9REkXXYzsRRmM+3aF70KrnuV3EO8Sijvaqbs8U=; b=B1L6W/g85uEOcbNMxVWQET3GaSsNd8VehrZYTo4gUGgGbjHt2baLsGnVHA1S1MBWVS 5irGAGSJIGXvv9O+rpvhQe4yBy3z2Ld3D76IXpx5ScsW+xT96ExRX2UCF2TLU9zMNnFl BqBVmrWaDzXF85R9M8/NFek4Osql8wcCr1T9SCbJ0pBs66wYNl15Estu1EdgiV0VjYwq 2V1zyykeF/FmmrnT7cP25UgOsybO/Ozteni4K1CEaw14dvaUswd2SpdZRUAds7kn388D I74oNMDC98n0WKPm/+4tKTP6WpCt8sP7pgCLXsmaoWGs0MbF0HMwVD/C1QHHldPzre/d M0Ig==
MIME-Version: 1.0
X-Received: by 10.236.11.45 with SMTP id 33mr22909344yhw.4.1421076491027; Mon, 12 Jan 2015 07:28:11 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Mon, 12 Jan 2015 07:28:10 -0800 (PST)
In-Reply-To: <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>
Date: Mon, 12 Jan 2015 07:28:10 -0800
Message-ID: <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/GUDHsWIbNblqyF0NbD-KWQZFVuo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 15:28:16 -0000

On Sun, Jan 11, 2015 at 6:52 PM, Michael Hamburg <mike@shiftleft.org> wrote=
:
> Thanks for your analysis!  However, please note that with lazy extended h=
omogeneous coordinates on a twisted Edwards curve with a=3D-1, the cost of =
an Edwards addition to an accumulator is 8M and not 10M+1S, and the cost of=
 a doubling is still 3M+4S, perhaps with an additional 1M to convert from t=
his form to a suitable one for the window table.
>
> Furthermore, the multiplication by a constant in the Montgomery curve is =
not negligible, but neither is the cost of a constant-time lookup in the Ed=
wards window table.
>
> Cheers,
> =E2=80=94 Mike

Yes, this is the fastest coordinate system. Inverted Edwards, which I
used for my calculation (but with a stupidly slow inversion routine)
speeds doubling but not additions significantly, compared to extended
homogeneous coordinates.

The table is filled with a cost of 8M for additions and 4M+4S for
doublings so 2^(w-2)*8M+2^(w-2)*(4M+4S). Then we proceed for
ceil(255/w)-1steps, each step consisting of (w-1) 3M+4S doublings, and
1 4M+4S doubling. Ergo the total cost becomes
2^(w-2)*(12M+4S)+(ceil(255/w)-1)*(w*(3M+4S)+1M).

Evaluating we get w=3D3 as the best choice, with 864 multiplications and
1016 squarings. Of course, it's possible I made a typo in the above.
Adding in the inversion at the end, gives 875*M+1261*S. The total
savings over Montgomery ladder with M=3D0.8S are about 20%.

But we're neglecting the square root, which seems to be the point of
contention. A square root is essentially an exponentiation to 2^252-2.
Writing down an obvious addition chain I get 376 squares and 14
multiplications. It's very possible, indeed likely, that this can be
tightened. If not, then the total work for this approach with
Montgomery x only is 889*M+1637*S, which with M=3D0.8S is 4% less.

Of course, the implementation described above is considerably more
complex than the montgomery ladder, and has to validate its inputs in
ways that are frequently forgotten. The addition formulas used aren't
marked as complete, only strongly unified, which introduces occasional
corner cases. If you actually care about the top performance possible
for variable-base multiplication without sacrificing security, then
try Kummer surfaces.

Sincerely,
Watson Ladd

>
>> On Jan 11, 2015, at 4:31 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>>
>> Counting multiplications (M) and squares (S) in F(p), ECC formulas use a=
t least 5% more operations v.s. Montgomery.
>>
>> The lowest non-Montgomery count is reached with twisted Edwards, signed =
window, w=3D5, which yields 6%/5.5% more M/S.
>>
>> I pasted my notes below.
>>
>> It's possible that my initial results in this thread are due to the diff=
erence in F(p) operations between the two implementations.
>>
>> See also http://www.ietf.org/mail-archive/web/cfrg/current/msg05857.html
>>
>> Thanks to Mike and Watson for pointers and comments.
>>
>>
>> -----------------------------------------------------------------
>> Montgomery method:
>> -----------------------------------------------------------------
>>
>> From http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html (8.2M for dif=
ferential addition and doubling) with Z1=3D1: 5M+4S.
>>
>> 256*(5*M+4*S)=3D1275*M + 1020*S
>> Inverse: 11*M + 245*S
>>
>> (also checked curve25519-donna-c64.c)
>>
>> Total: 1285*M + 1265*S
>>
>> -----------------------------------------------------------------
>> t.Edwards window method:
>> -----------------------------------------------------------------
>>
>> Write the windows size as w and n-bit E(F(p)) curve (e.g. n=3D255). 2^(w=
-1) signed elements need to be calculated.
>>
>> The half of 2^(w-1) is filled with doubles, half with additions
>>
>> 2^(w-2) additions, 2^(w-2) doubles, z!=3D1
>>
>> addition: 10M+1S
>> double: 3M+4S
>> from http://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
>>
>> Window filling:
>> 2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S)
>>
>> For windowed scalar multiplication there are w(ceil(n/w)-1) doubles and =
ceil(255/w)-1 additions
>>
>> w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(10*M+S)
>>
>> The formula is 2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S) + w*(ceil(n/w)-1)*(3=
*M+4*S)+(ceil(n/w)-1)*(10*M+S)
>>
>> w=3D3: 1622*M + 1102*S
>> w=3D4: 1438*M + 1091*S
>> w=3D5: 1354*M + 1090*S
>> w=3D6: 1384*M + 1130*S
>>
>> Inverse: 11*M + 245*S
>>
>> Total (w=3D5) with inverse:
>> 1354*M + 1090*S +11*M + 245*S =3D 1365*M + 1335*S
>>
>> So we have
>>
>> Montgomery (M):     1285*M + 1265*S
>> t.Edwards w=3D5 (tE): 1365*M + 1335*S
>> ( tE needs 6% more M, 5.5% more S )
>>
>> Unifying S+M, this is:
>>
>> for S=3DM cost:
>> M: 2550*M
>> tE: 2700*M
>>
>> for S=3D0.625M cost:
>> M: 2075M
>> E: 2200M
>>
>> Watson's estimate is:
>> Montgomery: 2491M
>> t.Edwards w=3D5: 2714M
>>
>> -----------------------------------------------------------------
>> "Jacobian coordinates with a4=3D0 for short Weierstrass curves", window =
method
>> -----------------------------------------------------------------
>> http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
>>
>> doubling: 2M+5S
>> addition:  11M+5S
>>
>> 2^(w-2)*(11*M+5*S) + 2^(w-2)*(2*M+5*S) + w*(ceil(n/w)-1)*(2*M+5*S)+(ceil=
(n/w)-1)*(11*M+5*S) + 11*M + 245*S
>>
>> w=3D5: 1165*M + 1825*S
>>
>> for S=3DM cost
>> 2990*M
>>
>> for S=3D0.625M cost
>> 2305*M
>>
>> -----------------------------------------------------------------
>> variable curve size n, window method
>> -----------------------------------------------------------------
>>
>> Hand-waive (extrapolate from Curve25519) the inverse as
>> 0.95*n*S+0.05*n*M
>>
>> Montgomery:
>> (n+1)*(5*M+4*S)+0.95*n*S+0.05*n*M
>>
>> t.Edwards:
>> F=3D2^(w-2)*(10*M+S) + 2^(w-2)*(3*M+4*S) + w*(ceil(n/w)-1)*(3*M+4*S)+(ce=
il(n/w)-1)*(10*M+S)+ 0.95*n*S+0.05*n*M
>>
>> n=3D384:
>> M: 1944*M + 1904*S
>> w=3D5:
>> tE: 2023*M + 2000*S
>> w=3D6:
>> tE: 1991*M + 2019*S
>>
>> n=3D255, w=3D5  (compare to the actual, above):
>> M: 1292*M + 1266*S
>> tE: 1366*M + 1332*S
>>
>> n=3D400:
>> M: 2025*M + 1984*S
>> w=3D5:
>> tE: 2099*M + 2079*S
>> w=3D6:
>> tE: 2076*M + 2110.*S
>> w=3D7:
>> tE: 2203*M + 2193*S
>>
>> n=3D512:
>> M: 2590*M + 2538*S
>> w=3D5:
>> tE: 2679*M + 2668*S
>> w=3D6:
>> tE: 2613*M + 2691*S
>>
>> -----------------------------------------------------------------
>> Comb method
>> -----------------------------------------------------------------
>> The method is described here: http://eprint.iacr.org/2005/222.pdf, but a=
lways add O:
>>
>> precomp: (w-1)*ceil(n/w)(3M+4S) + ((2^w)-w-1)*(10M+1S)
>> mult: (ceil(n/w)-1)*(3M+4S+10M+1S)
>> inverse (n=3D255): 11*M + 245*S
>>
>> total: (w-1)*ceil(n/w)*(3*M+4*S) + ((2^(w-1))-w-1)*(10*M+S) + (ceil(n/w)=
-1)*(3*M+4*S+10*M+S)+11*M + 245*S
>>
>> n=3D255:
>> w=3D3:
>> 1653*M + 1349*S
>> w=3D4:
>> 1516*M + 1339*S
>> w=3D5:
>> 1533*M + 1337*S
>> w=3D6:
>> 1772*M + 1372*S
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



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


From nobody Mon Jan 12 09:59:51 2015
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 03C751ACD1A for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 09:59:50 -0800 (PST)
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 OOMDgcbk9317 for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 09:59:45 -0800 (PST)
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 9DE101AC3B0 for <cfrg@irtf.org>; Mon, 12 Jan 2015 09:59:45 -0800 (PST)
Received: from [192.168.1.117] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 28FFC3AA12; Mon, 12 Jan 2015 09:56:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1421085406; bh=TbaFi2UsgZRbx+nseQCzS3LPxKgHUs98E7knj1JZ7wk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=IXqZMU60/QfLUemxKHvkndKJFgCCJhsW2RRMFVPJ4E+vaCCv75xgE7ez69EXOcZUz u5tscJO+kVNJAArqyc4Go2ZSW0j25ZIy8Ezhdea+yIibpJrEepRZovaTc7vEU1u6Se xFd/yUl12BRYcB7SEIyC6U+nqszfRWPunb+N+yro=
Content-Type: multipart/alternative; boundary="Apple-Mail=_CCE7BC89-288B-452F-8E5E-55A7D7D3BF85"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.1\))
From: Michael Hamburg <mike@shiftleft.org>
In-Reply-To: <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com>
Date: Mon, 12 Jan 2015 09:59:42 -0800
Message-Id: <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
X-Mailer: Apple Mail (2.2070.1)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/mbtULRlzuPkbkEikDhjbUEXEquI>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 17:59:50 -0000

--Apple-Mail=_CCE7BC89-288B-452F-8E5E-55A7D7D3BF85
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Jan 12, 2015, at 7:28 AM, Watson Ladd <watsonbladd@gmail.com> =
wrote:
> The table is filled with a cost of 8M for additions and 4M+4S for
> doublings so 2^(w-2)*8M+2^(w-2)*(4M+4S). Then we proceed for
> ceil(255/w)-1steps, each step consisting of (w-1) 3M+4S doublings, and
> 1 4M+4S doubling. Ergo the total cost becomes
> 2^(w-2)*(12M+4S)+(ceil(255/w)-1)*(w*(3M+4S)+1M).

Don=E2=80=99t you need to do some additions at some point as well?  Or =
do the additions only cost 1M?

=E2=80=94 Mike=

--Apple-Mail=_CCE7BC89-288B-452F-8E5E-55A7D7D3BF85
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;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Jan 12, 2015, at 7:28 AM, Watson Ladd &lt;<a =
href=3D"mailto:watsonbladd@gmail.com" =
class=3D"">watsonbladd@gmail.com</a>&gt; wrote:</div><div class=3D""><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;" class=3D"">The table is filled with a cost of 8M for =
additions and 4M+4S for</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;" class=3D""><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;" class=3D"">doublings so =
2^(w-2)*8M+2^(w-2)*(4M+4S). Then we proceed for</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;" class=3D""><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;" class=3D"">ceil(255/w)-1steps, each step consisting of =
(w-1) 3M+4S doublings, and</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;" class=3D""><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;" class=3D"">1 4M+4S doubling. Ergo the =
total cost becomes</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;" =
class=3D""><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;" =
class=3D"">2^(w-2)*(12M+4S)+(ceil(255/w)-1)*(w*(3M+4S)+1M).</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;" =
class=3D""></div></blockquote><div><br class=3D""></div><div>Don=E2=80=99t=
 you need to do some additions at some point as well? &nbsp;Or do the =
additions only cost 1M?</div><div><br class=3D""></div><div>=E2=80=94 =
Mike</div></div></body></html>=

--Apple-Mail=_CCE7BC89-288B-452F-8E5E-55A7D7D3BF85--


From nobody Mon Jan 12 11:30:41 2015
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 9001D1ACD89 for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 11:30:39 -0800 (PST)
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 RLYNuzXrVz99 for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 11:30:38 -0800 (PST)
Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 061101ACD9A for <cfrg@irtf.org>; Mon, 12 Jan 2015 11:30:38 -0800 (PST)
Received: by mail-yh0-f52.google.com with SMTP id z6so10531608yhz.11 for <cfrg@irtf.org>; Mon, 12 Jan 2015 11:30:37 -0800 (PST)
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=hzLnSTd8IQ9aDsV1pF8xg/iZK8xuO/yQowbFs2HSm14=; b=sn3zo9uOnB+PmlCmceU/ZyZaW1aAGMWMT5W0ubcb9FGUtcpaew0u8mfYfuiESMNzgK FN8vEHgIWcKV4qkYodx7n1KE2v4bONTJ0lm9rN/Kombm9WgZeqrtVbamvvP4SSHeuXhx IGSMnqRbWVd36lOva5R2j9dpHerUXg60kcwDz0/ih3mBnNA4wGJR/bAdDfJQ8uSLCUrY X60z+IygNEcaWN8PL8l49lWmzT+Q4qC6d4sR4ZHsSjhD7MOo/rOPqGorUIDnTpl0QCxM 1TZnl7LeHupYWYmHgWnxPAj3KveY0fSzvfQVJ+lUYKy22NULGNQUYAMjZcMd1KdyW7EW ADyQ==
MIME-Version: 1.0
X-Received: by 10.236.30.168 with SMTP id k28mr23935553yha.163.1421091037319;  Mon, 12 Jan 2015 11:30:37 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Mon, 12 Jan 2015 11:30:37 -0800 (PST)
In-Reply-To: <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com> <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org>
Date: Mon, 12 Jan 2015 11:30:37 -0800
Message-ID: <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Michael Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/CoPdpUbtEUAGCHYYUbnCCW3DV84>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 19:30:39 -0000

On Mon, Jan 12, 2015 at 9:59 AM, Michael Hamburg <mike@shiftleft.org> wrote=
:
>
> On Jan 12, 2015, at 7:28 AM, Watson Ladd <watsonbladd@gmail.com> wrote:
> The table is filled with a cost of 8M for additions and 4M+4S for
> doublings so 2^(w-2)*8M+2^(w-2)*(4M+4S). Then we proceed for
> ceil(255/w)-1steps, each step consisting of (w-1) 3M+4S doublings, and
> 1 4M+4S doubling. Ergo the total cost becomes
> 2^(w-2)*(12M+4S)+(ceil(255/w)-1)*(w*(3M+4S)+1M).
>
>
> Don=E2=80=99t you need to do some additions at some point as well?  Or do=
 the
> additions only cost 1M?

Doing the calculation correctly, it's effectively 9M for an addition
after a 3M+4S doubling. The best window is 5, with 1296*M + 1032*S,
and tossing in the inversion gives 1307*M + 1286*S, vs 1285*M + 1265*S
for Montgomery form. Note that here I'm neglecting the multiplications
by constants, which is why the speeds are coming out slightly
differently.

But the bottom line is that Montgomery ladder is competitive with the
best known alternative methods at 255 bits, in terms of operation
counts, and this difference can be wiped out by the need for side
channel protection: none of the various models are saying anything too
different.

Sincerely,
Watson Ladd


>
> =E2=80=94 Mike



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


From nobody Mon Jan 12 13:46:55 2015
Return-Path: <kurt@roeckx.be>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B94551A6FD5 for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 13:46:51 -0800 (PST)
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, 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 MSZXqpiyPJf4 for <cfrg@ietfa.amsl.com>; Mon, 12 Jan 2015 13:46:46 -0800 (PST)
Received: from defiant.e-webshops.eu (defiant.e-webshops.eu [82.146.122.140]) (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 69F221A6F0A for <cfrg@irtf.org>; Mon, 12 Jan 2015 13:46:46 -0800 (PST)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by defiant.e-webshops.eu (Postfix) with ESMTP id 01DF71C2149; Mon, 12 Jan 2015 22:46:44 +0100 (CET)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id D973A1FE056F; Mon, 12 Jan 2015 22:46:43 +0100 (CET)
Date: Mon, 12 Jan 2015 22:46:43 +0100
From: Kurt Roeckx <kurt@roeckx.be>
To: Andrey Jivsov <crypto@brainhub.org>
Message-ID: <20150112214643.GA12418@roeckx.be>
References: <54AA4AB9.70505@brainhub.org> <54AA5AD3.9020009@shiftleft.org> <54AAEEFC.9060309@brainhub.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <54AAEEFC.9060309@brainhub.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/hKIv3ju-ASHbLeZMELrsrE39FA0>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 12 Jan 2015 21:46:52 -0000

On Mon, Jan 05, 2015 at 12:07:24PM -0800, Andrey Jivsov wrote:
> 
> A common assumption is that we need point compression in ECDH, from which it
> follows that Montgomery representation is a wash for p ~ 2^256.
[...]
> This is fine for authenticated keys, e.g. because these will be distributed
> in X.509 certificates, DNS records, etc.

It's my understanding that at least for TLS the consensus is to
drop ECDH in favour of ephemeral versions only.  As far as I know
it's also very uncommon to see it in X509 certificates.  Are there
going to be uses of static ECDH?


Kurt


From nobody Mon Jan 12 18:38:48 2015
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 6D2551A89E0; Mon, 12 Jan 2015 18:38:40 -0800 (PST)
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 8bmUzyJZD9HC; Mon, 12 Jan 2015 18:38:38 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A03C51A89A3; Mon, 12 Jan 2015 18:38:38 -0800 (PST)
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.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150113023838.9788.44226.idtracker@ietfa.amsl.com>
Date: Mon, 12 Jan 2015 18:38:38 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/93aDVXtuwlgzlyTI3zN8w7kiFxY>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-ladd-spake2-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: Tue, 13 Jan 2015 02:38:40 -0000

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

        Title           : SPAKE2, a PAKE
        Author          : Watson Ladd
	Filename        : draft-ladd-spake2-01.txt
	Pages           : 6
	Date            : 2015-01-12

Abstract:
   This Internet-Draft describes SPAKE2, a secure, efficient password
   based key exchange protocol.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ladd-spake2/

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-ladd-spake2-01

A diff from the previous version is available at:
http://www.ietf.org/rfcdiff?url2=draft-ladd-spake2-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 Mon Jan 12 18:38:55 2015
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 163C21A89AC; Mon, 12 Jan 2015 18:38:42 -0800 (PST)
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 v4-JCKPfLDNS; Mon, 12 Jan 2015 18:38:40 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id D59191A89AD; Mon, 12 Jan 2015 18:38:38 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: cfrg-chairs@tools.ietf.org, cfrg@ietf.org, draft-ladd-spake2.all@tools.ietf.org, IRSG <irsg@irtf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 5.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150113023838.9788.79666.idtracker@ietfa.amsl.com>
Date: Mon, 12 Jan 2015 18:38:38 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/sG-M4sv4JV9dws-AxCT9G7aDS9Y>
Subject: [Cfrg] New Version Notification - draft-ladd-spake2-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: Tue, 13 Jan 2015 02:38:42 -0000

A new version (-01) has been submitted for draft-ladd-spake2:
http://www.ietf.org/internet-drafts/draft-ladd-spake2-01.txt


The IETF datatracker page for this Internet-Draft is:
https://datatracker.ietf.org/doc/draft-ladd-spake2/

Diff from previous version:
http://www.ietf.org/rfcdiff?url2=draft-ladd-spake2-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.

IETF Secretariat.


From nobody Tue Jan 13 14:20:06 2015
Return-Path: <tlyu@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 A88CA1B29E5 for <cfrg@ietfa.amsl.com>; Tue, 13 Jan 2015 14:19:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.211
X-Spam-Level: 
X-Spam-Status: No, score=-4.211 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8gwauluJ1rTw for <cfrg@ietfa.amsl.com>; Tue, 13 Jan 2015 14:19:57 -0800 (PST)
Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu [18.7.68.37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6751A1ACD01 for <cfrg@irtf.org>; Tue, 13 Jan 2015 14:19:57 -0800 (PST)
X-AuditID: 12074425-f798e6d000000d1a-ff-54b59a0b1e5d
Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 14.0C.03354.B0A95B45; Tue, 13 Jan 2015 17:19:56 -0500 (EST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id t0DMJtha021811; Tue, 13 Jan 2015 17:19:55 -0500
Received: from localhost (sarnath.mit.edu [18.18.1.190]) (authenticated bits=0) (User authenticated as tlyu@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t0DMJsTq023206; Tue, 13 Jan 2015 17:19:54 -0500
From: Tom Yu <tlyu@mit.edu>
To: Alexey Melnikov <alexey.melnikov@isode.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <54AAEC3F.1090308@isode.com>
Date: Tue, 13 Jan 2015 17:19:53 -0500
In-Reply-To: <54AAEC3F.1090308@isode.com> (Alexey Melnikov's message of "Mon,  5 Jan 2015 19:55:43 +0000")
Message-ID: <ldv61cacohi.fsf@sarnath.mit.edu>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsUixG6nrssza2uIweltjBYzVhdZdP84yOTA 5DF542E2j1PNhgFMUVw2Kak5mWWpRfp2CVwZO95pFazkrPhwv4u1gXEXexcjJ4eEgIlE466d bBC2mMSFe+uBbC4OIYHFTBIrPzYygSSEBDYySmxbkw9hv2GU2PGoBsRmE5CWOH55F1iNiIC+ xOpXs1hAbGYBFYlnnSdZQWxhASeJle2nmSF6oyX2tq9mBLFZBFQl7n/eBHYEp0C2xI87q8Dm 8AroSiybuQIsziPAKXGoZyUjRFxQ4uTMJ1DztSRu/HvJNIFRYBaS1CwkqQWMTKsYZVNyq3Rz EzNzilOTdYuTE/PyUot0LfRyM0v0UlNKNzGCA9FFdQfjhENKhxgFOBiVeHh3ZG8JEWJNLCuu zD3EKMnBpCTKyzpja4gQX1J+SmVGYnFGfFFpTmrxIUYJDmYlEd5NU4FyvCmJlVWpRfkwKWkO FiVx3k0/+EKEBNITS1KzU1MLUotgsjIcHEoSvOtAhgoWpaanVqRl5pQgpJk4OEGG8wAN/w1S w1tckJhbnJkOkT/FqCglDtEsAJLIKM2D64UlileM4kCvCPNuAaniASYZuO5XQIOZgAY3JIEN LklESEk1MK6OV88qixIpiVocWlXIErt8aZkAS/n2+e6rdY7czMsKCWISZj0ecmympdTLqJvv BTr+X1un7jW30kagRL10y/Zj1h+PJNwxmsZnlTFvW9Khf1LXniVwn/MzmBUbXqZq+fzeh0cX RCI0N3G1/HFQ3qelJuf64MWa2EcC+dvv1yiJiEaLJi/vU2Ipzkg01GIuKk4EANnV553vAgAA
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/4lV3tZSgqyUdpBQmF6-EyStaJ80>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2015 22:19:59 -0000

Alexey Melnikov <alexey.melnikov@isode.com> writes:

> On 14/12/2014 16:41, Alexey Melnikov wrote:
>> Hi,
>> This message starts 3 weeks adoption call for
>> draft-ladd-spake2. Please reply to this message or directly to CFRG
>> chairs, stating one of the following
>>
>> 1) that you are happy to adopt the draft as a starting point
>> 2) that you are not happy to adopt this draft
>> or
>> 3) that you think the document needs more work before the RG should
>> consider adopting it
>>
>> While detailed document reviews are generally welcome, this not a
>> call to provide detailed comments on the document.
> So far I have 4 people in favour of working on this and 3 against
> (some of these replied privately). I have emailed a few more, but I
> would like more feedback.

I'm sorry for not responding sooner.

I'm happy for the RG to adopt draft-ladd-spake2 as a starting point.  I
think it still needs additional work before publication, but not enough
to be a barrier to adoption.

To address some comments I've heard earlier, PAKE algorithms are still
interesting for protocols such as Kerberos, especially for zeroconf or
near-zeroconf situations.

-Tom


From nobody Tue Jan 13 14:21:56 2015
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 BD0E11ACEC9 for <cfrg@ietfa.amsl.com>; Tue, 13 Jan 2015 14:21:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BE9Bc-9i9k0m for <cfrg@ietfa.amsl.com>; Tue, 13 Jan 2015 14:21:51 -0800 (PST)
Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E06FD1ACDE4 for <cfrg@irtf.org>; Tue, 13 Jan 2015 14:21:50 -0800 (PST)
Received: by mail-lb0-f182.google.com with SMTP id u10so4994737lbd.13 for <cfrg@irtf.org>; Tue, 13 Jan 2015 14:21:49 -0800 (PST)
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=5RoR8h+mY3dVeZxsglM5L5WHG8kC/AkP/9dkAnA5638=; b=Ap27bhWaaZccMzp2olpD7ZVso5o/QQjrYBU4ceuzrEblTTtOErvltVPgasxOTidYxt ax3n4wlezD9cbgnPQhlyzVwmcmC7u5cg+RhcwtrF+IJPD9p45tv6Id4p2BJntFnnaOUn YrRnKGY7WrdJBcpxmMkeveite2BHOj/+JZ5LrLR/aHD9EDkgD4H+12wSeoA5CmQ3seNi E3KYu/IzHk3amohNrpEwkKDkVlo8wiew4RC/4M6YbsO+jL21gBnPNycDIAxBqSISJ59e IXhJo7gaHdOdH7VJ+pvrij1R2zpUof5tRIfsh70FkO0qEhQyuHsrC7uKwiDWwc+mJO8u qI6g==
X-Gm-Message-State: ALoCoQmuevrnAxVFhA6LzmnaQPoHgo8/uG6iMb9hQdXozdb5iYCDQd95CTBwTG7owFIwLpK0H0lb
X-Received: by 10.112.26.135 with SMTP id l7mr683251lbg.56.1421187709350; Tue, 13 Jan 2015 14:21:49 -0800 (PST)
MIME-Version: 1.0
Received: by 10.152.7.132 with HTTP; Tue, 13 Jan 2015 14:21:28 -0800 (PST)
In-Reply-To: <ldv61cacohi.fsf@sarnath.mit.edu>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <54AAEC3F.1090308@isode.com> <ldv61cacohi.fsf@sarnath.mit.edu>
From: Andy Lutomirski <luto@amacapital.net>
Date: Tue, 13 Jan 2015 14:21:28 -0800
Message-ID: <CALCETrWB9hZdN-m4qduf6QpifB_RvpOttk6umOCVOVzvETj=bA@mail.gmail.com>
To: Tom Yu <tlyu@mit.edu>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/aDPvyejsoI3kIbPDG9fpxweTKHY>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2015 22:21:55 -0000

On Tue, Jan 13, 2015 at 2:19 PM, Tom Yu <tlyu@mit.edu> wrote:
> Alexey Melnikov <alexey.melnikov@isode.com> writes:
>
>> On 14/12/2014 16:41, Alexey Melnikov wrote:
>>> Hi,
>>> This message starts 3 weeks adoption call for
>>> draft-ladd-spake2. Please reply to this message or directly to CFRG
>>> chairs, stating one of the following
>>>
>>> 1) that you are happy to adopt the draft as a starting point
>>> 2) that you are not happy to adopt this draft
>>> or
>>> 3) that you think the document needs more work before the RG should
>>> consider adopting it
>>>
>>> While detailed document reviews are generally welcome, this not a
>>> call to provide detailed comments on the document.
>> So far I have 4 people in favour of working on this and 3 against
>> (some of these replied privately). I have emailed a few more, but I
>> would like more feedback.
>
> I'm sorry for not responding sooner.
>
> I'm happy for the RG to adopt draft-ladd-spake2 as a starting point.  I
> think it still needs additional work before publication, but not enough
> to be a barrier to adoption.
>
> To address some comments I've heard earlier, PAKE algorithms are still
> interesting for protocols such as Kerberos, especially for zeroconf or
> near-zeroconf situations.

I would like to see an augmented form published, too.  I don't know
whether it should be in this document or a different document.

--Andy

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



-- 
Andy Lutomirski
AMA Capital Management, LLC


From nobody Wed Jan 14 05:45:24 2015
Return-Path: <manfred.lochter@bsi.bund.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 67FA61B2C9B for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 05:45:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.66
X-Spam-Level: 
X-Spam-Status: No, score=-4.66 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01, 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 aAjdmWlgkzFU for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 05:45:19 -0800 (PST)
Received: from m3-bn.bund.de (m3-bn.bund.de [77.87.228.75]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A44841A8AB4 for <cfrg@irtf.org>; Wed, 14 Jan 2015 05:45:17 -0800 (PST)
Received: from m3.mfw.bn.ivbb.bund.de (localhost.mfw.bn.ivbb.bund.de [127.0.0.1]) by m3-bn.bund.de (8.14.5/8.14.5) with ESMTP id t0EDjF60032014 for <cfrg@irtf.org>; Wed, 14 Jan 2015 14:45:15 +0100 (CET)
Received: (from localhost) by m3.mfw.bn.ivbb.bund.de (MSCAN) id 5/m3.mfw.bn.ivbb.bund.de/smtp-gw/mscan; Wed Jan 14 14:45:15 2015
X-P350-Id: 25b396ea3d47c2b0
X-Virus-Scanned: by amavisd-new at bsi.bund.de
From: "Lochter, Manfred" <manfred.lochter@bsi.bund.de>
Organization: BSI Bonn
To: cfrg@irtf.org
Date: Wed, 14 Jan 2015 14:44:45 +0100
User-Agent: KMail/1.9.10 (enterprise35 20141110.4f903a5)
References: <20141201223720.12122.qmail@cr.yp.to>
In-Reply-To: <20141201223720.12122.qmail@cr.yp.to>
X-KMail-QuotePrefix: > 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-ID: <201501141444.45855.manfred.lochter@bsi.bund.de>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/aJWtiehg2XbyUkElXYYBTBEq5G8>
Cc: "D. J. Bernstein" <djb@cr.yp.to>
Subject: Re: [Cfrg] Mishandling twist attacks
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Jan 2015 13:45:22 -0000

Here we still seem to disagree, Dan.=20

When we talked about this topic during RWC I had the impression that you we=
re=20
only adressing DH and not signatures. Now I rechecked your contribution and=
=20
would like to make some comments:

=46or signatures setting any bit may allow lattice-attacks. Do you have a p=
roof=20
for your claim that "Setting the high bit of such a long nonce is also=20
perfectly safe."? I would be glad to have a look at it if you provide a=20
source.

I' m not blaming the high bit, as you state, but the unnecessary tweak of t=
he=20
nonce. The same effect can easily be achived by using dummy operations.

In addition this method does not make an implementors life easier. In real=
=20
world applications users will forget the additional bit and make their=20
implementations vulnerable to Timing Attacks.

The necessary length of nonces depends on the stucture of the underlying pr=
ime=20
field and of the order of the chosen group order. Whilst for NIST curves 32=
=20
bits seem to be OK, for general n-bit curves over special prime fields n bi=
ts=20
of blinding are necessary. This blinding length is then not "an extra long=
=20
nonce" but the minimum-length nonce to withstand SCA.=20

I admit, that for some implementations (depending on hardware used, and oth=
er=20
factors) your method may still allow faster implementations than random pri=
me=20
curves with maximum necessary nonce length.

However implementation security may not be improved:

(a) Users will change to shorter nonces to become even faster. They be then=
=20
use a too short nonce.
(b) Even if the curves support constant-time ladders, there is no guarantee=
=20
that users will implement these ladders.=20

Manfred







__________ urspr=FCngliche Nachricht __________

Von:		"D. J. Bernstein" <djb@cr.yp.to>
Datum:	Montag, 1. Dezember 2014, 23:37:20
An:		cfrg@irtf.org
Kopie:=09
Betr.:	Re: [Cfrg] Mishandling twist attacks

> Lochter, Manfred writes:
> > On the other hand this countermeasure is quite dangerous, when applied
> > during signature generation.
>
> No. It's true that minimum-length signature nonces with the high bit set
> are dangerous, but minimum-length signature nonces _without_ the high
> bit set are _also_ dangerous, so blaming the high bit is unreasonable.
>
> The best protection we know is to generate much longer nonces---such as
> the 512-bit nonces in Ed25519. Then the system isn't broken by a timing
> attack revealing the nonce length. Setting the high bit of such a long
> nonce is also perfectly safe.
>
> Of course, an implementor can still get in trouble by (1) reducing these
> nonces and then (2) leaking the lengths of the reduced nonces through a
> variable-time scalarmult method. So, as another line of defense, we also
> choose curves that support simple, fast, constant-time ladders.
>
> ---Dan
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg

=2D-=20
Lochter, Manfred
=2D-------------------------------------------
Bundesamt f=FCr Sicherheit in der Informationstechnik (BSI)
Referat K21
Godesberger Allee 185 -189
53175 Bonn

Postfach 20 03 63
53133 Bonn

Telefon: +49 (0)228 99 9582 5643
Telefax: +49 (0)228 99 10 9582 5643
E-Mail: manfred.lochter@bsi.bund.de
Internet:
www.bsi.bund.de
www.bsi-fuer-buerger.de


From nobody Wed Jan 14 06:34:26 2015
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 58A801A8AD8; Wed, 14 Jan 2015 06:34:18 -0800 (PST)
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 Ixiw90v6ddAu; Wed, 14 Jan 2015 06:34:13 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A8BA41A870C; Wed, 14 Jan 2015 06:34:13 -0800 (PST)
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.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150114143413.12276.29693.idtracker@ietfa.amsl.com>
Date: Wed, 14 Jan 2015 06:34:13 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/SK0ptbVGlGw12Pdzr3y4Kaags8I>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2015 14:34:18 -0000

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

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-irtf-cfrg-chacha20-poly1305-06.txt
	Pages           : 43
	Date            : 2015-01-14

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.  It is a
   product of the Crypto Forum Research Group (CFRG)


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

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


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

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


From nobody Wed Jan 14 06:50:51 2015
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 E5AAF1B2CDB for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 06:50:48 -0800 (PST)
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 rBzqmqmTygV1 for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 06:50:46 -0800 (PST)
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 E90E71B2CD3 for <cfrg@irtf.org>; Wed, 14 Jan 2015 06:50:45 -0800 (PST)
In-Reply-To: <20150114143413.12276.29693.idtracker@ietfa.amsl.com>
References: <20150114143413.12276.29693.idtracker@ietfa.amsl.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Wed, 14 Jan 2015 14:50:37 +0000
To: cfrg@irtf.org
Message-ID: <0ED4D299-2CCC-4427-A52C-2F7BDD4634EE@akr.io>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/UpCcQrbTfl-tCR37D2KGsdH2SAg>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2015 14:50:49 -0000

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

On 14 January 2015 14:34:13 GMT+00:00, internet-drafts@ietf.org wrote:

>        Title           : ChaCha20 and Poly1305 for IETF protocols
>        Authors         : Yoav Nir
>                          Adam Langley
>	Filename        : draft-irtf-cfrg-chacha20-poly1305-06.txt
>	Pages           : 43
>	Date            : 2015-01-14

Quick nit:

> The calculated tag is bitwise compared to the received tag.

..."in constant time", perhaps we should add there, in case someone gets some bright ideas with plain vanilla memcmp() from that paragraph?

Just a thought.

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

iQI3BAEBCgAhBQJUtoI9GhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t61tkP/0quTyB88CG1IF5l5xDDDTuzKqIIGn9rMgX4glRCj2x38q4cDfUY
1mB7nPjd+c4zFZj2XqeT3ZBVeLmkOAua8MnJhVlfHvmHnyaYWOf5iYBAk1mEXcV5
fMN1dnJdqs3mLFgqSq8SaEHcF6r5GgS6z/gb0Cvu4+iO6JkM1BPabDtBQtu7Zh64
bzlqpMqOqpLkflpBkjBiLNR6jU4WXSmvLYiPqhCL8qdwaioFMV0s3PYRq+9AMbvI
/yIhGLGnbH7nYMvE4lu5kIVb6XN4+/wDZ3+3MiwyKzfWhVoBK3v0bOGMSUjoDVNt
zuP/BLcU5tvJvKPZl2Ok0XDh5+ZUMZNTNzi1tHfRjnItjtPkRoB6QVyE23if8aBe
+59JRUSAnIs4/jdnvig85BLhnnXQ9A8ac/SShfEoVNCfPhxGp5espwS+5Nbsv8VV
VCa8CP2zw1mPc3qphoEb8y+loCgq3wAVAZAnBpWs8nIzzPKYr/4DKArQT6BTUqhQ
fqx5Rc99HgXB7GMA9HULrAoaDkB9AttCZkbS16FDJ9kbeacHLINfMnJY2vhzS1CM
1T3UJ3bdahnIpH5mAvB2fG7wtK2CISJ7qIMATgsgQFvl4dr+8JRrpecma+PvV/ms
yclTFAbnV9Pjk7IALd7aLHjtxW7wxSNVYlx5/fmY9zWFc1HiuIorJS7e
=h6PU
-----END PGP SIGNATURE-----


From nobody Wed Jan 14 07:09:41 2015
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 76D0C1A897A for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 07:09:26 -0800 (PST)
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 IWBG43R2Dgv3 for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 07:09:17 -0800 (PST)
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 1DE371A8958 for <cfrg@irtf.org>; Wed, 14 Jan 2015 07:09:17 -0800 (PST)
Received: by mail-wg0-f51.google.com with SMTP id x12so9430334wgg.10 for <cfrg@irtf.org>; Wed, 14 Jan 2015 07:09:15 -0800 (PST)
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=K/10OviiewFEK64cptpKL5WGUoOgiK70yZFw77Q1K7M=; b=dUZNXD/vgWE9+x3UhnOjufbcBqYxDhRVHIbshOtBdu18RV1Yp18dYthEfoJDRShmx8 ncs2/zkYKe+yhmlAKRB5KPBiWVTPSxRjyvfRxjquY2nXXkFAMtZwDmdzC0N41xW8UDXT gf+GGYzLXDB1p4XsU5qqnIH4ZuxJ23P78UBKsCRJS55rWb8uTYe/apg0KEqwZT/Mx5qg slr7qUaWdAYgZEXOy541mSmh07bRWtUF3e5UlxKDoO1OLaI8+pWuhpAnILIA9lDCRBY6 uawYH+Yi+kAAOpRnXLF6sqdeExTmvkgP4LcC9GXv7CD0DZ7vcvnTyv3yF2S/ycC5QEuQ /pCA==
X-Received: by 10.194.187.235 with SMTP id fv11mr8358943wjc.16.1421248154543;  Wed, 14 Jan 2015 07:09:14 -0800 (PST)
Received: from [172.24.251.208] (dyn32-131.checkpoint.com. [194.29.32.131]) by mx.google.com with ESMTPSA id dp8sm18999709wib.20.2015.01.14.07.09.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 07:09:13 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <0ED4D299-2CCC-4427-A52C-2F7BDD4634EE@akr.io>
Date: Wed, 14 Jan 2015 17:09:10 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <7FB23519-5635-46AA-AFB7-C4D8A4210AF1@gmail.com>
References: <20150114143413.12276.29693.idtracker@ietfa.amsl.com> <0ED4D299-2CCC-4427-A52C-2F7BDD4634EE@akr.io>
To: Alyssa Rowan <akr@akr.io>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/YYSWehw4X7NUclUoLXpgW8fHV1Q>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2015 15:09:27 -0000

Does it matter? =20

memcmp works word-by-word, so on a 32-bit system the attacker would need =
to send 4 * 2^32 / 2 copies of a message with different tags to guess =
the correct tag without valid traffic invalidating the AAD. And that =
assumes that memcmp on 16 bytes can even be measured when it stops =
prematurely.

OK, I=E2=80=99ll add a line to the security considerations.

Yoav


> On Jan 14, 2015, at 4:50 PM, Alyssa Rowan <akr@akr.io> wrote:
>=20
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>=20
> On 14 January 2015 14:34:13 GMT+00:00, internet-drafts@ietf.org wrote:
>=20
>>       Title           : ChaCha20 and Poly1305 for IETF protocols
>>       Authors         : Yoav Nir
>>                         Adam Langley
>> 	Filename        : draft-irtf-cfrg-chacha20-poly1305-06.txt
>> 	Pages           : 43
>> 	Date            : 2015-01-14
>=20
> Quick nit:
>=20
>> The calculated tag is bitwise compared to the received tag.
>=20
> ..."in constant time", perhaps we should add there, in case someone =
gets some bright ideas with plain vanilla memcmp() from that paragraph?
>=20
> Just a thought.
>=20
> - --
> /akr
> -----BEGIN PGP SIGNATURE-----
> Version: APG v1.1.1
>=20
> iQI3BAEBCgAhBQJUtoI9GhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
> jtkWi2t61tkP/0quTyB88CG1IF5l5xDDDTuzKqIIGn9rMgX4glRCj2x38q4cDfUY
> 1mB7nPjd+c4zFZj2XqeT3ZBVeLmkOAua8MnJhVlfHvmHnyaYWOf5iYBAk1mEXcV5
> fMN1dnJdqs3mLFgqSq8SaEHcF6r5GgS6z/gb0Cvu4+iO6JkM1BPabDtBQtu7Zh64
> bzlqpMqOqpLkflpBkjBiLNR6jU4WXSmvLYiPqhCL8qdwaioFMV0s3PYRq+9AMbvI
> /yIhGLGnbH7nYMvE4lu5kIVb6XN4+/wDZ3+3MiwyKzfWhVoBK3v0bOGMSUjoDVNt
> zuP/BLcU5tvJvKPZl2Ok0XDh5+ZUMZNTNzi1tHfRjnItjtPkRoB6QVyE23if8aBe
> +59JRUSAnIs4/jdnvig85BLhnnXQ9A8ac/SShfEoVNCfPhxGp5espwS+5Nbsv8VV
> VCa8CP2zw1mPc3qphoEb8y+loCgq3wAVAZAnBpWs8nIzzPKYr/4DKArQT6BTUqhQ
> fqx5Rc99HgXB7GMA9HULrAoaDkB9AttCZkbS16FDJ9kbeacHLINfMnJY2vhzS1CM
> 1T3UJ3bdahnIpH5mAvB2fG7wtK2CISJ7qIMATgsgQFvl4dr+8JRrpecma+PvV/ms
> yclTFAbnV9Pjk7IALd7aLHjtxW7wxSNVYlx5/fmY9zWFc1HiuIorJS7e
> =3Dh6PU
> -----END PGP SIGNATURE-----
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jan 14 07:55:47 2015
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 B550F1A8AF8 for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 07:55:45 -0800 (PST)
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 D1MqWvkG_IdN for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 07:55:41 -0800 (PST)
Received: from mail-yh0-x230.google.com (mail-yh0-x230.google.com [IPv6:2607:f8b0:4002:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 999AD1A8ADE for <cfrg@irtf.org>; Wed, 14 Jan 2015 07:55:41 -0800 (PST)
Received: by mail-yh0-f48.google.com with SMTP id i57so4752343yha.7 for <cfrg@irtf.org>; Wed, 14 Jan 2015 07:55:40 -0800 (PST)
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=PSA2+UUFdJqOM4RyEyCGx08sD9J9j5RQi9c9C5q3+tY=; b=aLLzN8Vf2FTGM98vnYLqp6RLN7Wkm8O3LGTYIc/J8hZMr4jsHpjVSgpUGre9QZnKmG 0cgJtv3ZY8UBSAhVv1u4OBE2IKgtsxci92LD8EwYLD6lksNU2hmsff+JvMIFEiGrD6PU JmWlkv0H9DfazndQoW51pQHOmPEJtWdM1doBk5rLedfcT9sJZpjPwHhLjWGN1wpyeHKP U7MsZ1QC+dzUixpXxu9Oa3kLeEoJcZuO72pdg21tZRUJNf4KNyd+DFB5DIPLKyWYL0el AdPyTusJf57XCoS0hmznQ83fy6SI5l1zT5x8tmwiVw6Pmxviw3I1TPQOEruWl2aIX++v meKA==
MIME-Version: 1.0
X-Received: by 10.236.18.194 with SMTP id l42mr2398310yhl.172.1421250940799; Wed, 14 Jan 2015 07:55:40 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Wed, 14 Jan 2015 07:55:40 -0800 (PST)
In-Reply-To: <201501141444.45855.manfred.lochter@bsi.bund.de>
References: <20141201223720.12122.qmail@cr.yp.to> <201501141444.45855.manfred.lochter@bsi.bund.de>
Date: Wed, 14 Jan 2015 07:55:40 -0800
Message-ID: <CACsn0ckPnydBtjGiVCS0B_3=r8CeSKaDVTx6FgxT1CWCPBMMRA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Lochter, Manfred" <manfred.lochter@bsi.bund.de>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/9_zYT_W1OhByLJHwzQBNJeKZRxg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "D. J. Bernstein" <djb@cr.yp.to>
Subject: Re: [Cfrg] Mishandling twist attacks
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 14 Jan 2015 15:55:45 -0000

On Wed, Jan 14, 2015 at 5:44 AM, Lochter, Manfred
<manfred.lochter@bsi.bund.de> wrote:
>
> Here we still seem to disagree, Dan.
>
> When we talked about this topic during RWC I had the impression that you =
were
> only adressing DH and not signatures. Now I rechecked your contribution a=
nd
> would like to make some comments:
>
> For signatures setting any bit may allow lattice-attacks. Do you have a p=
roof
> for your claim that "Setting the high bit of such a long nonce is also
> perfectly safe."? I would be glad to have a look at it if you provide a
> source.

Remember how the Bleichenbacher attack actually works, and what the
countermeasure recommended in standards is.

The Bleichenbacher attack relies on the bias caused by reducing a
number uniformly in the range [0, 2^n) modulo p, where p
is close to 2^n. The bias is approximately 1/2^(n-log(p)). When n is
about 2 log p, this becomes negligible.

Adding the high bit means taking numbers in the range [2^(n-1), 2^n).
The bias is now 1/2^(n-1-log(p)), which is still small.

>
> I' m not blaming the high bit, as you state, but the unnecessary tweak of=
 the
> nonce. The same effect can easily be achived by using dummy operations.
>
> In addition this method does not make an implementors life easier. In rea=
l
> world applications users will forget the additional bit and make their
> implementations vulnerable to Timing Attacks.

Implementors can also use powering computations that are constant
time. The countermeasures you describe are frequently not implemented,
and in many cases can be bypassed by cache-based attacks examining
data flow, for instance. It's also not clear that they are necessary:
the Montgomery ladder is extremely performant and has a uniform flow
of operations. Comb based methods with protection can be trickier.

(For use in signatures, one would likely need to add on y coordinate
reconstruction and an isogeny: the formulas  for reconstruction exist
out there, but I've not found a good source yet.)

>
> The necessary length of nonces depends on the stucture of the underlying =
prime
> field and of the order of the chosen group order. Whilst for NIST curves =
32
> bits seem to be OK, for general n-bit curves over special prime fields n =
bits
> of blinding are necessary. This blinding length is then not "an extra lon=
g
> nonce" but the minimum-length nonce to withstand SCA.

You appear to be confusing two issues: generation of signature nonces
and computing scalar multiples securely. Using a double-length nonce
solves the secure generation problem. When it comes to computing
scalar multiples, blinding of the scalar involves adding a random
multiple of the
prime. Of course, when this is a nonce used in a signature, produced
by reducing a double length nonce, adding back a random multiple might
as well be using the original nonce.

In particular, the length of extra bits required for Bleichenbacher
defense is largely independent of the prime. The claimed superiority
of random primes for blinding is in doubt: several people have pointed
to papers breaking this protection unless we use 256, not 32 extra
bits. Certainly for the NIST primes 32 bits extra will not randomize
significant blocks of bits.

>
> I admit, that for some implementations (depending on hardware used, and o=
ther
> factors) your method may still allow faster implementations than random p=
rime
> curves with maximum necessary nonce length.
>
> However implementation security may not be improved:
>
> (a) Users will change to shorter nonces to become even faster. They be th=
en
> use a too short nonce.
> (b) Even if the curves support constant-time ladders, there is no guarant=
ee
> that users will implement these ladders.

One can use a uniform nonce in [0, p), obtained by rejection sampling.
I don't see how this issue doesn't also apply to random primes.

Yes, implementors in the pay of the NSA or BND can always make
"mistakes". However, we've described the constant-time ladder in the
draft and explained why it should be used. When it comes to
signatures, I expect that a similar amount of attention will be paid.

Sincerely,
Watson Ladd

>
> Manfred
>
>
>
>
>
>
>
> __________ urspr=C3=BCngliche Nachricht __________
>
> Von:            "D. J. Bernstein" <djb@cr.yp.to>
> Datum:  Montag, 1. Dezember 2014, 23:37:20
> An:             cfrg@irtf.org
> Kopie:
> Betr.:  Re: [Cfrg] Mishandling twist attacks
>
>> Lochter, Manfred writes:
>> > On the other hand this countermeasure is quite dangerous, when applied
>> > during signature generation.
>>
>> No. It's true that minimum-length signature nonces with the high bit set
>> are dangerous, but minimum-length signature nonces _without_ the high
>> bit set are _also_ dangerous, so blaming the high bit is unreasonable.
>>
>> The best protection we know is to generate much longer nonces---such as
>> the 512-bit nonces in Ed25519. Then the system isn't broken by a timing
>> attack revealing the nonce length. Setting the high bit of such a long
>> nonce is also perfectly safe.
>>
>> Of course, an implementor can still get in trouble by (1) reducing these
>> nonces and then (2) leaking the lengths of the reduced nonces through a
>> variable-time scalarmult method. So, as another line of defense, we also
>> choose curves that support simple, fast, constant-time ladders.
>>
>> ---Dan
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>
> --
> Lochter, Manfred
> --------------------------------------------
> Bundesamt f=C3=BCr Sicherheit in der Informationstechnik (BSI)
> Referat K21
> Godesberger Allee 185 -189
> 53175 Bonn
>
> Postfach 20 03 63
> 53133 Bonn
>
> Telefon: +49 (0)228 99 9582 5643
> Telefax: +49 (0)228 99 10 9582 5643
> E-Mail: manfred.lochter@bsi.bund.de
> Internet:
> www.bsi.bund.de
> www.bsi-fuer-buerger.de
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



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


From nobody Wed Jan 14 08:06:04 2015
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 40E2F1A8AAE; Wed, 14 Jan 2015 08:06:00 -0800 (PST)
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 I00OnWCQnCCv; Wed, 14 Jan 2015 08:05:55 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A7EA51A8AAA; Wed, 14 Jan 2015 08:05:55 -0800 (PST)
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.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150114160555.9943.95027.idtracker@ietfa.amsl.com>
Date: Wed, 14 Jan 2015 08:05:55 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/F0ikor9Ecx2KdjKpNpVMzMVS_gM>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-07.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, 14 Jan 2015 16:06:00 -0000

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

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-irtf-cfrg-chacha20-poly1305-07.txt
	Pages           : 44
	Date            : 2015-01-14

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.  It is a
   product of the Crypto Forum Research Group (CFRG)


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

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


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 Jan 14 08:06:41 2015
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 7439A1A1ABF for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 08:06:38 -0800 (PST)
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 B-LZQhLB9r-M for <cfrg@ietfa.amsl.com>; Wed, 14 Jan 2015 08:06:35 -0800 (PST)
Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B7CEE1A8AAA for <cfrg@irtf.org>; Wed, 14 Jan 2015 08:06:34 -0800 (PST)
Received: by mail-we0-f181.google.com with SMTP id q58so9649987wes.12 for <cfrg@irtf.org>; Wed, 14 Jan 2015 08:06:33 -0800 (PST)
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=LTEMg9KvMdcVO4Q1Axp79G1BsvW/8w6v7pLJr6baBtM=; b=xf+a1O876Fq68fM8yQlwGrDz7v4LGLmuj7KHxI3baxqa2kTmYHzyi4xWwdUeHJkxho Gl21afZA0I3BKwbgwfbv9LPJYDHTXEBvbtTTt6vZivbgEvX1crsvCmGGIj8gLOlvwSjk COHPr3pzWSB1waYmf2xJpaOnzxFYOfdCxDSP9W4u+wuSKvJbPLGZFGmphCFPg/MBtMlf os6TfPmo7tjmpzPu1poA4brbC5mXuADPlLt2H871zxXn8FJjagxfG2+DRR5VGYCbNpgj +0WUMsWc/12qu2v8jfgZZUq/84DmnCwr8BWXJvI3eKokNEgL5XSlzqdyb+j6DRAXH1TX JAjA==
MIME-Version: 1.0
X-Received: by 10.180.105.68 with SMTP id gk4mr9891379wib.30.1421251593251; Wed, 14 Jan 2015 08:06:33 -0800 (PST)
Received: by 10.194.32.195 with HTTP; Wed, 14 Jan 2015 08:06:33 -0800 (PST)
In-Reply-To: <7FB23519-5635-46AA-AFB7-C4D8A4210AF1@gmail.com>
References: <20150114143413.12276.29693.idtracker@ietfa.amsl.com> <0ED4D299-2CCC-4427-A52C-2F7BDD4634EE@akr.io> <7FB23519-5635-46AA-AFB7-C4D8A4210AF1@gmail.com>
Date: Wed, 14 Jan 2015 18:06:33 +0200
Message-ID: <CAGvU-a7x6SaeCiqX5DtKeDhLTTmc8fF9j56V+5J6UOVYEE5LZg@mail.gmail.com>
From: Yoav Nir <ynir.ietf@gmail.com>
To: Alyssa Rowan <akr@akr.io>
Content-Type: multipart/alternative; boundary=f46d04426a605a33d0050c9eec8b
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/4tGOtZBuM_jG2lsEd64x9a5oGLo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2015 16:06:39 -0000

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

OK. Submitted

On Wed, Jan 14, 2015 at 5:09 PM, Yoav Nir <ynir.ietf@gmail.com> wrote:

> Does it matter?
>
> memcmp works word-by-word, so on a 32-bit system the attacker would need
> to send 4 * 2^32 / 2 copies of a message with different tags to guess the
> correct tag without valid traffic invalidating the AAD. And that assumes
> that memcmp on 16 bytes can even be measured when it stops prematurely.
>
> OK, I=E2=80=99ll add a line to the security considerations.
>
> Yoav
>
>
> > On Jan 14, 2015, at 4:50 PM, Alyssa Rowan <akr@akr.io> wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA512
> >
> > On 14 January 2015 14:34:13 GMT+00:00, internet-drafts@ietf.org wrote:
> >
> >>       Title           : ChaCha20 and Poly1305 for IETF protocols
> >>       Authors         : Yoav Nir
> >>                         Adam Langley
> >>      Filename        : draft-irtf-cfrg-chacha20-poly1305-06.txt
> >>      Pages           : 43
> >>      Date            : 2015-01-14
> >
> > Quick nit:
> >
> >> The calculated tag is bitwise compared to the received tag.
> >
> > ..."in constant time", perhaps we should add there, in case someone get=
s
> some bright ideas with plain vanilla memcmp() from that paragraph?
> >
> > Just a thought.
> >
> > - --
> > /akr
> > -----BEGIN PGP SIGNATURE-----
> > Version: APG v1.1.1
> >
> > iQI3BAEBCgAhBQJUtoI9GhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
> > jtkWi2t61tkP/0quTyB88CG1IF5l5xDDDTuzKqIIGn9rMgX4glRCj2x38q4cDfUY
> > 1mB7nPjd+c4zFZj2XqeT3ZBVeLmkOAua8MnJhVlfHvmHnyaYWOf5iYBAk1mEXcV5
> > fMN1dnJdqs3mLFgqSq8SaEHcF6r5GgS6z/gb0Cvu4+iO6JkM1BPabDtBQtu7Zh64
> > bzlqpMqOqpLkflpBkjBiLNR6jU4WXSmvLYiPqhCL8qdwaioFMV0s3PYRq+9AMbvI
> > /yIhGLGnbH7nYMvE4lu5kIVb6XN4+/wDZ3+3MiwyKzfWhVoBK3v0bOGMSUjoDVNt
> > zuP/BLcU5tvJvKPZl2Ok0XDh5+ZUMZNTNzi1tHfRjnItjtPkRoB6QVyE23if8aBe
> > +59JRUSAnIs4/jdnvig85BLhnnXQ9A8ac/SShfEoVNCfPhxGp5espwS+5Nbsv8VV
> > VCa8CP2zw1mPc3qphoEb8y+loCgq3wAVAZAnBpWs8nIzzPKYr/4DKArQT6BTUqhQ
> > fqx5Rc99HgXB7GMA9HULrAoaDkB9AttCZkbS16FDJ9kbeacHLINfMnJY2vhzS1CM
> > 1T3UJ3bdahnIpH5mAvB2fG7wtK2CISJ7qIMATgsgQFvl4dr+8JRrpecma+PvV/ms
> > yclTFAbnV9Pjk7IALd7aLHjtxW7wxSNVYlx5/fmY9zWFc1HiuIorJS7e
> > =3Dh6PU
> > -----END PGP SIGNATURE-----
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > http://www.irtf.org/mailman/listinfo/cfrg
>
>

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

<div dir=3D"ltr">OK. Submitted</div><div class=3D"gmail_extra"><br><div cla=
ss=3D"gmail_quote">On Wed, Jan 14, 2015 at 5:09 PM, Yoav Nir <span dir=3D"l=
tr">&lt;<a href=3D"mailto:ynir.ietf@gmail.com" target=3D"_blank">ynir.ietf@=
gmail.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:1ex">Does it =
matter?<br>
<br>
memcmp works word-by-word, so on a 32-bit system the attacker would need to=
 send 4 * 2^32 / 2 copies of a message with different tags to guess the cor=
rect tag without valid traffic invalidating the AAD. And that assumes that =
memcmp on 16 bytes can even be measured when it stops prematurely.<br>
<br>
OK, I=E2=80=99ll add a line to the security considerations.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Yoav<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
&gt; On Jan 14, 2015, at 4:50 PM, Alyssa Rowan &lt;<a href=3D"mailto:akr@ak=
r.io">akr@akr.io</a>&gt; wrote:<br>
&gt;<br>
&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt; Hash: SHA512<br>
&gt;<br>
&gt; On 14 January 2015 14:34:13 GMT+00:00, <a href=3D"mailto:internet-draf=
ts@ietf.org">internet-drafts@ietf.org</a> wrote:<br>
&gt;<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0Title=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0: ChaCha20 and Poly1305 for IETF protocols<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0Authors=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0: Yoav Nir<br>
&gt;&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=A0Adam Langley<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 Filename=C2=A0 =C2=A0 =C2=A0 =C2=A0 : draft-ir=
tf-cfrg-chacha20-poly1305-06.txt<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 Pages=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
: 43<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 Date=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
: 2015-01-14<br>
&gt;<br>
&gt; Quick nit:<br>
&gt;<br>
&gt;&gt; The calculated tag is bitwise compared to the received tag.<br>
&gt;<br>
&gt; ...&quot;in constant time&quot;, perhaps we should add there, in case =
someone gets some bright ideas with plain vanilla memcmp() from that paragr=
aph?<br>
&gt;<br>
&gt; Just a thought.<br>
&gt;<br>
&gt; - --<br>
&gt; /akr<br>
&gt; -----BEGIN PGP SIGNATURE-----<br>
&gt; Version: APG v1.1.1<br>
&gt;<br>
&gt; iQI3BAEBCgAhBQJUtoI9GhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE<br>
&gt; jtkWi2t61tkP/0quTyB88CG1IF5l5xDDDTuzKqIIGn9rMgX4glRCj2x38q4cDfUY<br>
&gt; 1mB7nPjd+c4zFZj2XqeT3ZBVeLmkOAua8MnJhVlfHvmHnyaYWOf5iYBAk1mEXcV5<br>
&gt; fMN1dnJdqs3mLFgqSq8SaEHcF6r5GgS6z/gb0Cvu4+iO6JkM1BPabDtBQtu7Zh64<br>
&gt; bzlqpMqOqpLkflpBkjBiLNR6jU4WXSmvLYiPqhCL8qdwaioFMV0s3PYRq+9AMbvI<br>
&gt; /yIhGLGnbH7nYMvE4lu5kIVb6XN4+/wDZ3+3MiwyKzfWhVoBK3v0bOGMSUjoDVNt<br>
&gt; zuP/BLcU5tvJvKPZl2Ok0XDh5+ZUMZNTNzi1tHfRjnItjtPkRoB6QVyE23if8aBe<br>
&gt; +59JRUSAnIs4/jdnvig85BLhnnXQ9A8ac/SShfEoVNCfPhxGp5espwS+5Nbsv8VV<br>
&gt; VCa8CP2zw1mPc3qphoEb8y+loCgq3wAVAZAnBpWs8nIzzPKYr/4DKArQT6BTUqhQ<br>
&gt; fqx5Rc99HgXB7GMA9HULrAoaDkB9AttCZkbS16FDJ9kbeacHLINfMnJY2vhzS1CM<br>
&gt; 1T3UJ3bdahnIpH5mAvB2fG7wtK2CISJ7qIMATgsgQFvl4dr+8JRrpecma+PvV/ms<br>
&gt; yclTFAbnV9Pjk7IALd7aLHjtxW7wxSNVYlx5/fmY9zWFc1HiuIorJS7e<br>
&gt; =3Dh6PU<br>
&gt; -----END PGP SIGNATURE-----<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank=
">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br>
</div></div></blockquote></div><br></div>

--f46d04426a605a33d0050c9eec8b--


From nobody Thu Jan 15 00:09:47 2015
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 D4C601B2BAD for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 00:09:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.798
X-Spam-Level: 
X-Spam-Status: No, score=0.798 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 dlKjtV1pKMpu for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 00:09:45 -0800 (PST)
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 4D92E1B2BAA for <cfrg@irtf.org>; Thu, 15 Jan 2015 00:09:45 -0800 (PST)
Message-ID: <54B775C8.9070802@akr.io>
Date: Thu, 15 Jan 2015 08:09:44 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <20150114143413.12276.29693.idtracker@ietfa.amsl.com>	<0ED4D299-2CCC-4427-A52C-2F7BDD4634EE@akr.io>	<7FB23519-5635-46AA-AFB7-C4D8A4210AF1@gmail.com> <CAGvU-a7x6SaeCiqX5DtKeDhLTTmc8fF9j56V+5J6UOVYEE5LZg@mail.gmail.com>
In-Reply-To: <CAGvU-a7x6SaeCiqX5DtKeDhLTTmc8fF9j56V+5J6UOVYEE5LZg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/TkvBOBwMnbwu0v0ufqWOgPu7NoA>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jan 2015 08:09:47 -0000

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

On 14/01/2015 16:06, Yoav Nir wrote:

>> ..."in constant time", perhaps we should add there, in case 
>> someone gets some bright ideas with plain vanilla memcmp() from 
>> that paragraph? Just a thought.
> Does it matter?

Possibly not, as you say; but caution definitely can't hurt here.

> OK. Submitted

Thanks very much.

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

iQIcBAEBCgAGBQJUt3XIAAoJEOyEjtkWi2t6WfEP/AwsOLuXXwmchcO3mJKE8d7E
cgoU7vTrMtBOCwpJ0kCAaOW7Q56JTP6nu4ic5Zeexc6Vi+NXT+/43shKosqERUxF
COIym3SUbrB2z1RE9VI077qEUtBS0t1vDJrKWUikcTeRJE02gNWY1vVjXgBl2XSL
PxWcJ88eZaIBVnzuFJ1/tmC1szmDq7Qj6c9FQxP4zLMCT4SeT9Y5tq6puiG3hGuq
y72lPSV3mBJ7ohMiy2AvQXnFKuQZH750UkEaEbX32RsUuX2GKJEkHc8J1U1J3fCL
rfX36kYMiiteP1uiQrntLcdIiB+QP5+utKUKTmi1uEfhuZkehMurszbCYlojFN5n
mCi7FlZN1H4C7Gjbb5jQMJphMM2RmX0XXMtPQR1+PJzeZrI1qyHsNj62FCiz+RSG
W8uNC8NzPriUXyr0l1OHJ4j4nQ4g/5TxHsnmym2wvGglDRfkR2+bMVvn3A1uB6M3
A9Q5zba0x+0BSA5x3vj0qaXFUG4daZS+8J59LDOosnypaT+6C6kPDqCds8ohwhp/
z6SnthFJusY2SItI/dyps3mHAHMMHaUbvNLR8qzxgd+6yLMkUguGeQQQ6KVq6RfG
PNU7t9Wyih+TcRGUk1cmSUNXjnBX/k1074VclMtEwHzSQ4Yf4e2Gd7tQre/J2fdo
izpFqzDNRLoUKCpvpUj3
=23kM
-----END PGP SIGNATURE-----


From nobody Thu Jan 15 02:50:03 2015
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 BEEBC1B2BDF for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 02:49:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.6
X-Spam-Level: 
X-Spam-Status: No, score=-0.6 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 nhhuzjzgRjvd for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 02:49:47 -0800 (PST)
Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 778B41B2BE3 for <cfrg@irtf.org>; Thu, 15 Jan 2015 02:49:47 -0800 (PST)
Received: by mail-wg0-f53.google.com with SMTP id x13so14087016wgg.12 for <cfrg@irtf.org>; Thu, 15 Jan 2015 02:49:46 -0800 (PST)
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=H6B5rkU1lxjgFNuELD4Tug3gMF+okfPwO8AFI/pawXU=; b=pZa5XoB9TnGjKLBQgEAZcR5OHvB7m/kb9tyS12emOKaPmXf7Y1YsItqFUBWpqmWG/d gGJnoHxyhPlsDqORX3U64q97TrxUCaKrwiD3OmAJ0Kg+OI6gzeFVA3GjJ2tcFunTyNP3 q/B0CovNVhu6swQp+R5n7N0NNJn5eT8QQeZdfGVMH28Umgoy4okpfpe10RUkR7faWLXm WO+yyoql32xp4WAq9pdPcDrkJO5THUMSMKEsmye3E8InoOF5GcodLEaJ2m7a0dcBhW9R VITJPSXjq7c1D+PLtrfRUDdEcGjDNjB2iPYkgQlDz5x0RNv8a0GjhnCIVNk5/0n3IVJj C8Qg==
X-Received: by 10.180.20.177 with SMTP id o17mr11212050wie.64.1421318986169; Thu, 15 Jan 2015 02:49:46 -0800 (PST)
Received: from [172.24.251.208] (dyn32-131.checkpoint.com. [194.29.32.131]) by mx.google.com with ESMTPSA id x2sm1582209wjx.9.2015.01.15.02.49.45 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 02:49:45 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <54B775C8.9070802@akr.io>
Date: Thu, 15 Jan 2015 12:49:42 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <D1F75AFE-D628-4209-90F1-29ECBF7751D5@gmail.com>
References: <20150114143413.12276.29693.idtracker@ietfa.amsl.com> <0ED4D299-2CCC-4427-A52C-2F7BDD4634EE@akr.io> <7FB23519-5635-46AA-AFB7-C4D8A4210AF1@gmail.com> <CAGvU-a7x6SaeCiqX5DtKeDhLTTmc8fF9j56V+5J6UOVYEE5LZg@mail.gmail.com> <54B775C8.9070802@akr.io>
To: Alyssa Rowan <akr@akr.io>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/rFgx3Q5cxsW8I9jNhVkJ92plIaM>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jan 2015 10:49:53 -0000

> On Jan 15, 2015, at 10:09 AM, Alyssa Rowan <akr@akr.io> wrote:
>=20
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>=20
> On 14/01/2015 16:06, Yoav Nir wrote:
>=20
>>> ..."in constant time", perhaps we should add there, in case=20
>>> someone gets some bright ideas with plain vanilla memcmp() from=20
>>> that paragraph? Just a thought.
>> Does it matter?
>=20
> Possibly not, as you say; but caution definitely can't hurt here.

I=E2=80=99m guessing anyone who is implementing a security algorithm or =
security protocol already has a constant-time variation of memcmp (and =
if they don=E2=80=99t, they really really should). So a reminder to use =
this API instead of that API is not such an onerous requirement.

>> OK. Submitted
>=20
> Thanks very much.
>=20
> - --=20
> /akr



From nobody Thu Jan 15 08:13:08 2015
Return-Path: <manfred.lochter@bsi.bund.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 F0C471B2CD9 for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 08:13:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.859
X-Spam-Level: 
X-Spam-Status: No, score=-3.859 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01, 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 VTx2Op3knDco for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 08:12:55 -0800 (PST)
Received: from m4-bn.bund.de (m4-bn.bund.de [77.87.228.76]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3497C1B2C04 for <cfrg@irtf.org>; Thu, 15 Jan 2015 08:12:54 -0800 (PST)
Received: from m4.mfw.bn.ivbb.bund.de (localhost.mfw.bn.ivbb.bund.de [127.0.0.1]) by m4-bn.bund.de (8.14.5/8.14.5) with ESMTP id t0FGCpJW030131 for <cfrg@irtf.org>; Thu, 15 Jan 2015 17:12:52 +0100 (CET)
Received: (from localhost) by m4.mfw.bn.ivbb.bund.de (MSCAN) id 5/m4.mfw.bn.ivbb.bund.de/smtp-gw/mscan; Thu Jan 15 17:12:51 2015
X-P350-Id: 25bf37ca26968462
X-Virus-Scanned: by amavisd-new at bsi.bund.de
From: "Lochter, Manfred" <manfred.lochter@bsi.bund.de>
Organization: BSI Bonn
To: Watson Ladd <watsonbladd@gmail.com>
Date: Thu, 15 Jan 2015 17:12:27 +0100
User-Agent: KMail/1.9.10 (enterprise35 20141110.4f903a5)
References: <20141201223720.12122.qmail@cr.yp.to> <201501141444.45855.manfred.lochter@bsi.bund.de> <CACsn0ckPnydBtjGiVCS0B_3=r8CeSKaDVTx6FgxT1CWCPBMMRA@mail.gmail.com>
In-Reply-To: <CACsn0ckPnydBtjGiVCS0B_3=r8CeSKaDVTx6FgxT1CWCPBMMRA@mail.gmail.com>
X-KMail-QuotePrefix: > 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-ID: <201501151712.27564.manfred.lochter@bsi.bund.de>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/282uv2dR8mq9f_LH49xNgH7GSnE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "D. J. Bernstein" <djb@cr.yp.to>
Subject: Re: [Cfrg] Mishandling twist attacks
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 15 Jan 2015 16:13:03 -0000

 Watson,

I think we have a communication problem. At least I do not see any relation=
=20
between my remarks and your replies. For details please see below.

Manfred




__________ urspr=C3=BCngliche Nachricht __________

Von:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0Watson Ladd <watsonbladd@gmail.com>
Datum:=C2=A0=C2=A0Mittwoch, 14. Januar 2015, 16:55:40
An:=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"Lochter, Manfred" <manfred.lochter@bsi.bund.de>
Kopie:=C2=A0=C2=A0"cfrg@irtf.org" <cfrg@irtf.org>, "D. J. Bernstein" <djb@c=
r.yp.to>
Betr.:=C2=A0=C2=A0Re: [Cfrg] Mishandling twist attacks

> On Wed, Jan 14, 2015 at 5:44 AM, Lochter, Manfred
>
> <manfred.lochter@bsi.bund.de> wrote:
> > Here we still seem to disagree, Dan.
> >
> > When we talked about this topic during RWC I had the impression that you
> > were only adressing DH and not signatures. Now I rechecked your
> > contribution and would like to make some comments:
> >
> > For signatures setting any bit may allow lattice-attacks. Do you have a
> > proof for your claim that "Setting the high bit of such a long nonce is
> > also perfectly safe."? I would be glad to have a look at it if you
> > provide a source.
>
> Remember how the Bleichenbacher attack actually works, and what the
> countermeasure recommended in standards is.
>
> The Bleichenbacher attack relies on the bias caused by reducing a
> number uniformly in the range [0, 2^n) modulo p, where p
> is close to 2^n. The bias is approximately 1/2^(n-log(p)). When n is
> about 2 log p, this becomes negligible.
>
> Adding the high bit means taking numbers in the range [2^(n-1), 2^n).
> The bias is now 1/2^(n-1-log(p)), which is still small.

Watson, it is interesting that you mention Bleichenbacher's attack in reply=
 on=20
my contribution that is dealing with securely randomized ephemeral keys.=20

I did not even mention the generation of unbiased (mod group order) ephemer=
al=20
keys. Of course Dan's method gives keys that are sufficiently equally=20
distributed mod group order.

But this is not my topic here. I was discussing Dan's proposal for blinding=
=20
ephemeral keys in the range 1..q-1 by adding a multiple of q and then setti=
ng=20
the msb to 1.=20
This may lead to lattice attacks as e.g. described by=20
Smart-Nguyen-Shparlinski. (Literature references are given in my posting fr=
om=20
October, 8, 2014.)

You might also want to check Bleichenbachers talk during the rump session o=
f=20
Crypto 2005 http://www.iacr.org/conferences/crypto2005/rumpSchedule.html

>
> > I' m not blaming the high bit, as you state, but the unnecessary tweak =
of
> > the nonce. The same effect can easily be achived by using dummy
> > operations.
> >
> > In addition this method does not make an implementors life easier. In
> > real world applications users will forget the additional bit and make
> > their implementations vulnerable to Timing Attacks.
>
> Implementors can also use powering computations that are constant
> time. The countermeasures you describe are frequently not implemented,
> and in many cases can be bypassed by cache-based attacks examining
> data flow, for instance. It's also not clear that they are necessary:
> the Montgomery ladder is extremely performant and has a uniform flow
> of operations. Comb based methods with protection can be trickier.

Actually I'm not describing a countermeasure but discussing a proposed=20
countermeasure which I believe is dangerous. And I'm also stating that a fu=
ll=20
ladder is better than adding an extra bit. What is your point exactly?
>
> (For use in signatures, one would likely need to add on y coordinate
> reconstruction and an isogeny: the formulas =C2=A0for reconstruction exist
> out there, but I've not found a good source yet.)
>
> > The necessary length of nonces depends on the stucture of the underlying
> > prime field and of the order of the chosen group order. Whilst for NIST
> > curves 32 bits seem to be OK, for general n-bit curves over special pri=
me
> > fields n bits of blinding are necessary. This blinding length is then n=
ot
> > "an extra long nonce" but the minimum-length nonce to withstand SCA.
>
> You appear to be confusing two issues: generation of signature nonces
> and computing scalar multiples securely. Using a double-length nonce
> solves the secure generation problem. When it comes to computing
> scalar multiples, blinding of the scalar involves adding a random
> multiple of the
> prime. Of course, when this is a nonce used in a signature, produced
> by reducing a double length nonce, adding back a random multiple might
> as well be using the original nonce.

Again: I'm talking about Dan's proposal. You brought in Bleichenbacher whic=
h=20
is a different topic. But please do not blame me for mixing up things.
>
> In particular, the length of extra bits required for Bleichenbacher
> defense is largely independent of the prime. The claimed superiority
> of random primes for blinding is in doubt: several people have pointed
> to papers breaking this protection unless we use 256, not 32 extra
> bits. Certainly for the NIST primes 32 bits extra will not randomize
> significant blocks of bits.

Again: I am not talking about the Bleichenbacher-bias-attack!
If 32 for NIST are sufficient is an implementation issue. As a minimum 32 a=
re=20
needed. The situation is different for primes like the 25519 prime, where t=
he=20
gap between 1s is much larger. Consequently curves over these fields need=20
more randomisation. In principle I do not see which part of my statement yo=
u=20
think is incorrect. Who is several people and what exactly did they say?
>
> > I admit, that for some implementations (depending on hardware used, and
> > other factors) your method may still allow faster implementations than
> > random prime curves with maximum necessary nonce length.
> >
> > However implementation security may not be improved:
> >
> > (a) Users will change to shorter nonces to become even faster. They be
> > then use a too short nonce.
> > (b) Even if the curves support constant-time ladders, there is no
> > guarantee that users will implement these ladders.
>
> One can use a uniform nonce in [0, p), obtained by rejection sampling.
> I don't see how this issue doesn't also apply to random primes.

There is no connection between my statement and my comment.
>
> Yes, implementors in the pay of the NSA or BND can always make
> "mistakes". However, we've described the constant-time ladder in the
> draft and explained why it should be used. When it comes to
> signatures, I expect that a similar amount of attention will be paid.

And other implementors will also make mistakes. Anyhow: What do you want to=
=20
imply here?

My whole posting is dealing with Dan's proposal for signatures (!). It is n=
ot=20
connected to any of your papers.=20
>
> Sincerely,
> Watson Ladd
>
> > Manfred
> >
> >
> >
> >
> >
> >
> >
> > __________ urspr=C3=BCngliche Nachricht __________
> >
> > Von: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"D. J. Bernstein" <djb@cr=
=2Eyp.to>
> > Datum: =C2=A0Montag, 1. Dezember 2014, 23:37:20
> > An: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cfrg@irtf.org
> > Kopie:
> > Betr.: =C2=A0Re: [Cfrg] Mishandling twist attacks
> >
> >> Lochter, Manfred writes:
> >> > On the other hand this countermeasure is quite dangerous, when appli=
ed
> >> > during signature generation.
> >>
> >> No. It's true that minimum-length signature nonces with the high bit s=
et
> >> are dangerous, but minimum-length signature nonces _without_ the high
> >> bit set are _also_ dangerous, so blaming the high bit is unreasonable.
> >>
> >> The best protection we know is to generate much longer nonces---such as
> >> the 512-bit nonces in Ed25519. Then the system isn't broken by a timing
> >> attack revealing the nonce length. Setting the high bit of such a long
> >> nonce is also perfectly safe.
> >>
> >> Of course, an implementor can still get in trouble by (1) reducing the=
se
> >> nonces and then (2) leaking the lengths of the reduced nonces through a
> >> variable-time scalarmult method. So, as another line of defense, we al=
so
> >> choose curves that support simple, fast, constant-time ladders.
> >>
> >> ---Dan
> >>
> >> _______________________________________________
> >> Cfrg mailing list
> >> Cfrg@irtf.org
> >> http://www.irtf.org/mailman/listinfo/cfrg
> >
> > --
> > Lochter, Manfred
> > --------------------------------------------
> > Bundesamt f=C3=BCr Sicherheit in der Informationstechnik (BSI)
> > Referat K21
> > Godesberger Allee 185 -189
> > 53175 Bonn
> >
> > Postfach 20 03 63
> > 53133 Bonn
> >
> > Telefon: +49 (0)228 99 9582 5643
> > Telefax: +49 (0)228 99 10 9582 5643
> > E-Mail: manfred.lochter@bsi.bund.de
> > Internet:
> > www.bsi.bund.de
> > www.bsi-fuer-buerger.de
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > http://www.irtf.org/mailman/listinfo/cfrg

=2D-=20
Lochter, Manfred
=2D-------------------------------------------
Bundesamt f=C3=BCr Sicherheit in der Informationstechnik (BSI)
Referat K21
Godesberger Allee 185 -189
53175 Bonn

Postfach 20 03 63
53133 Bonn

Telefon: +49 (0)228 99 9582 5643
Telefax: +49 (0)228 99 10 9582 5643
E-Mail: manfred.lochter@bsi.bund.de
Internet:
www.bsi.bund.de
www.bsi-fuer-buerger.de


From nobody Thu Jan 15 10:26:34 2015
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 A586C1B2FEC for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 10:26:31 -0800 (PST)
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 DC9kbewjKSh0 for <cfrg@ietfa.amsl.com>; Thu, 15 Jan 2015 10:26:28 -0800 (PST)
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 CA8E21B2FC3 for <cfrg@irtf.org>; Thu, 15 Jan 2015 10:26:27 -0800 (PST)
Received: by mail-yh0-f49.google.com with SMTP id f10so8058372yha.8 for <cfrg@irtf.org>; Thu, 15 Jan 2015 10:26:27 -0800 (PST)
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=tVgbVuNBHQ0Wg2XPLJKhXj7qfXzHrrvJsftIi6I/vjo=; b=Y0UyGm5hkDYVSdVWaT5R6mf6GMHhUkIXUhffEzKMd1MMWUwtaYbZsuE4lT6aQcIgVe HVtYr7gPB4WbYDmHzVnt+JrhMpzXHJjEMoo34Nu39LbWUFzXGaPc7KN5Gs0pHqjlccDK nxU7AqRooB7YOnSmmzpt0CJMdbQRiC9dEk8hK/nqI9ASFgcg8IzbVGXaProuJyBp4G92 BKNBQctjm8/+IepfsFzrpVN2GoXVp+RLSxNDvomE9h7u/0Cp8xAE6px4iDjKcjixUfoG AhhrECw9NUGwraK1nK5AVncXXrf9xMMBEQqhseNZf4gBCt4BMpbH1a+sGO1JQPcjVISo tXrg==
MIME-Version: 1.0
X-Received: by 10.170.161.2 with SMTP id c2mr7736640ykd.28.1421346386146; Thu, 15 Jan 2015 10:26:26 -0800 (PST)
Received: by 10.170.207.6 with HTTP; Thu, 15 Jan 2015 10:26:26 -0800 (PST)
In-Reply-To: <201501151712.27564.manfred.lochter@bsi.bund.de>
References: <20141201223720.12122.qmail@cr.yp.to> <201501141444.45855.manfred.lochter@bsi.bund.de> <CACsn0ckPnydBtjGiVCS0B_3=r8CeSKaDVTx6FgxT1CWCPBMMRA@mail.gmail.com> <201501151712.27564.manfred.lochter@bsi.bund.de>
Date: Thu, 15 Jan 2015 10:26:26 -0800
Message-ID: <CACsn0cnS8fGeAKYU=Sit=J+--P-XKrXUtYLupjE7dt=Adme=pQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: "Lochter, Manfred" <manfred.lochter@bsi.bund.de>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/R_D-Z9khY5wBcqCFAJsZNjtajJE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, "D. J. Bernstein" <djb@cr.yp.to>
Subject: Re: [Cfrg] Mishandling twist attacks
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 15 Jan 2015 18:26:31 -0000

On Thu, Jan 15, 2015 at 8:12 AM, Lochter, Manfred
<manfred.lochter@bsi.bund.de> wrote:
>  Watson,
>
> I think we have a communication problem. At least I do not see any relati=
on
> between my remarks and your replies. For details please see below.
>
> Manfred

Yes, you are correct: I was thinking of lattice attacks on signatures
as instances of Bleichenbacher HNP solution.
>
>
>
>
> __________ urspr=C3=BCngliche Nachricht __________
>
> Von:            Watson Ladd <watsonbladd@gmail.com>
> Datum:  Mittwoch, 14. Januar 2015, 16:55:40
> An:             "Lochter, Manfred" <manfred.lochter@bsi.bund.de>
> Kopie:  "cfrg@irtf.org" <cfrg@irtf.org>, "D. J. Bernstein" <djb@cr.yp.to>
> Betr.:  Re: [Cfrg] Mishandling twist attacks
>
>> On Wed, Jan 14, 2015 at 5:44 AM, Lochter, Manfred
>>
>> <manfred.lochter@bsi.bund.de> wrote:
>> > Here we still seem to disagree, Dan.
>> >
>> > When we talked about this topic during RWC I had the impression that y=
ou
>> > were only adressing DH and not signatures. Now I rechecked your
>> > contribution and would like to make some comments:
>> >
>> > For signatures setting any bit may allow lattice-attacks. Do you have =
a
>> > proof for your claim that "Setting the high bit of such a long nonce i=
s
>> > also perfectly safe."? I would be glad to have a look at it if you
>> > provide a source.
>>
>> Remember how the Bleichenbacher attack actually works, and what the
>> countermeasure recommended in standards is.
>>
>> The Bleichenbacher attack relies on the bias caused by reducing a
>> number uniformly in the range [0, 2^n) modulo p, where p
>> is close to 2^n. The bias is approximately 1/2^(n-log(p)). When n is
>> about 2 log p, this becomes negligible.
>>
>> Adding the high bit means taking numbers in the range [2^(n-1), 2^n).
>> The bias is now 1/2^(n-1-log(p)), which is still small.
>
> Watson, it is interesting that you mention Bleichenbacher's attack in rep=
ly on
> my contribution that is dealing with securely randomized ephemeral keys.
>
> I did not even mention the generation of unbiased (mod group order) ephem=
eral
> keys. Of course Dan's method gives keys that are sufficiently equally
> distributed mod group order.
>
> But this is not my topic here. I was discussing Dan's proposal for blindi=
ng
> ephemeral keys in the range 1..q-1 by adding a multiple of q and then set=
ting
> the msb to 1.
> This may lead to lattice attacks as e.g. described by
> Smart-Nguyen-Shparlinski. (Literature references are given in my posting =
from
> October, 8, 2014.)
>
> You might also want to check Bleichenbachers talk during the rump session=
 of
> Crypto 2005 http://www.iacr.org/conferences/crypto2005/rumpSchedule.html

I'm familiar with both of these sources. And both rely on being able
to rewrite the equation describing how the nonce is generated to
create an instance of the hidden number problem that's easy to solve.
What I don't see is how you propose to do that for an ephemeral scalar
generated by
selecting x in  [0, 2^(2\log q-1)) and using x+2^(2\log q). Knowing
that we can subtract 2^(2\log q) modulo q, and then get x generated as
a random number in [0, 2^(2\log q-1)) isn't enough to solve the hidden
number problem; x is almost uniformly distributed modulo q.

(If we know the bit for x in [0, q), then the range after subtracting
is [0, q/2) which is enough)

If we're talking about purely exponent randomization, rather than
generation of nonces for signatures, then for 2^255-19 for instance, a
product with a number of the form (2^254+z), z smaller, will be less
than 2^510 and greater than 2^509-19*2^254.  The need to have the high
bit set doesn't substantially reduce the randomization. (Yes, this
doesn't always do it: with a bit more analysis one can calculate the
exact range of multipliers required)

>
>>
>> > I' m not blaming the high bit, as you state, but the unnecessary tweak=
 of
>> > the nonce. The same effect can easily be achived by using dummy
>> > operations.
>> >
>> > In addition this method does not make an implementors life easier. In
>> > real world applications users will forget the additional bit and make
>> > their implementations vulnerable to Timing Attacks.
>>
>> Implementors can also use powering computations that are constant
>> time. The countermeasures you describe are frequently not implemented,
>> and in many cases can be bypassed by cache-based attacks examining
>> data flow, for instance. It's also not clear that they are necessary:
>> the Montgomery ladder is extremely performant and has a uniform flow
>> of operations. Comb based methods with protection can be trickier.
>
> Actually I'm not describing a countermeasure but discussing a proposed
> countermeasure which I believe is dangerous. And I'm also stating that a =
full
> ladder is better than adding an extra bit. What is your point exactly?

My point is that DJB has always recommended the full Montgomery
ladder, isn't talking about signatures in this message, and when he is
talking about signatures, has a countermeasure that seems to me works.
What do you think the proposal he's discussing is, and why do you
think it's vulnerable? It's different from the ones attacked in the
papers you mention, in ways that make those attacks not apply.

In particular his proposal for signatures is to generated double
length nonces, and then either set the high bit or use a possibly
length revealing algorithm for scalar multiplication. This isn't
affected by lattice based attacks.

>>
>> (For use in signatures, one would likely need to add on y coordinate
>> reconstruction and an isogeny: the formulas  for reconstruction exist
>> out there, but I've not found a good source yet.)
>>
>> > The necessary length of nonces depends on the stucture of the underlyi=
ng
>> > prime field and of the order of the chosen group order. Whilst for NIS=
T
>> > curves 32 bits seem to be OK, for general n-bit curves over special pr=
ime
>> > fields n bits of blinding are necessary. This blinding length is then =
not
>> > "an extra long nonce" but the minimum-length nonce to withstand SCA.
>>
>> You appear to be confusing two issues: generation of signature nonces
>> and computing scalar multiples securely. Using a double-length nonce
>> solves the secure generation problem. When it comes to computing
>> scalar multiples, blinding of the scalar involves adding a random
>> multiple of the
>> prime. Of course, when this is a nonce used in a signature, produced
>> by reducing a double length nonce, adding back a random multiple might
>> as well be using the original nonce.
>
> Again: I'm talking about Dan's proposal. You brought in Bleichenbacher wh=
ich
> is a different topic. But please do not blame me for mixing up things.
>>
>> In particular, the length of extra bits required for Bleichenbacher
>> defense is largely independent of the prime. The claimed superiority
>> of random primes for blinding is in doubt: several people have pointed
>> to papers breaking this protection unless we use 256, not 32 extra
>> bits. Certainly for the NIST primes 32 bits extra will not randomize
>> significant blocks of bits.
>
> Again: I am not talking about the Bleichenbacher-bias-attack!
> If 32 for NIST are sufficient is an implementation issue. As a minimum 32=
 are
> needed. The situation is different for primes like the 25519 prime, where=
 the
> gap between 1s is much larger. Consequently curves over these fields need
> more randomisation. In principle I do not see which part of my statement =
you
> think is incorrect. Who is several people and what exactly did they say?

One NIST prime is =3D 2^256 -2^224 + 2^192 + 2^96-1. Adding a 32 bit
multiple of this prime doesn't obscure bits between the 96th and 32nd
bit. This seems to be what
https://www.nics.uma.es/pub/acns2011/files/ppt/2-2.pdf exploits, for
instance.
http://link.springer.com/article/10.1007/s13389-014-0081-y#page-1
seems to exploit similarly small degrees of randomization, even on SPA
protected devices.

>>
>> > I admit, that for some implementations (depending on hardware used, an=
d
>> > other factors) your method may still allow faster implementations than
>> > random prime curves with maximum necessary nonce length.
>> >
>> > However implementation security may not be improved:
>> >
>> > (a) Users will change to shorter nonces to become even faster. They be
>> > then use a too short nonce.
>> > (b) Even if the curves support constant-time ladders, there is no
>> > guarantee that users will implement these ladders.
>>
>> One can use a uniform nonce in [0, p), obtained by rejection sampling.
>> I don't see how this issue doesn't also apply to random primes.
>
> There is no connection between my statement and my comment.
>>
>> Yes, implementors in the pay of the NSA or BND can always make
>> "mistakes". However, we've described the constant-time ladder in the
>> draft and explained why it should be used. When it comes to
>> signatures, I expect that a similar amount of attention will be paid.
>
> And other implementors will also make mistakes. Anyhow: What do you want =
to
> imply here?

I'm not implying anything. I don't see how random primes improve the
issue, or why the countermeasures you are bringing up are better than
the ones proposed by DJB. In particular, why wouldn't users of random
prime curves reduce nonce size and disable countermeasure to timing
attacks for the same reasons they would on Curve25519?

>
> My whole posting is dealing with Dan's proposal for signatures (!). It is=
 not
> connected to any of your papers.
>>
>> Sincerely,
>> Watson Ladd
>>
>> > Manfred
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > __________ urspr=C3=BCngliche Nachricht __________
>> >
>> > Von:            "D. J. Bernstein" <djb@cr.yp.to>
>> > Datum:  Montag, 1. Dezember 2014, 23:37:20
>> > An:             cfrg@irtf.org
>> > Kopie:
>> > Betr.:  Re: [Cfrg] Mishandling twist attacks
>> >
>> >> Lochter, Manfred writes:
>> >> > On the other hand this countermeasure is quite dangerous, when appl=
ied
>> >> > during signature generation.
>> >>
>> >> No. It's true that minimum-length signature nonces with the high bit =
set
>> >> are dangerous, but minimum-length signature nonces _without_ the high
>> >> bit set are _also_ dangerous, so blaming the high bit is unreasonable=
.
>> >>
>> >> The best protection we know is to generate much longer nonces---such =
as
>> >> the 512-bit nonces in Ed25519. Then the system isn't broken by a timi=
ng
>> >> attack revealing the nonce length. Setting the high bit of such a lon=
g
>> >> nonce is also perfectly safe.
>> >>
>> >> Of course, an implementor can still get in trouble by (1) reducing th=
ese
>> >> nonces and then (2) leaking the lengths of the reduced nonces through=
 a
>> >> variable-time scalarmult method. So, as another line of defense, we a=
lso
>> >> choose curves that support simple, fast, constant-time ladders.
>> >>
>> >> ---Dan
>> >>
>> >> _______________________________________________
>> >> Cfrg mailing list
>> >> Cfrg@irtf.org
>> >> http://www.irtf.org/mailman/listinfo/cfrg
>> >
>> > --
>> > Lochter, Manfred
>> > --------------------------------------------
>> > Bundesamt f=C3=BCr Sicherheit in der Informationstechnik (BSI)
>> > Referat K21
>> > Godesberger Allee 185 -189
>> > 53175 Bonn
>> >
>> > Postfach 20 03 63
>> > 53133 Bonn
>> >
>> > Telefon: +49 (0)228 99 9582 5643
>> > Telefax: +49 (0)228 99 10 9582 5643
>> > E-Mail: manfred.lochter@bsi.bund.de
>> > Internet:
>> > www.bsi.bund.de
>> > www.bsi-fuer-buerger.de
>> >
>> > _______________________________________________
>> > Cfrg mailing list
>> > Cfrg@irtf.org
>> > http://www.irtf.org/mailman/listinfo/cfrg
>
> --
> Lochter, Manfred
> --------------------------------------------
> Bundesamt f=C3=BCr Sicherheit in der Informationstechnik (BSI)
> Referat K21
> Godesberger Allee 185 -189
> 53175 Bonn
>
> Postfach 20 03 63
> 53133 Bonn
>
> Telefon: +49 (0)228 99 9582 5643
> Telefax: +49 (0)228 99 10 9582 5643
> E-Mail: manfred.lochter@bsi.bund.de
> Internet:
> www.bsi.bund.de
> www.bsi-fuer-buerger.de



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


From nobody Fri Jan 16 00:11:18 2015
Return-Path: <hannes.tschofenig@gmx.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 452B21AC3AC for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 00:11:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QTmtQTuHxE4M for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 00:11:14 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 803AC1A8966 for <cfrg@irtf.org>; Fri, 16 Jan 2015 00:11:14 -0800 (PST)
Received: from [192.168.131.148] ([80.92.123.55]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MFdDB-1Y0Fkr0kdB-00EdzC for <cfrg@irtf.org>; Fri, 16 Jan 2015 09:11:12 +0100
Message-ID: <54B8C79F.4050909@gmx.net>
Date: Fri, 16 Jan 2015 09:11:11 +0100
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com>
In-Reply-To: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com>
OpenPGP: id=4D776BC9
X-Forwarded-Message-Id: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com>
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TsRwR1TTPwk7kHUFHtXAOMETQFRX03UrT"
X-Provags-ID: V03:K0:YDA49WwqJa7mcEVEuNuGd7plWbLr8Z1S1U7AQe8/J6XIXgnyJjw 9sDpjqQ8EG23pJcUIuzDGnsXFfMn/ZWXvaD86UysN1rWUVbq4twhtUkaNXFAz6+2KmmIEb+ 0X6pDZRJYikhnsI7CT1O0eI/N1M1XNdm24Urx4tB00fZisFWbiI1xP1oszrC+bktYs3dIWc Pf31WssXt7diadjZF1PvQ==
X-UI-Out-Filterresults: notjunk:1;
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/2ubEVUv-ZlMQIYi1SFKPMojyGnA>
Subject: [Cfrg] Fwd: CFP - NIST Workshop on Elliptic Curve Cryptography Standards
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 16 Jan 2015 08:11:16 -0000

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

I wonder what you think about this upcoming workshop since it more or
less aims to do what this group is working on.

Ciao
Hannes

-------- Forwarded Message --------
Subject: 	[saag] Fwd: CFP - NIST Workshop on Elliptic Curve Cryptography
Standards
Date: 	Thu, 15 Jan 2015 17:57:45 -0500
From: 	Russ Housley <housley@vigilsec.com>
To: 	IETF SAAG <saag@ietf.org>





> *Workshop on Elliptic Curve Cryptography Standards
> *June 11-12, 2015*
> **
> **/Call for Papers/**
> *
> The National Institute of Standards and Technology (NIST) will host
> a */Workshop on Elliptic Curve Cryptography Standards/* at NIST
> headquarters in Gaithersburg, MD on June 11-12, 2015.  The workshop
> will provide a venue to engage the cryptographic community, including
> academia, industry, and government users to discuss possible
> approaches to promote the adoption of secure, interoperable and
> efficient elliptic curve mechanisms.
>
> NIST solicits papers, presentations, case studies, panel proposals,
> and participation from any interested parties, including researchers,
> systems architects, vendors, and users.
>
> The full Call for Papers and workshop details are available at the
> workshop website:  http://www.nist.gov/itl/csd/ct/ecc-workshop.cfm**
>
> =20
>





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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQEcBAEBCgAGBQJUuMefAAoJEGhJURNOOiAt6DwH/01zy1y+57V1O7lxHd4WUKNG
+gQanB7qRuC2676AbQok4BX+Eape7h9GD2cQYxOFyHggaUiFg+pt21DiXpwf8flC
I7XzSB5sExkEhwFq+HnQurzc1bDhDcezpxIbrQkT1OxoYVQsqWb6lHC7D8ynd8XA
mJvR9uk+izP1Sy6BdfD+9NVrh4smQEWot64j20d/kvG3yxJapRgvkCyGSD58grjJ
lb82siR10Se+eIYh2a3GpKdpDX6eeWBhCN6fKyljooDNQ0TcT3KdfXL7SuylSyAz
ERotaH1jVGNfjPWBa/xUrxTuock5qIKrYoIn64zDL9T2mjJ/0LPr/0F+A9pPAkg=
=MPJd
-----END PGP SIGNATURE-----

--TsRwR1TTPwk7kHUFHtXAOMETQFRX03UrT--


From nobody Fri Jan 16 00:46:20 2015
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 BF3D21A6F2D for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 00:46:17 -0800 (PST)
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 t7-sms0RuUZP for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 00:46:14 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0628.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::628]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E9DA81A0194 for <cfrg@irtf.org>; Fri, 16 Jan 2015 00:46:13 -0800 (PST)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) with Microsoft SMTP Server (TLS) id 15.1.53.17; Fri, 16 Jan 2015 08:34:00 +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.01.0053.000; Fri, 16 Jan 2015 08:34:00 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>
Thread-Topic: [Cfrg] Fwd: CFP - NIST Workshop on Elliptic Curve Cryptography Standards
Thread-Index: AQHQMWQHWyYEcmE7h064QIcoyUy6E5zCa5Ii
Date: Fri, 16 Jan 2015 08:34:00 +0000
Message-ID: <D6EAE0D3-AE1D-4B25-9133-A18F04E41C05@rhul.ac.uk>
References: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com>, <54B8C79F.4050909@gmx.net>
In-Reply-To: <54B8C79F.4050909@gmx.net>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [85.255.232.228]
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-dmarcaction-test: None
x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005004);SRVR:DBXPR03MB383;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DBXPR03MB383;
x-forefront-prvs: 04583CED1A
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(51704005)(2473001)(76104003)(189002)(24454002)(199003)(87936001)(50986999)(86362001)(83716003)(2900100001)(68736005)(77156002)(15975445007)(77096005)(62966003)(102836002)(1720100001)(2950100001)(40100003)(46102003)(74482002)(33656002)(101416001)(97736003)(110136001)(54356999)(106356001)(92566002)(122556002)(2656002)(106116001)(76176999)(82746002)(19580405001)(19580395003)(105586002)(36756003)(64706001)(66066001)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:DBXPR03MB383; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2015 08:34:00.4323 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR03MB383
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/55AEd11YA6qXpl_zTXtq8VrDUnM>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Fwd: CFP - NIST Workshop on Elliptic Curve Cryptography Standards
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 16 Jan 2015 08:46:17 -0000

Hi Hannes,

The timescales are different, but, yes, there is significant overlap.=20

Regards

Kenny

Sent from my iPhone

> On 16 Jan 2015, at 08:11, Hannes Tschofenig <hannes.tschofenig@gmx.net> w=
rote:
>=20
> I wonder what you think about this upcoming workshop since it more or
> less aims to do what this group is working on.
>=20
> Ciao
> Hannes
>=20
> -------- Forwarded Message --------
> Subject:    [saag] Fwd: CFP - NIST Workshop on Elliptic Curve Cryptograph=
y
> Standards
> Date:    Thu, 15 Jan 2015 17:57:45 -0500
> From:    Russ Housley <housley@vigilsec.com>
> To:    IETF SAAG <saag@ietf.org>
>=20
>=20
>=20
>=20
>=20
>> *Workshop on Elliptic Curve Cryptography Standards
>> *June 11-12, 2015*
>> **
>> **/Call for Papers/**
>> *
>> The National Institute of Standards and Technology (NIST) will host
>> a */Workshop on Elliptic Curve Cryptography Standards/* at NIST
>> headquarters in Gaithersburg, MD on June 11-12, 2015.  The workshop
>> will provide a venue to engage the cryptographic community, including
>> academia, industry, and government users to discuss possible
>> approaches to promote the adoption of secure, interoperable and
>> efficient elliptic curve mechanisms.
>>=20
>> NIST solicits papers, presentations, case studies, panel proposals,
>> and participation from any interested parties, including researchers,
>> systems architects, vendors, and users.
>>=20
>> The full Call for Papers and workshop details are available at the
>> workshop website:  http://www.nist.gov/itl/csd/ct/ecc-workshop.cfm**
>=20
>=20
>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Fri Jan 16 08:50:40 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 562151ACF03 for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 08:50:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Hh43kTLGJDi for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 08:50:37 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 8933A1ACE64 for <cfrg@irtf.org>; Fri, 16 Jan 2015 08:50:37 -0800 (PST)
Received: from [10.20.30.90] (50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91]) (authenticated bits=0) by proper.com (8.15.1/8.14.7) with ESMTPSA id t0GGoVLv026720 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Jan 2015 09:50:32 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91] claimed to be [10.20.30.90]
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Content-Type: multipart/signed; boundary="Apple-Mail=_7FD5DD8D-C5C3-4E4C-8C63-9DE983116FFE"; protocol="application/pgp-signature"; micalg=pgp-sha1
X-Pgp-Agent: GPGMail 2.5b4
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <54B8C79F.4050909@gmx.net>
Date: Fri, 16 Jan 2015 08:50:27 -0800
Message-Id: <0A8ABB2C-70C4-4283-8E15-DB02893F1E52@vpnc.org>
References: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com> <54B8C79F.4050909@gmx.net>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/tlh5qhN9pqGgk-zOQ_4HGY-0BrE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] CFP - NIST Workshop on Elliptic Curve Cryptography Standards
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 16 Jan 2015 16:50:38 -0000

--Apple-Mail=_7FD5DD8D-C5C3-4E4C-8C63-9DE983116FFE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

On Jan 16, 2015, at 12:11 AM, Hannes Tschofenig =
<hannes.tschofenig@gmx.net> wrote:
> I wonder what you think about this upcoming workshop since it more or
> less aims to do what this group is working on.

Nothing in the workshop announcement says that it "aims to do what this =
group is working on". It is on the same topic, but the aims are =
completely different and, as Kenny points out, the timescales are vastly =
different.

The descriptive work that the RG has done in the last six months about =
comparison of EC proposals would be great input to the workshop. Beyond =
that, the CFRG's aim right now is still to give the TLS WG something to =
work with, a few months ago.

--Paul Hoffman



--Apple-Mail=_7FD5DD8D-C5C3-4E4C-8C63-9DE983116FFE
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJUuUFXAAoJEJz/fXByZmLZ6xAH/juTbwvb0uN/FddPZEj7BP9O
mXV+nUJlTYOIVa4LSdZ1RXf4cuOwRfRZruIotoXiLTCgQ2fQcIT6AI/zE0ETqmpA
vtN19g2B/6hdK6Zq5bZGe5hipugovkm0pVffwL2UdKcJYqIG/CLKsUumFtA8w6R4
ilKFJW3NPI9Xb3bXzk0qqzzd3BkgcZcYSOXxk7hRZNoxoHSnNc42j5yv9/0/vRbu
nevn5ntfbifOa0/55sACXtmY1o3PTS4+Ro+JMaUV1b7tBy2Aw/h2Cr0RHG6wH4kO
V1Gh9NyhCmwDn7a2s7C32d457VEtXBCYso+rbHW7BST1cfnBQMEIpvvxiwpSnfo=
=veXW
-----END PGP SIGNATURE-----

--Apple-Mail=_7FD5DD8D-C5C3-4E4C-8C63-9DE983116FFE--


From nobody Fri Jan 16 12:03:19 2015
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 7BE9D1AD244 for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 12:03:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h3gB_lUUxIkF for <cfrg@ietfa.amsl.com>; Fri, 16 Jan 2015 12:03:16 -0800 (PST)
Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ABB881ACEE4 for <cfrg@irtf.org>; Fri, 16 Jan 2015 12:03:15 -0800 (PST)
Received: by mail-lb0-f180.google.com with SMTP id f15so10645792lbj.11 for <cfrg@irtf.org>; Fri, 16 Jan 2015 12:03:14 -0800 (PST)
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=RkQnDoiWsMsDaqc9hBVF0Pik3kkHSq3Vgu9PLfK5tBA=; b=EQ5r9ugLVdwrMCmg00/GzjEZKozQpjFBzrz3nUcdK4z1r1wbe7y+KyhXKFppZgWHY0 DEgz8JCPW0Q4pAnECJkPwVfrGX1FArmoGe8j1N95meBPF7Oq824W/mf8nbpvKJRJGWO9 SRRRn9UGlRGKpE9NoY2JHbas+0aoLvhqP3Ffq7Oq2ui7PZnaNAhO9a1MJr1H7I7F2wvZ ZA2hiOoRhtl+W9E4IbDa8ae+DjW1MSOBYaxRT53N2DKnendTv9+MLoKIM4ivQiuThzMs ZUVh5uS+gkcj+XQ4gyWgorpdKHu/iPSJRFoPbiObQxP6YTy9rBrX3XPRj3eMzn5oGyM8 /dQQ==
MIME-Version: 1.0
X-Received: by 10.112.162.226 with SMTP id yd2mr11057058lbb.1.1421438594199; Fri, 16 Jan 2015 12:03:14 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.19.42 with HTTP; Fri, 16 Jan 2015 12:03:14 -0800 (PST)
In-Reply-To: <0A8ABB2C-70C4-4283-8E15-DB02893F1E52@vpnc.org>
References: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com> <54B8C79F.4050909@gmx.net> <0A8ABB2C-70C4-4283-8E15-DB02893F1E52@vpnc.org>
Date: Fri, 16 Jan 2015 15:03:14 -0500
X-Google-Sender-Auth: W-gqCmbgMSXZ6e1jw17v2-FSc04
Message-ID: <CAMm+LwhsHnD+pC8VbFU1=_48ePeTye8q=M_p45rJFk3vJp2qrg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: multipart/alternative; boundary=089e0112c86c7a3936050cca7639
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/jVYemmDrtytrPwrGkh8Ba2Sy864>
Cc: Hannes Tschofenig <hannes.tschofenig@gmx.net>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] CFP - NIST Workshop on Elliptic Curve Cryptography Standards
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 16 Jan 2015 20:03:17 -0000

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

I don't think that is quite right Paul.

NIST has traditionally been the standard setter in this area. It is clear
that this is no longer tenable for a variety of reasons beyond Snowden. But
being NIST they can't just say 'whatever'.

The question in my view is what continuing role NIST should play in public
crypto standards. One that I think would be very valuable and not raise
control point issues would be to provide challenge values for a small set
of preferred algorithms. If generated in an appropriate way these would
provide irrefutable proof of a break.

And this is a model that other national standards institutes could copy
without coordination being required.


On Fri, Jan 16, 2015 at 11:50 AM, Paul Hoffman <paul.hoffman@vpnc.org>
wrote:

> On Jan 16, 2015, at 12:11 AM, Hannes Tschofenig <hannes.tschofenig@gmx.net>
> wrote:
> > I wonder what you think about this upcoming workshop since it more or
> > less aims to do what this group is working on.
>
> Nothing in the workshop announcement says that it "aims to do what this
> group is working on". It is on the same topic, but the aims are completely
> different and, as Kenny points out, the timescales are vastly different.
>
> The descriptive work that the RG has done in the last six months about
> comparison of EC proposals would be great input to the workshop. Beyond
> that, the CFRG's aim right now is still to give the TLS WG something to
> work with, a few months ago.
>
> --Paul Hoffman
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>
>

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

<div dir=3D"ltr">I don&#39;t think that is quite right Paul.<div><br></div>=
<div>NIST has traditionally been the standard setter in this area. It is cl=
ear that this is no longer tenable for a variety of reasons beyond Snowden.=
 But being NIST they can&#39;t just say &#39;whatever&#39;.</div><div><br><=
/div><div>The question in my view is what continuing role NIST should play =
in public crypto standards. One that I think would be very valuable and not=
 raise control point issues would be to provide challenge values for a smal=
l set of preferred algorithms. If generated in an appropriate way these wou=
ld provide irrefutable proof of a break.</div><div><br></div><div>And this =
is a model that other national standards institutes could copy without coor=
dination being required.=C2=A0</div><div><br></div></div><div class=3D"gmai=
l_extra"><br><div class=3D"gmail_quote">On Fri, Jan 16, 2015 at 11:50 AM, P=
aul Hoffman <span dir=3D"ltr">&lt;<a href=3D"mailto:paul.hoffman@vpnc.org" =
target=3D"_blank">paul.hoffman@vpnc.org</a>&gt;</span> wrote:<br><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex"><span class=3D"">On Jan 16, 2015, at 12:11 AM, Hannes =
Tschofenig &lt;<a href=3D"mailto:hannes.tschofenig@gmx.net">hannes.tschofen=
ig@gmx.net</a>&gt; wrote:<br>
&gt; I wonder what you think about this upcoming workshop since it more or<=
br>
&gt; less aims to do what this group is working on.<br>
<br>
</span>Nothing in the workshop announcement says that it &quot;aims to do w=
hat this group is working on&quot;. It is on the same topic, but the aims a=
re completely different and, as Kenny points out, the timescales are vastly=
 different.<br>
<br>
The descriptive work that the RG has done in the last six months about comp=
arison of EC proposals would be great input to the workshop. Beyond that, t=
he CFRG&#39;s aim right now is still to give the TLS WG something to work w=
ith, a few months ago.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--Paul Hoffman<br>
<br>
<br>
</font></span><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>
<br></blockquote></div><br></div>

--089e0112c86c7a3936050cca7639--


From nobody Sun Jan 18 23:11:40 2015
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 A7E431ACE94 for <cfrg@ietfa.amsl.com>; Sun, 18 Jan 2015 23:11:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.099
X-Spam-Level: ***
X-Spam-Status: No, score=3.099 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MANGLED_SMALL=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 BdpgNHEe1jfh for <cfrg@ietfa.amsl.com>; Sun, 18 Jan 2015 23:11:34 -0800 (PST)
Received: from resqmta-po-05v.sys.comcast.net (resqmta-po-05v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:164]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 706801ACE8A for <cfrg@irtf.org>; Sun, 18 Jan 2015 23:11:34 -0800 (PST)
Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-05v.sys.comcast.net with comcast id hjBR1p0014xDoy801jBZ3s; Mon, 19 Jan 2015 07:11:33 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-po-05v.sys.comcast.net with comcast id hjBY1p00D4uhcbK01jBZ7x; Mon, 19 Jan 2015 07:11:33 +0000
Message-ID: <54BCAE24.6020408@brainhub.org>
Date: Sun, 18 Jan 2015 23:11:32 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>, Michael Hamburg <mike@shiftleft.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com> <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org> <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com>
In-Reply-To: <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com>
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=1421651493; bh=w9gQcqoEvqWXe3HqWEUm36azCWrKLASWcfQYM3O32Do=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=ui29zBwU8u47wfYO/jgKQZJ2eeb+LexXrDR+1Bgf44lZOSXKx8SzaDvKuzNvWV/Vw o5TRdvdWTerRr/0sIrK7/2GxYxH4KTjthJYSJ/x+WcKnr+K3fcei+Jwv14a+TS1fqO t+IIVWHBDJmQWdzN1AQa5tLqwNj9ZcglC7YFDronu+BDXsRUvfo3OpFlG3l9fyxGvH 635faUTM4AXZwKG4JMOBg1YGOfocXY9ibFj+BdfF8LyxqAmr2tbwW1o8weL6NeAVxn EBG4fi6WSOdngh/3I1znWR1ZDP5YrRgXyKzjpSVeAMPEsSt4lPENlemFBQNrjghgUj qp4g7SZv5U6Dg==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/2mrf7Pig9WjzQMphLemqED_flc0>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 19 Jan 2015 07:11:36 -0000

On 01/12/2015 11:30 AM, Watson Ladd wrote:
> On Mon, Jan 12, 2015 at 9:59 AM, Michael Hamburg <mike@shiftleft.org> wrote:
>>
>> On Jan 12, 2015, at 7:28 AM, Watson Ladd <watsonbladd@gmail.com> wrote:
>> The table is filled with a cost of 8M for additions and 4M+4S for
>> doublings so 2^(w-2)*8M+2^(w-2)*(4M+4S). Then we proceed for
>> ceil(255/w)-1steps, each step consisting of (w-1) 3M+4S doublings, and
>> 1 4M+4S doubling. Ergo the total cost becomes
>> 2^(w-2)*(12M+4S)+(ceil(255/w)-1)*(w*(3M+4S)+1M).
>>
>>
>> Donβt you need to do some additions at some point as well?  Or do the
>> additions only cost 1M?
>
> Doing the calculation correctly, it's effectively 9M for an addition
> after a 3M+4S doubling. The best window is 5, with 1296*M + 1032*S,
> and tossing in the inversion gives 1307*M + 1286*S, vs 1285*M + 1265*S
> for Montgomery form. Note that here I'm neglecting the multiplications
> by constants, which is why the speeds are coming out slightly
> differently.

For extended twisted Edwards coordinates (thanks, Mike) I get very 
similar result. I agree with your operation count (according to 
http://eprint.iacr.org/2008/522.pdf):

n=255; w=5; 2^(w-2)*(8*M) + 2^(w-2)*(4*M+4*S) + 
w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(9*M)+11*M + 245*S =
1307*M + 1277*S

v.s. Montgomery

n=255; n*(5*M+4*S+M/4)+11*M + 245*S=1350*M + 1265*S =
1350*M + 1265*S

I believe I properly accounted for constants (d in t.Ed is large, would 
costs D=M, a=-1 D=0). The table will include points in extended twisted 
Edwards coordinates. Interestingly, the d is not used in any calculation.

The extended twisted Edwards coordinates, despite having to deal with 
large d, are slightly better (~1.5%) with a simple window exponentiation 
method.

The comb method doesn't seem to be better.

>
> But the bottom line is that Montgomery ladder is competitive with the
> best known alternative methods at 255 bits, in terms of operation
> counts, and this difference can be wiped out by the need for side
> channel protection: none of the various models are saying anything too
> different.

Yes, looks like this, if my calculations are correct. The paper mentions 
additional "caching", though.

One argument remains, though. If you plan to do anything beyond ECDH, 
there is a benefit to have the same code that does ECDH, and, say, signing.


From nobody Sun Jan 18 23:33:01 2015
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 42D111AD1D5 for <cfrg@ietfa.amsl.com>; Sun, 18 Jan 2015 23:33:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.149
X-Spam-Level: 
X-Spam-Status: No, score=0.149 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 Lh4t0qen7SU5 for <cfrg@ietfa.amsl.com>; Sun, 18 Jan 2015 23:32:58 -0800 (PST)
Received: from mail-qc0-x22f.google.com (mail-qc0-x22f.google.com [IPv6:2607:f8b0:400d:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ECBFF1AD1C3 for <cfrg@irtf.org>; Sun, 18 Jan 2015 23:32:57 -0800 (PST)
Received: by mail-qc0-f175.google.com with SMTP id c9so2309171qcz.6 for <cfrg@irtf.org>; Sun, 18 Jan 2015 23:32:57 -0800 (PST)
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=cpUQ54RC/dIVE0H/ov+Qb3aIFr4OY8kcnFujpJLrmGs=; b=hm8vCLXHsnkmI9vzua0aMjdqL+bCpRMokTcDMrYTQdhHeQvsQ+Bjc9FlweQkkJ2/5S GmgRomEdMNjxfzbpubQJ7y1h+X4tMuxZJAiIVVVvFVoElOn70nDei75nioZKVikuGqCi yeG7RPVy8aa0+QDOCAxMliYAEeVAK1MYQtvZlk5L9PWC/uwRL/quRxaLmWId/1b/ZQp3 Kod9w/PAqYDYrgBv5+rWqMoa+DZPNLYp3FKdiBT+bsQ8KSw5wkFyLMJRgF5GCuE2xASe Wxb+UfoqAWKDhERpXBqq95NIcwphtk2RMGbm/QWb7xbyvzsApeAZz6WxU3ioxrGNR8eQ +zDA==
MIME-Version: 1.0
X-Received: by 10.140.96.132 with SMTP id k4mr9409311qge.102.1421652777200; Sun, 18 Jan 2015 23:32:57 -0800 (PST)
Received: by 10.140.108.55 with HTTP; Sun, 18 Jan 2015 23:32:57 -0800 (PST)
In-Reply-To: <54AAE2CA.1080701@isode.com>
References: <54AAE2CA.1080701@isode.com>
Date: Sun, 18 Jan 2015 23:32:57 -0800
Message-ID: <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com>
From: Robert Ransom <rransom.8774@gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/yQApIPOSpc0h1A1MEjsiMRYxb1c>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 19 Jan 2015 07:33:00 -0000

On 1/5/15, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
> This message starts 2 weeks adoption call (ending on January 19th 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an algorithm
> for safe curve parameter generation for a particular security level and
> also recommends a specific curve (2^255-19) for the 128-bit security level.

My comments below are based on the document submitted to IETF and
published as the Internet draft draft-agl-cfrgcurve-00.  That document
is dated 2015-01-06, after you published your call for adoption.

I have not attempted to determine whether there are any other
differences between the draft posted at the URL you specify at the
time of the call for adoption and the Internet draft.

>
> Please reply to this message or directly to CFRG chairs, stating whether
> you support (or not) adoption of this document. If you do not support
> adoption of this document, please state whether you support adoption of
> any alternative document or whether you want a particular change be made
> to the document before adoption.

I strongly oppose adoption of this document:

* Adam Langley was listed as a co-author of draft-black-rpgecc-00 and
  draft-black-rpgecc-01.  No one who co-authored either of those two
  documents should be considered as an editor or co-editor of any
  future CFRG document.

* The curve selection procedures specified in draft-agl-cfrgcurve-00
  were derived from the curve selection process specified in
  <https://eprint.iacr.org/2014/130> (referenced by
  draft-black-rpgecc-00 as [MSR]), and accordingly, the authors of
  [MSR] may require that their paper be cited as a reference by
  draft-agl-cfrgcurve-00.  For reasons which have already been
  discussed, inclusion of [MSR] as a reference in any CFRG document is
  unacceptable.  Thus, these curve selection procedures must not be
  included in any CFRG document.

I also oppose adoption of this document for other reasons which have
previously been raised; see below.


I would support adoption of draft-turner-thecurve25519function,
provided that it is never changed to include in its text any curve
selection procedure derived from [MSR] or from any Internet-Draft by
the authors of [MSR].


>
> Chairs ask not to reiterate previously expressed technical opinions or
> arguments. But clarifying questions on the adoption call are welcome.

The following technical issues were raised prior to your call for
adoption of draft-agl-cfrgcurve-00:

* Curve3617 (also known as Curve41417) has cofactor 8, and is defined
  over a field of order congruent to 3 mod 4.  Accordingly, the curve
  selection procedure in draft-agl-cfrgcurve-00 will choose a
  different curve if applied to the field used for Curve3617.  (This
  point was previously raised to CFRG in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05788.html>.)

  The curve selection procedure specified in draft-agl-cfrgcurve-00
  will instead choose a curve with d > 2^19 (found by D. J. Bernstein
  (et al. ?), found again by Mike Hamburg, and found yet again and
  published recently by David Leon Gil), compared to d=3617 < 2^12 for
  Curve3617.  The parameter value for the twist-secure curve with
  cofactor 4 is so much larger than the parameter value for cofactor 8
  that the performance of at least one implementation strategy of some
  significance would be harmed by insisting on cofactor 4: current
  FPGAs contain 18-bit multipliers, and d > 2^19 almost guarantees a
  greater cost to multiply by the curve parameter.

  With the point format specified in draft-agl-cfrgcurve-00, there is
  no technical benefit to switching to a curve with cofactor 4 over
  the field used for Curve3617.

* It is possible that the point format specified in section 9 of
  draft-agl-cfrgcurve-00 for ECDH (in order to match Curve25519 ECDH
  implementations) may be suboptimal for future curves.  Mike Hamburg
  has developed a compressed point format which can only represent
  points of odd order on curves with cofactor 4, and which seems to be
  compatible with the Montgomery ladder.  (This point was previously
  raised to CFRG in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05654.html>.)

  A modern Schnorr-like signature (like EdDSA) usually consists of one
  group element and one scalar, to allow for batch verification.  On
  elliptic-curve groups of composite order, a malicious signer can
  generate signatures which will pass batch verification and fail the
  simplest, fastest single-signature verification procedure, and
  vice-versa.  Thus, implementors of single-signature verification
  have an engineering trade-off regarding whether to verify single
  signatures as quickly as possible or match the behaviour of batch
  verification; and implementors also have an engineering trade-off
  regarding whether to attempt to use batch verification at all.

  In some applications -- notably anonymity systems, but other systems
  are severely affected as well -- implementation-distinguishing
  attacks such as those can be quite severe.

  Mike Hamburg's new point format would eliminate those cofactor-based
  implementation-distinguishing attacks, but only for curves with
  cofactor 4.  Thus, it may be appropriate for CFRG to recommend a
  curve other than Curve25519 for signatures, in order to obtain this
  technical benefit.

  Note that ECDH can be designed (with careful attention to proper
  handling of edge cases) to not have implementation-distinguishing
  attacks.  Curve25519 ECDH, as it is currently widely implemented,
  has come to have an especially well-specified behaviour, and I
  believe that CFRG should not delay use of Curve25519 ECDH in
  IETF-controlled protocols further in the hope of switching to a
  different curve in order to use the new point format.

* The basepoint selection procedure specified in section 6.3 of
  draft-agl-cfrgcurve-00 generates a different basepoint for
  Curve25519 than the standard basepoint currently in use for
  Curve25519, which is specified implicitly in the draft in section
  9.1.  (This point was previously raised to CFRG in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05709.html>.)

  The simplest implementation strategy for ECDH is to implement both
  key generation and shared-secret computation using the same
  variable-base single-scalar multiplication routine.  This
  implementation strategy can be made easier, simpler, and less
  error-prone to implement, at absolutely no cost to any other
  implementation strategy, by choosing the basepoint to have a simple
  form when expressed in the point format chosen for public keys.  For
  example, the Curve25519 standard basepoint is the number 9,
  expressed as a 32-byte little-endian integer.

  It appears to me that the basepoint selection procedure specified in
  draft-agl-cfrgcurve-00 will not generate a basepoint of a simple
  form for any point format which might plausibly be used, so that
  basepoint selection procedure should be discarded entirely.

* The curve selection procedure specified in draft-agl-cfrgcurve-00
  for fields of order congruent to 1 mod 4 was concocted, at the
  direction of the CFRG chairs, solely to reproduce a curve isogenous
  to Curve25519.  This is diametrically opposed to the purpose which
  the CFRG chairs claim that the curve selection procedure is supposed
  to perform.  (This point was previously raised to CFRG in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05637.html>.)

  Including a curve selection procedure which has been evaluated
  solely based on whether it will reproduce one curve or a small
  number of curves in a CFRG document may cause harm to people who use
  that curve selection procedure to produce additional curves.

  This point has been raised to CFRG again during this call for
  adoption of draft-agl-cfrgcurve, in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05860.html>,
  despite the chairs' request that technical issues previously brought
  to CFRG's attention not be raised again.

* The curve selection procedure specified in draft-agl-cfrgcurve-00
  for fields of order congruent to 1 mod 4 does not require that both
  the curve and twist subgroup orders be greater than a power of 2
  near q/8, even in fields of order sufficiently close to a power of 2
  that such a requirement is feasible and is sufficient to allow a
  simple bit-masking procedure to generate scalars which act as
  non-zero on all curve and twist points of large order.  (This point
  was previously raised to CFRG in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05606.html>
  and
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05629.html>.)

  Over the specific field used for Curve25519, this property is
  implied by the other criteria already used in the curve selection
  procedure.  Since the CFRG chairs' goal was to create a curve
  selection procedure which would reproduce Curve25519, not to create
  a curve selection procedure for general use, they apparently did not
  realize that the curve selection procedure might retain this issue
  when used over other fields.

* If CFRG chooses the curve generation procedure, point format, and
  basepoint selection procedure specified in draft-agl-cfrgcurve-00
  based solely on the fact that they reproduce the current Curve25519
  ECDH protocol, as is currently the case, then CFRG's resulting
  document may make decisions that would be inappropriate for future
  curves.  (This point was previously raised to CFRG in
  <http://www.ietf.org/mail-archive/web/cfrg/current/msg05793.html>.)

I believe that each of these previously stated technical issues is
sufficient to oppose adoption of draft-agl-cfrgcurve-00.  Why have the
CFRG chairs asked that these issues not be discussed further?


Robert Ransom


From nobody Mon Jan 19 00:47:24 2015
Return-Path: <hannes.tschofenig@gmx.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 65BFF1AD09C for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 00:47:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pBxpUhzkr38u for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 00:47:21 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 A48811ACED0 for <cfrg@irtf.org>; Mon, 19 Jan 2015 00:47:20 -0800 (PST)
Received: from [192.168.131.150] ([80.92.115.149]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MexFh-1YOMPa1CLR-00OViZ; Mon, 19 Jan 2015 09:47:15 +0100
Message-ID: <54BCC451.4020508@gmx.net>
Date: Mon, 19 Jan 2015 09:46:09 +0100
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>,  Paul Hoffman <paul.hoffman@vpnc.org>
References: <68AAB8A4-D60D-4B02-A7F8-24713D5A1B44@vigilsec.com>	<54B8C79F.4050909@gmx.net>	<0A8ABB2C-70C4-4283-8E15-DB02893F1E52@vpnc.org> <CAMm+LwhsHnD+pC8VbFU1=_48ePeTye8q=M_p45rJFk3vJp2qrg@mail.gmail.com>
In-Reply-To: <CAMm+LwhsHnD+pC8VbFU1=_48ePeTye8q=M_p45rJFk3vJp2qrg@mail.gmail.com>
OpenPGP: id=4D776BC9
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EHqfL2RMfuusUbqDfJCa6f9MgMXWXmX4W"
X-Provags-ID: V03:K0:PmkJxUIgdlkGRT7/WY05L3b6wUfwOzZ5ZilOoi+skr1ag6t0LrT hIGqpabadS6SxEX2gCJQ7OezhBUnMu+8etixWnUlHd0hwKOA3LyFkpfTctd90ois7KsCNPz 8NgHAc3kxXEDQngWE+hNmWRR64SqtWcrErM/l8PqLUWw5+HyYh35jOLQbYpxi+EIgirmFlv eDMfaOEZPh9u1BCONx1rw==
X-UI-Out-Filterresults: notjunk:1;
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/5_T7c64SLBarEbVLhbqZYcvIJbE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] CFP - NIST Workshop on Elliptic Curve Cryptography Standards
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 19 Jan 2015 08:47:22 -0000

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

Given that there is this overlapping activity I would suggest that the
chairs make sure that the work in the group is moving forward according
to the schedule.

I appreciated that Alexey posted a status update and a plan:
http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html

According to that message outcome of the discussion should be declared
today.

Ciao
Hannes



On 01/16/2015 09:03 PM, Phillip Hallam-Baker wrote:
> I don't think that is quite right Paul.
>=20
> NIST has traditionally been the standard setter in this area. It is
> clear that this is no longer tenable for a variety of reasons beyond
> Snowden. But being NIST they can't just say 'whatever'.
>=20
> The question in my view is what continuing role NIST should play in
> public crypto standards. One that I think would be very valuable and no=
t
> raise control point issues would be to provide challenge values for a
> small set of preferred algorithms. If generated in an appropriate way
> these would provide irrefutable proof of a break.
>=20
> And this is a model that other national standards institutes could copy=

> without coordination being required.=20
>=20
>=20
> On Fri, Jan 16, 2015 at 11:50 AM, Paul Hoffman <paul.hoffman@vpnc.org
> <mailto:paul.hoffman@vpnc.org>> wrote:
>=20
>     On Jan 16, 2015, at 12:11 AM, Hannes Tschofenig
>     <hannes.tschofenig@gmx.net <mailto:hannes.tschofenig@gmx.net>> wrot=
e:
>     > I wonder what you think about this upcoming workshop since it mor=
e or
>     > less aims to do what this group is working on.
>=20
>     Nothing in the workshop announcement says that it "aims to do what
>     this group is working on". It is on the same topic, but the aims ar=
e
>     completely different and, as Kenny points out, the timescales are
>     vastly different.
>=20
>     The descriptive work that the RG has done in the last six months
>     about comparison of EC proposals would be great input to the
>     workshop. Beyond that, the CFRG's aim right now is still to give th=
e
>     TLS WG something to work with, a few months ago.
>=20
>     --Paul Hoffman
>=20
>=20
>=20
>     _______________________________________________
>     Cfrg mailing list
>     Cfrg@irtf.org <mailto:Cfrg@irtf.org>
>     http://www.irtf.org/mailman/listinfo/cfrg
>=20
>=20


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQEcBAEBCgAGBQJUvMRSAAoJEGhJURNOOiAtEG4H/RJ+xJhDxXESq+jpBbb+X43U
VfbyFX4WMjc7sPxFyge/vrzavdFfObzx+1Ay+emfH9cqHVbcJKtIGtQPp7v3cKmD
jDdem5aW2Nz14egwNR4RHof3K/8LWzAZc5k7+Za3eVmayc6ODL95t8ClQ00KGmeF
7w0ALEnzS8qezVcyPl10iQzmleAVaz8e0pyqedgv26fDJLX3BbzDd0adATYrmtIJ
EoZ1cMvvfoMH7rH9rTmR4CzzDDad+44jLwD5ZFrKXGnCc9XxyIHTcdC3GIHFVwOO
GFyN2GQppSJy2lYQeJR2u3WazIhZymVH4T6YaV1ks+hlp74Ce2FFrMP82BMO2GY=
=d1uu
-----END PGP SIGNATURE-----

--EHqfL2RMfuusUbqDfJCa6f9MgMXWXmX4W--


From nobody Mon Jan 19 01:17:24 2015
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 4D4A91AD360; Mon, 19 Jan 2015 01:17:19 -0800 (PST)
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 IchY6yje6nN0; Mon, 19 Jan 2015 01:17:18 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 3950B1AD366; Mon, 19 Jan 2015 01:17:17 -0800 (PST)
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.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150119091717.12424.11048.idtracker@ietfa.amsl.com>
Date: Mon, 19 Jan 2015 01:17:17 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/uyHOekOfyxvCSUF2XcXFLFT9ulY>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-chacha20-poly1305-08.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, 19 Jan 2015 09:17:19 -0000

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

        Title           : ChaCha20 and Poly1305 for IETF protocols
        Authors         : Yoav Nir
                          Adam Langley
	Filename        : draft-irtf-cfrg-chacha20-poly1305-08.txt
	Pages           : 44
	Date            : 2015-01-19

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.  It is a
   product of the Crypto Forum Research Group (CFRG)


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

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


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 Mon Jan 19 03:56:33 2015
Return-Path: <chris.dearlove@baesystems.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 0BCE81B2A39 for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 03:56:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level: 
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vZGKGQ6RMogg for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 03:56:30 -0800 (PST)
Received: from ukmta3.baesystems.com (ukmta3.baesystems.com [20.133.40.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EC8BD1B2A2A for <cfrg@irtf.org>; Mon, 19 Jan 2015 03:56:29 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.09,426,1418083200"; d="scan'208";a="435517297"
Received: from unknown (HELO baemasodc005.greenlnk.net) ([10.108.52.29]) by Baemasodc001ir.sharelnk.net with ESMTP; 19 Jan 2015 11:56:28 +0000
X-IronPort-AV: E=Sophos;i="5.09,426,1418083200"; d="scan'208";a="87604751"
Received: from glkxh0004v.greenlnk.net ([10.109.2.35]) by baemasodc005.greenlnk.net with ESMTP; 19 Jan 2015 11:56:28 +0000
Received: from GLKXM0002V.GREENLNK.net ([169.254.5.118]) by GLKXH0004V.GREENLNK.net ([10.109.2.35]) with mapi id 14.03.0174.001; Mon, 19 Jan 2015 11:56:28 +0000
From: "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
Thread-Index: AQHQF7xXOo91hqf0Rk+tvRj62s2bbpzHixcA
Date: Mon, 19 Jan 2015 11:56:27 +0000
Message-ID: <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com>
In-Reply-To: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.109.62.6]
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/D9liYMEueClrbUWDk3Is_Q3Y5Y0>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG 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, 19 Jan 2015 11:56:32 -0000

QSBtaW5vciBwb2ludCBjb21wYXJlZCB0byBjaG9pY2Ugb2YgY3VydmUuIENvbW1lbnRpbmcgb24g
ZHJhZnQgZHJhZnQtYWdsLWNmcmdjdXJ2ZS0wMCwgaXQgaW5kaWNhdGVzLCBpbiBzZWN0aW9uIDgg
dGhlIHVzZSBvZiBsaXR0bGUtZW5kaWFuIG9yZGVyLiBSRkMgNTQ4MCAob2J2aW91cyBwcmlvciBh
cnQgaW4gSUVURikgZG9lcyBub3QgYXBwZWFyIHRvIHNwZWNpZnkgYmlnL2xpdHRsZSBlbmRpYW5u
ZXNzLCBidXQgZGVsZWdhdGVzIHRoYXQgdG8gaXRzIHJlZmVyZW5jZSBTRUMxLiBUaGF0IGRvY3Vt
ZW50IChodHRwOi8vd3d3LnNlY2cub3JnL3NlYzEtdjIucGRmKSBpbiBzZWN0aW9uIDIuMy43IHJl
dmVyc2VzIHRoZSBvcmRlciBvZiBpdHMgeCBhbmQgTSBjb2VmZmljaWVudHMgdG8gcHJvZHVjZSBh
IGJpZy1lbmRpYW4gcmVwcmVzZW50YXRpb24gb2YgYW4gaW50ZWdlci4gQmlnIGVuZGlhbiBmb3Jt
YXQgaXMgYWxzbyB1c2VkIGJ5LCBmb3IgZXhhbXBsZSwgT3BlblNTTC4gSXMgdGhlIHVzZSBvZiBs
aXR0bGUgZW5kaWFuIGZvcm1hdCBoZXJlIGEgZGVsaWJlcmF0ZSBkZXNpZ24gZGVjaXNpb24/DQoN
Ci0tIA0KQ2hyaXN0b3BoZXIgRGVhcmxvdmUNClNlbmlvciBQcmluY2lwYWwgRW5naW5lZXIsIElu
Zm9ybWF0aW9uIEFzc3VyYW5jZSBHcm91cA0KQ29tbXVuaWNhdGlvbnMsIE5ldHdvcmtzIGFuZCBJ
bWFnZSBBbmFseXNpcyBDYXBhYmlsaXR5DQpCQUUgU3lzdGVtcyBBZHZhbmNlZCBUZWNobm9sb2d5
IENlbnRyZQ0KV2VzdCBIYW5uaW5nZmllbGQgUm9hZCwgR3JlYXQgQmFkZG93LCBDaGVsbXNmb3Jk
LCBDTTIgOEhOLCBVSw0KVGVsOiArNDQgMTI0NSAyNDIxOTTCoHwgIEZheDogKzQ0IDEyNDUgMjQy
MTI0DQpjaHJpcy5kZWFybG92ZUBiYWVzeXN0ZW1zLmNvbSB8IGh0dHA6Ly93d3cuYmFlc3lzdGVt
cy5jb20NCg0KQkFFIFN5c3RlbXMgKE9wZXJhdGlvbnMpIExpbWl0ZWQNClJlZ2lzdGVyZWQgT2Zm
aWNlOiBXYXJ3aWNrIEhvdXNlLCBQTyBCb3ggODcsIEZhcm5ib3JvdWdoIEFlcm9zcGFjZSBDZW50
cmUsIEZhcm5ib3JvdWdoLCBIYW50cywgR1UxNCA2WVUsIFVLDQpSZWdpc3RlcmVkIGluIEVuZ2xh
bmQgJiBXYWxlcyBObzogMTk5NjY4Nw0KDQoNCioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqClRoaXMgZW1haWwgYW5kIGFu
eSBhdHRhY2htZW50cyBhcmUgY29uZmlkZW50aWFsIHRvIHRoZSBpbnRlbmRlZApyZWNpcGllbnQg
YW5kIG1heSBhbHNvIGJlIHByaXZpbGVnZWQuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZApy
ZWNpcGllbnQgcGxlYXNlIGRlbGV0ZSBpdCBmcm9tIHlvdXIgc3lzdGVtIGFuZCBub3RpZnkgdGhl
IHNlbmRlci4KWW91IHNob3VsZCBub3QgY29weSBpdCBvciB1c2UgaXQgZm9yIGFueSBwdXJwb3Nl
IG5vciBkaXNjbG9zZSBvcgpkaXN0cmlidXRlIGl0cyBjb250ZW50cyB0byBhbnkgb3RoZXIgcGVy
c29uLgoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKgo=


From nobody Mon Jan 19 04:27:24 2015
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 065481B29BB for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 04:27:23 -0800 (PST)
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 9s1uGtiLczAq for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 04:27:21 -0800 (PST)
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 2516A1AD34D for <cfrg@irtf.org>; Mon, 19 Jan 2015 04:27:21 -0800 (PST)
In-Reply-To: <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Mon, 19 Jan 2015 12:27:15 +0000
To: "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>, Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Message-ID: <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/E76c6zpOSGd4e5WCS_ROVGGIu4M>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 19 Jan 2015 12:27:23 -0000

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

On 19 January 2015 11:56:27 GMT+00:00, "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com> wrote:
> [β¦] Is the use of little endian format here a deliberate design decision?

Probably yes, to match every existing implementation of Curve25519 already in the wild (and most commonly-used architectures)?

TLS WG give new curves free reign on point format, explicitly not SEC1 constrained. They preferred little endian (weakly) for the above reason, I believe?

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

iQI3BAEBCgAhBQJUvPgjGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6zMYP/1zfZqPArx93uuddYNhL3FoApKh8rUmpJydhlVfAenxK7pfT7FjC
17g2xFE5dHdA+RZEduf4YDqvQHN8DUWFe9v/pQtq/ev6Ety66CsBG1PV/sQ2hF7f
474TKgp9S5ADndNttzD+AZx7JG1xiwvPoXp5BtY86R8tPNG+sfnOB+4Vxl9F7XPC
Cboi942fAlO4F5WxFxJhb8ZY0O9B0MDtfKZVg3SEkyZq+moGGjVwndlcBa26e5+S
iKQeyEXl1yGthSt3Pp7WGFnhu86Ul6/2cC1FmlmOTpXu8RRW3idvwF8Au5VJaJ5s
JEYRAN1FrT9U6Bdrjfs5VZHeQkhSK0jzRlnRFD2VsyBClRwmFDmuODiqJoWkiYHX
qTuZOwvyyqLFgAXgwm+uovTkIjrgKWam66G2ptAUacV3cqhiX0/VdGJIk+Hw2xTd
C95oSiIMw5vHQWuUWvCVh4s7G2kf5+nf930c3MRm4q1IdlFihvjVuLTP0uS8YMgb
5EI/kpCEso6d3foVUTkTbLbe9rXm1AJtL9N7QJ1KdKGXtsHmhMkFjPijE1B3qvB4
aRzjEGoVV48j3yxM68SjyV38TgqvMwzi2qmoXZGeBocynIq+jT05F+d8K3ibUCgV
2ZrKaWIinQs4JQ5Meu3UE0IMcpBQQ0/YE/XE4Y6AUWjyde/mR6nHE+F5
=RTzy
-----END PGP SIGNATURE-----


From nobody Mon Jan 19 05:09:28 2015
Return-Path: <chris.dearlove@baesystems.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 8E0751B2A5A for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 05:09:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.91
X-Spam-Level: 
X-Spam-Status: No, score=-6.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MhZtgC2XERFm for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 05:09:24 -0800 (PST)
Received: from ukmta3.baesystems.com (ukmta3.baesystems.com [20.133.40.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9CDE51AD49B for <cfrg@irtf.org>; Mon, 19 Jan 2015 05:09:23 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.09,426,1418083200"; d="scan'208";a="435545904"
Received: from unknown (HELO baemasodc005.greenlnk.net) ([10.108.52.29]) by Baemasodc001ir.sharelnk.net with ESMTP; 19 Jan 2015 13:09:20 +0000
X-IronPort-AV: E=Sophos;i="5.09,426,1418083200"; d="scan'208";a="87620135"
Received: from glkxh0005v.greenlnk.net ([10.109.2.36]) by baemasodc005.greenlnk.net with ESMTP; 19 Jan 2015 13:09:20 +0000
Received: from GLKXM0002V.GREENLNK.net ([169.254.5.118]) by GLKXH0005V.GREENLNK.net ([10.109.2.36]) with mapi id 14.03.0174.001; Mon, 19 Jan 2015 13:09:20 +0000
From: "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>
To: Alyssa Rowan <akr@akr.io>, Alexey Melnikov <alexey.melnikov@isode.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian
Thread-Index: AdAz6N5eIWSam+IRTISxXg8dWhJumw==
Date: Mon, 19 Jan 2015 13:09:20 +0000
Message-ID: <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF90BB@GLKXM0002V.GREENLNK.net>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.109.62.6]
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ZDnOPFPWa62RDUugwMlMKXMI00E>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 19 Jan 2015 13:09:26 -0000

SSBtYW5hZ2VkIHRvIHBpY2sgdGhlIHdyb25nIHBvc3RpbmcgdG8gZm9sbG93dXAsIGhlbmNlIHRo
ZSB3cm9uZyByZWZlcmVuY2UgaW4gaGVhZGVyIChub3cgcmVtb3ZlZCkuDQoNClRoYXQncyBmaW5l
LCBJIHdhbnRlZCB0byBiZSBjbGVhciBpZiB0aGlzIHdhcyBkZWxpYmVyYXRlLiBJdCdzIG5vdCB3
aXRob3V0IGNvc3QsIGJ1dCBub3RoaW5nIGlzLg0KDQotLSANCkNocmlzdG9waGVyIERlYXJsb3Zl
DQpTZW5pb3IgUHJpbmNpcGFsIEVuZ2luZWVyLCBJbmZvcm1hdGlvbiBBc3N1cmFuY2UgR3JvdXAN
CkNvbW11bmljYXRpb25zLCBOZXR3b3JrcyBhbmQgSW1hZ2UgQW5hbHlzaXMgQ2FwYWJpbGl0eQ0K
QkFFIFN5c3RlbXMgQWR2YW5jZWQgVGVjaG5vbG9neSBDZW50cmUNCldlc3QgSGFubmluZ2ZpZWxk
IFJvYWQsIEdyZWF0IEJhZGRvdywgQ2hlbG1zZm9yZCwgQ00yIDhITiwgVUsNClRlbDogKzQ0IDEy
NDUgMjQyMTk0wqB8ICBGYXg6ICs0NCAxMjQ1IDI0MjEyNA0KY2hyaXMuZGVhcmxvdmVAYmFlc3lz
dGVtcy5jb20gfCBodHRwOi8vd3d3LmJhZXN5c3RlbXMuY29tDQoNCkJBRSBTeXN0ZW1zIChPcGVy
YXRpb25zKSBMaW1pdGVkDQpSZWdpc3RlcmVkIE9mZmljZTogV2Fyd2ljayBIb3VzZSwgUE8gQm94
IDg3LCBGYXJuYm9yb3VnaCBBZXJvc3BhY2UgQ2VudHJlLCBGYXJuYm9yb3VnaCwgSGFudHMsIEdV
MTQgNllVLCBVSw0KUmVnaXN0ZXJlZCBpbiBFbmdsYW5kICYgV2FsZXMgTm86IDE5OTY2ODcNCg0K
DQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogQWx5c3NhIFJvd2FuIFttYWlsdG86
YWtyQGFrci5pb10gDQpTZW50OiAxOSBKYW51YXJ5IDIwMTUgMTI6MjcNClRvOiBEZWFybG92ZSwg
Q2hyaXN0b3BoZXIgKFVLKTsgQWxleGV5IE1lbG5pa292OyBjZnJnQGlydGYub3JnDQpTdWJqZWN0
OiBSZTogW0NmcmddIFBvaW50IGZvcm1hdCBlbmRpYW4gKHdhczogQWRvcHRpb24gb2YgZHJhZnQt
bGFkZC1zcGFrZTIgYXMgYSBSRyBkb2N1bWVudCkNCg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSEg
V0FSTklORyAhIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gVGhpcyBtZXNzYWdlIG9yaWdpbmF0ZXMg
ZnJvbSBvdXRzaWRlIG91ciBvcmdhbmlzYXRpb24sIGVpdGhlciBmcm9tIGFuIGV4dGVybmFsIHBh
cnRuZXIgb3IgZnJvbSB0aGUgaW50ZXJuZXQuDQpDb25zaWRlciBjYXJlZnVsbHkgd2hldGhlciB5
b3Ugc2hvdWxkIGNsaWNrIG9uIGFueSBsaW5rcywgb3BlbiBhbnkgYXR0YWNobWVudHMgb3IgcmVw
bHkuDQpGb2xsb3cgdGhlICdSZXBvcnQgU3VzcGljaW91cyBFbWFpbHMnIGxpbmsgb24gSVQgbWF0
dGVycyBmb3IgaW5zdHJ1Y3Rpb25zIG9uIHJlcG9ydGluZyBzdXNwaWNpb3VzIGVtYWlsIG1lc3Nh
Z2VzLg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0NCg0KLS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBNTEy
DQoNCk9uIDE5IEphbnVhcnkgMjAxNSAxMTo1NjoyNyBHTVQrMDA6MDAsICJEZWFybG92ZSwgQ2hy
aXN0b3BoZXIgKFVLKSIgPGNocmlzLmRlYXJsb3ZlQGJhZXN5c3RlbXMuY29tPiB3cm90ZToNCj4g
W+KApl0gSXMgdGhlIHVzZSBvZiBsaXR0bGUgZW5kaWFuIGZvcm1hdCBoZXJlIGEgZGVsaWJlcmF0
ZSBkZXNpZ24gZGVjaXNpb24/DQoNClByb2JhYmx5IHllcywgdG8gbWF0Y2ggZXZlcnkgZXhpc3Rp
bmcgaW1wbGVtZW50YXRpb24gb2YgQ3VydmUyNTUxOSBhbHJlYWR5IGluIHRoZSB3aWxkIChhbmQg
bW9zdCBjb21tb25seS11c2VkIGFyY2hpdGVjdHVyZXMpPw0KDQpUTFMgV0cgZ2l2ZSBuZXcgY3Vy
dmVzIGZyZWUgcmVpZ24gb24gcG9pbnQgZm9ybWF0LCBleHBsaWNpdGx5IG5vdCBTRUMxIGNvbnN0
cmFpbmVkLiBUaGV5IHByZWZlcnJlZCBsaXR0bGUgZW5kaWFuICh3ZWFrbHkpIGZvciB0aGUgYWJv
dmUgcmVhc29uLCBJIGJlbGlldmU/DQoNCi0gLS0NCi9ha3INCi0tLS0tQkVHSU4gUEdQIFNJR05B
VFVSRS0tLS0tDQpWZXJzaW9uOiBBUEcgdjEuMS4xDQoNCmlRSTNCQUVCQ2dBaEJRSlV2UGdqR2h4
QmJIbHpjMkVnVW05M1lXNGdQR0ZyY2tCaGEzSXVhVzgrQUFvSkVPeUUNCmp0a1dpMnQ2ek1ZUC8x
emZacVBBcng5M3V1ZGRZTmhMM0ZvQXBLaDhyVW1wSnlkaGxWZkFlbnhLN3BmVDdGakMNCjE3ZzJ4
RkU1ZEhkQStSWkVkdWY0WURxdlFITjhEVVdGZTl2L3BRdHEvZXY2RXR5NjZDc0JHMVBWL3NRMmhG
N2YNCjQ3NFRLZ3A5UzVBRG5kTnR0ekQrQVp4N0pHMXhpd3ZQb1hwNUJ0WTg2Ujh0UE5HK3Nmbk9C
KzRWeGw5RjdYUEMNCkNib2k5NDJmQWxPNEY1V3hGeEpoYjhaWTBPOUIwTUR0ZktaVmczU0VreVpx
K21vR0dqVnduZGxjQmEyNmU1K1MNCmlLUWV5RVhsMXlHdGhTdDNQcDdXR0ZuaHU4NlVsNi8yY0Mx
Rm1sbU9UcFh1OFJSVzNpZHZ3RjhBdTVWSmFKNXMNCkpFWVJBTjFGclQ5VTZCZHJqZnM1VlpIZVFr
aFNLMGp6UmxuUkZEMlZzeUJDbFJ3bUZEbXVPRGlxSm9Xa2lZSFgNCnFUdVpPd3Z5eXFMRmdBWGd3
bSt1b3ZUa0lqcmdLV2FtNjZHMnB0QVVhY1YzY3FoaVgwL1ZkR0pJaytIdzJ4VGQNCkM5NW9TaUlN
dzV2SFFXdVVXdkNWaDRzN0cya2Y1K25mOTMwYzNNUm00cTFJZGxGaWh2alZ1TFRQMHVTOFlNZ2IN
CjVFSS9rcENFc282ZDNmb1ZVVGtUYkxiZTlyWG0xQUp0TDlON1FKMUtkS0dYdHNIbWhNa0ZqUGlq
RTFCM3F2QjQNCmFSempFR29WVjQ4ajN5eE02OFNqeVYzOFRncXZNd3ppMnFtb1haR2VCb2N5bklx
K2pUMDVGK2Q4SzNpYlVDZ1YNCjJackthV0lpblFzNEpRNU1ldTNVRTBJTWNwQlFRMC9ZRS9YRTRZ
NkFVV2p5ZGUvbVI2bkhFK0Y1DQo9UlR6eQ0KLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tDQoN
CioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqClRoaXMgZW1haWwgYW5kIGFueSBhdHRhY2htZW50cyBhcmUgY29uZmlkZW50
aWFsIHRvIHRoZSBpbnRlbmRlZApyZWNpcGllbnQgYW5kIG1heSBhbHNvIGJlIHByaXZpbGVnZWQu
IElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZApyZWNpcGllbnQgcGxlYXNlIGRlbGV0ZSBpdCBm
cm9tIHlvdXIgc3lzdGVtIGFuZCBub3RpZnkgdGhlIHNlbmRlci4KWW91IHNob3VsZCBub3QgY29w
eSBpdCBvciB1c2UgaXQgZm9yIGFueSBwdXJwb3NlIG5vciBkaXNjbG9zZSBvcgpkaXN0cmlidXRl
IGl0cyBjb250ZW50cyB0byBhbnkgb3RoZXIgcGVyc29uLgoqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgo=


From nobody Mon Jan 19 06:39:36 2015
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 5D5E31B2A94 for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 06:39:34 -0800 (PST)
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 oswQfMTMx551 for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 06:39:32 -0800 (PST)
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 B55DA1B2A93 for <cfrg@irtf.org>; Mon, 19 Jan 2015 06:39:31 -0800 (PST)
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 544BC188857; Mon, 19 Jan 2015 16:39:29 +0200 (EET)
Date: Mon, 19 Jan 2015 16:39:29 +0200
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Robert Ransom <rransom.8774@gmail.com>
Message-ID: <20150119143928.GA6160@LK-Perkele-VII>
References: <54AAE2CA.1080701@isode.com> <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@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/Ck0NK-rOKnyUAd7C3zp3xlVym4E>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 19 Jan 2015 14:39:34 -0000

On Sun, Jan 18, 2015 at 11:32:57PM -0800, Robert Ransom wrote:
> 
> * Curve3617 (also known as Curve41417) has cofactor 8, and is defined
>   over a field of order congruent to 3 mod 4.  Accordingly, the curve
>   selection procedure in draft-agl-cfrgcurve-00 will choose a
>   different curve if applied to the field used for Curve3617.  (This
>   point was previously raised to CFRG in
>   <http://www.ietf.org/mail-archive/web/cfrg/current/msg05788.html>.)
> 
>   The curve selection procedure specified in draft-agl-cfrgcurve-00
>   will instead choose a curve with d > 2^19 (found by D. J. Bernstein
>   (et al. ?), found again by Mike Hamburg, and found yet again and
>   published recently by David Leon Gil), compared to d=3617 < 2^12 for
>   Curve3617.  The parameter value for the twist-secure curve with
>   cofactor 4 is so much larger than the parameter value for cofactor 8
>   that the performance of at least one implementation strategy of some
>   significance would be harmed by insisting on cofactor 4: current
>   FPGAs contain 18-bit multipliers, and d > 2^19 almost guarantees a
>   greater cost to multiply by the curve parameter.

I got d=-142113 (#E<p)  (d=142114 if one additionally requires #E>p)

These numbers are 18-bit in absolute value.

-Ilari


From nobody Mon Jan 19 16:21:05 2015
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 5F3671B2C12 for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 16:21:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3
X-Spam-Level: ***
X-Spam-Status: No, score=3 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, MANGLED_SMALL=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 943v_Gare3E6 for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 16:21:01 -0800 (PST)
Received: from mail-yk0-x22e.google.com (mail-yk0-x22e.google.com [IPv6:2607:f8b0:4002:c07::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CEE171B2B45 for <cfrg@irtf.org>; Mon, 19 Jan 2015 16:21:00 -0800 (PST)
Received: by mail-yk0-f174.google.com with SMTP id 131so3333300ykp.5 for <cfrg@irtf.org>; Mon, 19 Jan 2015 16:21:00 -0800 (PST)
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=tnY3Il/E9yl12D92YBU3gYa7++3o4xG+GGspHmtb7/4=; b=wKG6FzuugJCcm7fA3J24lhw9WK/fY40u8XFCcI9gpBk0j7DnH1mHo7zCxWv8iyL/qj RVx4oWr1X9nmL49PLsB13EVGZPFZnCMmSsokijOQ0d30w0iDJeWzMVaNuqnloqbT+vvH bIyaGTxGqynkq5Vnni3JyXLYabukbJ/ieY123Dpq3bbY9byplNMd0op3TMJ+meWwHUsn 3++XA44/1fik542/WwXaNyceLfPGyCLyTrTE4La2E7PVY/d/q6DOSQy7UZH5dvkpG2Gl 0ufogbymu9IeLYfSbEftaetCPP3Jfw/MaBLO0ZxQMHlGdQ0T6WBi9AndRbNzBl4g6fjw T0pQ==
MIME-Version: 1.0
X-Received: by 10.236.30.168 with SMTP id k28mr8565453yha.163.1421713260034; Mon, 19 Jan 2015 16:21:00 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Mon, 19 Jan 2015 16:20:59 -0800 (PST)
In-Reply-To: <54BCAE24.6020408@brainhub.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com> <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org> <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com> <54BCAE24.6020408@brainhub.org>
Date: Mon, 19 Jan 2015 16:20:59 -0800
Message-ID: <CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/y8eHo1fdB_1kYC3m8N2owIH27OI>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 20 Jan 2015 00:21:02 -0000

On Sun, Jan 18, 2015 at 11:11 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 01/12/2015 11:30 AM, Watson Ladd wrote:
<snip>
> For extended twisted Edwards coordinates (thanks, Mike) I get very similar
> result. I agree with your operation count (according to
> http://eprint.iacr.org/2008/522.pdf):
>
> n=255; w=5; 2^(w-2)*(8*M) + 2^(w-2)*(4*M+4*S) +
> w*(ceil(n/w)-1)*(3*M+4*S)+(ceil(n/w)-1)*(9*M)+11*M + 245*S =
> 1307*M + 1277*S
>
> v.s. Montgomery
>
> n=255; n*(5*M+4*S+M/4)+11*M + 245*S=1350*M + 1265*S =
> 1350*M + 1265*S
>
> I believe I properly accounted for constants (d in t.Ed is large, would
> costs D=M, a=-1 D=0). The table will include points in extended twisted
> Edwards coordinates. Interestingly, the d is not used in any calculation.
>
> The extended twisted Edwards coordinates, despite having to deal with large
> d, are slightly better (~1.5%) with a simple window exponentiation method.
>
> The comb method doesn't seem to be better.

Combs are better for fixed base mults, not variable base: it takes too
long to do the precomputation.

>
>>
>> But the bottom line is that Montgomery ladder is competitive with the
>> best known alternative methods at 255 bits, in terms of operation
>> counts, and this difference can be wiped out by the need for side
>> channel protection: none of the various models are saying anything too
>> different.
>
>
> Yes, looks like this, if my calculations are correct. The paper mentions
> additional "caching", though.
>
> One argument remains, though. If you plan to do anything beyond ECDH, there
> is a benefit to have the same code that does ECDH, and, say, signing.

And once again, the Montgomery ladder is extremely small in codesize,
one the field operations are implemented. Or is there some other
benefit I don't understand you are thinking of?

Sincerely,
Watson Ladd


From nobody Mon Jan 19 17:32:46 2015
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 B553C1A898E for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 17:32:44 -0800 (PST)
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 I7j1fZl49_NL for <cfrg@ietfa.amsl.com>; Mon, 19 Jan 2015 17:32:43 -0800 (PST)
Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1ED181A87D5 for <cfrg@irtf.org>; Mon, 19 Jan 2015 17:32:43 -0800 (PST)
Received: by mail-qg0-f51.google.com with SMTP id z107so5931235qgd.10 for <cfrg@irtf.org>; Mon, 19 Jan 2015 17:32:42 -0800 (PST)
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=A0KpmPlzjrkj9nNpOwgECQKXCCppQ+l9odxr18St6o0=; b=nWrdzJ72junK+9jtQlQD76ZYFk+e3XMHFFjEfKllLth430t0OIUK3C70hjOOrcbzSZ tmHAd7HlMwr+L2Aq+yCMj/WoPVxA9bvLZfIxlGeb+0qeffD1VBiRMb7FwskzbBIcLmP1 3OyjSNFdQpER1HpvV76VQvk0LYFk1ZU9MVOQMPqdcc+0n6E8hfuNnLpdQrl3LXjw5gng b+i0iqdFqIvYBlCoMocMY+Di/c1eVzAgbmotWPG9tX9IOo46UsopylPODBvmVm8g+IJ6 mVEN+SpW9J2RQcPWfJyveUXsz9yOF5zTn3yq6Um4j2KNeoCjkvt0+wUx9kPT3BLJZUu0 KZmQ==
MIME-Version: 1.0
X-Received: by 10.140.32.166 with SMTP id h35mr24377200qgh.22.1421717562271; Mon, 19 Jan 2015 17:32:42 -0800 (PST)
Received: by 10.140.108.55 with HTTP; Mon, 19 Jan 2015 17:32:42 -0800 (PST)
In-Reply-To: <20150119143928.GA6160@LK-Perkele-VII>
References: <54AAE2CA.1080701@isode.com> <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com> <20150119143928.GA6160@LK-Perkele-VII>
Date: Mon, 19 Jan 2015 17:32:42 -0800
Message-ID: <CABqy+spnYiiN1fkKD618NwzecVO-CY6Jt8Gw6ENCdVmtyToTQg@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/WsIZ9uTNKaFJvdDBnZvl8tKGlUA>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jan 2015 01:32:44 -0000

On 1/19/15, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:
> On Sun, Jan 18, 2015 at 11:32:57PM -0800, Robert Ransom wrote:
>>
>> * Curve3617 (also known as Curve41417) has cofactor 8, and is defined
>>   over a field of order congruent to 3 mod 4.  Accordingly, the curve
>>   selection procedure in draft-agl-cfrgcurve-00 will choose a
>>   different curve if applied to the field used for Curve3617.  (This
>>   point was previously raised to CFRG in
>>   <http://www.ietf.org/mail-archive/web/cfrg/current/msg05788.html>.)
>>
>>   The curve selection procedure specified in draft-agl-cfrgcurve-00
>>   will instead choose a curve with d > 2^19 (found by D. J. Bernstein
>>   (et al. ?), found again by Mike Hamburg, and found yet again and
>>   published recently by David Leon Gil), compared to d=3617 < 2^12 for
>>   Curve3617.  The parameter value for the twist-secure curve with
>>   cofactor 4 is so much larger than the parameter value for cofactor 8
>>   that the performance of at least one implementation strategy of some
>>   significance would be harmed by insisting on cofactor 4: current
>>   FPGAs contain 18-bit multipliers, and d > 2^19 almost guarantees a
>>   greater cost to multiply by the curve parameter.
>
> I got d=-142113 (#E<p)  (d=142114 if one additionally requires #E>p)
>
> These numbers are 18-bit in absolute value.

Thank you for the correction!  (David Leon Gil had reported a curve in
the isogeny class of a=1, d=-547072.)

I've recomputed the trace of the curve with a=1, d=-142113 using GP,
and it and its twist are indeed of order 4*prime.  The prime-order
subgroup of that curve has maximal multiplicative embedding degree
(r-1), and its twist's subgroup has multiplicative embedding degree
(r'-1)/4; the discriminant of its endomorphism ring is large; and the
factorizations involved in verifying those are fairly easy.


The parameter d=-142113 is still large enough to require more carrying
after multiplication by the curve parameter in an implementation which
uses 16-bit limbs and must reduce limbs to 16 bits each before
multiplication.  I'm not certain whether this would be the case for
FPGA-based implementations, but it is still enough of a difference in
parameter size that I would strongly prefer d=3617 for use with the
point format specified in draft-agl-cfrgcurve-00.


Robert Ransom


From nobody Tue Jan 20 03:17:50 2015
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 D1A091B29BA for <cfrg@ietfa.amsl.com>; Tue, 20 Jan 2015 03:17:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 75Ole-EQotCw for <cfrg@ietfa.amsl.com>; Tue, 20 Jan 2015 03:17:45 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 1BF491B29B0 for <cfrg@irtf.org>; Tue, 20 Jan 2015 03:17:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1421752664; d=isode.com; s=selector; i=@isode.com; bh=3Hdsqq9sBy3mmGW+yVNHBs3cmE0GEybb8fPP+sb9zvs=; 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=QItjqEpvZyZ+7KDvJEPWaCrxiFj6Gr4T+3nTZNYRk1Pm1CZFubEcWdYMJlmwDRagO62McN kZj4RjOJePAH3b2hebg2osvzMdGy2FGMPvNY6Q8NwQ1ij+hsRpWtC1bSTg5vMHhh8hgSWj saXcA/VlJCxL9GLl68U5YTLfo+RU7/s=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VL45VAAKaCZI@waldorf.isode.com>; Tue, 20 Jan 2015 11:17:44 +0000
Message-ID: <54BE389A.2090006@isode.com>
Date: Tue, 20 Jan 2015 11:14:34 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
To: Robert Ransom <rransom.8774@gmail.com>
References: <54AAE2CA.1080701@isode.com> <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com>
In-Reply-To: <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/FAWYLclEts10cuujL3WdQrks3yI>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jan 2015 11:17:48 -0000

Robert,

On 19/01/2015 07:32, Robert Ransom wrote:
> On 1/5/15, Alexey Melnikov<alexey.melnikov@isode.com>  wrote:
  [snip]
>> Please reply to this message or directly to CFRG chairs, stating whether
>> you support (or not) adoption of this document. If you do not support
>> adoption of this document, please state whether you support adoption of
>> any alternative document or whether you want a particular change be made
>> to the document before adoption.
> I strongly oppose adoption of this document:
>
> * Adam Langley was listed as a co-author of draft-black-rpgecc-00 and
>    draft-black-rpgecc-01.  No one who co-authored either of those two
>    documents should be considered as an editor or co-editor of any
>    future CFRG document.
Decisions about who edit a particular CFRG document belongs to CFRG 
chairs (according to IETF and IRTF rules). In particular chairs can fire 
and hire editors of documents.
So this is not a valid excuse for not adopting a draft.

Concerns about editors of CFRG documents should be voiced *privately* to 
chairs.

Best Regards,
Alexey


From nobody Wed Jan 21 01:04:19 2015
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 500D11A0AF8 for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 01:04:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level: 
X-Spam-Status: No, score=-0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AHPwxFQ0MxQm for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 01:04:14 -0800 (PST)
Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:163]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C96491A07BC for <cfrg@irtf.org>; Wed, 21 Jan 2015 01:04:14 -0800 (PST)
Received: from resomta-po-14v.sys.comcast.net ([96.114.154.238]) by resqmta-po-04v.sys.comcast.net with comcast id iZ4E1p00258ss0Y01Z4EQ6; Wed, 21 Jan 2015 09:04:14 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-po-14v.sys.comcast.net with comcast id iZ4C1p00F4uhcbK01Z4DEo; Wed, 21 Jan 2015 09:04:14 +0000
Message-ID: <54BF6B8C.2020707@brainhub.org>
Date: Wed, 21 Jan 2015 01:04:12 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>, Andrey Jivsov <crypto@brainhub.org>
References: <54AA4AB9.70505@brainhub.org>	<54B315CA.6040900@brainhub.org>	<88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>	<CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com>	<3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org>	<CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com>	<54BCAE24.6020408@brainhub.org> <CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com>
In-Reply-To: <CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1421831054; bh=R/dR6zOwnVqEEUZtvWUh19PGa72zNIQbeOSX9Zvi9oE=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=vYEeaw8cYeOcCL2b98vWr+oYi3NHKRKvQWg8pB6+hfSxPAzNVfyOzB/JGKNhsaqvA qO7LHbhesAApDGmLasr5lZOQVi/0ONVbovkbG3MAEhMTQLS12E8oKXwQgjMi8to4TQ baEsMlhoh3l9cUXWt1Xtehwrf4ANwqkMDyIQLYcQwGCIz9b5fZ6m1T3Z55lyVcItpG secUzFqBb/qHrP7LMQlj1VZ2ZaJ6+3fTQx+n2QLiZfB54lUvPXujlR76GLu4sPycce P9fIIzydyJBZVhn6Lhl95Cid2dhSfOkTNgPCBfO4QlI/DuOxjrqsJBBaQIAqSEQsIl q0q4roBAIX4ag==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/2oXKY1V4wVYNbAlRL2_L7pF8RJw>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 21 Jan 2015 09:04:17 -0000

On 01/19/2015 04:20 PM, Watson Ladd wrote:
> And once again, the Montgomery ladder is extremely small in codesize,
> one the field operations are implemented. Or is there some other
> benefit I don't understand you are thinking of?

The benefits of using extended twisted Edwards coordinates would be:

* An order of magnitude faster key generation (this is a part of 
signature generation or ECDH ephemeral key generation)
* Ability to add points (needed for signatures and many other protocols)
* The same code can do what Montgomery ladder does (variable case 
scalarmult) at the same speed.

It plausible that a library that needs more then ECDH variable base 
scalarmult would implement the above operations without the Montgomery 
ladder.

However, if there there is a penalty to recover 'y', that unified 
implementation is less likely to happen.


From nobody Wed Jan 21 11:28:24 2015
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 899761A871D for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 11:28:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level: 
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JCqWrp1Hm6Sz for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 11:28:17 -0800 (PST)
Received: from statler.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 1097A1A86FF for <cfrg@irtf.org>; Wed, 21 Jan 2015 11:28:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1421868494; d=isode.com; s=selector; i=@isode.com; bh=crtEGYr5DLMSRZFJpx41OUPXsxR57LcQp2fs44KpA+k=; 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=ZbnQ6pk5HMEfoVW8/CDSvFHB4gusrn28hDgidGy1OBd8FxufkPt++O+6Uzuaw5QHSnbhU6 fPKhn9YDNnZ1ju+UjyYuuXS8mKdhM9EknkT1Jpt85/dNgQKLcecQzSVj/ewfe3aJ5VLEON bMyrufTrt4N0wBmZjHZvbTslxDiafm4=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215])  by statler.isode.com (submission channel) via TCP with ESMTPSA  id <VL=9ywBz6RoC@statler.isode.com>; Wed, 21 Jan 2015 19:28:14 +0000
Message-ID: <54BFFD0B.1070804@isode.com>
Date: Wed, 21 Jan 2015 19:24:59 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
To: Robert Ransom <rransom.8774@gmail.com>
References: <54AAE2CA.1080701@isode.com> <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com>
In-Reply-To: <CABqy+sq7m9epnQho0gbjZzZ9pN4Y4osbuR0mypcAxHrTv_7nAA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/voZ2FqLp1kLDY40MSR8tgaGvlwc>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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, 21 Jan 2015 19:28:20 -0000

Robert,

On 19/01/2015 07:32, Robert Ransom wrote:
> On 1/5/15, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
  [snip]
>> Please reply to this message or directly to CFRG chairs, stating whether
>> you support (or not) adoption of this document. If you do not support
>> adoption of this document, please state whether you support adoption of
>> any alternative document or whether you want a particular change be made
>> to the document before adoption.
> I strongly oppose adoption of this document:
  [snip]
> * The curve selection procedures specified in draft-agl-cfrgcurve-00
>    were derived from the curve selection process specified in
>    <https://eprint.iacr.org/2014/130> (referenced by
>    draft-black-rpgecc-00 as [MSR]), and accordingly, the authors of
>    [MSR] may require that their paper be cited as a reference by
>    draft-agl-cfrgcurve-00.  For reasons which have already been
>    discussed, inclusion of [MSR] as a reference in any CFRG document is
>    unacceptable.  Thus, these curve selection procedures must not be
>    included in any CFRG document.
If you are referring to the Microsoft patent, then it doesn't apply to 
the curve selection procedure, so this is a non issue.

Best Regards,
Alexey



From nobody Wed Jan 21 14:25:19 2015
Return-Path: <baronsz@freemail.hu>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4E0751A1B4E for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 14:25:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.896
X-Spam-Level: **
X-Spam-Status: No, score=2.896 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, FREEMAIL_FROM=0.001, HELO_EQ_HU=1.35, HOST_EQ_HU=1.245, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_NONE=-0.0001, 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 jZAe4__Zsb8L for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 14:25:14 -0800 (PST)
Received: from fmxout01.freemail.hu (iwiw01d.mail.t-online.hu [84.2.42.53]) by ietfa.amsl.com (Postfix) with ESMTP id D04971A8934 for <cfrg@irtf.org>; Wed, 21 Jan 2015 14:25:12 -0800 (PST)
Received: from fmx24.freemail.hu (fmx24.freemail.hu [195.228.245.74]) by fmxout01.freemail.hu (Postfix) with SMTP id 8655C11F31 for <cfrg@irtf.org>; Wed, 21 Jan 2015 22:17:29 +0100 (CET)
Received: (qmail 8619 invoked by uid 151); 21 Jan 2015 22:17:29 +0100
Received: from fmlb00.freemail.hu (HELO fmxmldata04.freemail.hu) (195.228.245.211) by fmx24.freemail.hu with SMTP; 21 Jan 2015 22:17:29 +0100
Received: from webmail by smtp gw id t0LLHTql034171; Wed, 21 Jan 2015 22:17:29 +0100 (CET)
Date: Wed, 21 Jan 2015 22:17:29 +0100 (CET)
From: =?UTF-8?Q?Szab=C3=B3_=C3=81ron?= <baronsz@freemail.hu>
To: cfrg@irtf.org
In-Reply-To: <freemail.20150105113248.23567.1@fmxmldata04.freemail.hu>
Message-ID: <freemail.20150121221729.34169.1@fmxmldata04.freemail.hu>
X-Originating-IP: [188.6.31.178]
X-HTTP-User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:35.0) Gecko/20100101 Firefox/35.0
X-Original-User: baronsz
MIME-Version: 1.0
Content-Type: TEXT/plain; CHARSET=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/c-QJkrLQNDjNge0IgN20INguHMg>
Subject: Re: [Cfrg] LDWM implementation questions (Hash-Based Signatures - draft-mcgrew-hash-sigs-02)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 21 Jan 2015 22:25:17 -0000

Dear Members,

after re-reading the draft-mcgrew-hash-sigs-02, and implementing the described algorithms I know, that my previous questions were non-understandable in this context (sorry about this). Now, I collected some parts of the draft that are still seem to be not so clear. Some of them seem to be mistakes, and others need just more clarification.

1)
The section "3.3. Signature Methods" contains "n = 32" (instead of "n = 64"?) in the rows of "LDWM_SHA512_M64_W*", where "H = SHA512".

2)
The section "3.3. Signature Methods" contains "m = 32" (instead of "m = 64"?) in the rows of "LDWM_SHA512_M64_W*", where "F = SHA512".

3)
The section "3.4. Private Key" contains "array of size p containing m-byte strings" but Table 6 (test vectors of private key) lists 32 byte long strings such as "x[0] = 0xbfb757383fb08d324629115a84daf00b188d5695303c83c184e1ec7a501c431f" instead of "m = 20" byte long strings. Also "Algorithm 0: Generating a Private Key" does not refer to "F = SHA256-20", this function is applied just at "Algorithm 1: Generating a Public Key From a Private Key" and "Algorithm 3: Generating a Signature From a Private Key and a Message". So, signature and public key contains "array of size p containing m-byte strings" as chunks, but in the given example private key does not contain "uniformly random m-byte string" chunks.

4)
The section "3.6. Checksum" contains "Thus for the purposes of this document [...] let sum be a 16-bit non-negative integer for all combinations of n and w." Based on the expression "ls = (number of bits in sum) - (v * w)" and values of Table 4, the "number of bits in sum" is exactly always a "16-bit non-negative integer". If there may be no other value for "number of bits in sum" then perhaps this statement could be expressed harder.

5)
The section "3.6. Checksum" contains "The checksum function C is defined as follows, where S denotes the byte string that is input to that function." but perhaps it should clearly state that "S = H(message)".

Bonus question:
The draft says, that "Expires: January 5, 2015". What is the future plan of this draft? When will draft-mcgrew-hash-sigs-03 or a final RFC published?

Best regards,
Aron


---

Dear Members,

I am not a mathematician, but as a developer some questions came up during implementation the LDWM algorithm of standard draft (https://tools.ietf.org/html/draft-mcgrew-hash-sigs-02). Please, explain things that I imagine/understand wrong! Thx!

a)
"The LDWM public key is generated from the private key by applying the function F^(2^w - 1) to each individual element of x, then hashing all of the resulting values."

If I understand well the notations, "m" stands for length of (private) key chunks assigned as signature chunks based on the 0/1 value of H(message) "i"th bit (e.g. 256 bits in case of SHA-256, or 512 bits in case of SHA-512) and "n" stands for length of H(message) (e.g. 256 bits in case of SHA-256, or 512 bits in case of SHA-512).

In case of n=length(H(message)), there are no restrictions to the output length and the applied hash algorithm. It is also true in case of m=length(private_key_chunk[i]), but Winternitz parameter - { 1, 2, 4, 8 } - shall be applied to derive public_key_chunk[i] values before hashing (as I saw the pseudo-code in the draft). But why is this transformation specified as a "MUST" requirement? I mean, if I have a restriction that I shall not lose entropy at any sub-step of implementing the algorithm (e.g. because of Grover's algorithm) how can I use e.g. SHA-512 public keys as they are (without any kind of key size reduction) if the maximum value is just w=8 (2^8=256 bits)? So, shall/can I use e.g. w=16? Or is there any way to skip the size reduction sub-step of derived public keys in the pseudo-code (e.g. by inserting an "if-else" in it)?

b)
"A checksum is used to ensure that any forgery attempt that manipulates the elements of an existing signature will be detected."

Could you explain what the exact reason, and added value of this checksum is? I found nothing about this in the core descriptions of Lamport-Diffie one-time signature scheme in Bernstein-Buchmann-Dahmen's book. OK, I understand that this provides an easy way to pre-check signature validity before computing all the needed hashes (good from "developer" viewpoint), but if it is not a core step of algorithm (seeing from "mathematician" viewpoint), then I think this should be just an optional thing, isn't it? I have already read "8.1. Security of LDWM Checksum" section where it is described that "an attacker may try to change the values of h and c" and "then the attacker can compute F^a'(x[j]) from F^a(x[j]) = y[j]" which is the array of public key chunks. But if I assume a trusted-third-party model (e.g. trusted CAs issuing signed public keys as X.509 certificates) the alteration of end user public keys is not possible (OK, hacking the whole trusted chain or finding a new PRNG backdoor w
 ould provide a solution, of course, but now I think about the expected way of operation). So, in case of public key chunks are signed by some kind of CA, perhaps performing and concatenating this C(H(message)) can be avoided...

c)
>From the developer and user viewpoint: beyond the specification of the core algorithm, I think the IETF RFC 5280 (X.509) and/or IETF RFC 3447 (PKCS#1) standard (or maybe this draft itself) shall be modified with an update/amendment in order to describe the exact ASN.1 data structures of private/public keys and created signatures. I know that CA softwares, and applied crypto libraries will not implement these modifications immediately, but for development and testing reasons it would be important to involve these now. (As I see, the OID of algorithm - which is important part of SubjectPublicKeyInfo - is already defined: 1.2.840.113549.1.9.16.3.17.X). So, could you also define the ASN.1-level data structures? (see my attempt below)

LDWMPublicKey ::= SEQUENCE {
 version Version,
 algorithm AlgorithmIdentifier,
 keyChunks KeyChunks,
 otherInfo OtherInfo OPTIONAL
}

LDWMPrivateKey ::= SEQUENCE {
 version Version,
 algorithm AlgorithmIdentifier,
 keyChunks KeyChunks
}

LDWMSignature ::= SEQUENCE {
 version Version,
 signatureChunks KeyChunks,
 checksum Checksum OPTIONAL
}

Version ::= INTEGER { v1(0) }

AlgorithmIdentifier ::= SEQUENCE {
 algorithm OBJECT IDENTIFIER,
 parameters ANY DEFINED BY algorithm OPTIONAL
}

KeyChunks ::= SEQUENCE SIZE(1..MAX) OF KeyChunk

KeyChunk ::= SEQUENCE {
 chunk0 BIT STRING,
 chunk1 BIT STRING
}

OtherInfo ::= SEQUENCE {
 winternitz INTEGER,
 keyDerivation AlgorithmIdentifier OPTIONAL
}

Checksum ::= SEQUENCE {
 checksumCalculation AlgorithmIdentifier,
 leftShiftBits INTEGER
}

Best regards,
Aron Szabo

P.S.: I apologise for that if you get this e-mail twice.


From nobody Wed Jan 21 17:39:26 2015
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 B44581A1AA6 for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 17:39:23 -0800 (PST)
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 LexwBTqGcMz5 for <cfrg@ietfa.amsl.com>; Wed, 21 Jan 2015 17:39:21 -0800 (PST)
Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D0B21A1A25 for <cfrg@irtf.org>; Wed, 21 Jan 2015 17:39:21 -0800 (PST)
Received: by mail-yk0-f181.google.com with SMTP id 79so8036072ykr.12 for <cfrg@irtf.org>; Wed, 21 Jan 2015 17:39:20 -0800 (PST)
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=3VvlyWVML1e0FcvZM2s5DRYkj+oEF+TXdOqjaxC1sWA=; b=UOysQ+hCgsOq6VWpxr4CFC12fxJj7k7XWMVebbjNFZeMOfoEzf3eZSIl2JcLJ0ZgTE vU/cvnD4oypUBiaAhMuOUUoZeA8TlYy+BkXt0pqH+s9kdfAmcw41a7SJPcPD2Hl+vNNG UUTgGBaB1GxiF2Zn0SOR9UOYEFhRLsgrFWBpM9eoOWytJULazHiHH/mLA1YIWMmNZ2Xt t7pspYOLuDaZWEpfHlbcXUu4twhma56b1pyqGmnllsE/xfAP0mv3vW2ar6uzt8lHk9uL TmG9wToVeByFAEqT5Pk3++PnMKuRgR8OtC4z0FB9VvDn74GAuOBwQzzqpj6jI5wZjtmL 38SQ==
MIME-Version: 1.0
X-Received: by 10.170.217.9 with SMTP id j9mr16310922ykf.19.1421890760700; Wed, 21 Jan 2015 17:39:20 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Wed, 21 Jan 2015 17:39:20 -0800 (PST)
In-Reply-To: <54BF6B8C.2020707@brainhub.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com> <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org> <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com> <54BCAE24.6020408@brainhub.org> <CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com> <54BF6B8C.2020707@brainhub.org>
Date: Wed, 21 Jan 2015 17:39:20 -0800
Message-ID: <CACsn0cn9vT8QnaKhZx5LQ1FSjRyagOzHDnW9Ub=xvV93E4EBJw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/vNsWjbf1paJwhnhHN01yjfdEriE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 22 Jan 2015 01:39:23 -0000

On Wed, Jan 21, 2015 at 1:04 AM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 01/19/2015 04:20 PM, Watson Ladd wrote:
>>
>> And once again, the Montgomery ladder is extremely small in codesize,
>> one the field operations are implemented. Or is there some other
>> benefit I don't understand you are thinking of?
>
>
> The benefits of using extended twisted Edwards coordinates would be:
>
> * An order of magnitude faster key generation (this is a part of signature
> generation or ECDH ephemeral key generation)
> * Ability to add points (needed for signatures and many other protocols)
> * The same code can do what Montgomery ladder does (variable case
> scalarmult) at the same speed.
>
> It plausible that a library that needs more then ECDH variable base
> scalarmult would implement the above operations without the Montgomery
> ladder.
>
> However, if there there is a penalty to recover 'y', that unified
> implementation is less likely to happen.

And the cost here is what? Note that your first bullet point is false:
the comb method on twisted Edwards can deliver a point on a Montgomery
curve, with minimal change in performance. I agree we would be using
twisted Edwards for signatures and protocols that require addition
(although Mike Hamburg has some ideas on safer point formats, based on
Jacobi quartics). But that doesn't mean we should use the same method
for ECDH: there are security advantages which your proposal doesn't
have.

Once again this got discussed extensively over the summer.

Sincerely,
Watson Ladd


From nobody Thu Jan 22 10:38:06 2015
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 06A461AD1EE for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 10:38:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.691
X-Spam-Level: 
X-Spam-Status: No, score=0.691 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hd2cPqBxDh3P for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 10:38:01 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id CB68F1AD190 for <cfrg@irtf.org>; Thu, 22 Jan 2015 10:38:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1421951880; d=isode.com; s=selector; i=@isode.com; bh=b+GQcjxFKLY5jPMFcIB5Clq/90hubrNyvoyOVsmWlqg=; 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=wWHm01DqkP7Xm/PY0FUxjxD1khK4bX6w0QgOhNiOED5Iv/RHlhSIYdEDHRapwgedcVhEvW ZwhlGX59zE6dClL+8538dRmn5sRQryERA8noVRFbR8+9hRyUEdG4rtCCU2sITMOyoNk+Rg wTS0a/npiSt9cwuR+bDAkdYyKkvrimY=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VMFDhwAKaFZ=@waldorf.isode.com>; Thu, 22 Jan 2015 18:37:59 +0000
Message-ID: <54C142C3.6030807@isode.com>
Date: Thu, 22 Jan 2015 18:34:43 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <54AAEC3F.1090308@isode.com>
In-Reply-To: <54AAEC3F.1090308@isode.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------060002070300060400040905"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/xrhwZd3qoIZESw-9wRw3_tENTbg>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG 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: Thu, 22 Jan 2015 18:38:03 -0000

--------------060002070300060400040905
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 05/01/2015 19:55, Alexey Melnikov wrote:
> On 14/12/2014 16:41, Alexey Melnikov wrote:
>> Hi,
>> This message starts 3 weeks adoption call for draft-ladd-spake2. 
>> Please reply to this message or directly to CFRG chairs, stating one 
>> of the following
>>
>> 1) that you are happy to adopt the draft as a starting point
>> 2) that you are not happy to adopt this draft
>> or
>> 3) that you think the document needs more work before the RG should 
>> consider adopting it
>>
>> While detailed document reviews are generally welcome, this not a 
>> call to provide detailed comments on the document.
> So far I have 4 people in favour of working on this and 3 against 
> (some of these replied privately). I have emailed a few more, but I 
> would like more feedback.
There a few more responses in favour of working on this item, so there 
is now a critical mass to take on this work.

Watson, can you please post the latest version you have as 
draft-irtf-spake2-00.txt.

Thank you,
Alexey

P.S. I got a private message that the PAKE requirement draft is being 
worked on. I don't know when this will appear, but there is some work 
being done.

P.P.S. CFRG chairs will shortly review and post results of the CFRG call 
about draft-agl-cfrgcurve-00. Stay tuned.



--------------060002070300060400040905
Content-Type: text/html; charset=utf-8
Content-transfer-encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type"=
>
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    On 05/01/2015 19:55, Alexey Melnikov wrote:<br>
    <blockquote cite=3D"mid:54AAEC3F.1090308@isode.com" type=3D"cite">
      <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Typ=
e">
      <div class=3D"moz-cite-prefix">On 14/12/2014 16:41, Alexey Melnikov
        wrote:<br>
      </div>
      <blockquote
        cite=3D"mid:BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com"
        type=3D"cite">
        <meta http-equiv=3D"content-type" content=3D"text/html;
          charset=3Dutf-8">
        <div><span></span></div>
        <div>
          <meta http-equiv=3D"content-type" content=3D"text/html;
            charset=3Dutf-8">
          Hi,
          <div><span style=3D"background-color: rgba(255, 255, 255, 0);">Thi=
s

              message starts 3 weeks adoption call for=C2=A0</span><span
              style=3D"background-color: rgba(255, 255, 255, 0);
              font-size: medium;">draft-ladd-spake2. Please reply to
              this message or directly to CFRG chairs, stating one of
              the following</span></div>
          <div><span style=3D"background-color: rgba(255, 255, 255, 0);
              font-size: medium;"><br>
            </span></div>
          <div><span style=3D"background-color: rgba(255, 255, 255, 0);
              font-size: medium;">1) that you are happy to adopt the
              draft as a starting point</span></div>
          <div><span style=3D"background-color: rgba(255, 255, 255, 0);
              font-size: medium;">2) that you are not happy to adopt
              this draft</span></div>
          <div><font size=3D"3">or</font></div>
          <div><font size=3D"3">3) that you think the document needs more
              work before the RG should consider adopting it</font></div>
          <div><font size=3D"3"><br>
            </font></div>
          <div><font size=3D"3">While detailed document reviews are
              generally welcome, this not a call to provide detailed
              comments on the document.</font></div>
        </div>
      </blockquote>
      <font size=3D"3">So far I have 4 people in favour of working on this
        and 3 against (some of these replied privately). I have emailed
        a few more, but I would like more feedback.</font><br>
    </blockquote>
    There a few more responses in favour of working on this item, so
    there is now a critical mass to take on this work.<br>
    <br>
    Watson, can you please post the latest version you have as
    draft-irtf-spake2-00.txt.<br>
    <br>
    Thank you,<br>
    Alexey<br>
    <br>
    P.S. I got a private message that the PAKE requirement draft is
    being worked on. I don't know when this will appear, but there is
    some work being done.<br>
    <br>
    P.P.S. CFRG chairs will shortly review and post results of the CFRG
    call about draft-agl-cfrgcurve-00. Stay tuned.<br>
    <br>
    <br>
  </body>
</html>

--------------060002070300060400040905--


From nobody Thu Jan 22 11:35:14 2015
Return-Path: <alangley@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 DE8F41A1A73 for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 11:35:12 -0800 (PST)
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 1ViUa149ODx9 for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 11:35:11 -0800 (PST)
Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 33D2F1A1A54 for <cfrg@irtf.org>; Thu, 22 Jan 2015 11:35:11 -0800 (PST)
Received: by mail-lb0-f177.google.com with SMTP id p9so3402438lbv.8 for <cfrg@irtf.org>; Thu, 22 Jan 2015 11:35:09 -0800 (PST)
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=cYxklqgvlAyg/zruBqbf7Mkt0c99HhgOf8DIMw6unLI=; b=lEfcBosM3Q5XWIfAAjVmzdZs/4rNTiGt5jpqTQZJrIZtoRJkdE8MHRHLpYGKyaI1tt KJuztD7zqWfPURUkUi/rovUCP88uRhU7TN+LhrdZ49nUdy2z0sTWPpMGGDF1SV8ZCg19 Czx+ha9kabZV5eHMFCqoSw2JJCr29VgXry/B9wnK6c+8QML5BzXLx873J/YkgaTjgbmZ pR5sAn5FJ4MvNEFO4WtJh2f39PowLS9N2oOMRf6KcioQ55S0CYWW1fIgUo8PWHmEw2WG m2GLGMlV8E070H9N8poA+3rtuOjr1v+X60dzD17UmbEcfOJ3eYewTzGbsF8ToLmLEm2j wobg==
MIME-Version: 1.0
X-Received: by 10.112.55.199 with SMTP id u7mr3476345lbp.74.1421955309428; Thu, 22 Jan 2015 11:35:09 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Thu, 22 Jan 2015 11:35:09 -0800 (PST)
In-Reply-To: <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net>
Date: Thu, 22 Jan 2015 11:35:09 -0800
X-Google-Sender-Auth: lVFy2rkOb8Y0UBktOP70lQv0TCU
Message-ID: <CAMfhd9Vu6AwRsbPAkK2OZXnSkYw3dkXUoYVqYgVxz9x7tkuJAw@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/fVNYSlD7jNC0faHqCDdBymKxtOk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG 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: Thu, 22 Jan 2015 19:35:13 -0000

On Mon, Jan 19, 2015 at 3:56 AM, Dearlove, Christopher (UK)
<chris.dearlove@baesystems.com> wrote:
> A minor point compared to choice of curve. Commenting on draft draft-agl-=
cfrgcurve-00, it indicates, in section 8 the use of little-endian order. RF=
C 5480 (obvious prior art in IETF) does not appear to specify big/little en=
dianness, but delegates that to its reference SEC1. That document (http://w=
ww.secg.org/sec1-v2.pdf) in section 2.3.7 reverses the order of its x and M=
 coefficients to produce a big-endian representation of an integer. Big end=
ian format is also used by, for example, OpenSSL. Is the use of little endi=
an format here a deliberate design decision?

(This appears to be a comment on draft-agl-cfrgcurve-00, but this
thread is otherwise about draft-ladd-spake2 which is why I didn't
notice it.)

Yes, the use of little-endian is a deliberate decision. It reflects
unanimous practice with the recommended curve. Also, I think there's a
general movement towards having crypto primitives specified as
functions on bytes strings rather than on more abstract concepts like
points (which I support).


Cheers

AGL

--=20
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Thu Jan 22 11:59:12 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B9551A8030 for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 11:59:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.267
X-Spam-Level: 
X-Spam-Status: No, score=-2.267 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BX-KQKMk79gG for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 11:59:06 -0800 (PST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A897A1A7033 for <cfrg@irtf.org>; Thu, 22 Jan 2015 11:59:06 -0800 (PST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t0MJsdPh030755; Thu, 22 Jan 2015 11:59:04 -0800
Received: from sc-owa04.marvell.com ([199.233.58.150]) by mx0b-0016f401.pphosted.com with ESMTP id 1s2a34urgs-2 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 22 Jan 2015 11:59:04 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA04.marvell.com ([::1]) with mapi; Thu, 22 Jan 2015 11:59:02 -0800
From: Paul Lambert <paul@marvell.com>
To: Adam Langley <agl@imperialviolet.org>, "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>
Date: Thu, 22 Jan 2015 11:59:01 -0800
Thread-Topic: [Cfrg] Adoption of draft-ladd-spake2 as a RG document
Thread-Index: AdA2fd5Jvir6oS19SP2ZcwPObldMRQ==
Message-ID: <D0E695AD.59A55%paul@marvell.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <CAMfhd9Vu6AwRsbPAkK2OZXnSkYw3dkXUoYVqYgVxz9x7tkuJAw@mail.gmail.com>
In-Reply-To: <CAMfhd9Vu6AwRsbPAkK2OZXnSkYw3dkXUoYVqYgVxz9x7tkuJAw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-22_07:2015-01-22,2015-01-22,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501220180
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/f_q3rqVtNkLxeVs8opvr5ugGL_M>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-ladd-spake2 as a RG 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: Thu, 22 Jan 2015 19:59:10 -0000

On 1/22/15, 11:35 AM, "Adam Langley" <agl@imperialviolet.org> wrote:

>On Mon, Jan 19, 2015 at 3:56 AM, Dearlove, Christopher (UK)
><chris.dearlove@baesystems.com> wrote:
>> A minor point compared to choice of curve. Commenting on draft
>>draft-agl-cfrgcurve-00, it indicates, in section 8 the use of
>>little-endian order. RFC 5480 (obvious prior art in IETF) does not
>>appear to specify big/little endianness, but delegates that to its
>>reference SEC1. That document (http://www.secg.org/sec1-v2.pdf) in
>>section 2.3.7 reverses the order of its x and M coefficients to produce
>>a big-endian representation of an integer. Big endian format is also
>>used by, for example, OpenSSL. Is the use of little endian format here a
>>deliberate design decision?
>
>(This appears to be a comment on draft-agl-cfrgcurve-00, but this
>thread is otherwise about draft-ladd-spake2 which is why I didn't
>notice it.)
>
>Yes, the use of little-endian is a deliberate decision. It reflects
>unanimous practice with the recommended curve. Also, I think there's a
>general movement towards having crypto primitives specified as
>functions on bytes strings rather than on more abstract concepts like
>points (which I support).
+1
Yes, given the diversity of uses, protocols and formats. Opaque encodings
make the most sense.
The encoding/decoding would be a method tied to the specific
algorithm/protocol/cipher suite.

Paul


>
>
>Cheers
>
>AGL
>
>--=20
>Adam Langley agl@imperialviolet.org https://www.imperialviolet.org
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg


From nobody Thu Jan 22 13:53:31 2015
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 760401A87D2 for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 13:53:29 -0800 (PST)
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 lS7-RHy-geUa for <cfrg@ietfa.amsl.com>; Thu, 22 Jan 2015 13:53:27 -0800 (PST)
Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 41A051A87CD for <cfrg@irtf.org>; Thu, 22 Jan 2015 13:53:27 -0800 (PST)
Received: by mail-ob0-f182.google.com with SMTP id gq1so3987151obb.13 for <cfrg@irtf.org>; Thu, 22 Jan 2015 13:53:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Ou8SzQ0AZIYIwcJOjvIDAbD7Nl8w3PKRYgfm4RBYrP4=; b=Ebby/pd2mbAlOXjwPU96Ldrjh/MoNzVMHHpKRk8wVmFrp1f3Gbz0u+1w4TPY7kQTn+ NVAf5hzBhgS/z9qH6oFT9ZqfQBRMCXs+HopYDBgIYYpgThYSrWUTAKZO1S30woGpOS+3 nfQcWvjS3ngjFxY+LBLpEGV3uI0/gm3OcdcRcjFGC5oSpCFVPhBATMu7Qc6mPS0KHALZ XwjvFZaSXbPu03C4e5bKiLT7ftBUGa+aKzbHJt9AspP77YMUmnMZXpnCv9AOyelHlB1o mk5b0AR7P9+CY4ZKeoNrgnsgb94BskXoWBrmIC1zwcgfNnYwlrK0w+u7YkNl3j2yD3bS vExA==
X-Received: by 10.202.217.138 with SMTP id q132mr2182759oig.35.1421963606380;  Thu, 22 Jan 2015 13:53:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.202.224.5 with HTTP; Thu, 22 Jan 2015 13:53:05 -0800 (PST)
In-Reply-To: <CAHOTMV+GAk_+0nqLn_cVf1AkQmSeG12WdYeANP_S19i+nC8ctQ@mail.gmail.com>
References: <54AAE2CA.1080701@isode.com> <CAHOTMV+GAk_+0nqLn_cVf1AkQmSeG12WdYeANP_S19i+nC8ctQ@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Thu, 22 Jan 2015 13:53:05 -0800
Message-ID: <CAHOTMVLyZ0E8vgxqdQMzEsF+dfDs6_TzZ7j+xDrvRdb_dCeBsw@mail.gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: multipart/alternative; boundary=001a113cdddaa456d6050d44b313
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/SKLhSGXRxduA93Q8hc76hOWoObg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Thu, 22 Jan 2015 21:53:29 -0000

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

On Mon, Jan 5, 2015 at 2:00 PM, Tony Arcieri <bascule@gmail.com> wrote:

> tl;dr: I would accept this draft so long as it's not a blocker for Ed25519
>

agl addressed my concerns in a separate thread, so I will officially say
support now

-- 
Tony Arcieri

--001a113cdddaa456d6050d44b313
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, Jan 5, 2015 at 2:00 PM, Tony Arcieri <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:bascule@gmail.com" target=3D"_blank" onclick=3D"window.open(&#39;http=
s://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dbascule@gmail.com&a=
mp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);return fal=
se;">bascule@gmail.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"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">=
<div>tl;dr: I would accept this draft so long as it&#39;s not a blocker for=
 Ed25519</div></div></div></div></blockquote><div><br></div><div>agl addres=
sed my concerns in a separate thread, so I will officially say support now<=
/div></div><div><br></div>-- <br><div class=3D"gmail_signature">Tony Arcier=
i<br></div>
</div></div>

--001a113cdddaa456d6050d44b313--


From nobody Fri Jan 23 03:05:39 2015
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 B9B791A9091; Fri, 23 Jan 2015 03:05:32 -0800 (PST)
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 NoOxl73z6_rZ; Fri, 23 Jan 2015 03:05:30 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A84F71A8F48; Fri, 23 Jan 2015 03:05:30 -0800 (PST)
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.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150123110530.14415.48194.idtracker@ietfa.amsl.com>
Date: Fri, 23 Jan 2015 03:05:30 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/WaJAla-gOncUiTozei6e6HWP0NE>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-spake2-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Jan 2015 11:05:33 -0000

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

        Title           : SPAKE2, a PAKE
        Author          : Watson Ladd
	Filename        : draft-irtf-cfrg-spake2-00.txt
	Pages           : 6
	Date            : 2015-01-22

Abstract:
   This Internet-Draft describes SPAKE2, a secure, efficient password
   based key exchange protocol.


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

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


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

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


From nobody Fri Jan 23 11:36:17 2015
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 F30021ACF5D for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 11:35:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.567
X-Spam-Level: 
X-Spam-Status: No, score=-0.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FSL_HELO_BARE_IP_2=1, 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 AK0qPZ1lee1z for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 11:35:57 -0800 (PST)
Received: from gateway12.websitewelcome.com (gateway12.websitewelcome.com [69.93.154.13]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD5BD1ACF24 for <cfrg@irtf.org>; Fri, 23 Jan 2015 11:35:57 -0800 (PST)
Received: by gateway12.websitewelcome.com (Postfix, from userid 5007) id 30AC478701067; Fri, 23 Jan 2015 13:35:57 -0600 (CST)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway12.websitewelcome.com (Postfix) with ESMTP id 1C10E78700FEA for <cfrg@irtf.org>; Fri, 23 Jan 2015 13:35:57 -0600 (CST)
Received: from [96.231.226.60] (port=60691 helo=192.168.1.2) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <turners@ieca.com>) id 1YEk1M-0004v6-7o for cfrg@irtf.org; Fri, 23 Jan 2015 13:35:56 -0600
From: Sean Turner <turners@ieca.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Date: Fri, 23 Jan 2015 14:35:54 -0500
References: <3F4C76ED-4375-438F-ADC9-66E49A19574B@ieca.com>
To: cfrg@irtf.org
Message-Id: <52B94C27-A994-4342-99EF-D1CC703DACEC@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.226.60
X-Exim-ID: 1YEk1M-0004v6-7o
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: (192.168.1.2) [96.231.226.60]:60691
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 10
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/3EQGC_kNo8DkqlxAItIpc3cSlG4>
Subject: [Cfrg] Fwd: [TLS] WGLC:  draft-ietf-tls-negotiated-ff-dhe-05
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 23 Jan 2015 19:35:59 -0000

Some on this list might be interested in this TLS WGLC.  If you have any =
comments on this draft please post them to tis@ietf.org list and not the =
cfrg list.

Thanks,

spt

Begin forwarded message:

> From: Sean Turner <turners@ieca.com>
> Subject: [TLS] WGLC: draft-ietf-tls-negotiated-ff-dhe-05
> Date: January 23, 2015 at 14:30:42 EST
> To: "TLS@ietf.org (tls@ietf.org)" <tls@ietf.org>
>=20
> This is the WGLC (working group last call) for =
draft-ietf-tls-negotiated-ff-dhe-05:
> http://datatracker.ietf.org/doc/draft-ietf-tls-negotiated-ff-dhe-05/
> Please send comments on this draft to the TLS list before February 16, =
2015.
>=20
> The chairs and our AD are curious about whether switching to use of =
=93e=94 as opposed to =93pi=94, as RFC 3526 did, is an issue.  The draft =
provides rationale for the change, but Stephen asked about this =
particular point @ our Hawaii session.
>=20
> spt
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


From nobody Fri Jan 23 11:39:57 2015
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 BFE751A0015; Fri, 23 Jan 2015 11:39:37 -0800 (PST)
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 LoRHtsnepsNj; Fri, 23 Jan 2015 11:39:36 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id B5EEF1A0006; Fri, 23 Jan 2015 11:39:36 -0800 (PST)
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.10.0.p8
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150123193936.30022.50062.idtracker@ietfa.amsl.com>
Date: Fri, 23 Jan 2015 11:39:36 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Z8megf3jTj3jks3fgdJhayMxKl8>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-dragonfly-06.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Jan 2015 19:39:37 -0000

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

        Title           : Dragonfly Key Exchange
        Author          : Dan Harkins
	Filename        : draft-irtf-cfrg-dragonfly-06.txt
	Pages           : 17
	Date            : 2015-01-23

Abstract:
   This document specifies a key exchange using discrete logarithm
   cryptography that is authenticated using a password or passphrase.
   It is resistant to active attack, passive attack, and off-line
   dictionary attack.


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

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

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


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

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


From nobody Fri Jan 23 13:44:19 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ACD431ABB1A for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 13:44:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.667
X-Spam-Level: 
X-Spam-Status: No, score=-1.667 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, J_CHICKENPOX_21=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 7oHlCH_l5Vtd for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 13:44:04 -0800 (PST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F2D2F1A9172 for <cfrg@irtf.org>; Fri, 23 Jan 2015 13:44:03 -0800 (PST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t0NLeKU5003016; Fri, 23 Jan 2015 13:44:03 -0800
Received: from sc-owa.marvell.com ([199.233.58.135]) by mx0b-0016f401.pphosted.com with ESMTP id 1s2a34xjhs-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 23 Jan 2015 13:44:03 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA.marvell.com ([::1]) with mapi; Fri, 23 Jan 2015 13:44:02 -0800
From: Paul Lambert <paul@marvell.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Date: Fri, 23 Jan 2015 13:44:00 -0800
Thread-Topic: On the topic of the SPAKE2 draft
Thread-Index: AdA2fd5Jvir6oS19SP2ZcwPObldMRQA1pVdA
Message-ID: <7BAC95F5A7E67643AAFB2C31BEE662D020E24D780D@SC-VEXCH2.marvell.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <CAMfhd9Vu6AwRsbPAkK2OZXnSkYw3dkXUoYVqYgVxz9x7tkuJAw@mail.gmail.com> <D0E695AD.59A55%paul@marvell.com>
In-Reply-To: <D0E695AD.59A55%paul@marvell.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-23_06:2015-01-23,2015-01-23,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501230204
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/zzcjwYws5yilrjjC4BOjHaTo468>
Cc: "paul@nymbus.net" <paul@nymbus.net>
Subject: [Cfrg] On the topic of the SPAKE2 draft
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 23 Jan 2015 21:44:04 -0000

The draft-irtf-cfrg-spake2-00.txt text says:

   Both A and B calculate a group element K. A calculates it as x(S-wN),
   while B calculates it as y(T-wM). A knows S because it has received
   it, and likewise B knows T.

How does A know to use N and B to use M?

The protocol is not symmetric and the different values define different rol=
es in the protocol.

What happens if both sides pick the same value?

Can the protocol specification be made symmetric ...


Also in the draft:

   Note that
   the choice of M and N is critical: anyone who is aware of an x such
   that xN=3DM, or xG=3DN or M can break the scheme above.

By 'anyone', does that include party A in its choice of N?
If A picked x and knew that xG=3DN is it still a issue?


Paul


From nobody Fri Jan 23 14:44:15 2015
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 57FBE1AD070 for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 14:44:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.467
X-Spam-Level: 
X-Spam-Status: No, score=-2.467 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 IkYUOS2XEDQO for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 14:44:11 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id DE1351AD067 for <cfrg@irtf.org>; Fri, 23 Jan 2015 14:44:10 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id 5294510224008; Fri, 23 Jan 2015 14:44:10 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Fri, 23 Jan 2015 14:44:10 -0800 (PST)
Message-ID: <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net>
In-Reply-To: <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io>
Date: Fri, 23 Jan 2015 14:44:10 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Alyssa Rowan" <akr@akr.io>
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/lysiqjHeRimjBDZScmqtRM40wQA>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Fri, 23 Jan 2015 22:44:13 -0000

On Mon, January 19, 2015 4:27 am, Alyssa Rowan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 19 January 2015 11:56:27 GMT+00:00, "Dearlove, Christopher (UK)"
> <chris.dearlove@baesystems.com> wrote:
>> [β¦] Is the use of little endian format here a deliberate design
>> decision?
>
> Probably yes, to match every existing implementation of Curve25519 already
> in the wild (and most commonly-used architectures)?

  So a long-standing tradition of the on-the-wire format is changed because
of the way the first curve25519 library was written? That's a weak
justification.

  Dan.

> TLS WG give new curves free reign on point format, explicitly not SEC1
> constrained. They preferred little endian (weakly) for the above reason, I
> believe?
>
> - --
> /akr
> -----BEGIN PGP SIGNATURE-----
> Version: APG v1.1.1
>
> iQI3BAEBCgAhBQJUvPgjGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
> jtkWi2t6zMYP/1zfZqPArx93uuddYNhL3FoApKh8rUmpJydhlVfAenxK7pfT7FjC
> 17g2xFE5dHdA+RZEduf4YDqvQHN8DUWFe9v/pQtq/ev6Ety66CsBG1PV/sQ2hF7f
> 474TKgp9S5ADndNttzD+AZx7JG1xiwvPoXp5BtY86R8tPNG+sfnOB+4Vxl9F7XPC
> Cboi942fAlO4F5WxFxJhb8ZY0O9B0MDtfKZVg3SEkyZq+moGGjVwndlcBa26e5+S
> iKQeyEXl1yGthSt3Pp7WGFnhu86Ul6/2cC1FmlmOTpXu8RRW3idvwF8Au5VJaJ5s
> JEYRAN1FrT9U6Bdrjfs5VZHeQkhSK0jzRlnRFD2VsyBClRwmFDmuODiqJoWkiYHX
> qTuZOwvyyqLFgAXgwm+uovTkIjrgKWam66G2ptAUacV3cqhiX0/VdGJIk+Hw2xTd
> C95oSiIMw5vHQWuUWvCVh4s7G2kf5+nf930c3MRm4q1IdlFihvjVuLTP0uS8YMgb
> 5EI/kpCEso6d3foVUTkTbLbe9rXm1AJtL9N7QJ1KdKGXtsHmhMkFjPijE1B3qvB4
> aRzjEGoVV48j3yxM68SjyV38TgqvMwzi2qmoXZGeBocynIq+jT05F+d8K3ibUCgV
> 2ZrKaWIinQs4JQ5Meu3UE0IMcpBQQ0/YE/XE4Y6AUWjyde/mR6nHE+F5
> =RTzy
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>



From nobody Fri Jan 23 17:10:24 2015
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 AA83B1A8A23 for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 17:10:16 -0800 (PST)
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 wnikcqwDd1Dn for <cfrg@ietfa.amsl.com>; Fri, 23 Jan 2015 17:10:13 -0800 (PST)
Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DD6011A8A10 for <cfrg@irtf.org>; Fri, 23 Jan 2015 17:10:12 -0800 (PST)
Received: by mail-yk0-f169.google.com with SMTP id 200so345742ykr.0 for <cfrg@irtf.org>; Fri, 23 Jan 2015 17:10:12 -0800 (PST)
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=YMXyDhJ5gYOsX5bKVwZ1sAsHWnAmPTU68Oj2YRQ7X8U=; b=c5HV9J+hFt49Hf1iuEZYUZJh1DgDksjUlnHiDyYVhsx4pdmsifa//hgYASD5NNXUMV GtdpNXDzD6/5A5lyJX9uA+3EL8Aw4WPXcTCXKtFJqwI45qiyFk0aRLem0adgIB8BXzlJ NTBnv6yulfEkci9/Gd+SA/Fd7gWaRfXdDZRErlLAS9swOebcRNiEwgfk8nokmSPdEUtD GkqoUuQtcfm4jR4h6wlTp1Y2fvMo884Pifz3NKx7fSUaieMboibxpc4Qxc1N81m6vVhJ J/BVnxI7jJtE21TKih/6cIuOzDJdugIcgPoRLCOsZRae9mPAPrxD3LWblDc3eeMimWfF HRCA==
MIME-Version: 1.0
X-Received: by 10.236.26.233 with SMTP id c69mr4161584yha.49.1422061812139; Fri, 23 Jan 2015 17:10:12 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Fri, 23 Jan 2015 17:10:12 -0800 (PST)
In-Reply-To: <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io> <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net>
Date: Fri, 23 Jan 2015 17:10:12 -0800
Message-ID: <CACsn0c=5+4-AcfyP-8NvjiifGZZ9+HL5xcdRu1Lk71ugav94Uw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: multipart/alternative; boundary=001a11c1bfd8294e0a050d5b9134
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/9SIGLrkKdgnB7RlR5HeAkYBBRw0>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sat, 24 Jan 2015 01:10:16 -0000

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

On Jan 23, 2015 2:44 PM, "Dan Harkins" <dharkins@lounge.org> wrote:
>
>
>
> On Mon, January 19, 2015 4:27 am, Alyssa Rowan wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA512
> >
> > On 19 January 2015 11:56:27 GMT+00:00, "Dearlove, Christopher (UK)"
> > <chris.dearlove@baesystems.com> wrote:
> >> [=C3=A2=E2=82=AC=C2=A6] Is the use of little endian format here a deli=
berate design
> >> decision?
> >
> > Probably yes, to match every existing implementation of Curve25519
already
> > in the wild (and most commonly-used architectures)?
>
>   So a long-standing tradition of the on-the-wire format is changed
because
> of the way the first curve25519 library was written? That's a weak
> justification.

And this breaks what exactly? Picking big endian means picking a different
name at a minimum to avoid confusion. It means that already deployed SSH
installations either change or confuse everyone. It means that all existing
implementations become unusable, despite extensive review and verification
efforts.

What is actually gained from using big-endian?

Sincerely,
Watson Ladd

>
>   Dan.
>
> > TLS WG give new curves free reign on point format, explicitly not SEC1
> > constrained. They preferred little endian (weakly) for the above
reason, I
> > believe?
> >
> > - --
> > /akr
> > -----BEGIN PGP SIGNATURE-----
> > Version: APG v1.1.1
> >
> > iQI3BAEBCgAhBQJUvPgjGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
> > jtkWi2t6zMYP/1zfZqPArx93uuddYNhL3FoApKh8rUmpJydhlVfAenxK7pfT7FjC
> > 17g2xFE5dHdA+RZEduf4YDqvQHN8DUWFe9v/pQtq/ev6Ety66CsBG1PV/sQ2hF7f
> > 474TKgp9S5ADndNttzD+AZx7JG1xiwvPoXp5BtY86R8tPNG+sfnOB+4Vxl9F7XPC
> > Cboi942fAlO4F5WxFxJhb8ZY0O9B0MDtfKZVg3SEkyZq+moGGjVwndlcBa26e5+S
> > iKQeyEXl1yGthSt3Pp7WGFnhu86Ul6/2cC1FmlmOTpXu8RRW3idvwF8Au5VJaJ5s
> > JEYRAN1FrT9U6Bdrjfs5VZHeQkhSK0jzRlnRFD2VsyBClRwmFDmuODiqJoWkiYHX
> > qTuZOwvyyqLFgAXgwm+uovTkIjrgKWam66G2ptAUacV3cqhiX0/VdGJIk+Hw2xTd
> > C95oSiIMw5vHQWuUWvCVh4s7G2kf5+nf930c3MRm4q1IdlFihvjVuLTP0uS8YMgb
> > 5EI/kpCEso6d3foVUTkTbLbe9rXm1AJtL9N7QJ1KdKGXtsHmhMkFjPijE1B3qvB4
> > aRzjEGoVV48j3yxM68SjyV38TgqvMwzi2qmoXZGeBocynIq+jT05F+d8K3ibUCgV
> > 2ZrKaWIinQs4JQ5Meu3UE0IMcpBQQ0/YE/XE4Y6AUWjyde/mR6nHE+F5
> > =3DRTzy
> > -----END PGP SIGNATURE-----
> >
> > _______________________________________________
> > 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

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

<div dir=3D"ltr"><p dir=3D"ltr"><br>
On Jan 23, 2015 2:44 PM, &quot;Dan Harkins&quot; &lt;<a href=3D"mailto:dhar=
kins@lounge.org" target=3D"_blank">dharkins@lounge.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, January 19, 2015 4:27 am, Alyssa Rowan wrote:<br>
&gt; &gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt; &gt; Hash: SHA512<br>
&gt; &gt;<br>
&gt; &gt; On 19 January 2015 11:56:27 GMT+00:00, &quot;Dearlove, Christophe=
r (UK)&quot;<br>
&gt; &gt; &lt;<a href=3D"mailto:chris.dearlove@baesystems.com" target=3D"_b=
lank">chris.dearlove@baesystems.com</a>&gt; wrote:<br>
&gt; &gt;&gt; [=C3=A2=E2=82=AC=C2=A6] Is the use of little endian format he=
re a deliberate design<br>
&gt; &gt;&gt; decision?<br>
&gt; &gt;<br>
&gt; &gt; Probably yes, to match every existing implementation of Curve2551=
9 already<br>
&gt; &gt; in the wild (and most commonly-used architectures)?<br>
&gt;<br>
&gt; =C2=A0 So a long-standing tradition of the on-the-wire format is chang=
ed because<br>
&gt; of the way the first curve25519 library was written? That&#39;s a weak=
<br>
&gt; justification.</p>
<p dir=3D"ltr">And this breaks what exactly? Picking big endian means picki=
ng a different name at a minimum to avoid confusion. It means that already =
deployed SSH installations either change or confuse everyone. It means that=
 all existing implementations become unusable, despite extensive review and=
 verification efforts.=C2=A0</p><p>What is actually gained from using big-e=
ndian?</p><p>Sincerely,<br>Watson Ladd</p>
<p dir=3D"ltr">&gt;<br>
&gt; =C2=A0 Dan.<br>
&gt;<br>
&gt; &gt; TLS WG give new curves free reign on point format, explicitly not=
 SEC1<br>
&gt; &gt; constrained. They preferred little endian (weakly) for the above =
reason, I<br>
&gt; &gt; believe?<br>
&gt; &gt;<br>
&gt; &gt; - --<br>
&gt; &gt; /akr<br>
&gt; &gt; -----BEGIN PGP SIGNATURE-----<br>
&gt; &gt; Version: APG v1.1.1<br>
&gt; &gt;<br>
&gt; &gt; iQI3BAEBCgAhBQJUvPgjGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE<=
br>
&gt; &gt; jtkWi2t6zMYP/1zfZqPArx93uuddYNhL3FoApKh8rUmpJydhlVfAenxK7pfT7FjC<=
br>
&gt; &gt; 17g2xFE5dHdA+RZEduf4YDqvQHN8DUWFe9v/pQtq/ev6Ety66CsBG1PV/sQ2hF7f<=
br>
&gt; &gt; 474TKgp9S5ADndNttzD+AZx7JG1xiwvPoXp5BtY86R8tPNG+sfnOB+4Vxl9F7XPC<=
br>
&gt; &gt; Cboi942fAlO4F5WxFxJhb8ZY0O9B0MDtfKZVg3SEkyZq+moGGjVwndlcBa26e5+S<=
br>
&gt; &gt; iKQeyEXl1yGthSt3Pp7WGFnhu86Ul6/2cC1FmlmOTpXu8RRW3idvwF8Au5VJaJ5s<=
br>
&gt; &gt; JEYRAN1FrT9U6Bdrjfs5VZHeQkhSK0jzRlnRFD2VsyBClRwmFDmuODiqJoWkiYHX<=
br>
&gt; &gt; qTuZOwvyyqLFgAXgwm+uovTkIjrgKWam66G2ptAUacV3cqhiX0/VdGJIk+Hw2xTd<=
br>
&gt; &gt; C95oSiIMw5vHQWuUWvCVh4s7G2kf5+nf930c3MRm4q1IdlFihvjVuLTP0uS8YMgb<=
br>
&gt; &gt; 5EI/kpCEso6d3foVUTkTbLbe9rXm1AJtL9N7QJ1KdKGXtsHmhMkFjPijE1B3qvB4<=
br>
&gt; &gt; aRzjEGoVV48j3yxM68SjyV38TgqvMwzi2qmoXZGeBocynIq+jT05F+d8K3ibUCgV<=
br>
&gt; &gt; 2ZrKaWIinQs4JQ5Meu3UE0IMcpBQQ0/YE/XE4Y6AUWjyde/mR6nHE+F5<br>
&gt; &gt; =3DRTzy<br>
&gt; &gt; -----END PGP SIGNATURE-----<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Cfrg mailing list<br>
&gt; &gt;<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</=
a><br>
&gt; &gt;<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_b=
lank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
&gt; &gt;<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><br=
>
&gt;<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank"=
>http://www.irtf.org/mailman/listinfo/cfrg</a></p>
</div>

--001a11c1bfd8294e0a050d5b9134--


From nobody Sat Jan 24 01:45:03 2015
Return-Path: <kurt@roeckx.be>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C37F21A1A6D for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 01:45:00 -0800 (PST)
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, 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 4c-LugC5EMh1 for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 01:44:59 -0800 (PST)
Received: from defiant.e-webshops.eu (defiant.e-webshops.eu [82.146.122.140]) (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 EFF801A1A4A for <cfrg@irtf.org>; Sat, 24 Jan 2015 01:44:58 -0800 (PST)
Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by defiant.e-webshops.eu (Postfix) with ESMTP id 66F7A1C20D6; Sat, 24 Jan 2015 10:44:56 +0100 (CET)
Received: by intrepid.roeckx.be (Postfix, from userid 1000) id 3708B1FE0241; Sat, 24 Jan 2015 10:44:56 +0100 (CET)
Date: Sat, 24 Jan 2015 10:44:56 +0100
From: Kurt Roeckx <kurt@roeckx.be>
To: Sean Turner <turners@ieca.com>
Message-ID: <20150124094456.GA15408@roeckx.be>
References: <3F4C76ED-4375-438F-ADC9-66E49A19574B@ieca.com> <52B94C27-A994-4342-99EF-D1CC703DACEC@ieca.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <52B94C27-A994-4342-99EF-D1CC703DACEC@ieca.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/VIVXM-BiUnluwj-vDZ2bf8ETsXA>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Fwd: [TLS] WGLC:  draft-ietf-tls-negotiated-ff-dhe-05
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 24 Jan 2015 09:45:00 -0000

On Fri, Jan 23, 2015 at 02:35:54PM -0500, Sean Turner wrote:
> Some on this list might be interested in this TLS WGLC.  If you have any comments on this draft please post them to tis@ietf.org list and not the cfrg list.

Do you mean tls@ietf.org?


Kurt


From nobody Sat Jan 24 08:18:41 2015
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 DB1491A8740 for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 08:18:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level: 
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h4Q6WlnoPfBw for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 08:18:32 -0800 (PST)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id 231D21A873E for <cfrg@irtf.org>; Sat, 24 Jan 2015 08:18:31 -0800 (PST)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id CD00E285B4; Sat, 24 Jan 2015 16:18:30 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id B1A85285B0; Sat, 24 Jan 2015 16:18:30 +0000 (GMT)
Received: from email.msg.corp.akamai.com (ecp.msg.corp.akamai.com [172.27.123.33]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id ABDCE8003C; Sat, 24 Jan 2015 16:18:30 +0000 (GMT)
Received: from USMA1EX-DAG1MB2.msg.corp.akamai.com (172.27.123.102) by usma1ex-dag1mb4.msg.corp.akamai.com (172.27.123.104) with Microsoft SMTP Server (TLS) id 15.0.913.22; Sat, 24 Jan 2015 11:18:29 -0500
Received: from USMA1EX-DAG1MB2.msg.corp.akamai.com ([172.27.123.102]) by usma1ex-dag1mb2.msg.corp.akamai.com ([172.27.123.102]) with mapi id 15.00.0913.011; Sat, 24 Jan 2015 11:18:11 -0500
From: "Salz, Rich" <rsalz@akamai.com>
To: Dan Harkins <dharkins@lounge.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AQHQM+NJQeJKSQEPWEmfp2ZV7mHKX5zOqD8AgADQ/xA=
Date: Sat, 24 Jan 2015 16:18:10 +0000
Message-ID: <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io> <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net>
In-Reply-To: <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.19.58.100]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/pQnzDzyyn3zTsDW13opRrSmM7bU>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sat, 24 Jan 2015 16:18:35 -0000

PiAgIFNvIGEgbG9uZy1zdGFuZGluZyB0cmFkaXRpb24gb2YgdGhlIG9uLXRoZS13aXJlIGZvcm1h
dCBpcyBjaGFuZ2VkIGJlY2F1c2UNCj4gb2YgdGhlIHdheSB0aGUgZmlyc3QgY3VydmUyNTUxOSBs
aWJyYXJ5IHdhcyB3cml0dGVuPyBUaGF0J3MgYSB3ZWFrDQo+IGp1c3RpZmljYXRpb24uDQoNClN0
cm9uZ2x5IGRpc2FncmVlLiAgQnV0IHRoaXMgaXMgYSByZWxpZ2lvdXMgYXJndW1lbnQgYW5kIHRo
ZSBzaWRlcyB3aWxsIHByb2JhYmx5IG5ldmVyIGNvbWUgdG8gdGVybXMuICBPbiB0aGUgb25lIGhh
bmQgd2UgaGF2ZSB0cmFkaXRpb24uIE9uIHRoZSBvdGhlciB3ZSBoYXZlIGEgbGFyZ2UgZGVwbG95
ZWQgYmFzZS4gIFdpdGhpbiB0aGUgSUVURiBjYW5vbiBvZiByb3VnaCBjb25zZW5zdXMgYW5kIHJ1
bm5pbmcgY29kZSwgd2hpY2ggYXJndW1lbnQgd2lsbCB3aW4/ICBXaGljaCBhcmd1bWVudCBzaG91
bGQgd2luPyAgVGhlIElFVEYgc2hvdWxkIGZvbGxvdyBpdHMgdHJhZGl0aW9uIGFuZCBkcm9wIGl0
cyB3aXJlIGZvcm1hdCB0cmFkaXRpb24uDQoNClRoZSByZWZvcm1hdGlvbiBpcyBjb21pbmc6ICBm
aXhlZCBvbiB0aGUgd2lyZSBjdXJ2ZSBmb3JtYXRzIGFyZSBnb25lOyBpdCBpcyBub3cgdXAgdG8g
ZWFjaCBjdXJ2ZSB0byBzcGVjaWZ5IGl0cyB3aXJlIHJlcC4NCg==


From nobody Sat Jan 24 09:57:41 2015
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 7697E1A89B1 for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 09:57:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.61
X-Spam-Level: 
X-Spam-Status: No, score=-0.61 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VPfd5fDO8Qwp for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 09:57:31 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id A35351A8A46 for <cfrg@irtf.org>; Sat, 24 Jan 2015 09:57:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1422122249; d=isode.com; s=selector; i=@isode.com; bh=hMTyX317jODCjm1c8QSt2ZyZjIKa4F4jBnlDDLqlSeI=; 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=u29SYnENiUvcDLZSGxRAdi7HpqowudJaWg21Fxd3yBDelTSh3VIf7VQrJLhAfOhFwgGcSK 34bVJ5T1fRf9bWs8dGK3TtgEdCHsM/QOHyG+wXwteLrAcz82cdeIhO3g25W7EAd4km59YN f0lo9smraYcbRa09NbyenCDQ+dPNdvw=;
Received: from [192.168.0.6] (cpc5-nmal20-2-0-cust24.19-2.cable.virginm.net [92.234.84.25])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VMPdBgAKaF06@waldorf.isode.com>; Sat, 24 Jan 2015 17:57:29 +0000
X-SMTP-Protocol-Errors: PIPELINING
Message-ID: <54C3DD05.6060706@isode.com>
Date: Sat, 24 Jan 2015 17:57:25 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AAE2CA.1080701@isode.com>
In-Reply-To: <54AAE2CA.1080701@isode.com>
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/VOse3NdJhYmhHGzVjQLRkpHcCbA>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Sat, 24 Jan 2015 17:57:38 -0000

Dear CFRG participants,

On 05/01/2015 19:15, Alexey Melnikov wrote:
> This message starts 2 weeks adoption call (ending on January 19th 
> 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an 
> algorithm for safe curve parameter generation for a particular 
> security level and also recommends a specific curve (2^255-19) for the 
> 128-bit security level.
>
> Please reply to this message or directly to CFRG chairs, stating 
> whether you support (or not) adoption of this document. If you do not 
> support adoption of this document, please state whether you support 
> adoption of any alternative document or whether you want a particular 
> change be made to the document before adoption.
>
> Chairs ask not to reiterate previously expressed technical opinions or 
> arguments. But clarifying questions on the adoption call are welcome.
>
> While making your decision, please keep in mind
>
> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
Thank you for all the constructive feedback.

Chairs have reviewed responses to this message (both public and some 
private) and can confirm that there is rough consensus for adopting 
draft-agl-cfrgcurve-00 as a RG document. Some people supported the 
document with conditions that some changes would (or would not) be done 
to it, although the majority of people supported it unconditionally. 
Some people who objected to the document being adopted asked about 
changes that were also asked by people who supported the document, so we 
are hoping that a future revision of the draft might become acceptable 
even to them.

Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as 
draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who 
would be editors of the CFRG document.

Best Regards,
Alexey,
On behalf of CFRG chairs.
>
> Alexey,
> On behalf of CFRG chairs.
>
> P.S. Editors of draft-black-rpgecc-01 and 
> draft-turner-thecurve25519function-01 can become co-editors of the 
> adopted document, if they choose to do so. Email chairs directly if 
> you are willing or not willing to do so.


From nobody Sat Jan 24 10:28:08 2015
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 66C4D1A0393 for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 10:28:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G-XTL1GUY91l for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 10:28:06 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3F4A81A0354 for <cfrg@irtf.org>; Sat, 24 Jan 2015 10:28:06 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 024DDBEE4; Sat, 24 Jan 2015 18:28:03 +0000 (GMT)
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 hTAmz3zP4jws; Sat, 24 Jan 2015 18:28:02 +0000 (GMT)
Received: from [10.87.48.73] (unknown [86.42.29.136]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id B61C7BED1; Sat, 24 Jan 2015 18:28:02 +0000 (GMT)
Message-ID: <54C3E42A.7050204@cs.tcd.ie>
Date: Sat, 24 Jan 2015 18:27:54 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Alexey Melnikov <alexey.melnikov@isode.com>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <54AAE2CA.1080701@isode.com> <54C3DD05.6060706@isode.com>
In-Reply-To: <54C3DD05.6060706@isode.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/w9TlWTknw29zOGqcYi4xMxTxe6c>
Subject: Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG 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: Sat, 24 Jan 2015 18:28:07 -0000

Excellent! Thanks (to the chairs and us all) for solidifying this
useful bit of progress. I hope subsequent bits can build on this
more easily than has been the case up until now:-)

Cheers,
S.

On 24/01/15 17:57, Alexey Melnikov wrote:
> 
> Chairs have reviewed responses to this message (both public and some
> private) and can confirm that there is rough consensus for adopting
> draft-agl-cfrgcurve-00 as a RG document. Some people supported the
> document with conditions that some changes would (or would not) be done
> to it, although the majority of people supported it unconditionally.
> Some people who objected to the document being adopted asked about
> changes that were also asked by people who supported the document, so we
> are hoping that a future revision of the draft might become acceptable
> even to them.
> 
> Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as
> draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who
> would be editors of the CFRG document.


From nobody Sat Jan 24 21:14:16 2015
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 28F501A1EF3 for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 21:14:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.167
X-Spam-Level: 
X-Spam-Status: No, score=-1.167 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 xbpufzzMGTfn for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 21:14:12 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 94DD41A1EFF for <cfrg@irtf.org>; Sat, 24 Jan 2015 21:14:12 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id DA96D10224008; Sat, 24 Jan 2015 21:14:11 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Sat, 24 Jan 2015 21:14:12 -0800 (PST)
Message-ID: <f52b0aefa553099613ebeab570d2e669.squirrel@www.trepanning.net>
In-Reply-To: <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io> <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net> <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com>
Date: Sat, 24 Jan 2015 21:14:12 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Salz, Rich" <rsalz@akamai.com>
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/cJ1C9v5s4ssmwQ-Zy1HHmTqCi20>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 05:14:14 -0000

On Sat, January 24, 2015 8:18 am, Salz, Rich wrote:
>>   So a long-standing tradition of the on-the-wire format is changed
>> because
>> of the way the first curve25519 library was written? That's a weak
>> justification.
>
> Strongly disagree.  But this is a religious argument and the sides will
> probably never come to terms.  On the one hand we have tradition. On the
> other we have a large deployed base.  Within the IETF canon of rough
> consensus and running code, which argument will win?  Which argument
> should win?  The IETF should follow its tradition and drop its wire format
> tradition.

  To me it's not a religious argument. But when you just say "strongly
disagree" without any justification for making such a statement then
perhaps I guess I can see how it is religious for you.

  Endianness is the lowest of low levels. It is handled by a function that
is #define'd around an #ifdef LITTLE_ENDIAN in some _common_ include
file. Then everything reading and writing to the network has ntoh_whatever()
routines that call the #define'd function. It makes for portable code.
The alternative is to put endianness knowledge into the crypto library
and have "if (religion) then if (big endian) then foo else bar fi else
ntoh_foo fi". Which is something to which I strongly disagree. Better to
just say "ntoh_foo".

  I remember when the discussion of curve25519 started one of the
proponents mentioned that the idea of many people writing code to
implement it was not necessary, and was unwise, and that everyone
should just use the existing library. And it's that idea that prompted my
statement. We should just change our endianness practices, which make
better looking and more maintainable code, because whoever wrote The
Definitive Reference Implementation of Curve25519 choose little endian
and everyone is just expected to use that. Why? Because.

> The reformation is coming:  fixed on the wire curve formats are gone; it
> is now up to each curve to specify its wire rep.

  And yet counter-reformation was much more grand and beautiful
and majestic as compared to the cold, boring, puritan, calvinist
reformation. Really, it's not anything that needs to be repeated.

  Dan.



From nobody Sat Jan 24 22:00:48 2015
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 3C4861A212A for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 22:00:47 -0800 (PST)
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 rJgborIruac4 for <cfrg@ietfa.amsl.com>; Sat, 24 Jan 2015 22:00:45 -0800 (PST)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4AEC31A00FB for <cfrg@irtf.org>; Sat, 24 Jan 2015 22:00:45 -0800 (PST)
Received: by mail-yk0-f179.google.com with SMTP id 142so1860272ykq.10 for <cfrg@irtf.org>; Sat, 24 Jan 2015 22:00:43 -0800 (PST)
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=9o1+eXRiBPF7mvHtYLY3fwkGdNB81Y2oJzRlhZtOVFs=; b=zrhcAhI/C5IXTj075tehd9GnF2pGH6Z+0M486+Ck8wkpnQInBAvJ9alRCqkoJNUPUa /Z5aPyQ9FVvDRSKpQJ10rsUZJ2a0Ii4raKzyt8w9uxQo65Qvo2aGhnyvzWVH4ceYyjLB L+orBecxtMPGbvuqwGvX2A7jLXDJUlak/PWiVltdKfvijGhgf4e+pHEJxxQnvg228yRV kYrcytxWR+GKVk35Uw9K86ODHQpIYUiBbnERs0A6FMQiqYpBV3EdU+YzAoXAQ06iUq9a NTgipIYshBidSg5aoSTCoEz3CAdg7e4j3I8jy/5DppyVm3W7LnMcOhfrwRVBdfdfaNFZ pAXQ==
MIME-Version: 1.0
X-Received: by 10.236.30.168 with SMTP id k28mr6481983yha.163.1422165643426; Sat, 24 Jan 2015 22:00:43 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Sat, 24 Jan 2015 22:00:43 -0800 (PST)
In-Reply-To: <f52b0aefa553099613ebeab570d2e669.squirrel@www.trepanning.net>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io> <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net> <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com> <f52b0aefa553099613ebeab570d2e669.squirrel@www.trepanning.net>
Date: Sat, 24 Jan 2015 22:00:43 -0800
Message-ID: <CACsn0cmaCb4vk8w3_fv+zuev7vJQXxfQPD8eKu=T1LkP5XEZkQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/3GjFu4bzYABuQXQs_4ihk88p0kg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 06:00:47 -0000

On Sat, Jan 24, 2015 at 9:14 PM, Dan Harkins <dharkins@lounge.org> wrote:
>
>
> On Sat, January 24, 2015 8:18 am, Salz, Rich wrote:
>>>   So a long-standing tradition of the on-the-wire format is changed
>>> because
>>> of the way the first curve25519 library was written? That's a weak
>>> justification.
>>
>> Strongly disagree.  But this is a religious argument and the sides will
>> probably never come to terms.  On the one hand we have tradition. On the
>> other we have a large deployed base.  Within the IETF canon of rough
>> consensus and running code, which argument will win?  Which argument
>> should win?  The IETF should follow its tradition and drop its wire format
>> tradition.
>
>   To me it's not a religious argument. But when you just say "strongly
> disagree" without any justification for making such a statement then
> perhaps I guess I can see how it is religious for you.
>
>   Endianness is the lowest of low levels. It is handled by a function that
> is #define'd around an #ifdef LITTLE_ENDIAN in some _common_ include
> file. Then everything reading and writing to the network has ntoh_whatever()
> routines that call the #define'd function. It makes for portable code.
> The alternative is to put endianness knowledge into the crypto library
> and have "if (religion) then if (big endian) then foo else bar fi else
> ntoh_foo fi". Which is something to which I strongly disagree. Better to
> just say "ntoh_foo".

Really? Because if you look at DJB's code you will see that it is
host-endian independent. Maybe your code casts (*char) to (*int) in
contravention of the C standard (yes, really: the proper type punning
is via unions), but it is entirely possible to avoid needing to do
this via shifts and legitimate casts.

>
>   I remember when the discussion of curve25519 started one of the
> proponents mentioned that the idea of many people writing code to
> implement it was not necessary, and was unwise, and that everyone
> should just use the existing library. And it's that idea that prompted my
> statement. We should just change our endianness practices, which make
> better looking and more maintainable code, because whoever wrote The
> Definitive Reference Implementation of Curve25519 choose little endian
> and everyone is just expected to use that. Why? Because.

OpenBSD had no problem adopting this: I doubt they lower standards for
maintenance then you do. Besides, you probably don't know how to write
C as well as DJB, and you almost certainly don't know as much about
making secure implementations as he does. Your code will not receive
anything close to the man-decades of review and automated testing that
some Curve25519 implementations have.

>
>> The reformation is coming:  fixed on the wire curve formats are gone; it
>> is now up to each curve to specify its wire rep.
>
>   And yet counter-reformation was much more grand and beautiful
> and majestic as compared to the cold, boring, puritan, calvinist
> reformation. Really, it's not anything that needs to be repeated.

Edwards curves could have been shoehorned into the SEC1 formats by
using the isomorphic Weierstrass form. Is that what you want? Or do
you want some other curve format (like x-coordinate Montgomery
little-endian) for all the new curves (of which we only have 1 right
now)?

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



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


From nobody Sun Jan 25 00:30:35 2015
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 4C1DD1A0193 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 00:30:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.896
X-Spam-Level: **
X-Spam-Status: No, score=2.896 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545, 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 CCCT_aeyI-kM for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 00:30:33 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id A22491A0011 for <cfrg@irtf.org>; Sun, 25 Jan 2015 00:30:32 -0800 (PST)
Received: (qmail 22842 invoked by uid 1017); 25 Jan 2015 08:30:52 -0000
Received: from unknown (unknown) by unknown with QMTP; 25 Jan 2015 08:30:52 -0000
Received: (qmail 10435 invoked by uid 1000); 25 Jan 2015 08:30:18 -0000
Date: 25 Jan 2015 08:30:18 -0000
Message-ID: <20150125083018.10434.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: <f52b0aefa553099613ebeab570d2e669.squirrel@www.trepanning.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/iAtrQyofr3pp4mJfOE5iW9_EH0s>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 08:30:34 -0000

> a long-standing tradition of the on-the-wire format

Just to make sure that I understand, after reviewing a ton of tcpdump
output: You're referring to the HTTP tradition of variable-length ASCII
decimal encodings for integers on the wire (cache times, data lengths,
version numbers, etc.)? Does this mean that IETF pushed this HTTP
tradition into AES-GCM's internal integer encodings before deploying
AES-GCM, and plans to do the same for other cryptographic systems?

> better looking and more maintainable code

You're absolutely right: being able to reuse existing variable-length
ASCII decimal integer encoders and decoders has always been a critical
part, I daresay the most important part, of implementing, reading,
auditing, and maintaining cryptographic software. RFC 1321 (MD5) got
this totally wrong---the integers are _backwards_ and _non-decimal_ and
_non-ASCII_---and we all know what happened to MD5 as a result.

Now that you've reminded me of what really matters for cryptographic
code complexity and security, I would love to put together an ASCII
decimal version of Curve25519, but I have to admit that I'm not
_completely_ clear on the details of the HTTP tradition that you're
talking about. For example, are leading zeros allowed? This would allow
simpler integer encoding for some embedded systems, but it would cause
trouble for existing parsers that switch to octal for a leading 0, such
as base-0 strtol(). Also, can the integers exceed 2147483647?

---Dan


From nobody Sun Jan 25 09:45:00 2015
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 86AA51A8735 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 09:44:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.567
X-Spam-Level: 
X-Spam-Status: No, score=-0.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FSL_HELO_BARE_IP_2=1, 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 WZmoye9Gx-ig for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 09:44:57 -0800 (PST)
Received: from gateway06.websitewelcome.com (gateway06.websitewelcome.com [67.18.144.9]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 886021A8722 for <cfrg@irtf.org>; Sun, 25 Jan 2015 09:44:57 -0800 (PST)
Received: by gateway06.websitewelcome.com (Postfix, from userid 5007) id DA9F6F5FFEDB; Sun, 25 Jan 2015 11:44:56 -0600 (CST)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway06.websitewelcome.com (Postfix) with ESMTP id C83ECF5FFEBD for <cfrg@irtf.org>; Sun, 25 Jan 2015 11:44:56 -0600 (CST)
Received: from [96.231.226.60] (port=50272 helo=192.168.1.2) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <turners@ieca.com>) id 1YFRF2-0004vc-1e; Sun, 25 Jan 2015 11:44:56 -0600
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Sean Turner <turners@ieca.com>
In-Reply-To: <20150124094456.GA15408@roeckx.be>
Date: Sun, 25 Jan 2015 12:44:54 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <B00AFDEA-DE6F-4A12-A9AF-06D0D119ABC6@ieca.com>
References: <3F4C76ED-4375-438F-ADC9-66E49A19574B@ieca.com> <52B94C27-A994-4342-99EF-D1CC703DACEC@ieca.com> <20150124094456.GA15408@roeckx.be>
To: Kurt Roeckx <kurt@roeckx.be>
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.226.60
X-Exim-ID: 1YFRF2-0004vc-1e
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: (192.168.1.2) [96.231.226.60]:50272
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 2
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/T_o1_g6WlpyFAFoa-tJvRFnRFTo>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] [TLS] WGLC:  draft-ietf-tls-negotiated-ff-dhe-05
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 25 Jan 2015 17:44:58 -0000

Yes: tls@ietf.org.

spt

On Jan 24, 2015, at 04:44, Kurt Roeckx <kurt@roeckx.be> wrote:

> On Fri, Jan 23, 2015 at 02:35:54PM -0500, Sean Turner wrote:
>> Some on this list might be interested in this TLS WGLC.  If you have =
any comments on this draft please post them to tis@ietf.org list and not =
the cfrg list.
>=20
> Do you mean tls@ietf.org?
>=20
>=20
> Kurt
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Jan 25 09:48:17 2015
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 A9A9D1A873B for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 09:48:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.968
X-Spam-Level: 
X-Spam-Status: No, score=-1.968 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, 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 mrAjcKITp__6 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 09:48:14 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 38ABC1A8739 for <cfrg@irtf.org>; Sun, 25 Jan 2015 09:48:14 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id C386110224008 for <cfrg@irtf.org>; Sun, 25 Jan 2015 09:48:13 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Sun, 25 Jan 2015 09:48:14 -0800 (PST)
Message-ID: <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net>
In-Reply-To: <20150125083018.10434.qmail@cr.yp.to>
References: <20150125083018.10434.qmail@cr.yp.to>
Date: Sun, 25 Jan 2015 09:48:14 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: cfrg@irtf.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/qUK-zNAcAysLzyHvivysnXrcg7A>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 17:48:15 -0000

On Sun, January 25, 2015 12:30 am, D. J. Bernstein wrote:
>> a long-standing tradition of the on-the-wire format
>
> Just to make sure that I understand, after reviewing a ton of tcpdump
> output: You're referring to the HTTP tradition of variable-length ASCII
> decimal encodings for integers on the wire (cache times, data lengths,
> version numbers, etc.)? Does this mean that IETF pushed this HTTP
> tradition into AES-GCM's internal integer encodings before deploying
> AES-GCM, and plans to do the same for other cryptographic systems?

  No, you could not be more wrong in that assumption.

>> better looking and more maintainable code
>
> You're absolutely right: being able to reuse existing variable-length
> ASCII decimal integer encoders and decoders has always been a critical
> part, I daresay the most important part, of implementing, reading,
> auditing, and maintaining cryptographic software. RFC 1321 (MD5) got
> this totally wrong---the integers are _backwards_ and _non-decimal_ and
> _non-ASCII_---and we all know what happened to MD5 as a result.
>
> Now that you've reminded me of what really matters for cryptographic
> code complexity and security, I would love to put together an ASCII
> decimal version of Curve25519, but I have to admit that I'm not
> _completely_ clear on the details of the HTTP tradition that you're
> talking about. For example, are leading zeros allowed? This would allow
> simpler integer encoding for some embedded systems, but it would cause
> trouble for existing parsers that switch to octal for a leading 0, such
> as base-0 strtol(). Also, can the integers exceed 2147483647?

  Do you want to be taken seriously when you respond like this?

  Dan.



From nobody Sun Jan 25 10:26:16 2015
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 B76FC1A0358 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 10:26:14 -0800 (PST)
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 vU_a34gax36N for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 10:26:13 -0800 (PST)
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 28B7D1A034F for <cfrg@irtf.org>; Sun, 25 Jan 2015 10:26:13 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id B0F113AA0F; Sun, 25 Jan 2015 10:25:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1422210352; bh=e2cPnp3SZ5o9AwEOuJZ7MA8aJDzUpcQGKBKMRFb172c=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Vj0oLonsz6gnfX8G+Vv2wn0rJ3sUDpBl7SeRVbjeiPYuML8VlbUGZDdXDFc7YlBY9 QuYRoFY+w6BFXln4RYwBmMcEV7jakYfoY+R6xzcx7OZzGrxuZ3KY6FCRPO3Z1vo1GA 4SQZGzZIAWaeAe7tr9tenHUEKN4nl6rPiUP9sEwg=
Message-ID: <54C53542.60904@shiftleft.org>
Date: Sun, 25 Jan 2015 10:26:10 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Dan Harkins <dharkins@lounge.org>, cfrg@irtf.org
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net>
In-Reply-To: <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/EcWrTHDEZuCO2tuFXT4ev0dGknk>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 18:26:15 -0000

I think that this is actually an interesting question, so maybewe can
put aside religion and mockery thereof for little bit...

Does anyone know of existing code which processes cryptography over
multiple fields using a generic bignums package (hopefully with fixed-size
bignums for timing resistance), and would be complicated by inconsistent
endian practices in a new curve?  If so, it might be worth considering a
consistent endian.

Otherwise, I don't see why it really matters. Feel free to try to convince
me, but make sure you compose your post using Emacs and not vi.

However!  I think it's very strongly preferable that point formats and
signatures should contain a fixed number of bytes on a given curve.
(Perhaps allowing different sizes for compressed points, but leading zeros
*should not be stripped*.)  That way points and signatures can go into
structs instead of using some awful ASN.1 TLV format.

Cheers,
-- Mike

On 01/25/2015 09:48 AM, Dan Harkins wrote:
>
> On Sun, January 25, 2015 12:30 am, D. J. Bernstein wrote:
>>> a long-standing tradition of the on-the-wire format
>> Just to make sure that I understand, after reviewing a ton of tcpdump
>> output: You're referring to the HTTP tradition of variable-length ASCII
>> decimal encodings for integers on the wire (cache times, data lengths,
>> version numbers, etc.)? Does this mean that IETF pushed this HTTP
>> tradition into AES-GCM's internal integer encodings before deploying
>> AES-GCM, and plans to do the same for other cryptographic systems?
>    No, you could not be more wrong in that assumption.
>
>>> better looking and more maintainable code
>> You're absolutely right: being able to reuse existing variable-length
>> ASCII decimal integer encoders and decoders has always been a critical
>> part, I daresay the most important part, of implementing, reading,
>> auditing, and maintaining cryptographic software. RFC 1321 (MD5) got
>> this totally wrong---the integers are _backwards_ and _non-decimal_ and
>> _non-ASCII_---and we all know what happened to MD5 as a result.
>>
>> Now that you've reminded me of what really matters for cryptographic
>> code complexity and security, I would love to put together an ASCII
>> decimal version of Curve25519, but I have to admit that I'm not
>> _completely_ clear on the details of the HTTP tradition that you're
>> talking about. For example, are leading zeros allowed? This would allow
>> simpler integer encoding for some embedded systems, but it would cause
>> trouble for existing parsers that switch to octal for a leading 0, such
>> as base-0 strtol(). Also, can the integers exceed 2147483647?
>    Do you want to be taken seriously when you respond like this?
>
>    Dan.
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Sun Jan 25 11:47:58 2015
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 0D61E1A1A8F for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 11:47:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.61
X-Spam-Level: 
X-Spam-Status: No, score=-3.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_32=0.6, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aX1gNrFnTqDD for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 11:47:54 -0800 (PST)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id 554761A1A22 for <cfrg@irtf.org>; Sun, 25 Jan 2015 11:47:54 -0800 (PST)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id BF1FD28587; Sun, 25 Jan 2015 19:47:52 +0000 (GMT)
Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id AE9C528585; Sun, 25 Jan 2015 19:47:52 +0000 (GMT)
Received: from email.msg.corp.akamai.com (ecp.msg.corp.akamai.com [172.27.123.34]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id A263D8003C; Sun, 25 Jan 2015 19:47:52 +0000 (GMT)
Received: from USMA1EX-DAG1MB2.msg.corp.akamai.com (172.27.123.102) by usma1ex-dag1mb5.msg.corp.akamai.com (172.27.123.105) with Microsoft SMTP Server (TLS) id 15.0.913.22; Sun, 25 Jan 2015 14:47:51 -0500
Received: from USMA1EX-DAG1MB2.msg.corp.akamai.com ([172.27.123.102]) by usma1ex-dag1mb2.msg.corp.akamai.com ([172.27.123.102]) with mapi id 15.00.0913.011; Sun, 25 Jan 2015 14:47:45 -0500
From: "Salz, Rich" <rsalz@akamai.com>
To: Mike Hamburg <mike@shiftleft.org>, Dan Harkins <dharkins@lounge.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AQHQOHkzpao06C8ur0y+dn307ElqFZzRcQ4AgAAKmQD//8HSgA==
Date: Sun, 25 Jan 2015 19:47:45 +0000
Message-ID: <d8fa5b9cc371411fbea460b1cd042fe0@usma1ex-dag1mb2.msg.corp.akamai.com>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org>
In-Reply-To: <54C53542.60904@shiftleft.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.19.57.85]
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/kfkwAnY_DNkszX5naXSjsMsHcSo>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 19:47:57 -0000

> Does anyone know of existing code which processes cryptography over
> multiple fields using a generic bignums package (hopefully with fixed-siz=
e
> bignums for timing resistance), and would be complicated by inconsistent
> endian practices in a new curve?  If so, it might be worth considering a
> consistent endian.

OpenSSL.  I'm on the dev team.  But we want the interop and efficiency of t=
he X25519 defined wire rep.

I apologize if I offended anyone (esp Dan)by my note.  I don't find traditi=
on a compelling argument.  Especially since for X25519, you just do a buffe=
r-copy from the network buffer into the crypto buffer.  Much less work.


From nobody Sun Jan 25 12:36:01 2015
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 C61201A6F32 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 12:36:00 -0800 (PST)
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 lRmbqLUtvX0Z for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 12:35:58 -0800 (PST)
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 5080C1A0032 for <cfrg@irtf.org>; Sun, 25 Jan 2015 12:35:58 -0800 (PST)
Received: by mail-yk0-f177.google.com with SMTP id 19so2558804ykq.8 for <cfrg@irtf.org>; Sun, 25 Jan 2015 12:35:57 -0800 (PST)
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=lvYL964TM1wVePzPK6ZTDZGN1MuGrkMMWjUkd7xRnu0=; b=BRqlCt0qPJgZSw9qxOWjeibig56vFDJrVYqPIZdSy5bI11qiq7I9njXFeKPZPZ9TYL uvBcZLSce1xZ3Es/Sf4D+ty7/w1aJ11rai95Tuwslr6tlaQ+DKV0YewnCA8ubft8HH9s B0w76UASBV8nXj4A33zDz/iNq2CzjwyGbvC6MP3Q9F4jp8nKwfAaBFahbtgg6kE0YAmH cc+CphNe4bDDqaiOS2H565MuKYVCGRCAqXiSEWZCmVMMgVpiLtrzNZR97MKig/1LFjRx VDE6fYInfkCqkrIINIqbpvX4gxVPcMdHcNlvh+NsdGtZAxufysgqjdJn4T6JLZ7hRRpB BfNQ==
MIME-Version: 1.0
X-Received: by 10.170.112.215 with SMTP id e206mr9009805ykb.126.1422218157550;  Sun, 25 Jan 2015 12:35:57 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Sun, 25 Jan 2015 12:35:57 -0800 (PST)
In-Reply-To: <54C53542.60904@shiftleft.org>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org>
Date: Sun, 25 Jan 2015 12:35:57 -0800
Message-ID: <CACsn0c=bA=dRR8Y3vOp9o+Cmmdu7ZPr3vYbuRdBczRL2Uu+Gog@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Mike Hamburg <mike@shiftleft.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/LBQApaXG1G3DpceC1RV9vOTVU1Q>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 20:36:00 -0000

On Sun, Jan 25, 2015 at 10:26 AM, Mike Hamburg <mike@shiftleft.org> wrote:
> I think that this is actually an interesting question, so maybewe can
> put aside religion and mockery thereof for little bit...
>
> Does anyone know of existing code which processes cryptography over
> multiple fields using a generic bignums package (hopefully with fixed-size
> bignums for timing resistance), and would be complicated by inconsistent
> endian practices in a new curve?  If so, it might be worth considering a
> consistent endian.

Both NSS and OpenSSL have a bignum library underlying ECC operations,
but I don't know how often that gets used in practice vs per curve
optimized implementations. But we're talking about swapping bytes in a
serialization function: it's a potential wart, but a small one. If we
do reverse endianness, then what SSH is already doing won't be
included.

The fact that actual developers making actual projects don't consider
this a problem should register.

>
> Otherwise, I don't see why it really matters. Feel free to try to convince
> me, but make sure you compose your post using Emacs and not vi.
>
> However!  I think it's very strongly preferable that point formats and
> signatures should contain a fixed number of bytes on a given curve.
> (Perhaps allowing different sizes for compressed points, but leading zeros
> *should not be stripped*.)  That way points and signatures can go into
> structs instead of using some awful ASN.1 TLV format.

SEC1 does this for points, but not signature elements. I agree that we
should used fixed-length whenever possible.

>
> Cheers,
> -- Mike
>
>
> On 01/25/2015 09:48 AM, Dan Harkins wrote:
>>
>>
>> On Sun, January 25, 2015 12:30 am, D. J. Bernstein wrote:
>>>>
>>>> a long-standing tradition of the on-the-wire format
>>>
>>> Just to make sure that I understand, after reviewing a ton of tcpdump
>>> output: You're referring to the HTTP tradition of variable-length ASCII
>>> decimal encodings for integers on the wire (cache times, data lengths,
>>> version numbers, etc.)? Does this mean that IETF pushed this HTTP
>>> tradition into AES-GCM's internal integer encodings before deploying
>>> AES-GCM, and plans to do the same for other cryptographic systems?
>>
>>    No, you could not be more wrong in that assumption.
>>
>>>> better looking and more maintainable code
>>>
>>> You're absolutely right: being able to reuse existing variable-length
>>> ASCII decimal integer encoders and decoders has always been a critical
>>> part, I daresay the most important part, of implementing, reading,
>>> auditing, and maintaining cryptographic software. RFC 1321 (MD5) got
>>> this totally wrong---the integers are _backwards_ and _non-decimal_ and
>>> _non-ASCII_---and we all know what happened to MD5 as a result.
>>>
>>> Now that you've reminded me of what really matters for cryptographic
>>> code complexity and security, I would love to put together an ASCII
>>> decimal version of Curve25519, but I have to admit that I'm not
>>> _completely_ clear on the details of the HTTP tradition that you're
>>> talking about. For example, are leading zeros allowed? This would allow
>>> simpler integer encoding for some embedded systems, but it would cause
>>> trouble for existing parsers that switch to octal for a leading 0, such
>>> as base-0 strtol(). Also, can the integers exceed 2147483647?
>>
>>    Do you want to be taken seriously when you respond like this?
>>
>>    Dan.
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> http://www.irtf.org/mailman/listinfo/cfrg
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg



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


From nobody Sun Jan 25 12:51:22 2015
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 E6E281A6FE9 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 12:51:20 -0800 (PST)
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 bcWkB2JSeMqg for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 12:51:19 -0800 (PST)
Received: from resqmta-ch2-10v.sys.comcast.net (resqmta-ch2-10v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:42]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D703C1A6F3B for <cfrg@irtf.org>; Sun, 25 Jan 2015 12:51:18 -0800 (PST)
Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-10v.sys.comcast.net with comcast id kLrG1p0012Udklx01LrHAS; Sun, 25 Jan 2015 20:51:17 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-ch2-18v.sys.comcast.net with comcast id kLrG1p00T4uhcbK01LrHxM; Sun, 25 Jan 2015 20:51:17 +0000
Message-ID: <54C55744.5020908@brainhub.org>
Date: Sun, 25 Jan 2015 12:51:16 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org> <d8fa5b9cc371411fbea460b1cd042fe0@usma1ex-dag1mb2.msg.corp.akamai.com>
In-Reply-To: <d8fa5b9cc371411fbea460b1cd042fe0@usma1ex-dag1mb2.msg.corp.akamai.com>
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=1422219077; bh=lAo0lxlhyy4i05aSES30MsACGNP0pnpHoRZWpvLBPSU=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=bqJa0V8Sqm4NMmWNkBTrg9y2dJyEEV3TUyP+VqJ+ghFBO38e7detC9dK11VldLaxR oVNqQsA86ZmdsQuLKkWv3nGb5N/jmg/z4LBqALiQLOChkhEw/3e1TMlMlJR1zmXwV/ YJhf5J0o80PDZmmo3jjhy360ZcVmjIvC1cKmpaJQl6aoEu1nL2Lv9f5HaCE+7GlMxB fvTw5Sr+yFgdKlGvlAnkEuOSLdME+gPNGy2JG5FUOkaeOHgxgWSGgD1d+jBXRWzXJq hr5UQ09NgKJodjYBsTBQm1Pwqt6+gkUuMh/yXyjQay18m0yRkG6wofDrqrbbdEQhkb Ikmz7ygCl+KGw==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/HD5kdScZDoY8K7Qsa8G4wcR5EzA>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 20:51:21 -0000

On 01/25/2015 11:47 AM, Salz, Rich wrote:
> OpenSSL.  I'm on the dev team.  But we want the interop and efficiency of the X25519 defined wire rep.

I don't have strong opinion regarding the format, primarily because 
there is no efficiency argument here.

If you consider Curve25519, the two implemetnations I looked at 
curve25519-donna and more optimized X25519 from 
http://www.ietf.org/mail-archive/web/cfrg/current/msg05247.html unpack 
the public values byte-by-byte. An implementation with delayed reduction 
will have uneven boundaries between wire format and an internal 
representation, and so this is expected.

It would be trivial to tweak the implementation to assign input bytes to 
different target positions (and use different constants in shifts) for 
identical performance / code size.

If an implementation does something like 4-to-4, or 8-to-8 mapping, most 
platforms, x86 in particular, have instructions like bswap to take care 
of this.

Is there evidence that matching endianess has any performance impact?


From nobody Sun Jan 25 12:52:21 2015
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 A0B041A6F3B for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 12:52:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.3
X-Spam-Level: 
X-Spam-Status: No, score=-1.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_32=0.6] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ktr4KW9wtfV6 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 12:52:18 -0800 (PST)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 49DDA1A1AD2 for <cfrg@irtf.org>; Sun, 25 Jan 2015 12:52:18 -0800 (PST)
Received: from xct105cnc.rim.net ([10.65.161.205]) by mhs214cnc.rim.net with ESMTP/TLS/AES128-SHA; 25 Jan 2015 15:52:08 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT105CNC.rim.net ([fe80::d13d:b7a2:ae5e:db06%16]) with mapi id 14.03.0210.002; Sun, 25 Jan 2015 15:52:07 -0500
From: Dan Brown <dbrown@certicom.com>
To: "Salz, Rich" <rsalz@akamai.com>, Mike Hamburg <mike@shiftleft.org>, "Dan Harkins" <dharkins@lounge.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AdA44MccVw2g3MTa2EaapRh3VZJptg==
Date: Sun, 25 Jan 2015 20:52:06 +0000
Message-ID: <20150125205204.6639764.45436.25432@certicom.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="===============1944662354=="
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/KvvCmCkLh-SAfRGDdPjhQjRzXxw>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 20:52:19 -0000

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

Endianess also matters for the ECDH shared secret and signature point to in=
teger, or point to byte string, conversion, not just wire format, right?=C2=
=A0

The internal op formats seem more important than wire format it since canno=
t be fixed by an external wrapper that translates formats, and it deals wit=
h secrets, so needs side channel security, etc.

For interoperability, an implementation of generic short Weierstrass =C2=A0=
ECDH would need to know what shared secret endianness is needed, if it were=
 to try to operate with a new format Curve25519 ECDH public key that has be=
en translated by some kind of wrapper. Maybe we don't need or want this kin=
d of backwards interop?

Network order maybe makes sense for plaintext numerics, to allow more rapid=
 response than even throughput, but for crypto bignums, I don't see this as=
 applicable: usually the whole big num is essential. My vague understanding=
 is that most crypto standards only followed network order=E2=80=8E for wir=
e format in order to fit in (tradition) , and then just used the same order=
 for internal conversions, to avoid having two different formats.

=C2=A0

Best regards,=20

-- Dan
=C2=A0 Original Message =C2=A0
From: Salz, Rich
Sent: Sunday, January 25, 2015 2:48 PM
To: Mike Hamburg; Dan Harkins; cfrg@irtf.org
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2=
 as a RG document)


> Does anyone know of existing code which processes cryptography over
> multiple fields using a generic bignums package (hopefully with fixed-size
> bignums for timing resistance), and would be complicated by inconsistent
> endian practices in a new curve? If so, it might be worth considering a
> consistent endian.

OpenSSL. I'm on the dev team. But we want the interop and efficiency of the=
 X25519 defined wire rep.

I apologize if I offended anyone (esp Dan)by my note. I don't find traditio=
n a compelling argument. Especially since for X25519, you just do a buffer-=
copy from the network buffer into the crypto buffer. Much less work.

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


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

MIAGCSqGSIb3DQEHAqCAMIACAQExCTAHBgUrDgMCGjCABgkqhkiG9w0BBwEAAKCCDSYwggaPMIIF
d6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQx
EzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllL
RjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQxNDM2MzhaMIGkMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMQ0wCwYDVQQLEwRBTUVSMQswCQYDVQQLEwJDQTEUMBIGA1UE
CxMLTWlzc2lzc2F1Z2ExDjAMBgNVBAsTBVVzZXJzMRIwEAYDVQQDEwlEYW4gQnJvd24xIjAgBgkq
hkiG9w0BCQEWE2Ricm93bkBjZXJ0aWNvbS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
AOeGGgTmotlA0vPS6BzGw3AuPnPHRJeU6ZCVs9Jrqo51z+saUmKgc6LbMPUqTw9/9MBfA8++2YZG
DfAQ0hdEQHbZn1yl3uNLUJB6KZTeKaLPY5wWVuXvB7k2VJBFQv6u239/fXLJKcTLfTAPd+ILwa0p
NUDW0dw+x6t+LeGzh10lAgMBAAGjggOYMIIDlDALBgNVHQ8EBAMCBaAwRAYJKoZIhvcNAQkPBDcw
NTAOBggqhkiG9w0DAgICAIAwDgYIKoZIhvcNAwQCAgCAMAcGBSsOAwIHMAoGCCqGSIb3DQMHMBcG
CSsGAQQBgjcUAgQKHggAVQBzAGUAcjApBgNVHSUEIjAgBgorBgEEAYI3CgMEBggrBgEFBQcDBAYI
KwYBBQUHAwIwQQYDVR0RBDowOKAhBgorBgEEAYI3FAIDoBMMEWRhbmlicm93bkByaW0ubmV0gRNk
YnJvd25AY2VydGljb20uY29tMB0GA1UdDgQWBBRXRa7o6+S8jBmtx5dVODE45RLX7zAfBgNVHSME
GDAWgBTm268lUmBC9I2CNVRdgOuGoazv3DCCATEGA1UdHwSCASgwggEkMIIBIKCCARygggEYhoHL
bGRhcDovLy9DTj1SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YsQ049TUNBMDJZS0Ys
Q049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3Vy
YXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/
b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGSGh0dHA6Ly9tY2EwMnlrZi5yaW0ubmV0
L0NlcnRFbnJvbGwvUklNJTIwU3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGLmNybDCCAUEGCCsG
AQUFBwEBBIIBMzCCAS8wgcIGCCsGAQUFBzAChoG1bGRhcDovLy9DTj1SSU0lMjBTdWJvcmRpbmF0
ZSUyMENBJTIwTUNBMDJZS0YsQ049QUlBLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jQUNlcnRpZmljYXRl
P2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNhdGlvbkF1dGhvcml0eTBoBggrBgEFBQcwAoZcaHR0
cDovL21jYTAyeWtmLnJpbS5uZXQvQ2VydEVucm9sbC9NQ0EwMllLRi5yaW0ubmV0X1JJTSUyMFN1
Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRig0KS5jcnQwDQYJKoZIhvcNAQEFBQADggEBAHLQZIa8
qzIefgvvGIjq0fMYvhtTZFMnHzS7s+H2HUMxTQfclsckbNitMnZdF+T2V3o4WyIn9HRaMmsZ4YPw
+YWH3hiIV3wDhRtthKTCVl1Tmr6mC8bJZ3Nnp4oVgGHFpIz3xOrX91zF5KHRZDGLxHfqhY/HlL8W
23EdXQaogRTTQ3CpQCp/6BJaf4iPy41BjBG/rSXR7bbBhMb0M0ndc8JNVOnDop2A/NmNPMwOW89/
JeWxNvqZZn19xEPLwimAPeabIBoN4bH359edLJqWOx3hDxkWYfb4JRn4tsJzKmP0IDvqrO/Hajvw
tW3t6rkFN1h0OmHGa9yT9UXO8o++iu4wggaPMIIFd6ADAgECAgptqd1HAAQAAAVqMA0GCSqGSIb3
DQEBBQUAMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAiBgNV
BAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRjAeFw0xNDA1MTQxNDM2MzhaFw0xNTA1MTQx
NDM2MzhaMIGkMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYKCZImiZPyLGQBGRYDcmltMQ0wCwYD
VQQLEwRBTUVSMQswCQYDVQQLEwJDQTEUMBIGA1UECxMLTWlzc2lzc2F1Z2ExDjAMBgNVBAsTBVVz
ZXJzMRIwEAYDVQQDEwlEYW4gQnJvd24xIjAgBgkqhkiG9w0BCQEWE2Ricm93bkBjZXJ0aWNvbS5j
b20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOeGGgTmotlA0vPS6BzGw3AuPnPHRJeU6ZCV
s9Jrqo51z+saUmKgc6LbMPUqTw9/9MBfA8++2YZGDfAQ0hdEQHbZn1yl3uNLUJB6KZTeKaLPY5wW
VuXvB7k2VJBFQv6u239/fXLJKcTLfTAPd+ILwa0pNUDW0dw+x6t+LeGzh10lAgMBAAGjggOYMIID
lDALBgNVHQ8EBAMCBaAwRAYJKoZIhvcNAQkPBDcwNTAOBggqhkiG9w0DAgICAIAwDgYIKoZIhvcN
AwQCAgCAMAcGBSsOAwIHMAoGCCqGSIb3DQMHMBcGCSsGAQQBgjcUAgQKHggAVQBzAGUAcjApBgNV
HSUEIjAgBgorBgEEAYI3CgMEBggrBgEFBQcDBAYIKwYBBQUHAwIwQQYDVR0RBDowOKAhBgorBgEE
AYI3FAIDoBMMEWRhbmlicm93bkByaW0ubmV0gRNkYnJvd25AY2VydGljb20uY29tMB0GA1UdDgQW
BBRXRa7o6+S8jBmtx5dVODE45RLX7zAfBgNVHSMEGDAWgBTm268lUmBC9I2CNVRdgOuGoazv3DCC
ATEGA1UdHwSCASgwggEkMIIBIKCCARygggEYhoHLbGRhcDovLy9DTj1SSU0lMjBTdWJvcmRpbmF0
ZSUyMENBJTIwTUNBMDJZS0YsQ049TUNBMDJZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNl
cnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9j
ZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9u
UG9pbnSGSGh0dHA6Ly9tY2EwMnlrZi5yaW0ubmV0L0NlcnRFbnJvbGwvUklNJTIwU3Vib3JkaW5h
dGUlMjBDQSUyME1DQTAyWUtGLmNybDCCAUEGCCsGAQUFBwEBBIIBMzCCAS8wgcIGCCsGAQUFBzAC
hoG1bGRhcDovLy9DTj1SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YsQ049QUlBLENO
PVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9
d2luZG93cyxEQz1sb2NhbD9jQUNlcnRpZmljYXRlP2Jhc2U/b2JqZWN0Q2xhc3M9Y2VydGlmaWNh
dGlvbkF1dGhvcml0eTBoBggrBgEFBQcwAoZcaHR0cDovL21jYTAyeWtmLnJpbS5uZXQvQ2VydEVu
cm9sbC9NQ0EwMllLRi5yaW0ubmV0X1JJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRig0
KS5jcnQwDQYJKoZIhvcNAQEFBQADggEBAHLQZIa8qzIefgvvGIjq0fMYvhtTZFMnHzS7s+H2HUMx
TQfclsckbNitMnZdF+T2V3o4WyIn9HRaMmsZ4YPw+YWH3hiIV3wDhRtthKTCVl1Tmr6mC8bJZ3Nn
p4oVgGHFpIz3xOrX91zF5KHRZDGLxHfqhY/HlL8W23EdXQaogRTTQ3CpQCp/6BJaf4iPy41BjBG/
rSXR7bbBhMb0M0ndc8JNVOnDop2A/NmNPMwOW89/JeWxNvqZZn19xEPLwimAPeabIBoN4bH359ed
LJqWOx3hDxkWYfb4JRn4tsJzKmP0IDvqrO/HajvwtW3t6rkFN1h0OmHGa9yT9UXO8o++iu4xggFf
MIIBWwIBATBeMFAxEzARBgoJkiaJk/IsZAEZFgNuZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xJDAi
BgNVBAMTG1JJTSBTdWJvcmRpbmF0ZSBDQSBNQ0EwMllLRgIKbandRwAEAAAFajAHBgUrDgMCGqBd
MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEyNTIwNTIwMlow
IwYJKoZIhvcNAQkEMRYEFKx+3dWQXxT5YU9N1zWiRtcpcgofMAsGCSqGSIb3DQEBBQSBgDiSd6vu
ZvJeS4syulvFE/P/o4HI9caph8ywW5HtjTc/MHv1n7hLObrOGsmyVC0RgH/XxRUcmBvfWBWnnpWs
HEg8zOUHfXZjthQ7Y1oHnFZc9MgLZRZAzVPRwa0JftregHcnFNwHSQvslBHQx7XebnVgcgXHhszs
FCxGvAOTljQzAAAAAAAA

--===============1944662354==--


From nobody Sun Jan 25 13:12:05 2015
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 AF3F11A0075 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 13:12:03 -0800 (PST)
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 6a4jRGGvTlKi for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 13:12:02 -0800 (PST)
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 D08601A001C for <cfrg@irtf.org>; Sun, 25 Jan 2015 13:12:01 -0800 (PST)
Message-ID: <54C55C2A.2090104@akr.io>
Date: Sun, 25 Jan 2015 21:12:10 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io> <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net> <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com>
In-Reply-To: <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/lVzAV3elcNXS3yUPP8LL9JO6OWI>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 25 Jan 2015 21:12:03 -0000

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

On 24/01/2015 16:18, Salz, Rich wrote:

>> [DH] So a long-standing tradition of the on-the-wire format is
>> changed because of the way the first curve25519 library was
>> written? That's a weak justification.

So all the running code in every X25519 library out there (there are
several) should change its on-the-wire format because of the way some
other earlier wire protocols (with explicitly no relation to this one,
as Rich mentions) were written? Β¬_Β¬

> [RS] The IETF should follow its tradition and drop its wire format
> tradition.

Agreed. To the extent it matters, there's no justification for
changing the X25519 wire format to big-endian at all; it'd just be
gratuitous incompatibility with existing libraries for no reason if we
did. I might not put it quite as sarcastically as djb, but I am not a
fan of that. Running code wins: and that's little-endian.

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

iQIcBAEBCgAGBQJUxVwpAAoJEOyEjtkWi2t6JA0P/1mprE+WtLL0enMrJUio8XmA
FtjoPnSqIWboLkytoOAV4lQtcwi27CoxDGMTbEZECRZzsLpG6Ywki/zpyoUt9H/L
jjKuEQLFJUFqYDUeys8X6pNMeNs96Ypj/BbVj8fu49RlRE9frcKmhymxriGJ53Nh
eOBzfC19wYR/I040IKJFE2+DG03jAIKGywsheGsFDfLmiFkE9VNjC8GL0IyEIus8
JLA/8Eb7ZPkqxKT7AI2SUhDNDRenW7CQprgBZWzaYVw3/L8CIJoBY0hKZzdjm/Bn
0O4JM7ZocxH5RU7xXAAemBmAxj8EgCxcbJWUJXX2m1cVl7s9wogNrgeD61z+g9km
vS2sNRq3XnBOKTSTK2XXtr9jnWLRtrFbkRmcDJ8U0Pzz3MswpbFXgo+jvJ2xaDJy
B4YeS/A7CMBonZpXbgKkFWzC5qwSkv90mZK+jFR2MCZQBOGVs2vIjPi8/yF8Ei9r
sRu/qiGkB8uBC24w/vuILY+gdFzcik/D/vog2vGK6jph3MUgwQ/JJdY3g1f9cxLs
zIhW20PnoXsnqV4DBUDznYe67L7+GnSlsKoGdyw/wu3oTCxYnJTT9DHTfsttmoXO
gvofmpE4ozurVKCo9FQOq6RSacy8wZRQaK3b+alRQo4KgLIb6q/r8IOBe/Pc4NT5
abd/BWyO0fzCEuPgXpAy
=4CH9
-----END PGP SIGNATURE-----


From nobody Sun Jan 25 13:35:19 2015
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 094BC1A86EF for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 13:35:16 -0800 (PST)
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 tf65wS3nOzGi for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 13:35:13 -0800 (PST)
Received: from resqmta-po-12v.sys.comcast.net (resqmta-po-12v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:171]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 971D01A000C for <cfrg@irtf.org>; Sun, 25 Jan 2015 13:35:13 -0800 (PST)
Received: from resomta-po-20v.sys.comcast.net ([96.114.154.244]) by resqmta-po-12v.sys.comcast.net with comcast id kMaV1p0045Geu2801MbDHg; Sun, 25 Jan 2015 21:35:13 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-po-20v.sys.comcast.net with comcast id kMbC1p0064uhcbK01MbCVp; Sun, 25 Jan 2015 21:35:12 +0000
Message-ID: <54C56190.2060407@brainhub.org>
Date: Sun, 25 Jan 2015 13:35:12 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>, Andrey Jivsov <crypto@brainhub.org>
References: <54AA4AB9.70505@brainhub.org>	<54B315CA.6040900@brainhub.org>	<88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org>	<CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com>	<3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org>	<CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com>	<54BCAE24.6020408@brainhub.org>	<CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com>	<54BF6B8C.2020707@brainhub.org> <CACsn0cn9vT8QnaKhZx5LQ1FSjRyagOzHDnW9Ub=xvV93E4EBJw@mail.gmail.com>
In-Reply-To: <CACsn0cn9vT8QnaKhZx5LQ1FSjRyagOzHDnW9Ub=xvV93E4EBJw@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1422221713; bh=2MPOgHvNQ4N8yNBYURwvDnMTkePI/hwXnbR6aIZsbOQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=qf0vJT1/osFx+NRARPoYgKQsDkdS0/jMNSFUciyHsobjIzKhnj19ocm+lRkksSIJV otxWXMzfGKvgpGcVt9p93nyEOYBGhOYCQ5Jwie0DsVkPxSHu2pcHgBXJcuiSnO+4b3 FBXxM/r+324x05lAwQJtkKkFx9Pxn73myB7jRByCV6mrVHJoMrAoKD3ocfB5V/GAb3 k8Y3s+Dyb9mstjKB0Ug+Mz4OdXYXG91VaqsgkL2wMumy32piJ7vQ1kPs+4SvZohvpp QtKd8IVwe/xhyBzeMRebyySILG9gJx2c4ilnXe2E2thXtp0BSFqw2pkB/s0vvw9QO6 bKwD7vnZEIOEw==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/eoEAsUl2lGVZzZ1NubHal6gJorg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 25 Jan 2015 21:35:16 -0000

On 01/21/2015 05:39 PM, Watson Ladd wrote:
> On Wed, Jan 21, 2015 at 1:04 AM, Andrey Jivsov <crypto@brainhub.org> wrote:
>> On 01/19/2015 04:20 PM, Watson Ladd wrote:
>>> And once again, the Montgomery ladder is extremely small in codesize,
>>> one the field operations are implemented. Or is there some other
>>> benefit I don't understand you are thinking of?
>>
>> The benefits of using extended twisted Edwards coordinates would be:
>>
>> * An order of magnitude faster key generation (this is a part of signature
>> generation or ECDH ephemeral key generation)
>> * Ability to add points (needed for signatures and many other protocols)
>> * The same code can do what Montgomery ladder does (variable case
>> scalarmult) at the same speed.
>>
>> It plausible that a library that needs more then ECDH variable base
>> scalarmult would implement the above operations without the Montgomery
>> ladder.
>>
>> However, if there there is a penalty to recover 'y', that unified
>> implementation is less likely to happen.
> And the cost here is what? Note that your first bullet point is false:
> the comb method on twisted Edwards can deliver a point on a Montgomery
> curve, with minimal change in performance. I agree we would be using
> twisted Edwards for signatures and protocols that require addition
> (although Mike Hamburg has some ideas on safer point formats, based on
> Jacobi quartics). But that doesn't mean we should use the same method
> for ECDH: there are security advantages which your proposal doesn't
> have.
>
> Once again this got discussed extensively over the summer.

You are proposing to use a Montgomery ladder for second flight of ECDH 
(variable base). There is a benefit of simplicity of code here and 
protection against timing attacks for free, but not much of performance. 
This makes sense.

The first flight of ECDH (fixed-base) is too slow with same 
implementation used for variable base (or any key generation), and so 
you propose to use a discussed over the summer idea to have another type 
of Montgomery ladder (which I couldn't locate). It won't be as simple as 
the first Montgomery ladder and it will probably be more complex as a 
simple ~20 additions of points from a pre-computed read-only table.

This, however, still doesn't solve the problem of digital signatures and 
SPAKE, which need to add points.

For example, in https://tools.ietf.org/html/draft-ladd-spake2-01 each 
peer does 1 fixed-base, 2 variable-base, 2 addition. I would do this 
with a single implementation of a curve formula (e.g. using extended 
twisted Edward).

IMO a library like OpenSSL that anticipates to implement most of these 
algorithms *may* consider a single implementation that can add points 
with no performance loss.


From nobody Sun Jan 25 13:52:17 2015
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 254C61A0067 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 13:52:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level: 
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K10c-Kn37eLM for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 13:52:13 -0800 (PST)
Received: from prod-mail-xrelay02.akamai.com (prod-mail-xrelay02.akamai.com [72.246.2.14]) by ietfa.amsl.com (Postfix) with ESMTP id 9AD5F1A0065 for <cfrg@irtf.org>; Sun, 25 Jan 2015 13:52:13 -0800 (PST)
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 7BB0E285B8; Sun, 25 Jan 2015 21:52:12 +0000 (GMT)
Received: from prod-mail-relay06.akamai.com (prod-mail-relay06.akamai.com [172.17.120.126]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id 695B3285B7; Sun, 25 Jan 2015 21:52:12 +0000 (GMT)
Received: from email.msg.corp.akamai.com (usma1ex-cas1.msg.corp.akamai.com [172.27.123.30]) by prod-mail-relay06.akamai.com (Postfix) with ESMTP id 637642032; Sun, 25 Jan 2015 21:52:12 +0000 (GMT)
Received: from USMA1EX-DAG1MB2.msg.corp.akamai.com (172.27.123.102) by usma1ex-dag1mb2.msg.corp.akamai.com (172.27.123.102) with Microsoft SMTP Server (TLS) id 15.0.913.22; Sun, 25 Jan 2015 16:50:00 -0500
Received: from USMA1EX-DAG1MB2.msg.corp.akamai.com ([172.27.123.102]) by usma1ex-dag1mb2.msg.corp.akamai.com ([172.27.123.102]) with mapi id 15.00.0913.011; Sun, 25 Jan 2015 16:49:48 -0500
From: "Salz, Rich" <rsalz@akamai.com>
To: Andrey Jivsov <crypto@brainhub.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AQHQOHkzpao06C8ur0y+dn307ElqFZzRcQ4AgAAKmQD//8HSgIAAZrkA//+8CiA=
Date: Sun, 25 Jan 2015 21:49:48 +0000
Message-ID: <2ff11a7b553f40c4a965b448a5bb30cf@usma1ex-dag1mb2.msg.corp.akamai.com>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org> <d8fa5b9cc371411fbea460b1cd042fe0@usma1ex-dag1mb2.msg.corp.akamai.com> <54C55744.5020908@brainhub.org>
In-Reply-To: <54C55744.5020908@brainhub.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.19.57.85]
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/GL-Nfkb8WqTJugA0Z8QqotxQZ6w>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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: Sun, 25 Jan 2015 21:52:15 -0000

> I don't have strong opinion regarding the format, primarily because there=
 is
> no efficiency argument here.

Perhaps.  So if there is no efficiency, why break existing deployments?  So=
 far I've heard tradition, and I've heard common code re-use.


From nobody Sun Jan 25 19:55:59 2015
Return-Path: <djm@mindrot.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 57E4D1A1A90 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 19:55:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.497
X-Spam-Level: 
X-Spam-Status: No, score=-3.497 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, 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 VUaHAG9g27_J for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 19:55:55 -0800 (PST)
Received: from newmailhub.uq.edu.au (mailhub2.soe.uq.edu.au [130.102.132.209]) by ietfa.amsl.com (Postfix) with ESMTP id CF6591A1B2B for <cfrg@irtf.org>; Sun, 25 Jan 2015 19:55:54 -0800 (PST)
Received: from smtp1.soe.uq.edu.au (smtp1.soe.uq.edu.au [10.138.113.40]) by newmailhub.uq.edu.au (8.14.5/8.14.5) with ESMTP id t0Q3tqH7025312; Mon, 26 Jan 2015 13:55:52 +1000
Received: from mailhub.eait.uq.edu.au (taxus.eait.uq.edu.au [130.102.79.56]) by smtp1.soe.uq.edu.au (8.14.5/8.14.5) with ESMTP id t0Q3tqg4019291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jan 2015 13:55:52 +1000
Received: from natsu.mindrot.org (natsu.mindrot.org [130.102.96.2]) by mailhub.eait.uq.edu.au (8.14.6/8.14.6) with ESMTP id t0Q3toFn014752; Mon, 26 Jan 2015 13:55:51 +1000 (EST)
Received: by natsu.mindrot.org (Postfix, from userid 1000) id 9FE03A4F08; Mon, 26 Jan 2015 14:55:50 +1100 (EST)
Received: from localhost (localhost [127.0.0.1]) by natsu.mindrot.org (Postfix) with ESMTP id 9A886A4F07; Mon, 26 Jan 2015 14:55:50 +1100 (EST)
Date: Mon, 26 Jan 2015 14:55:50 +1100 (EST)
From: Damien Miller <djm@mindrot.org>
To: Mike Hamburg <mike@shiftleft.org>
In-Reply-To: <54C53542.60904@shiftleft.org>
Message-ID: <alpine.BSO.2.11.1501261450170.14751@natsu.mindrot.org>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org>
User-Agent: Alpine 2.11 (BSO 23 2013-08-11)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.73 on UQ Mailhub
X-Scanned-By: MIMEDefang 2.73 on 130.102.79.56
X-UQ-FilterTime: 1422244553
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/L37T4V_DSyT0LDKW89zBoXkI1DU>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 03:55:57 -0000

On Sun, 25 Jan 2015, Mike Hamburg wrote:

> I think that this is actually an interesting question, so maybewe can
> put aside religion and mockery thereof for little bit...
>
> Does anyone know of existing code which processes cryptography over
> multiple fields using a generic bignums package (hopefully with
> fixed-size bignums for timing resistance), and would be complicated by
> inconsistent endian practices in a new curve? If so, it might be worth
> considering a consistent endian.

We (OpenSSH) adopted the little-endian encoding from djb's ECDH
curve25519 and Ed25519 as specified despite all other SSH wire bignums
being encoded as big endian. We were happy to be able to use the
existing high quality and well-reviewed implementations. This more than
justified the small inconsistency.

The inconsistency is really just minor aesthetics - the wire values
are opaque to everything but the implementation of the primitives
themselves; it doesn't matter to the application at all.

-d


From nobody Sun Jan 25 20:16:46 2015
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 8D8B61A1BD4 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 20:16:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, J_CHICKENPOX_22=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u_Ce8ruCO57d for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 20:16:41 -0800 (PST)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 55B271A1B85 for <cfrg@irtf.org>; Sun, 25 Jan 2015 20:16:41 -0800 (PST)
Received: by mail-yk0-f179.google.com with SMTP id 142so3006355ykq.10 for <cfrg@irtf.org>; Sun, 25 Jan 2015 20:16:40 -0800 (PST)
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=PumQ8sbTgT6wrUkE+KtBmYNPLYfo00nVTy1Dmq4YOek=; b=uE+ltrRPxg/JS9aZrGdBIie1896l55PUv/mA6n77Zuca8qwvDac07+VxnhyA8RretB Of8lcXtBzzNJTPJyp49eyS5YJDikJy9vdeIPweqKIHw6mWkBfLQU0z4BduP4FSPVp3Pd zOkPlFaoQv1p87vz4IJZ+10NyowBtNC49dA72p2pR2ZA9Fmwu7D0B7G4w6mA0gwtz0HX lNqbSV4rJPdsbb7Gds95qLVHULNyq35iygGByvXwcNvvLHKcLpOsfOasgOA/odm2tLuy EnWYNJqh5dXz1x5eTQ1hbXBfynwDfTJ1nV89X6qqgE+sJhrpyThWEJnV+p8YGl00SY+E hFPQ==
MIME-Version: 1.0
X-Received: by 10.170.112.215 with SMTP id e206mr9396713ykb.126.1422245800616;  Sun, 25 Jan 2015 20:16:40 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Sun, 25 Jan 2015 20:16:40 -0800 (PST)
In-Reply-To: <54C56190.2060407@brainhub.org>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com> <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org> <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com> <54BCAE24.6020408@brainhub.org> <CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com> <54BF6B8C.2020707@brainhub.org> <CACsn0cn9vT8QnaKhZx5LQ1FSjRyagOzHDnW9Ub=xvV93E4EBJw@mail.gmail.com> <54C56190.2060407@brainhub.org>
Date: Sun, 25 Jan 2015 20:16:40 -0800
Message-ID: <CACsn0cnG=0N7nSAC4ZVbAAFA64pXeTw==pANT0xgud9g9uGV+w@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/b-iV7oiKR-5UAW7LpsOrbJmpGdc>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 26 Jan 2015 04:16:43 -0000

On Sun, Jan 25, 2015 at 1:35 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
> On 01/21/2015 05:39 PM, Watson Ladd wrote:
>>
>> On Wed, Jan 21, 2015 at 1:04 AM, Andrey Jivsov <crypto@brainhub.org>
>> wrote:
>>>
>>> On 01/19/2015 04:20 PM, Watson Ladd wrote:
>>>>
>>>> And once again, the Montgomery ladder is extremely small in codesize,
>>>> one the field operations are implemented. Or is there some other
>>>> benefit I don't understand you are thinking of?
>>>
>>>
>>> The benefits of using extended twisted Edwards coordinates would be:
>>>
>>> * An order of magnitude faster key generation (this is a part of
>>> signature
>>> generation or ECDH ephemeral key generation)
>>> * Ability to add points (needed for signatures and many other protocols)
>>> * The same code can do what Montgomery ladder does (variable case
>>> scalarmult) at the same speed.
>>>
>>> It plausible that a library that needs more then ECDH variable base
>>> scalarmult would implement the above operations without the Montgomery
>>> ladder.
>>>
>>> However, if there there is a penalty to recover 'y', that unified
>>> implementation is less likely to happen.
>>
>> And the cost here is what? Note that your first bullet point is false:
>> the comb method on twisted Edwards can deliver a point on a Montgomery
>> curve, with minimal change in performance. I agree we would be using
>> twisted Edwards for signatures and protocols that require addition
>> (although Mike Hamburg has some ideas on safer point formats, based on
>> Jacobi quartics). But that doesn't mean we should use the same method
>> for ECDH: there are security advantages which your proposal doesn't
>> have.
>>
>> Once again this got discussed extensively over the summer.
>
>
> You are proposing to use a Montgomery ladder for second flight of ECDH
> (variable base). There is a benefit of simplicity of code here and
> protection against timing attacks for free, but not much of performance.
> This makes sense.
>
> The first flight of ECDH (fixed-base) is too slow with same implementation
> used for variable base (or any key generation), and so you propose to use a
> discussed over the summer idea to have another type of Montgomery ladder
> (which I couldn't locate). It won't be as simple as the first Montgomery
> ladder and it will probably be more complex as a simple ~20 additions of
> points from a pre-computed read-only table.

Let's look at actual performance numbers, and consider what the
algorithm actually is.

First performance http://bench.cr.yp.to/results-dh.html The Curve25519
implementation presented there outperforms a rather optimized P256
implementation even if we just use the Montgomery ladder for fixed
based exponentiation.

But we can do better via precomputation: what is the algorithm that
lets us do this? Well, we can compute the multiplication in Edwards
form and evaluate the isomorphism or isogeny to Montgomery form. This
was already spelled out January 6th, in Mike Hamburg's email.

Ah, but what if I need more speed? Well, Edwards form isn't faster for
variable time scalarmult. If you want the absolute fastest speed,
Kummer surfaces of genus 2 or GLV/GLS curves are standing by to take
your call.

>
> This, however, still doesn't solve the problem of digital signatures and
> SPAKE, which need to add points.

So we have a different point format for them: again this is what is
being done in SSH right now. Why is this impossible?

>
> For example, in https://tools.ietf.org/html/draft-ladd-spake2-01 each peer
> does 1 fixed-base, 2 variable-base, 2 addition. I would do this with a
> single implementation of a curve formula (e.g. using extended twisted
> Edward).

You seem to be conflating curves, coordinates, and computations, and
then managed to ignore standard speedups Of course, the SPAKE2
protocol needs to preserve the sign of points, and so cannot work with
x-coordinate only Montgomery. But what is the actual cost of SPAKE2?
Firstly, the additions are minimal cost. Secondly, xG+yP is best
computed by an algorithm due to Strauss, and is much closer to 1.5
variable-base multiplications.

When using the comb method, the comb contains affine points, and the
formulas for mixed addition are significantly faster than general
addition. One could of course forgo this increased performance, but
its not clear why one would. Similarly, double-base scalarmult
requires a complete addition law, while for single base one can get by
with an incomplete one that is potentially faster. All these
optimizations are generally implemented and deployed today.

>
> IMO a library like OpenSSL that anticipates to implement most of these
> algorithms *may* consider a single implementation that can add points with
> no performance loss.

But why is that implementation choice so valuable as to justify using
something other than x-coordinate Montgomery? It's not codesize,
except in the most constrained environments.

Sincerely,
Watson Ladd


From nobody Sun Jan 25 22:31:03 2015
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 7F3D91A1EFF for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:31:02 -0800 (PST)
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 soEEQZfq6wOr for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:31:01 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 6E1351A1BD7 for <cfrg@irtf.org>; Sun, 25 Jan 2015 22:31:01 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id CABCB1022400A; Sun, 25 Jan 2015 22:31:00 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Sun, 25 Jan 2015 22:31:01 -0800 (PST)
Message-ID: <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
In-Reply-To: <CACsn0c=bA=dRR8Y3vOp9o+Cmmdu7ZPr3vYbuRdBczRL2Uu+Gog@mail.gmail.com>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org> <CACsn0c=bA=dRR8Y3vOp9o+Cmmdu7ZPr3vYbuRdBczRL2Uu+Gog@mail.gmail.com>
Date: Sun, 25 Jan 2015 22:31:01 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Watson Ladd" <watsonbladd@gmail.com>
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/nAdV_KQmP15wZHR7W8i3Dd_ys8s>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 06:31:02 -0000

On Sun, January 25, 2015 12:35 pm, Watson Ladd wrote:
> On Sun, Jan 25, 2015 at 10:26 AM, Mike Hamburg <mike@shiftleft.org> wrote:
>> I think that this is actually an interesting question, so maybewe can
>> put aside religion and mockery thereof for little bit...
>>
>> Does anyone know of existing code which processes cryptography over
>> multiple fields using a generic bignums package (hopefully with
>> fixed-size
>> bignums for timing resistance), and would be complicated by inconsistent
>> endian practices in a new curve?  If so, it might be worth considering a
>> consistent endian.

  Yes Mike, there are numerous crypto libraries, both open source and
proprietary, that use a generic bignum package. And it is that "might be
worth considering" that is making me raise this issue.

> Both NSS and OpenSSL have a bignum library underlying ECC operations,
> but I don't know how often that gets used in practice vs per curve
> optimized implementations. But we're talking about swapping bytes in a
> serialization function: it's a potential wart, but a small one. If we
> do reverse endianness, then what SSH is already doing won't be
> included.

  Warts are ugly. And if small warts are not a concern then let's just
leave SSH with a wart and everyone else can be wart-free.

> The fact that actual developers making actual projects don't consider
> this a problem should register.

  Well this actual developer making actual projects considers this a
problem. The argument from Rich is that he's OK with curve25519
being a special case because of he wants to interop with some existing
implementations. And I guess that's the difference. Aside from SSH
(which will have "a potential ward, but a small one") I don't see
a large number of protocols implemented with this format that
make this change compelling.

  Dan.



From nobody Sun Jan 25 22:42:27 2015
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 5702D1A700E for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:42:24 -0800 (PST)
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 A8ehSSlSew-P for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:42:23 -0800 (PST)
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 254251A1EFF for <cfrg@irtf.org>; Sun, 25 Jan 2015 22:42:22 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 017B63AA0F; Sun, 25 Jan 2015 22:42:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1422254522; bh=N2yyhOFMRKoTg1TZ199YTJZPZIFi4fSTUUQGD6I1nVY=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=ZijTkgcRU9s/DKv+l8Oc7aiEskoFY188nGjGdc3NMtBSjAUsfDXR7SEItekf6wqVW PHkXmwOIf34W3sL84vic6VDNfj69PhySqgwcXnte+VqTGE5XgWukg75MFHly6830aj eRNM69NgS59lOYExPjHToVAXBJZUTbfYlajl2Kv8=
Message-ID: <54C5E1CD.9070707@shiftleft.org>
Date: Sun, 25 Jan 2015 22:42:21 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Dan Harkins <dharkins@lounge.org>,  Watson Ladd <watsonbladd@gmail.com>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org> <CACsn0c=bA=dRR8Y3vOp9o+Cmmdu7ZPr3vYbuRdBczRL2Uu+Gog@mail.gmail.com> <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
In-Reply-To: <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/JjjLX0HjPH6GaKjgOhMgnHj8oxQ>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 06:42:24 -0000

On 1/25/2015 10:31 PM, Dan Harkins wrote:
>
> On Sun, January 25, 2015 12:35 pm, Watson Ladd wrote:
>> On Sun, Jan 25, 2015 at 10:26 AM, Mike Hamburg <mike@shiftleft.org> wrote:
>>> I think that this is actually an interesting question, so maybewe can
>>> put aside religion and mockery thereof for little bit...
>>>
>>> Does anyone know of existing code which processes cryptography over
>>> multiple fields using a generic bignums package (hopefully with
>>> fixed-size
>>> bignums for timing resistance), and would be complicated by inconsistent
>>> endian practices in a new curve?  If so, it might be worth considering a
>>> consistent endian.
>    Yes Mike, there are numerous crypto libraries, both open source and
> proprietary, that use a generic bignum package. And it is that "might be
> worth considering" that is making me raise this issue.
This is only half an answer.  I'm well aware that many crypto libraries 
use generic bignum packages.  But will the endian complicate the 
implementation of the new curves?  That is, do they lack little-endian 
serialization code?  Or is their EC point codec generic enough to handle 
Montgomery/Edwards point formats over whatever field, and yet not 
generic enough to pass a little-endian flag?

I mean, if some real library will need to byte-reverse a buffer, then 
that's a wart, if only a minor one.  If it will need to pass -1 instead 
of 1 to bn_export in a newly-written serialization routine, then this 
really just doesn't matter at all.

Cheers,
-- Mike


From nobody Sun Jan 25 22:56:20 2015
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 1EA7B1A1EFF for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:56:18 -0800 (PST)
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 ep8EprIIz1tY for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:56:16 -0800 (PST)
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 3DD201A1A5B for <cfrg@irtf.org>; Sun, 25 Jan 2015 22:56:16 -0800 (PST)
Received: by mail-yh0-f45.google.com with SMTP id f73so2826592yha.4 for <cfrg@irtf.org>; Sun, 25 Jan 2015 22:56:15 -0800 (PST)
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=eYft59gy55xCwctP2HEpSnAM7HufrbyMe9mtQ1ZzRLg=; b=NKHctqrEst/22ImLcDGXm8aePY+rUtDyf+frK0tx43twm9cy2Qo2P2/vPy3GjJS1EF 3+ZYDimlmGgv62fopbk7DsfExSPSmK3DS9RvEhoA2Ia0NL12UTVzzDLuucE4XrCc65qN wkFDcU5yDaF7LYIuDqjxwm84gB3o2LT0DQZsEmrjzjIkjSdXVjKNDVczFQzFn6M/3Nb7 98u+JBMbZKEgcVYQxKjcnzQVyAZOxt5vKGk8GPto6Aqkvenu3wZs6HpYhce2bdTw4GLf S6dr22k78P+PWZ7S8WReTDIW8yQ2JN5ULx/50Mt5uQClVLCAb46hvzcHAPo4QSNi8VZo TsMw==
MIME-Version: 1.0
X-Received: by 10.236.7.70 with SMTP id 46mr8584509yho.138.1422255375448; Sun, 25 Jan 2015 22:56:15 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Sun, 25 Jan 2015 22:56:15 -0800 (PST)
In-Reply-To: <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org> <CACsn0c=bA=dRR8Y3vOp9o+Cmmdu7ZPr3vYbuRdBczRL2Uu+Gog@mail.gmail.com> <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
Date: Sun, 25 Jan 2015 22:56:15 -0800
Message-ID: <CACsn0ckSuD-jU45K5tMKr8=on33OP1b7by8eJURth9qCFuboGg@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/rHi6wNyIcU3yFbcYiBrIsrbbb5Y>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 06:56:18 -0000

On Sun, Jan 25, 2015 at 10:31 PM, Dan Harkins <dharkins@lounge.org> wrote:
>
>
> On Sun, January 25, 2015 12:35 pm, Watson Ladd wrote:
>> On Sun, Jan 25, 2015 at 10:26 AM, Mike Hamburg <mike@shiftleft.org> wrote:
>>> I think that this is actually an interesting question, so maybewe can
>>> put aside religion and mockery thereof for little bit...
>>>
>>> Does anyone know of existing code which processes cryptography over
>>> multiple fields using a generic bignums package (hopefully with
>>> fixed-size
>>> bignums for timing resistance), and would be complicated by inconsistent
>>> endian practices in a new curve?  If so, it might be worth considering a
>>> consistent endian.
>
>   Yes Mike, there are numerous crypto libraries, both open source and
> proprietary, that use a generic bignum package. And it is that "might be
> worth considering" that is making me raise this issue.

I've never seen a big-endian bignum library: everyone uses
little-endian internally for the calculations, so there already is a
forced reordering.

>
>> Both NSS and OpenSSL have a bignum library underlying ECC operations,
>> but I don't know how often that gets used in practice vs per curve
>> optimized implementations. But we're talking about swapping bytes in a
>> serialization function: it's a potential wart, but a small one. If we
>> do reverse endianness, then what SSH is already doing won't be
>> included.
>
>   Warts are ugly. And if small warts are not a concern then let's just
> leave SSH with a wart and everyone else can be wart-free.

You're ignoring the large costs of confusion between people who think
Curve25519 has big endian because the CFRG said so, and Curve25519 has
little-endian because tweetnacl.c or tweetnacl.js says so.

>
>> The fact that actual developers making actual projects don't consider
>> this a problem should register.
>
>   Well this actual developer making actual projects considers this a
> problem. The argument from Rich is that he's OK with curve25519
> being a special case because of he wants to interop with some existing
> implementations. And I guess that's the difference. Aside from SSH
> (which will have "a potential ward, but a small one") I don't see
> a large number of protocols implemented with this format that
> make this change compelling.

I don't think this is a real problem for several reasons:

-Curve25519 defines a single scalar mult function. It's easy to fold
any endian conversions into this function at the beginning and end.
-If you don't export this function, but instead force a separate
deserialization and reserialization step before and after, you can put
those swaps there instead
-If deserialization and serialization don't know what curve they are
on, because you assume Weierstrass, your scalarmul code must know and
could change it.
-If your scalarmult code doesn't know, how is that possible? You can
write something with a and p as parameters, but this won't work for
Curve25519 even if we change the endianness.

Of course, you could simply use tweetnacl.c or the implementations in
NaCl and trust that someone else solved all those problems.

Sincerely,
Watson Ladd

>
>   Dan.
>
>


From nobody Sun Jan 25 22:57:49 2015
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 2C7D11A7017 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:57:46 -0800 (PST)
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 6YCPsZD9iB31 for <cfrg@ietfa.amsl.com>; Sun, 25 Jan 2015 22:57:44 -0800 (PST)
Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 04D2E1A1EFF for <cfrg@irtf.org>; Sun, 25 Jan 2015 22:57:44 -0800 (PST)
Received: by mail-wg0-f46.google.com with SMTP id l2so7272664wgh.5 for <cfrg@irtf.org>; Sun, 25 Jan 2015 22:57:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UAdvjVOsxNMz6TaQNGgHQu2Mx6RRohP6aZ327A+0mBM=; b=zE3Rvmgf+sPSk6OtA3JNYSVLkJrRpdgcd4cd2vSqLU5CVykAtgKcCu/yMz8DCeA3FG 9J2dxPIVxyTNpMwTW/Vb2Ja5BwB3berHJH5HDlq1rsgLA+RoT9aEjybh11b89R2mkSw6 3Zoy1t9bW5NRGatF/9VIDZPFSpmujz7ULZmvOTME8MmxwUurplAuxa4rm/bNXdD6M46c Fq+qqLSRrybtfGMraE4hazGiKHx1eM4YAth3MC7M776a9f+Ajyu5gxnaDwT3tDUouqnL tqApfjsuSIPc4PAz6QvrbvCKk0yb2QPHVurRSf9s2nfuXhcTCO3EqJn6y6i/4lW9yB2l WXug==
X-Received: by 10.180.88.33 with SMTP id bd1mr29175500wib.10.1422255462723; Sun, 25 Jan 2015 22:57:42 -0800 (PST)
Received: from yoavs-mbp.mshome.net ([176.12.156.169]) by mx.google.com with ESMTPSA id l6sm12999811wjx.33.2015.01.25.22.57.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 25 Jan 2015 22:57:41 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Content-Type: text/plain; charset=utf-8
From: Yoav Nir <ynir.ietf@gmail.com>
X-Priority: 3 (Normal)
In-Reply-To: <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
Date: Mon, 26 Jan 2015 08:57:39 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <2F7C5F01-282F-4741-9787-030666D46F2B@gmail.com>
References: <20150125083018.10434.qmail@cr.yp.to> <93c73db0ce2b40c90324e89ce404abc1.squirrel@www.trepanning.net> <54C53542.60904@shiftleft.org> <CACsn0c=bA=dRR8Y3vOp9o+Cmmdu7ZPr3vYbuRdBczRL2Uu+Gog@mail.gmail.com> <feba0d7b1ebb594574ecfd34cb836ad8.squirrel@www.trepanning.net>
To: Dan Harkins <dharkins@lounge.org>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/3kWH0WkCUO28rbpo2OgI6awACGE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 06:57:46 -0000

> On Jan 26, 2015, at 8:31 AM, Dan Harkins <dharkins@lounge.org> wrote:
>=20
>=20
>=20
> On Sun, January 25, 2015 12:35 pm, Watson Ladd wrote:
>> On Sun, Jan 25, 2015 at 10:26 AM, Mike Hamburg <mike@shiftleft.org> =
wrote:
>>> I think that this is actually an interesting question, so maybewe =
can
>>> put aside religion and mockery thereof for little bit...
>>>=20
>>> Does anyone know of existing code which processes cryptography over
>>> multiple fields using a generic bignums package (hopefully with
>>> fixed-size
>>> bignums for timing resistance), and would be complicated by =
inconsistent
>>> endian practices in a new curve?  If so, it might be worth =
considering a
>>> consistent endian.
>=20
>  Yes Mike, there are numerous crypto libraries, both open source and
> proprietary, that use a generic bignum package. And it is that "might =
be
> worth considering" that is making me raise this issue.

All other things being equal, yes, consistent is better than not. But =
really, it=E2=80=99s not difficult to add functions like BN_bin2bn_le() =
and BN_bn2bin_le() to OpenSSL which makes both kinds of on-the-wire =
encoding equally easy to implement. There is little benefit in carrying =
over an optimization from the days when the dominant platform for doing =
things on the Internet was Solaris running on Sparc CPUs. By far the =
most dominant hardware platforms today are Intel and ARM, and both of =
them are little-endian. No, ntohl() is not a resource-intensive =
operation, but to avoid needing it is better than to not avoid it. Also, =
calling this function (or macro) that was short-sighted. It assumed that =
everything on the network would be big-endian. It should have been =
called big2internal().=20

>> Both NSS and OpenSSL have a bignum library underlying ECC operations,
>> but I don't know how often that gets used in practice vs per curve
>> optimized implementations. But we're talking about swapping bytes in =
a
>> serialization function: it's a potential wart, but a small one. If we
>> do reverse endianness, then what SSH is already doing won't be
>> included.
>=20
>  Warts are ugly. And if small warts are not a concern then let's just
> leave SSH with a wart and everyone else can be wart-free.

converting from wire format to local format is always a wart. You can =
only be wart-free if you have a unified design for everything from the =
start. That=E2=80=99s not the way the Internet came to be as evidenced =
by the fact that we=E2=80=99re still writing RFCs. There are warts =
everywhere, and this one doesn=E2=80=99t make it worse.

>> The fact that actual developers making actual projects don't consider
>> this a problem should register.
>=20
>  Well this actual developer making actual projects considers this a
> problem. The argument from Rich is that he's OK with curve25519
> being a special case because of he wants to interop with some existing
> implementations. And I guess that's the difference. Aside from SSH
> (which will have "a potential ward, but a small one") I don't see
> a large number of protocols implemented with this format that
> make this change compelling.

In a 3-month project to add curve25519, this represents less than an =
hour of extra work. It=E2=80=99s in the noise.

Yoav


From nobody Mon Jan 26 01:37:34 2015
Return-Path: <michael@metaparadigm.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 286E61A8834 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 01:37:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.231
X-Spam-Level: 
X-Spam-Status: No, score=0.231 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, 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 ClYw0HY_c-3p for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 01:37:31 -0800 (PST)
Received: from tlsx.org (tlsx.org [67.207.128.90]) (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 783691A8826 for <cfrg@irtf.org>; Mon, 26 Jan 2015 01:37:31 -0800 (PST)
Received: from monty.local (unknown.maxonline.com.sg [58.182.168.20] (may be forged)) (authenticated bits=0) by tlsx.org (8.14.4/8.14.4/Debian-4) with ESMTP id t0Q9xKRS031355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 26 Jan 2015 09:59:24 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metaparadigm.com; s=klaatu; t=1422266371; bh=RBX5rX5FHK8P9/KMw0S3NeTvt33bYTgDZU41bF0IxrA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=AN9BQofhmGtgHpS2S7f95xh8FR5NMZMByN/k+WyxYptORTmCitkQpwzARy2ZZaCbk zR2QeQh1VDBLOkaULX8MlaJO6qe/YcIkzVMHmTQYZk9C86LTwdxztRd1A0hl/g5CTh MoIOVRUhgKX3gcQ24ETCya386rP4aeJ2cgeGwUjM=
Message-ID: <54C60AC7.6000301@metaparadigm.com>
Date: Mon, 26 Jan 2015 17:37:11 +0800
From: Michael Clark <michael@metaparadigm.com>
Organization: Metaparadigm
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Alyssa Rowan <akr@akr.io>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <BF9DADF6-003F-454D-8E96-4A28A060CA72@isode.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30D40DF8FE3@GLKXM0002V.GREENLNK.net> <04A0462F-0A20-42F3-A404-FDA6A3E5A17A@akr.io> <0bee84ff19938a1a02dca5c422602215.squirrel@www.trepanning.net> <50d4436f6a004409b297e1d8c7e72787@usma1ex-dag1mb2.msg.corp.akamai.com> <54C55C2A.2090104@akr.io>
In-Reply-To: <54C55C2A.2090104@akr.io>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.98.4 at klaatu.tlsx.org
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/-PfJvR-WczY_Dhdawonb00YNeLk>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 26 Jan 2015 09:37:33 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/1/15 5:12 am, Alyssa Rowan wrote:
> On 24/01/2015 16:18, Salz, Rich wrote:
> 
>>> [DH] So a long-standing tradition of the on-the-wire format is 
>>> changed because of the way the first curve25519 library was 
>>> written? That's a weak justification.
> 
> So all the running code in every X25519 library out there (there
> are several) should change its on-the-wire format because of the
> way some other earlier wire protocols (with explicitly no relation
> to this one, as Rich mentions) were written? Β¬_Β¬
> 
>> [RS] The IETF should follow its tradition and drop its wire
>> format tradition.
> 
> Agreed. To the extent it matters, there's no justification for 
> changing the X25519 wire format to big-endian at all; it'd just be 
> gratuitous incompatibility with existing libraries for no reason if
> we did. I might not put it quite as sarcastically as djb, but I am
> not a fan of that. Running code wins: and that's little-endian.

Can't we just define point formats with '_le' suffix?

software still needs to consider endianness as these libraries are
likely to be ported to big endian systems (< power8, < sparc9, etc),
but nowadays big endian should perhaps pay the bswap price (however
sadly the older systems are the slower ones). "network byte order"
loses some meaning. format names should then become endian explicit.

the bignum libraries would typically have limbs in host-endianness,
and it makes sense for scalar growth that they store vectors of limbs
little end first, but they could be either big or little endian host
words packed little word first in memory. it is host dependent.

(example 128)

32-bit limbs on a little-endian system (memory representation):

  (limb0_le32), (limb1_le32), (limb2_le32), (limb3_le32)
   0x80000000 ,  0x00000000 ,  0x00000000 ,  0x00000000

32-bit limbs on a big-endian system (memory representation):

  (limb0_be32), (limb1_be32), (limb2_be32), (limb3_le32)
   0x00000080 ,  0x00000000 ,  0x00000000 ,  0x00000000

the natural composition of little endian limbs and little limb first
(2nd order bignum endianness) on a little endian system ends up being
byte-level little endian big nums, so yes little endian representation
is more efficient on modern systems.

on the other hand, with fixed-size bignums (for timing resistance)
where you know the size in advance, it would be possible to use big
word/limb first but the memory access pattern might be non-optimal.
suspect most bignum code is designed with little word/limb first for
scalar growth (and fixed size is essentially a subset or variable size).

this however is besides the point. as people indicate, these are
internal implementation details, and an implementation can serialize
and deserialize numbers before and after any computation.

big-endian still exists however it makes a reasonable amount of sense
for a new wire-format to make the (now less common) big-endian systems
pay the bswap price and use little endian on the network.

the other thing to remember is there is also base 2 little endian; or
bit reflection, versus what we call little endian (byte-level little
endian). see {Bit Reflection Peculiarity of GCM}. However in the case
of GCM, this is opaque so is not an issue. Just want to point out
there is another endianness. In bit reflection (or base 2 le) the
above example would = 1 not 128.

the swizzle code is already there, just it doesn't have a conditional
on it. If there are _le point formats then all the bswaps will eval to
nothing on the systems that are the most common today.

X25519 will likely be ported to big-endian systems?

if it isn't "network byte order" then endianness should be explicit in
a point format name i.e. add "_le" suffix. rationale for old names :-D

as developers, we will still need the bswaps in there either way, even
in the little-endian case where they the macros will evaluable to
nothing, assuming the code gets ported to < power8, < sparc9, etc

a shrewd strategy is send the endianness of your platform and have le
point format. You pay no price for this strategy unless the other end
is big endian. So make little endian point formats.

endianness is a pain. We need a <stdenian.h> in ISO C17, and
<cstdenian> in C++17. WIP. This still needs to emit BSWAP asm on MSC.

  http://austingroupbugs.net/view.php?id=162
  https://gist.github.com/michaeljclark/3b4fd912f6fa8bb598b3

endianness will need to be dealt with for some time to come,
especially in network code where everything is still "network byte order"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlTGCscACgkQa/HXs1fvPk8vAwCgpKjRExM/R3MmPBTvH/CUJAH7
iCEAoIZQhNum36Wn/Bnglrl2CQCGzWOk
=bc3q
-----END PGP SIGNATURE-----


From nobody Mon Jan 26 02:20:45 2015
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 3B77D1A88A7 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 02:20:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level: 
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ena2mayUDBzX for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 02:20:40 -0800 (PST)
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 F13731A88A8 for <cfrg@irtf.org>; Mon, 26 Jan 2015 02:20:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1422267639; x=1453803639; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=KoDHwuAncIrXp3wxMKGQY/aPafuZChqpKjDMSzwjzqg=; b=twbhYhK7alHoSxNBh9eeqTnSp0IF0nvWABgMw6qNtwRMjh7jPIJ84nLa e+t/MfI/jTSFjMqigCh7PrQWdk3AtEuAEJbc3WAkZpLEXjxSnQrldXj04 QFATP1Odazo8eLgLae63eGRGHBNVet1zvNI/X3Cy2vxqwUUDakBNJUtNK 4=;
X-IronPort-AV: E=Sophos;i="5.04,630,1406548800"; d="scan'208";a="303676154"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.112 - Outgoing - Outgoing
Received: from uxchange10-fe1.uoa.auckland.ac.nz ([130.216.4.112]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 26 Jan 2015 23:20:36 +1300
Received: from UXCN10-TDC05.UoA.auckland.ac.nz ([169.254.9.148]) by uxchange10-fe1.UoA.auckland.ac.nz ([130.216.4.112]) with mapi id 14.03.0174.001; Mon, 26 Jan 2015 23:20:35 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AdA5UbjGbnfzj1VITRalwzFEHlMbcA==
Date: Mon, 26 Jan 2015 10:20:34 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.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/yRAkIGczqliKg_Stqa7SGjGBtCc>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 10:20:43 -0000

Mike Hamburg <mike@shiftleft.org> writes:=0A=
=0A=
>But will the endian complicate the implementation of the new curves?=0A=
=0A=
Given that every single crypto bignum representation that I'm aware of (X.5=
09,=0A=
S/MIME, PGP, SSH, TLS, OCSP, CMP, TSP, and many more) are all big-endian,=
=0A=
there are probably lots of crypto libraries that simply don't have little-=
=0A=
endian import/export routines.  Looking at BN_bn2bin()/BN_bin2bn() from one=
=0A=
widely-used library that powers half the Internet (and mobile phone market)=
,=0A=
it only supports the big-endian format.  So that's automatic non-support fo=
r=0A=
the world's most widely-used crypto library outside of MS CryptoAPI (which=
=0A=
doesn't expose its bignum library).=0A=
=0A=
I can't believe we're even having this endless discussion.  The universal=
=0A=
standard for external representations of bignums in IETF protocols is big-=
=0A=
endian.  Even the PGP and S/MIME, and SSH and TLS, folks have managed to ag=
ree=0A=
on that one.=0A=
=0A=
Peter.=


From nobody Mon Jan 26 02:41:41 2015
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 6FEEE1A88BB for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 02:41:40 -0800 (PST)
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 Dnfh6zaPMbii for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 02:41:39 -0800 (PST)
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 3D89F1A88B0 for <cfrg@irtf.org>; Mon, 26 Jan 2015 02:41:39 -0800 (PST)
Message-ID: <54C619EB.40807@akr.io>
Date: Mon, 26 Jan 2015 10:41:47 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/i_nrwx8a90Z1Hr0i4uGgWLZqT3A>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 10:41:40 -0000

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

On 26/01/2015 10:20, Peter Gutmann wrote:

> The universal standard for external representations of bignums in 
> IETF protocols is big- endian.

They are NOT bignums. As per TLS WG discussion, all new curves' wire
formats are opaque octet strings.

> Even the PGP and S/MIME, and SSH and TLS, folks have managed to 
> agree on that one.

GnuPG and SSH folks are using 25519's native big-endian formats.

If we try to change it arbitrarily and confusingly, everyone will
ignore CFRG - we're late to the party anyway - and will use the native
format.

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

iQIcBAEBCgAGBQJUxhnrAAoJEOyEjtkWi2t6a/8P/0PoJTgB/m6g5JdrgopAk3Ou
nVTmR2EhxPtYPKavtq9/O4LKJ3wePMsQVHNct304ASne7yqvePy7hskecv6dr6wC
1lctuPMAuiRQtVyGRpygCW/9mCnF8dbYNWpoumebEUpmnu2R07nMpQp4qsEV9tTP
X7rZsPw/bzSVFibjtlIR57ci53V/Uf0s+S7TS5cHGwuQJmhRvKSUsZ0NiwknuuhM
w34FuBgMlQw/TVuBdiCrd+bL0CjiSz9uk2IlMW0tcntBqjdavhez4OJASLX8k3dD
7lKB2Ehg0Eg1QxBUzjqiOhQkw7KzPkifGFl5oGauwxJ2iqXTD8V1t8PH3pae6XQd
SoTXAV4nLwWG9U2CqBjEzIYBh7r0MMYJqvyPE6zkk3o2BhIEt4YduqdskVnrzFzN
dNY/2gOQtvJCRbPRY/hMyctwLw7bomtqaYEwf4TddCZMtR7MCtKYWE4gPD0suzJ2
kRos8YW4OiNuoEENyOlG7xleuOi4k1LJ9Af/TF/mCGQ2HOK5PfJwj+X4eFb2dP3n
8IQ8KJpkSTa5gVYmOPoUF3krz1TmnI89uSUrUGRuwXufYas5G1YnmQfL8tdClpyC
h7i1jvHyngvV2KKkG8nU6laAD4RHCLzePC8rQ8e2r4EJs+VlhHspKe9zCHiSOGSj
IwXjCf/jtB/uhnOS++zD
=szA7
-----END PGP SIGNATURE-----


From nobody Mon Jan 26 03:07:09 2015
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 604301A88E4 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 03:07:06 -0800 (PST)
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 9UQN38B1mTbC for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 03:07:05 -0800 (PST)
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 EE3C81A88B1 for <cfrg@irtf.org>; Mon, 26 Jan 2015 03:07:04 -0800 (PST)
Message-ID: <54C61FE2.3010309@akr.io>
Date: Mon, 26 Jan 2015 11:07:14 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz> <54C619EB.40807@akr.io>
In-Reply-To: <54C619EB.40807@akr.io>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/9TcF4tkn18uqjDHaY8Zd2Zh_qgc>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 11:07:06 -0000

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

On 26/01/2015 10:41, Alyssa Rowan wrote:

> GnuPG and SSH folks are using 25519's native big-endian formats.

Um, I mean little-endian there. Clearly I need more tea. <g>

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

iQIcBAEBCgAGBQJUxh/hAAoJEOyEjtkWi2t6uMEQAKrKFVitH5iyKuGARob/znF0
AhpzsCwkAci6YgbeUmSjR+2tzVrVsyGwdWFoVVoXlyeo+8FYbLMzQkdDT2Nm0TE2
GTOQBoyHyKNxei8MKSodhTm5CgY2ux+s/5qDdmSWVwW4OLABqsvVt/7lEu0YErPW
AM9nPDU0r1leVF3nNprkMaCnylKU9qYV92D1z6EV/iDdGmCgoISTHawdYs5rm6oG
enLG+r8+r2KyfvaxkbMfQzr4gX1saiUHK++5aNX0yUGhSM+OHRsd6m2xDqixWuxU
cr+XGJRBmibuDoMp0GXTOFT87LhKiZHfjCo7krLXsrrWU7a4NaHc4Jzl4xI5ByRB
s6DUUoI/wlnF4ZSTmeDekamHm//WwkHYUbeqWDLANNiSHaWEhYDaIwcgF93klT50
PtXT6BnEE1gAm8d6GAS56AFDvB2iEOF+VRWLodAMmR4MwzNlu/O4RKIGN1RGtGOl
tr4W99goEq6wK+x5pTtRWW3WtyosN+elOTexH5i766K7NrFgYvCbxP6uvCYEc/Iv
kO/LXwOFcSum1BVWgsa5vN0SAWiJMor/NWJnA8++ZXFBTv3k5ovH67cgA6mxUZQq
P5JkDswbbf0WQeC598TVTw+c6FZObJcp/n2mBi7hqAQyQpW7F//7E3+M8PblBv3W
CjOZorFOtfbCsnXgIc9w
=MrcU
-----END PGP SIGNATURE-----


From nobody Mon Jan 26 03:08:58 2015
Return-Path: <chris.dearlove@baesystems.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 004D91A88F7 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 03:08:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.91
X-Spam-Level: 
X-Spam-Status: No, score=-6.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j_VtID7OVm4P for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 03:08:53 -0800 (PST)
Received: from ukmta1.baesystems.com (ukmta1.baesystems.com [20.133.0.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 940F01A88E4 for <cfrg@irtf.org>; Mon, 26 Jan 2015 03:08:52 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.09,468,1418083200"; d="scan'208";a="518116218"
Received: from unknown (HELO baemasmds017.greenlnk.net) ([10.15.207.104]) by baemasmds003ir.sharelnk.net with ESMTP; 26 Jan 2015 11:08:51 +0000
X-IronPort-AV: E=Sophos;i="5.09,468,1418083200"; d="scan'208";a="85288458"
Received: from glkxh0003v.greenlnk.net ([10.109.2.34]) by baemasmds017.greenlnk.net with ESMTP; 26 Jan 2015 11:08:50 +0000
Received: from GLKXM0002V.GREENLNK.net ([169.254.5.186]) by GLKXH0003V.GREENLNK.net ([10.109.2.34]) with mapi id 14.03.0174.001; Mon, 26 Jan 2015 11:08:51 +0000
From: "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>
To: Alyssa Rowan <akr@akr.io>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian
Thread-Index: AdA5V3PHRzvEqOySTR6mHbMgs6awtw==
Date: Mon, 26 Jan 2015 11:08:50 +0000
Message-ID: <B31EEDDDB8ED7E4A93FDF12A4EECD30D40E0DCFC@GLKXM0002V.GREENLNK.net>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.109.62.6]
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/D2CEVmRGmTot67x0VeIiJCr2UPI>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 26 Jan 2015 11:08:55 -0000

Alyssa Rowan
> They are NOT bignums. As per TLS WG discussion, all new curves' wire form=
ats are opaque octet strings.

They may be opaque to TLS, but here people actually need to manipulate them=
, and  the draft that's being discussed here actually uses the words little=
 endian. That's a number.

Having opened this can of worms, it was to ask if this was a deliberate dec=
ision. It was. Open to people to agree or disagree, I just was a little sur=
prised and wanted to check.

There are several layers to representation,  when not able to consider it a=
s opaque. Mathematical entity, octet pattern (including endianness, but als=
o things like rules for leading zeros) and framing (e.g. the 04 in SEC1 for=
 uncompressed elliptic curve points in affine form). Here we need all of th=
ose (I'm not suggesting we don't have them).

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


From nobody Mon Jan 26 04:58:31 2015
Return-Path: <michael@metaparadigm.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 88E161A8A81 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 04:58:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.441
X-Spam-Level: 
X-Spam-Status: No, score=0.441 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, IP_NOT_FRIENDLY=0.334, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] 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 VJNSY2rXKp3c for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 04:58:22 -0800 (PST)
Received: from tlsx.org (tlsx.org [67.207.128.90]) (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 CE92D1A8A78 for <cfrg@irtf.org>; Mon, 26 Jan 2015 04:58:22 -0800 (PST)
Received: from monty.local (unknown.maxonline.com.sg [58.182.168.20] (may be forged)) (authenticated bits=0) by tlsx.org (8.14.4/8.14.4/Debian-4) with ESMTP id t0QDK7cA031921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 26 Jan 2015 13:20:10 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metaparadigm.com; s=klaatu; t=1422278412; bh=Z2TzjBvzqYZsq3AubSlfm9+ULXHcYdAuQQMPCBGyoTs=; h=Date:From:To:Subject:References:In-Reply-To:From; b=m+eB07m7Io5G6gbJLMiurGb1GWE5aptm5lWsbhhC4HW5fTVfakzk38tqUpuzjUoul lXQG0Sx8uLXeNMnb4X83cqE/dUF3U/s6at33nf1y07uWWnyPU9X4Mi4Y6lX/rot5kL 3bzR0Yw6NuKY912PPDpY9L4ggrWqhKAQg6EFRyWc=
Message-ID: <54C639D5.5050104@metaparadigm.com>
Date: Mon, 26 Jan 2015 20:57:57 +0800
From: Michael Clark <michael@metaparadigm.com>
Organization: Metaparadigm
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "'cfrg@irtf.org'" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.98.4 at klaatu.tlsx.org
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/PAj4tSQzHHiJ1s2WUbRSIvqs1fU>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 26 Jan 2015 12:58:24 -0000

On 26/1/15 6:20 pm, Peter Gutmann wrote:
> Mike Hamburg <mike@shiftleft.org> writes:
> 
>> But will the endian complicate the implementation of the new curves?
> 
> Given that every single crypto bignum representation that I'm aware of (X.509,
> S/MIME, PGP, SSH, TLS, OCSP, CMP, TSP, and many more) are all big-endian,
> there are probably lots of crypto libraries that simply don't have little-
> endian import/export routines.  Looking at BN_bn2bin()/BN_bin2bn() from one
> widely-used library that powers half the Internet (and mobile phone market),
> it only supports the big-endian format.  So that's automatic non-support for
> the world's most widely-used crypto library outside of MS CryptoAPI (which
> doesn't expose its bignum library).
> 
> I can't believe we're even having this endless discussion.  The universal
> standard for external representations of bignums in IETF protocols is big-
> endian.  Even the PGP and S/MIME, and SSH and TLS, folks have managed to agree
> on that one.

Yes. Legacy. "network byte order" is big-endian.

It's tradition versus efficiency. big-endian is tradition. little-endian
is how most CPUs work these days. The reality is Sparc9, ARMv3, and
Power8 are now all bi-endian and are adopting little endian ABIs. Power8
being the most recent to change (ppc64le).

Given the algo is new, one could /consider/ a BN_bn2binle and
BN_binle2bn (or an endian argument variant). It's a small change.

I see the current code is working byte by byte due to endianness. It
takes 2nd order little endian (with host endian limbs due to the shifts)
and converts to big endian wire format. It reads from the distant big
end (little-endian) and writes out big endian. It bswaps.

        n=i=BN_num_bytes(a);
        while (i--)
                {
                l=a->d[i/BN_BYTES];
                *(to++)=(unsigned char)(l>>(8*(i%BN_BYTES)))&0xff;
                }
        return(n);

This code could do with some optimization, bswap(32|64) intrinsic (uses
BSWAP machine instruction on x86_64, ARM, etc), working with a machine
word size loop with a small tail loop to handle the modulus of the
difference in length of the bignum from the machine word size. It is
working byte by byte. It may not even register on a profile (we can use
gperftools to check). This code is *absolutely fine*. That said we could
make BN_bn2bin faster, use BSWAP intrinsic on x86_64, sparc, arm, ppc
and use 64-bit loads and stores (including test cases and corner cases).
Let me know if anyone wants to sponsor?

Also BN_num_bits_word could use __builtin_clz or __builtin_clzll
(_BitscanForward, _BitscanReverse on MSC). No cache surface for a table
lookup. Modern compilers have these intrinsics. On Pentium III there is
BSR, and in SSE4 there is LZCNT instruction, and there is even a cache
friendly alternative that uses Henry S. Warren's Hacker's Delight tricks:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36041

Let me know if you can find me a sponsor. I'm currently (as a passtime)
doing cycle counts on intrinsic and C fallbacks for these kinds of
routines.. (to fill in for compilers without them). Testing on
MSC/GCC/Clang on Darwin/Android/Windows/Linux.

With little endian wire format and use of 32-bit or 64-bits limbs on all
modern systems (sparc9, power8, x86, arm) BN_bn2binle routine would
essentially be memcpy. That's the sad part.

So with big-endian wire-formats, practically all machines are going to
bswap as the internal rep will be little endian. That cost is probably
low compared to the cost of the computation, so there is a reasonable
rationale to stick to big-endian.

  BSWAP is one 1 cycle per 32-bit word on i386
  BSWAP is one 1 cycle per 64-bit word on x86_64
  BSWAP has been around since i486

Someone starting today would indicate endianness statically or
dyanamically in their number format and use the hot potato principle.
Get it off your hands at the lowest cost to yourself, which nowadays is
little-endian. Remember GHASH is Bit Reflected (base 2 little endian)
and it made it into a spec.

Peter makes a pretty good case to stick with big-endian, from a
consistency point of view, but not from an efficiency point of view.

Seems like we will be swizzling onto and off the network into
eternity... unless someone makes a decision otherwise...


From nobody Mon Jan 26 21:50:23 2015
Return-Path: <michael@metaparadigm.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 4286B1B2BA0 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 21:50:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.032
X-Spam-Level: *
X-Spam-Status: No, score=1.032 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, 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 lW3FsB-kR_XT for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 21:50:19 -0800 (PST)
Received: from tlsx.org (tlsx.org [67.207.128.90]) (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 A51C31B2B9E for <cfrg@irtf.org>; Mon, 26 Jan 2015 21:50:16 -0800 (PST)
Received: from monty.local (unknown.maxonline.com.sg [58.182.168.20] (may be forged)) (authenticated bits=0) by tlsx.org (8.14.4/8.14.4/Debian-4) with ESMTP id t0R6CF85001883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <cfrg@irtf.org>; Tue, 27 Jan 2015 06:12:19 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metaparadigm.com; s=klaatu; t=1422339140; bh=k8S3w6fGMfdNMveupBw0bFg9Au+ezUHWjp1lEYx7URM=; h=Date:From:To:Subject:References:In-Reply-To:From; b=UTXdDvg06KtxiBo68zAoiUsrZ42XExvPDMYztIhqcEyn35S+TlIhnHFXznwBTaK7j VA5JjNBUonpER55A996TZS1wuG2pWScQ5daOHCyAs264BkLOvpozkwivXVraneBnaz 6fif2FqU4sTu91YE8v4rdVltRKG24tHVGda1wFxQ=
Message-ID: <54C7270B.1000806@metaparadigm.com>
Date: Tue, 27 Jan 2015 13:50:03 +0800
From: Michael Clark <michael@metaparadigm.com>
Organization: Metaparadigm
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: CFRG Mailing List <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz> <54C639D5.5050104@metaparadigm.com>
In-Reply-To: <54C639D5.5050104@metaparadigm.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.98.4 at klaatu.tlsx.org
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/yn1vy-dgxEgdK4HExNioZsyoKLg>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 05:50:20 -0000

On 26/1/15 8:57 pm, Michael Clark wrote:
> Someone starting today would indicate endianness statically or
> dyanamically in their number format and use the hot potato principle.
> Get it off your hands at the lowest cost to yourself, which nowadays is
> little-endian. Remember GHASH is Bit Reflected (base 2 little endian)
> and it made it into a spec.

Just saw DJB's email on twitter.

https://www.ietf.org/mail-archive/web/cfrg/current/msg05938.html

Wrote this last night before seeing it:

I believe GCM GHASH is bit-reflected (more accurately bit level little
endian, the true opposite to big-endian or "true little endian") on the
wire in the GCM AEAD hash. It is an existing example of not using
big-endian, but also not using little-endian as we commonly know it
(bignums: with 8-bit big endian limbs, little limb first).

The finite field bit set for GHASH could potentially be represented in
either big-endian or little-endian. e.g. where the bit offsets [0-127]
are within either of those domains, but it is neither. It is perhaps
better called "true little-endian or base 2 little-endian".

Just citing this as precedence for a 16-octet opaque encoding of a
galois field value that is not big-endian and is used in TLS, SSH, etc.

That said, GHASH is really a GF(2^n) bit set, and not a scalar.

The fact that GHASH only uses xor and shifts makes it different to
scalarmult, however the Intel PCLMULQDQ GHASH implementation needs to
deal with this bit-reflection property in AES-GCM as the PCLMULQDQ
instruction shifts "left", not "right" as you would typically do for
GHASH. It seems to cause extra work for computers with little-endian
bignums and 8-bit big endian limbs, little 8-bit limb first.
litte-endian as we know it is a misnomer and GHASH is perhaps "true
little-endian". GCM is an example of making computers work even harder
using an even more obscure encoding.

If you want to break a tradition; it pays to have a counter example
where it has already been broken (and made things harder).

You have to consciously decide to "not do extra work" on most computers
or maintain tradition. le wire format still needs bswaps for portable
code: just they will be compiled out on prevalent systems "today" versus
mid-to-late-90's.

Ref:
{Carry-Less Multiplication and Its Usage for Computing the GCM Mode}


From nobody Mon Jan 26 22:00:58 2015
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 C3C301B2B9D for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 22:00:56 -0800 (PST)
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_50=0.8,  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 w2w-cn_uiOgP for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 22:00:53 -0800 (PST)
Received: from mail-yh0-x22b.google.com (mail-yh0-x22b.google.com [IPv6:2607:f8b0:4002:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9DACB1A008C for <cfrg@irtf.org>; Mon, 26 Jan 2015 22:00:53 -0800 (PST)
Received: by mail-yh0-f43.google.com with SMTP id 29so5337834yhl.2 for <cfrg@irtf.org>; Mon, 26 Jan 2015 22:00:53 -0800 (PST)
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=bcvlFtKoNEYyQLNVF6VkdxBk8Jceu5ouGf4LLi2wSK8=; b=APARXJs537aTXNk01sBrXVQsqaZes25Mc06drrcVd7/2JqOox1XDAAZvs4qQqgYqGt QJJham8HhPnj0tFB0NHo9ydjsBJ7TPi7T6yOu/LRB5HjNelD4ZeSFkdxo/buSCVv9mee o/OzdC6A/mtQg/fWHFUzUbECd2jJ0mSzotzpAjUcZBsTTrgAesQojqLVjrccKdfuLq5F BmxJXdJsnGeQwKgYzgAowvBupSJ9SmV/S2ICrq7IkSKy9c5b5A+d0b10dXGUpLYJx5pv 7ghnPJeTIWpq71WMbcwYnj+PIZ+p+fNY86ikO/LlHqmywbwJh9Hw8p6qraaxNZvpVFRW DyAw==
MIME-Version: 1.0
X-Received: by 10.236.61.8 with SMTP id v8mr10383883yhc.44.1422338452841; Mon, 26 Jan 2015 22:00:52 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Mon, 26 Jan 2015 22:00:52 -0800 (PST)
In-Reply-To: <54C639D5.5050104@metaparadigm.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz> <54C639D5.5050104@metaparadigm.com>
Date: Mon, 26 Jan 2015 22:00:52 -0800
Message-ID: <CACsn0ckdwGsm_YM1+uJ9a-_ZFAfCJOqeLTUE+aazYGpbYuB8fQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Michael Clark <michael@metaparadigm.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ypoiGn1olaHzQPyrH3EvmDdH9XM>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 06:00:57 -0000

On Mon, Jan 26, 2015 at 4:57 AM, Michael Clark <michael@metaparadigm.com> wrote:
> On 26/1/15 6:20 pm, Peter Gutmann wrote:
>> Mike Hamburg <mike@shiftleft.org> writes:
>>
>>> But will the endian complicate the implementation of the new curves?
>>
>> Given that every single crypto bignum representation that I'm aware of (X.509,
>> S/MIME, PGP, SSH, TLS, OCSP, CMP, TSP, and many more) are all big-endian,
>> there are probably lots of crypto libraries that simply don't have little-
>> endian import/export routines.  Looking at BN_bn2bin()/BN_bin2bn() from one
>> widely-used library that powers half the Internet (and mobile phone market),
>> it only supports the big-endian format.  So that's automatic non-support for
>> the world's most widely-used crypto library outside of MS CryptoAPI (which
>> doesn't expose its bignum library).
>>
>> I can't believe we're even having this endless discussion.  The universal
>> standard for external representations of bignums in IETF protocols is big-
>> endian.  Even the PGP and S/MIME, and SSH and TLS, folks have managed to agree
>> on that one.
>
> Yes. Legacy. "network byte order" is big-endian.
>
> It's tradition versus efficiency. big-endian is tradition. little-endian
> is how most CPUs work these days. The reality is Sparc9, ARMv3, and
> Power8 are now all bi-endian and are adopting little endian ABIs. Power8
> being the most recent to change (ppc64le).

No it's not because of efficiency. Nor is C code necessarily endian
dependent. See http://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html
for details, and explanations of why code that depends on endianness
is usually wrong. Rather, it has to do with the format of existing
implementations: everyone who grabs the NaCl implementation is using
an little-endian encoding. Changing this would mean that there are no
existing implementations. It would cause significant confusion between
old and new versions.

>
> Given the algo is new, one could /consider/ a BN_bn2binle and
> BN_binle2bn (or an endian argument variant). It's a small change.

Why do people feel the need to write their own buggy implementations
of Curve25519, when there are several public domain ones for the
taking, especially when this means giving up the optimizations related
to reduced radix format?

>
> I see the current code is working byte by byte due to endianness. It
> takes 2nd order little endian (with host endian limbs due to the shifts)
> and converts to big endian wire format. It reads from the distant big
> end (little-endian) and writes out big endian. It bswaps.
>
>         n=i=BN_num_bytes(a);
>         while (i--)
>                 {
>                 l=a->d[i/BN_BYTES];
>                 *(to++)=(unsigned char)(l>>(8*(i%BN_BYTES)))&0xff;
>                 }
>         return(n);
>
> This code could do with some optimization, bswap(32|64) intrinsic (uses
> BSWAP machine instruction on x86_64, ARM, etc), working with a machine
> word size loop with a small tail loop to handle the modulus of the
> difference in length of the bignum from the machine word size. It is
> working byte by byte. It may not even register on a profile (we can use
> gperftools to check). This code is *absolutely fine*. That said we could
> make BN_bn2bin faster, use BSWAP intrinsic on x86_64, sparc, arm, ppc
> and use 64-bit loads and stores (including test cases and corner cases).
> Let me know if anyone wants to sponsor?

And you have benchmarks showing that this code is the bottleneck, and
not the bignum multiply inner loop?

>
> Also BN_num_bits_word could use __builtin_clz or __builtin_clzll
> (_BitscanForward, _BitscanReverse on MSC). No cache surface for a table
> lookup. Modern compilers have these intrinsics. On Pentium III there is
> BSR, and in SSE4 there is LZCNT instruction, and there is even a cache
> friendly alternative that uses Henry S. Warren's Hacker's Delight tricks:
>
>   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36041
>
> Let me know if you can find me a sponsor. I'm currently (as a passtime)
> doing cycle counts on intrinsic and C fallbacks for these kinds of
> routines.. (to fill in for compilers without them). Testing on
> MSC/GCC/Clang on Darwin/Android/Windows/Linux.
>
> With little endian wire format and use of 32-bit or 64-bits limbs on all
> modern systems (sparc9, power8, x86, arm) BN_bn2binle routine would
> essentially be memcpy. That's the sad part.
>
> So with big-endian wire-formats, practically all machines are going to
> bswap as the internal rep will be little endian. That cost is probably
> low compared to the cost of the computation, so there is a reasonable
> rationale to stick to big-endian.
>
>   BSWAP is one 1 cycle per 32-bit word on i386
>   BSWAP is one 1 cycle per 64-bit word on x86_64
>   BSWAP has been around since i486
>
> Someone starting today would indicate endianness statically or
> dyanamically in their number format and use the hot potato principle.
> Get it off your hands at the lowest cost to yourself, which nowadays is
> little-endian. Remember GHASH is Bit Reflected (base 2 little endian)
> and it made it into a spec.

 Re GHASH. It doesn't matter in hardware either way, as reflection is
just relabeling, but in software you have to do some weird twists to
make it work out. Even Intel's carryless multiplies do things the
natural way. By contrast the Curve25519 format we are deciding is
between s[0..31] is s[0]+256*s[1]+..256^(31)*s[31], or
256^(31)*s[0]+256^(30)*s[1]+..s[31]: all systems agree on the value of
each byte, and the question is which bignum it represents. It's easy
to turn this into whatever internal representation you need, unlike
swapping bits in a byte.

Let me see if I get your second line correct. Instead of picking one
format, and encoding to and from it with a trivial amount of portable
C, we should use architecture specific micro-optimizations, and force
the implementation and testing of two distinct output and input
methods, for a nearly unmeasurable speed gain. Of course, there are
many architectures where you cannot serialize in the way you suggest:
unaligned loads and stores are not supported on many MIPS processors,
and there is no guarantee that alignment of bignum fields will be
maintained.

>
> Peter makes a pretty good case to stick with big-endian, from a
> consistency point of view, but not from an efficiency point of view.

He argued that this would mean automatic OpenSSL nonsupport. Given
that Rich Salz is on the development team of OpenSSL, I consider this
unlikely. Furthermore, you can take curve25519-donna and use it today:
it doesn't entail modifications (which are themselves trivial) to the
bignum library.

I am amazed that we are repeating discussions that were had in TLS. Or
maybe I shouldn't be. At what point can we declare that Curve25519 can
be adopted by IETF protocols? It would be nice if we could report
something by Austin, and maybe have a plan to finish up higher
security levels and signatures by the summer.

>

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



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


From nobody Mon Jan 26 22:24:28 2015
Return-Path: <michael@metaparadigm.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 6018A1B2BA9 for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 22:24:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.458
X-Spam-Level: 
X-Spam-Status: No, score=-1.458 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, IP_NOT_FRIENDLY=0.334, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] 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 3Ylf0YnEJPQt for <cfrg@ietfa.amsl.com>; Mon, 26 Jan 2015 22:24:24 -0800 (PST)
Received: from tlsx.org (tlsx.org [67.207.128.90]) (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 0667D1B2BA7 for <cfrg@irtf.org>; Mon, 26 Jan 2015 22:24:23 -0800 (PST)
Received: from monty.local (unknown.maxonline.com.sg [58.182.168.20] (may be forged)) (authenticated bits=0) by tlsx.org (8.14.4/8.14.4/Debian-4) with ESMTP id t0R6kBNJ002205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 27 Jan 2015 06:46:15 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metaparadigm.com; s=klaatu; t=1422341180; bh=i/D6V1IvO9tIfLVpkNT+uof4jaDv9iICKRdBYBW0fUE=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=gD4TS/xElwt0C4iAkbWFSTyko05bIPPSZx1cCViy+HzMbmnPLsRvDCdful+ca5QYJ TdhJjNZmNc/X3NgM/bPRHez6Ow5us6AfNZrWmScG4MFluSRFRQKRo/0eyEG56MSSYs 4JW0aeZnszovqBnPrG1gm2QvtAlfrObkbSy5zI0o=
Message-ID: <54C72F01.4000203@metaparadigm.com>
Date: Tue, 27 Jan 2015 14:24:01 +0800
From: Michael Clark <michael@metaparadigm.com>
Organization: Metaparadigm
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz>	<54C639D5.5050104@metaparadigm.com> <CACsn0ckdwGsm_YM1+uJ9a-_ZFAfCJOqeLTUE+aazYGpbYuB8fQ@mail.gmail.com>
In-Reply-To: <CACsn0ckdwGsm_YM1+uJ9a-_ZFAfCJOqeLTUE+aazYGpbYuB8fQ@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.98.4 at klaatu.tlsx.org
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/xghaYKJuZIWpM1Z6_DxEyi2GJME>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 06:24:26 -0000

On 27/1/15 2:00 pm, Watson Ladd wrote:
> On Mon, Jan 26, 2015 at 4:57 AM, Michael Clark <michael@metaparadigm.com> wrote:
>> On 26/1/15 6:20 pm, Peter Gutmann wrote:
>>> Mike Hamburg <mike@shiftleft.org> writes:
>>>
>>>> But will the endian complicate the implementation of the new curves?
>>>
>>> Given that every single crypto bignum representation that I'm aware of (X.509,
>>> S/MIME, PGP, SSH, TLS, OCSP, CMP, TSP, and many more) are all big-endian,
>>> there are probably lots of crypto libraries that simply don't have little-
>>> endian import/export routines.  Looking at BN_bn2bin()/BN_bin2bn() from one
>>> widely-used library that powers half the Internet (and mobile phone market),
>>> it only supports the big-endian format.  So that's automatic non-support for
>>> the world's most widely-used crypto library outside of MS CryptoAPI (which
>>> doesn't expose its bignum library).
>>>
>>> I can't believe we're even having this endless discussion.  The universal
>>> standard for external representations of bignums in IETF protocols is big-
>>> endian.  Even the PGP and S/MIME, and SSH and TLS, folks have managed to agree
>>> on that one.
>>
>> Yes. Legacy. "network byte order" is big-endian.
>>
>> It's tradition versus efficiency. big-endian is tradition. little-endian
>> is how most CPUs work these days. The reality is Sparc9, ARMv3, and
>> Power8 are now all bi-endian and are adopting little endian ABIs. Power8
>> being the most recent to change (ppc64le).
> 
> No it's not because of efficiency. Nor is C code necessarily endian
> dependent. See http://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html
> for details, and explanations of why code that depends on endianness
> is usually wrong. Rather, it has to do with the format of existing
> implementations: everyone who grabs the NaCl implementation is using
> an little-endian encoding. Changing this would mean that there are no
> existing implementations. It would cause significant confusion between
> old and new versions.
> 
>>
>> Given the algo is new, one could /consider/ a BN_bn2binle and
>> BN_binle2bn (or an endian argument variant). It's a small change.
> 
> Why do people feel the need to write their own buggy implementations
> of Curve25519, when there are several public domain ones for the
> taking, especially when this means giving up the optimizations related
> to reduced radix format?

I hope this is not implied by my email.

>> I see the current code is working byte by byte due to endianness. It
>> takes 2nd order little endian (with host endian limbs due to the shifts)
>> and converts to big endian wire format. It reads from the distant big
>> end (little-endian) and writes out big endian. It bswaps.
>>
>>         n=i=BN_num_bytes(a);
>>         while (i--)
>>                 {
>>                 l=a->d[i/BN_BYTES];
>>                 *(to++)=(unsigned char)(l>>(8*(i%BN_BYTES)))&0xff;
>>                 }
>>         return(n);
>>
>> This code could do with some optimization, bswap(32|64) intrinsic (uses
>> BSWAP machine instruction on x86_64, ARM, etc), working with a machine
>> word size loop with a small tail loop to handle the modulus of the
>> difference in length of the bignum from the machine word size. It is
>> working byte by byte. It may not even register on a profile (we can use
>> gperftools to check). This code is *absolutely fine*. That said we could
>> make BN_bn2bin faster, use BSWAP intrinsic on x86_64, sparc, arm, ppc
>> and use 64-bit loads and stores (including test cases and corner cases).
>> Let me know if anyone wants to sponsor?
> 
> And you have benchmarks showing that this code is the bottleneck, and
> not the bignum multiply inner loop?

Not yet. However I doubt the bswap in and out has a large bearing (as I
hint). I was rather responding to a mention of the existing bignum code;
and went and had a look at the code to see for myself.

It makes sense to use the Curve25519 format and calculations if they are
already optimized. i.e. consider it an intrinsic with its own wire
format. Given there is no such thing as a standard wire format, given
all the different encodings within IETF and ones adopted from outside.

>> Also BN_num_bits_word could use __builtin_clz or __builtin_clzll
>> (_BitscanForward, _BitscanReverse on MSC). No cache surface for a table
>> lookup. Modern compilers have these intrinsics. On Pentium III there is
>> BSR, and in SSE4 there is LZCNT instruction, and there is even a cache
>> friendly alternative that uses Henry S. Warren's Hacker's Delight tricks:
>>
>>   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36041
>>
>> Let me know if you can find me a sponsor. I'm currently (as a passtime)
>> doing cycle counts on intrinsic and C fallbacks for these kinds of
>> routines.. (to fill in for compilers without them). Testing on
>> MSC/GCC/Clang on Darwin/Android/Windows/Linux.
>>
>> With little endian wire format and use of 32-bit or 64-bits limbs on all
>> modern systems (sparc9, power8, x86, arm) BN_bn2binle routine would
>> essentially be memcpy. That's the sad part.
>>
>> So with big-endian wire-formats, practically all machines are going to
>> bswap as the internal rep will be little endian. That cost is probably
>> low compared to the cost of the computation, so there is a reasonable
>> rationale to stick to big-endian.
>>
>>   BSWAP is one 1 cycle per 32-bit word on i386
>>   BSWAP is one 1 cycle per 64-bit word on x86_64
>>   BSWAP has been around since i486
>>
>> Someone starting today would indicate endianness statically or
>> dyanamically in their number format and use the hot potato principle.
>> Get it off your hands at the lowest cost to yourself, which nowadays is
>> little-endian. Remember GHASH is Bit Reflected (base 2 little endian)
>> and it made it into a spec.
> 
>  Re GHASH. It doesn't matter in hardware either way, as reflection is
> just relabeling, but in software you have to do some weird twists to
> make it work out. Even Intel's carryless multiplies do things the
> natural way. By contrast the Curve25519 format we are deciding is
> between s[0..31] is s[0]+256*s[1]+..256^(31)*s[31], or
> 256^(31)*s[0]+256^(30)*s[1]+..s[31]: all systems agree on the value of
> each byte, and the question is which bignum it represents. It's easy
> to turn this into whatever internal representation you need, unlike
> swapping bits in a byte.
> 
> Let me see if I get your second line correct. Instead of picking one
> format, and encoding to and from it with a trivial amount of portable
> C, we should use architecture specific micro-optimizations, and force
> the implementation and testing of two distinct output and input
> methods, for a nearly unmeasurable speed gain. Of course, there are
> many architectures where you cannot serialize in the way you suggest:
> unaligned loads and stores are not supported on many MIPS processors,
> and there is no guarantee that alignment of bignum fields will be
> maintained.

I'm not suggesting that. I'm merely illustrating the cost of swaps.
1st and 2nd order little endian: 32-bit or 64-bit limbs, containing
8-bit big-endian limbs ends up as a memcpy on little-endian.

You can then argue either way for little-endian or big-endian based on
this logic, however even small additional costs are redundant for
optimal performance, if one wants to optimize for platforms (as
typically ends up being done). serialization/deserialization is probably
low on the profile as I hint. it still is neither a good case for either
change or tradition. eliminated cost over a large scale of current CPUs
is eliminated cost. it all adds up.

>> Peter makes a pretty good case to stick with big-endian, from a
>> consistency point of view, but not from an efficiency point of view.
> 
> He argued that this would mean automatic OpenSSL nonsupport. Given
> that Rich Salz is on the development team of OpenSSL, I consider this
> unlikely. Furthermore, you can take curve25519-donna and use it today:
> it doesn't entail modifications (which are themselves trivial) to the
> bignum library.
> 
> I am amazed that we are repeating discussions that were had in TLS. Or
> maybe I shouldn't be. At what point can we declare that Curve25519 can
> be adopted by IETF protocols? It would be nice if we could report
> something by Austin, and maybe have a plan to finish up higher
> security levels and signatures by the summer.

Yes. It's not a good argument for non-support. The code is not
difficult. It's all of the established test cases, and if they are
already established within the domain of this curve in its format then
it is clearly harder to change it to another format.

GCM was the other case where the primitive has its own encoding.

The issue really is the inertia from a). how Curve25519 represents and
b). how current implementations have a tradition of representing.

given Curve25519 is new, a *prudent* risk mitigation strategy is to
avoid change, and accept its representation. it is not making any
changes to any existing representation so introduces no risk of
regression when added to * implementations. this is always my stance on
change management when looking at additive changes.


From nobody Tue Jan 27 02:35:09 2015
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 A03261A8766 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 02:35:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.81
X-Spam-Level: 
X-Spam-Status: No, score=-2.81 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rMIYfCXrx48K for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 02:35:05 -0800 (PST)
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 B625C1A8738 for <cfrg@irtf.org>; Tue, 27 Jan 2015 02:35:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1422354905; x=1453890905; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=EImqITEcIztAgYHdsn6UGl8h50Ku4nyMMWK4ohUFNn8=; b=rjDAvSicN4wBY+kVZJ/SKvMkTI/R2Dm5ETXNLIvNLD9goOR2YR3cLqwP /xGxRaVP0WxVRXkSN9yqIF3AeGdTba/+edGBotweC6EoW0mlchQRntXCL k9r9ggJcgA/i8pB24L2R68k4RvwFoN0+2FVYgJHDvjHBAjv4zROjz3CS7 U=;
X-IronPort-AV: E=Sophos;i="5.04,630,1406548800"; d="scan'208";a="303896679"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.112 - Outgoing - Outgoing
Received: from uxchange10-fe1.uoa.auckland.ac.nz ([130.216.4.112]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 27 Jan 2015 23:34:59 +1300
Received: from UXCN10-TDC05.UoA.auckland.ac.nz ([169.254.9.148]) by uxchange10-fe1.UoA.auckland.ac.nz ([130.216.4.112]) with mapi id 14.03.0174.001; Tue, 27 Jan 2015 23:34:59 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AdA6HOWyc3EIrAHPSf+7q6EEIfAl2Q==
Date: Tue, 27 Jan 2015 10:34:58 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.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/CHE1iKRWSLuWH4RLUibItTbwY7M>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 10:35:07 -0000

Michael Clark <michael@metaparadigm.com> writes:=0A=
=0A=
>This code could do with some optimization, bswap(32|64) intrinsic (uses BS=
WAP=0A=
>machine instruction on x86_64, ARM, etc), working with a machine word size=
=0A=
>loop with a small tail loop to handle the modulus of the difference in len=
gth=0A=
>of the bignum from the machine word size. It is working byte by byte.=0A=
=0A=
This is another example of "I can't believe we're having this discussion".=
=0A=
We're talking about bignum operations measured in the millions of CPU cycle=
s=0A=
(a basic 1024-bit RSA decrypt is about 10M cycles, with P256 it's 7M cycles=
,=0A=
courtesy of the Crypto++ benchmark data) and you're bringing up optimising=
=0A=
something that might take a few hundred cycles (ignoring memory latency=0A=
overhead, which is going to hit you at some point whether you endian-revers=
e=0A=
or not).=0A=
=0A=
The issue isn't about whether a 0.001% overhead is worth applying custom=0A=
architecture-specific assembly-language to eliminate, it's the issue of=0A=
encoding a particular implementation artefact into a standard.  As djb has=
=0A=
helpfully pointed out, he could have decided to encode the values as ASCII=
=0A=
decimal digits, or perhaps doodles, sign language, and squirrel noises.  Wo=
uld=0A=
crypto standards then require that everything using 25519 be able to encode=
=0A=
the output as squirrel noises just because that's what one implementation=
=0A=
does?=0A=
=0A=
The universal standard for crypto bignums is big-endian (things like=0A=
curve25519-sha256@libssh.org aren't a standard, it's what one implementatio=
n=0A=
chooses to do).  The 25519 form is an implementation artefact and should ha=
ve=0A=
no place in a standard.=0A=
=0A=
Peter.=0A=


From nobody Tue Jan 27 02:56:52 2015
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 586C51A8792 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 02:56:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZdSs7GWR9JDF for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 02:56:47 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 85F0A1A8790 for <cfrg@irtf.org>; Tue, 27 Jan 2015 02:56:47 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 936DFBE57; Tue, 27 Jan 2015 10:56:45 +0000 (GMT)
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 wjm1laUJteoD; Tue, 27 Jan 2015 10:56:45 +0000 (GMT)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 71A96BDCB; Tue, 27 Jan 2015 10:56:45 +0000 (GMT)
Message-ID: <54C76EED.6090205@cs.tcd.ie>
Date: Tue, 27 Jan 2015 10:56:45 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>,  "'cfrg@irtf.org'" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/cJfo-R7UpZ34smNn27XS5lZZ36M>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 10:56:50 -0000

On 27/01/15 10:34, Peter Gutmann wrote:
> The universal standard for crypto bignums is big-endian

Hmmm.... sez who? :-)

But seriously, if in fact this makes little or no difference,
which I believe is the case, and which I believe you are also
arguing, then what is the problem with going with the initial
coder's choice here?

If there is no problem then just doing that and making sure
it's properly documented should be just fine I'd have thought.

S.


From nobody Tue Jan 27 03:03:18 2015
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 6F6F31A6FD5 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:03:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level: 
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IstejxgwiyHT for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:03:15 -0800 (PST)
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 70B651A6F3C for <cfrg@irtf.org>; Tue, 27 Jan 2015 03:03:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1422356596; x=1453892596; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=xIKkRAh+XgYTlStx5GX0G5mQw3ksf2SXB2/uGUSIs6w=; b=ukh2G880mAeLF1cUtWfgy2BHB6+J+lqL9oTdkrggonSFZfYLuxC1i14T uq9Jmy0MJjD8ggN5fJF7NSuJsIRP6KxpS8v3uy22KqM351VpEKubCsZrT nzNlSfCc7fMWZvF9JVBPfq9lEoJ7cPcDBgsJx/IET4M5DiPWuqJxphTCu c=;
X-IronPort-AV: E=Sophos;i="5.04,630,1406548800"; d="scan'208";a="303898612"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.112 - Outgoing - Outgoing
Received: from uxchange10-fe1.uoa.auckland.ac.nz ([130.216.4.112]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 28 Jan 2015 00:03:14 +1300
Received: from UXCN10-TDC05.UoA.auckland.ac.nz ([169.254.9.148]) by uxchange10-fe1.UoA.auckland.ac.nz ([130.216.4.112]) with mapi id 14.03.0174.001; Wed, 28 Jan 2015 00:03:13 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AdA6INg6e2ZuOkeVSD2zBWk6zWRLNg==
Date: Tue, 27 Jan 2015 11:03:13 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.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/1G_XIN98Tt9OLYKbJvoktdhui-U>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 11:03:17 -0000

Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:=0A=
>On 27/01/15 10:34, Peter Gutmann wrote:=0A=
>> The universal standard for crypto bignums is big-endian=0A=
>Hmmm.... sez who? :-)=0A=
=0A=
Name any significant IETF (i.e. CFRG-relevant) crypto standard that uses=0A=
little-endian bignums.=0A=
=0A=
>But seriously, if in fact this makes little or no difference, which I beli=
eve=0A=
>is the case, and which I believe you are also arguing, then what is the=0A=
>problem with going with the initial coder's choice here?=0A=
=0A=
Because, as I've already pointed out in an earlier message, if the universa=
l=0A=
standard is big-endian and the vast majority of your potential user base (v=
ia=0A=
OpenSSL, not sure about MS CryptoAPI) only does big-endian, then choosing a=
=0A=
format that's not big-endian is a really bad idea.=0A=
=0A=
Peter.=


From nobody Tue Jan 27 03:10:48 2015
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 1985D1A8794 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:10:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.347
X-Spam-Level: 
X-Spam-Status: No, score=-0.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FRT_LITTLE=1.555, 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 02qoLoHS6qbc for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:10:40 -0800 (PST)
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 5245C1A8785 for <cfrg@irtf.org>; Tue, 27 Jan 2015 03:10:39 -0800 (PST)
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
From: Alyssa Rowan <akr@akr.io>
Date: Tue, 27 Jan 2015 11:10:37 +0000
To: cfrg@irtf.org
Message-ID: <438293CC-127B-4B7E-90CF-58801DE7D7AA@akr.io>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/b4n8TCTM0Udg9slLsdP0ay4szeM>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 11:10:46 -0000

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

On 27 January 2015 11:03:13 GMT+00:00, Peter Gutmann <pgut001@cs.auckland.ac.nz> wrote:
>Because, as I've already pointed out in an earlier message, if the universal standard is big-endian and the vast majority of your potential user base (via OpenSSL, not sure about MS CryptoAPI) only does big-endian, then choosing a format that's not big-endian is a really bad idea.

Well, OpenSSL, via Rich Salz, seems to be perfectly okay with the draft's endian as it is. (As is BoringSSL, via agl, of course.)

They're obviously going to use the specialised routines, not generic bignum ones.

Can't see the problem here with it as it is. I can see a problem with changing it.

+1 little-endian here.

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

iQI3BAEBCgAhBQJUx3IsGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6OxkP/0rkQ/fCl6pm1jRvMG+LrBBgkN9pDAqACbX3EO1rdRZ3p4IBL+P+
Yutocm9g07AmjNL42cQ80SKY4wjEceddtvt7AS7a3ajYQTs92wtyUIUyGM7J5OO1
3fPdlmeGPxPDkarzs4Q9Tg/bswQjIu3OVmcxG7EZmJtOE8S05P+WGUdn1QAXImX4
zbvZaYOUXnDN7/cgbrzNVibz90847gOa4jymez8l4/NuPd/KMe4fuglFCrgrn4tq
H21MMWn6/8DXyWUWMOzFTK4FKluPYaZUaHoQZDtjdwyhMi8+d2VgbPoiAdISh+Cc
UP0GlQlkzHnu/AvoW1mGSCJBj9NsVDeBiLt6F+W10jEZabDKbbuPMShZBMx6q0Gy
b7WGR6cOQO+nEYachxzsDUuX05TD4Ank/nrQwVSDI4Qvoy8AgDIsF/0Wfec97Zg9
wQDzbPoZAOrS60Rmb9y8Gs8bUvUDlzxaY6YRb8x/k+ykO9KmkitUHmCmdJE1ZCOj
Stiy5NJuJFuvF8C/hTNFjNgzIZ2DV35S4dq4NOmJuIjJuB2/mVWfRbx2RaxYwSZ+
v6AWc2wzmOufT6qo6tBalqnnzVaEgGEV+o+gdBedAOF/PM8dFr1pNaqoa3dSbdlJ
ffdsbwxyPx8UePfy80AwqeKH/+jSwBgZ68SAAt9CqXabWgUBW3AZ7aIO
=KxgR
-----END PGP SIGNATURE-----


From nobody Tue Jan 27 03:16:18 2015
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 AAB7E1A8794 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:16:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FdQQqjoZS-7z for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:16:12 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A040A1A879B for <cfrg@irtf.org>; Tue, 27 Jan 2015 03:16:07 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 78B1CBE8B; Tue, 27 Jan 2015 11:16:06 +0000 (GMT)
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 Ak_XElCwTNXr; Tue, 27 Jan 2015 11:16:06 +0000 (GMT)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 5B062BE88; Tue, 27 Jan 2015 11:16:06 +0000 (GMT)
Message-ID: <54C77376.3080005@cs.tcd.ie>
Date: Tue, 27 Jan 2015 11:16:06 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>,  "'cfrg@irtf.org'" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/BtV78nIDlFqHxifteDz738mLqog>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 11:16:14 -0000

On 27/01/15 11:03, Peter Gutmann wrote:
> Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:
>> On 27/01/15 10:34, Peter Gutmann wrote:
>>> The universal standard for crypto bignums is big-endian
>> Hmmm.... sez who? :-)
> 
> Name any significant IETF (i.e. CFRG-relevant) crypto standard that uses
> little-endian bignums.

Maybe this one? The point is that if we don't care much
then we don't care much.

> 
>> But seriously, if in fact this makes little or no difference, which I believe
>> is the case, and which I believe you are also arguing, then what is the
>> problem with going with the initial coder's choice here?
> 
> Because, as I've already pointed out in an earlier message, if the universal
> standard is big-endian and the vast majority of your potential user base (via
> OpenSSL, not sure about MS CryptoAPI) only does big-endian, then choosing a
> format that's not big-endian is a really bad idea.

You didn't say why. Why is it a bad idea? What is the downside?
("only does big-endian" isn't it clearly, because if the little
endian form were adopted here that'd no longer be true so the
question is how that'd cause problems if the spec called for it
to be done.)

I'm really asking there and not point-scoring btw. mostly because I
think this entire process has been quite fraught about even the
least important things, and I'd hope we don't do that to ourselves
again;-)

S.


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


From nobody Tue Jan 27 03:45:04 2015
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 E751A1A876C for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:45:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level: 
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xWcy17PebD_Q for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:44:59 -0800 (PST)
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 B28191A877B for <cfrg@irtf.org>; Tue, 27 Jan 2015 03:44:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=uoa; t=1422359099; x=1453895099; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=P8sz828DmydjIQwvhcD0ims0lFms5iH6ridj57tIEi8=; b=q9YTIQCLvwhAZrdd4Pj+C9DY2EHCeMlmbtuw8OJKseo7D+QvLk5lIXNx M4jh9zkcSgL/CICV4KqWXax/txv57lZEQ17tOj11caQSKYelcSa1QLJdq 8PARl1BV2ViFIEGzfAIHSvGraaUeWjW8ZEsz/1xRHpdsx7bjFLMOPD4C1 o=;
X-IronPort-AV: E=Sophos;i="5.04,630,1406548800"; d="scan'208";a="303901618"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.125 - Outgoing - Outgoing
Received: from uxchange10-fe3.uoa.auckland.ac.nz ([130.216.4.125]) by mx2-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 28 Jan 2015 00:44:54 +1300
Received: from UXCN10-TDC05.UoA.auckland.ac.nz ([169.254.9.148]) by uxchange10-fe3.UoA.auckland.ac.nz ([169.254.143.234]) with mapi id 14.03.0174.001; Wed, 28 Jan 2015 00:44:47 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AdA6JqZyE82jbGIkR3GvMKslgwBkuA==
Date: Tue, 27 Jan 2015 11:44:46 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73AAF683E5@uxcn10-tdc05.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/0OwPSNHpx-sppW3ZCJdQIUko7Co>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 11:45:01 -0000

Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:=0A=
=0A=
>You didn't say why. Why is it a bad idea? What is the downside?=0A=
=0A=
The fact that it's one more piece of special-case code to add, debug, and t=
est=0A=
when we've already got perfectly-functional, debugged, and tested code, som=
e=0A=
of it in active use for twenty years or more, to do it present everywhere t=
hat=0A=
uses bignums.=0A=
=0A=
(Another issue is that using a nonstandard form for representing the values=
 is=0A=
bound to cause interop problems in the future when the 25519 form is the=0A=
opposite to what everything else does.  Look at the mess that occurred duri=
ng=0A=
the AES competition with different endiannesses used in various algorithms,=
=0A=
until the problems were pointed out at the second AES conference by someone=
=0A=
who'd actually implemented things from the spec ("Implementation Experience=
=0A=
with AES Candidate Algorithms") and NIST revised the requirements).=0A=
=0A=
If the "spec" for 25519 is going to be "the standard is to blindly do whate=
ver=0A=
djb's code does" then there's no need for a spec or any CFRG involvement, j=
ust=0A=
provide a link to djb's code, since that'll be the spec.  It's decent code,=
=0A=
I'm not complaining about it, but the CFRG shouldn't be pretending to be=0A=
setting any standard if it's just "do whatever this code happens to do".  T=
he=0A=
code then becomes the spec.=0A=
=0A=
Peter.=0A=


From nobody Tue Jan 27 03:59:33 2015
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 27CFE1A87AB for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:59:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DHGSiWTtPqkN for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 03:59:29 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2EAB41A876C for <cfrg@irtf.org>; Tue, 27 Jan 2015 03:59:29 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 01383BE8F; Tue, 27 Jan 2015 11:59:28 +0000 (GMT)
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 HU_F-K9Nr1ZZ; Tue, 27 Jan 2015 11:59:27 +0000 (GMT)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id D2F12BE87; Tue, 27 Jan 2015 11:59:27 +0000 (GMT)
Message-ID: <54C77DA0.7000603@cs.tcd.ie>
Date: Tue, 27 Jan 2015 11:59:28 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>,  "'cfrg@irtf.org'" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF683E5@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF683E5@uxcn10-tdc05.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/8St-M6-gIpXxEB-LMK0Ykj2tCSE>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 11:59:32 -0000

Hiya,

On 27/01/15 11:44, Peter Gutmann wrote:
> Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:
> 
>> You didn't say why. Why is it a bad idea? What is the downside?
> 
> The fact that it's one more piece of special-case code to add, debug, and test
> when we've already got perfectly-functional, debugged, and tested code, some
> of it in active use for twenty years or more, to do it present everywhere that
> uses bignums.

It would be a special case, yes, and there is a small downside
there I guess.

I'm not sure how much implementation and deployment of current
25519 ought weigh against that, but its a trade-off, not a
slam dunk, esp as the special-case code is not at all special
in this case. (Remembering to do it is special I guess, but
what you do is not a deal, and if you get it wrong your first
test vector check will tell you immediately.)

> (Another issue is that using a nonstandard form for representing the values is
> bound to cause interop problems in the future when the 25519 form is the
> opposite to what everything else does.  Look at the mess that occurred during
> the AES competition with different endiannesses used in various algorithms,
> until the problems were pointed out at the second AES conference by someone
> who'd actually implemented things from the spec ("Implementation Experience
> with AES Candidate Algorithms") and NIST revised the requirements).

I'd think that a change from the current (albeit smallish) amount
of deployed stuff is more likely to result in interop issues actually
since some code won't be updated no matter what an RFC says. But
again, I don't see a showstopper argument there either way.

FWIW, I don't own relevant code here, but I'd go with the current
implementations myself as I don't think the special case is a real
problem. Confusion and having to go and change existing code are
IMO bigger downsides in this particular case. Not by much, but then
this particular choice is not hugely important, as we all I hope
agree.

> 
> If the "spec" for 25519 is going to be "the standard is to blindly do whatever
> djb's code does" then there's no need for a spec or any CFRG involvement, just
> provide a link to djb's code, since that'll be the spec.  It's decent code,
> I'm not complaining about it, but the CFRG shouldn't be pretending to be
> setting any standard if it's just "do whatever this code happens to do".  The
> code then becomes the spec.

The series of humongous mail threads this RG has gone through just
to get to this point makes it clear that "blindly do" etc. is just
incorrect.

S.

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


From nobody Tue Jan 27 06:33:56 2015
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 C64D01A87E8 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 06:33:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.61
X-Spam-Level: 
X-Spam-Status: No, score=-2.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HY82CuOR-No1 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 06:33:50 -0800 (PST)
Received: from prod-mail-xrelay08.akamai.com (prod-mail-xrelay08.akamai.com [96.6.114.112]) by ietfa.amsl.com (Postfix) with ESMTP id AABEE1A87CE for <cfrg@irtf.org>; Tue, 27 Jan 2015 06:33:50 -0800 (PST)
Received: from prod-mail-xrelay08.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id E5D184891D; Tue, 27 Jan 2015 14:33:48 +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 DA76E488C7; Tue, 27 Jan 2015 14:33:48 +0000 (GMT)
Received: from email.msg.corp.akamai.com (ustx2ex-cas4.msg.corp.akamai.com [172.27.25.33]) by prod-mail-relay08.akamai.com (Postfix) with ESMTP id D6E5A9803D; Tue, 27 Jan 2015 14:33:48 +0000 (GMT)
Received: from USTX2EX-DAG1MB2.msg.corp.akamai.com (172.27.27.102) by ustx2ex-dag1mb3.msg.corp.akamai.com (172.27.27.103) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 27 Jan 2015 08:33:30 -0600
Received: from USTX2EX-DAG1MB2.msg.corp.akamai.com ([172.27.6.132]) by ustx2ex-dag1mb2.msg.corp.akamai.com ([172.27.6.132]) with mapi id 15.00.0913.011; Tue, 27 Jan 2015 08:33:17 -0600
From: "Salz, Rich" <rsalz@akamai.com>
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
Thread-Index: AdA6INg6pao06C8ur0y+dn307ElqFQAHUj1w
Date: Tue, 27 Jan 2015 14:33:17 +0000
Message-ID: <9acd78f5eaf8419297ef08623605cf77@ustx2ex-dag1mb2.msg.corp.akamai.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.19.60.148]
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/hiqI1zXbc6pvREmdPktQXRDQ1hg>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 14:33:53 -0000

> Because, as I've already pointed out in an earlier message, if the univer=
sal
> standard is big-endian and the vast majority of your potential user base =
(via
> OpenSSL, not sure about MS CryptoAPI) only does big-endian, then choosing
> a format that's not big-endian is a really bad idea.

OpenSSL does not care.  I speak as a member of the development team.


From nobody Tue Jan 27 07:41:21 2015
Return-Path: <derek@ihtfp.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 4447D1A1A68 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:41:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.289
X-Spam-Level: 
X-Spam-Status: No, score=-1.289 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_ORG=0.611] 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 6vGucr6gDNtr for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:41:16 -0800 (PST)
Received: from mail2.ihtfp.org (MAIL2.IHTFP.ORG [204.107.200.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4DF481A1A60 for <cfrg@irtf.org>; Tue, 27 Jan 2015 07:41:16 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail2.ihtfp.org (Postfix) with ESMTP id 15709E203A; Tue, 27 Jan 2015 10:41:15 -0500 (EST)
Received: from mail2.ihtfp.org ([127.0.0.1]) by localhost (mail2.ihtfp.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 13689-07; Tue, 27 Jan 2015 10:41:13 -0500 (EST)
Received: from securerf.ihtfp.org (unknown [IPv6:fe80::ea2a:eaff:fe7d:235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mocana.ihtfp.org", Issuer "IHTFP Consulting Certification Authority" (verified OK)) by mail2.ihtfp.org (Postfix) with ESMTPS id 909C9E2039; Tue, 27 Jan 2015 10:41:13 -0500 (EST)
Received: (from warlord@localhost) by securerf.ihtfp.org (8.14.8/8.14.8/Submit) id t0RFfCFm007049; Tue, 27 Jan 2015 10:41:12 -0500
From: Derek Atkins <derek@ihtfp.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie>
Date: Tue, 27 Jan 2015 10:41:11 -0500
In-Reply-To: <54C76EED.6090205@cs.tcd.ie> (Stephen Farrell's message of "Tue,  27 Jan 2015 10:56:45 +0000")
Message-ID: <sjm386wjko8.fsf@securerf.ihtfp.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: Maia Mailguard 1.0.2a
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/FIpDhj3VvkotfK-KMACPWhegUho>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 15:41:19 -0000

Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:

> On 27/01/15 10:34, Peter Gutmann wrote:
>> The universal standard for crypto bignums is big-endian
>
> Hmmm.... sez who? :-)

PKIX, OpenPGP, OpenSSH, Kerberos, TLS...  Pretty much every existing
IETF security standard I know of to date encodes numbers in big-endian
format.

> But seriously, if in fact this makes little or no difference,
> which I believe is the case, and which I believe you are also
> arguing, then what is the problem with going with the initial
> coder's choice here?
>
> If there is no problem then just doing that and making sure
> it's properly documented should be just fine I'd have thought.

It would mean a completely separate code path to support 25519 versus
supporting most (all?) existing ECC curves.

> S.

-derek
-- 
       Derek Atkins                 617-623-3745
       derek@ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant


From nobody Tue Jan 27 07:43:46 2015
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 7AE011A8957 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:43:45 -0800 (PST)
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, 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 p0vXPoIJVhRn for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:43:42 -0800 (PST)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 3C02B1A885A for <cfrg@irtf.org>; Tue, 27 Jan 2015 07:42:09 -0800 (PST)
Received: from xct106cnc.rim.net ([10.65.161.206]) by mhs213cnc.rim.net with ESMTP/TLS/AES128-SHA; 27 Jan 2015 10:41:50 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT106CNC.rim.net ([fe80::d824:6c98:60dc:3918%16]) with mapi id 14.03.0210.002; Tue, 27 Jan 2015 10:41:50 -0500
From: Dan Brown <dbrown@certicom.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15g==
Date: Tue, 27 Jan 2015 15:41:50 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5D42BDA@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_0010_01D03A1D.DB352460"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/2cMNhxWDMjvCvcHcUvtiGe8l-jU>
Subject: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 15:43:45 -0000

------=_NextPart_000_0010_01D03A1D.DB352460
Content-Type: multipart/related;
	boundary="----=_NextPart_001_0011_01D03A1D.DB352460"


------=_NextPart_001_0011_01D03A1D.DB352460
Content-Type: multipart/alternative;
	boundary="----=_NextPart_002_0012_01D03A1D.DB352460"


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

Dear CFRG,

 

IEEE 1363-2000, ANSI X9, NIST 800-56A and SEC1 use 

 

#10) short-Weierstrass representation for EC points, which is nice because
any elliptic curve, including the latest and greatest, can be represented in
this form, and 

#01) big-endian (MSB-first) octet string representation for prime-field
elements, which is admittedly somewhat arbitrary (with no effect on
security) although somewhat consistent with various old-fashioned notations
for numbers

#11) KDFs based on hash functions SHA1 and SHA2 which are kind of big-endian

 

If raw Curve25519 implementations operate on input and outputs of byte
strings, in whatever order and curve shape, then it shouldn't be too hard
for applications using the raw Curve25519 implementation to shift the
input/output coordinates from/to short Weierstrass (yes, one has to choose
the a-value for this), and then unsort/sort the octets into MSB-first order

 

I appreciate that currently, TLS is thinking to use Curve25519 a named
curve, specified by an OID, and then determine all point representations,
including the internal used ones used in the KDF and signatures, based on
the named curve.  That should work too for TLS and any easily updatable
software.  

 

But I wonder if there are any old implementations of the standards I listed
above, that accept generic specified short Weierstrass curves, but lock
together the KDF and raw ECDH operations.  Users stuck with such
implementations couldn't gain _all_ the benefits of Curve25519, side channel
resistance or whatever, but surely there's some residual benefits for them
to use Curve25519 with a generic representation: maybe the rigidity
Curve25519, or interoperability with other users with the newfangled
software, not to mention the blessing of the collective wisdom of CFRG.  

 

If the argument is that no such implementations could exist, or that the
implementations, or even old ECC standards, are so bad that we should try to
discourage interoperability, then please present that case.

 

Best regards,

 


Daniel Brown


Research In Motion Limited 

 

	

 




	

 


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

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-CA>Dear CFRG,<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>IEEE 1363-2000, ANSI X9, NIST 800-56A and SEC1 use =
<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>#10) short-Weierstrass representation for EC points, which =
is nice because any elliptic curve, including the latest and greatest, =
can be represented in this form, and <o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA>#01) big-endian (MSB-first) octet =
string representation for prime-field elements, which is admittedly =
somewhat arbitrary (with no effect on security) although somewhat =
consistent with various old-fashioned notations for =
numbers<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>#11) KDFs based on hash functions SHA1 and SHA2 which are =
kind of big-endian<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>If raw Curve25519 implementations operate on input and =
outputs of byte strings, in whatever order and curve shape, then it =
shouldn&#8217;t be too hard for applications using the raw Curve25519 =
implementation to shift the input/output coordinates from/to short =
Weierstrass (yes, one has to choose the a-value for this), and then =
unsort/sort the octets into MSB-first order<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA>I appreciate that currently, TLS is =
thinking to use Curve25519 a named curve, specified by an OID, and then =
determine all point representations, including the internal used ones =
used in the KDF and signatures, based on the named curve.&nbsp; That =
should work too for TLS and any easily updatable software.&nbsp; =
<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>But I wonder if there are any old implementations of the =
standards I listed above, that accept generic specified short =
Weierstrass curves, but lock together the KDF and raw ECDH =
operations.&nbsp; Users stuck with such implementations couldn&#8217;t =
gain _<i>all</i>_ the benefits of Curve25519, side channel resistance or =
whatever, but surely there&#8217;s some residual benefits for them to =
use Curve25519 with a generic representation: maybe the rigidity =
Curve25519, or interoperability with other users with the newfangled =
software, not to mention the blessing of the collective wisdom of =
CFRG.&nbsp; <o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>If the argument is that no such implementations could =
exist, or that the implementations, or even old ECC standards, are so =
bad that we should try to discourage interoperability, then please =
present that case.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-CA>Best regards,<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-CA><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
width=3D750 style=3D'width:6.25in'><tr><td style=3D'padding:0in 0in =
3.0pt 0in'><p class=3DMsoNormal style=3D'line-height:11.25pt'><span =
style=3D'font-size:9.0pt;font-family:"Arial","sans-serif";color:black'>Da=
niel Brown<o:p></o:p></span></p></td></tr><tr><td style=3D'padding:0in =
0in 0in 0in'><p class=3DMsoNormal style=3D'margin-top:3.75pt'><span =
style=3D'font-size:9.0pt;font-family:"Arial","sans-serif";color:#0073BC'>=
Research In Motion Limited</span><span =
style=3D'font-size:9.0pt;font-family:"Arial","sans-serif";color:black'> =
<o:p></o:p></span></p></td></tr></table><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif";display:none'><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
width=3D750 style=3D'width:6.25in'><tr><td style=3D'padding:0in 0in 0in =
0in'></td></tr></table><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif";display:none'><o:p>&nbsp;</o:p></span></p><table =
class=3DMsoNormalTable border=3D0 cellspacing=3D3 cellpadding=3D0 =
width=3D750 style=3D'width:6.25in'><tr><td style=3D'padding:9.75pt 0in =
0in 0in'><p class=3DMsoNormal><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman","serif"'><img =
width=3D176 height=3D43 id=3D"_x0000_i1025" =
src=3D"cid:image001.jpg@01D03A1D.D98132D0"></span><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman","serif"'><o:p></o:p></span></p></td></tr><tr><td width=3D750 =
style=3D'width:6.25in;padding:9.75pt 0in 0in 0in'></td></tr></table><p =
class=3DMsoNormal><span =
lang=3DEN-CA><o:p>&nbsp;</o:p></span></p></div></body></html>
------=_NextPart_002_0012_01D03A1D.DB352460--

------=_NextPart_001_0011_01D03A1D.DB352460
Content-Type: image/jpeg;
	name="image001.jpg"
Content-Transfer-Encoding: base64
Content-ID: <image001.jpg@01D03A1D.D98132D0>

/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAArALADASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK
U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3
uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3qW6t
4W2yzxRn0dwKV7iGOMSPNGqN0YsADXjPxI8IXfibxi88HifSrRFjSJLaa42up75Ge9TeLfBN4fB/
h/QD4nsLeSzDSSS3c+wy59OeQKAPYY5Y5l3RSI6+qtkU+vI9GY/CHwJLqWpXw1b7VcqI0tnynOcb
Sf1rpvAfxHtPHUt3DBYzWslsoZvMIIIP0oA7aivPPGfxWtPB+vLpLabPdyGISFomAxk9KydN+O+k
XOpRWl7pd3ZrIwXzXIIXPqKAPWaK4vxD8Q7XQvFWk6ClnJdTaiFKSRsNqhjgZ/nXaUAFFFFABRRX
GWXxBgv/AIhXHhOCxlLQAl7ncNnAz0/SgDs6Kiup1tbSa4f7sSM5+gGa8gHx/sn3GPQLx1B+8GFA
HslFcV4I+JeleNpZbaCKW1vI13GGUglh6giu1oAKKKKACiiigAooooA8W174Jahr/iu91abWYI47
q4MuBEdyL6A034heB7PX9bs4pfFOnWn2C0S1WG5OX47n3Ne115F4l+C03iTxLd6vNrpi+0uGKCLO
0DoPyoGU/Et1o/w38JaHoGo6emvrIXlBkfaqkY5A9OeK7H4Yaro2teH5LzSNFXSh5mySMc7j6g9x
WzL4M0G8tLODUNNgvjaxCKN7hNzACtW00+102yFrYW8VtCoOxI1wBQI+cNZ8SiH4x3+srp7anFbS
FEhUZ6ADP55pdQ1h/ip4t0vTYrC00gI3O/Cs3PI9zxwKl8MeIG+HXirXjrGj3U91PKQuIzwNxOQf
fIqxp76n8R/ijZ6vZ6S1jb2zIzuUIAC9ycDJPSgZsWMK6z+0CsK5e10uEIhPbYgx+tT/ABAuvEWo
eJ3srvxDZaBoyEiM/aPncf3io5z7Vh+CtafRPiV4ghvLS6bU9RleG1IjzscscE56L05rntDvtF07
WdUfxnpF/qWomU+VGwJBbJ+8PfjmgDf8CeI7zQvH66ZB4gl1bR/Kd5ZWBwQqkkgEk8VNBL4v+Lmu
Xz2Wovp+kwMVTa5VQO3Tkk1V+GmlDxD4w190shYL9hlWGEIVWPflcc+maTwR42uPhi2o6Hq2lzuv
mFl2rg7hx+IPFAHReC7jxt4R8YPo+tRXd5pG1t1wRuRAASGDfhXFeHvHMXhzXfEeteWbjUbtmSyB
HyqSx5J9MYrsrLx54u1zw94i1a/t4rfRYrdkhRYCHZm+UKD3wD1rmtH+Gg1H4T3GvIkp1QHzIVOR
+7XqMdyeaANubQte03wLq3inxPqly19PFm2tPNIVS3dh647Vzngzx6PB3h6W2bw39s82Qv8AaHUb
c4x6dK6DVNT1Lxn8Dkjgile+02dFu02ncyKCN2O/b8qjtfira6f4Mh0O18OTSzLbeQTJGdpYjBPT
nmgCv4GkXRrPXPiLO9tvVXigs4T0dz0I7dKzbSXU/GMc2sar48tdMuC58m2knKnjtgEbR+danhrw
Hrdx8L/EMr28kU16yTW9uy4LBMngds5/Sub0y+8G2uiGDWPDl/LrUeVAViqOe2e4oA9E+G3xGvjo
muw61OLttIhMyT5z5ijIxnv04+tYeiw+L/HS3Pi271x7PTbaUuI1YgMqHJQAflz61VurRNN+FWoa
nBob6ZcanLHBFGXZ2kjB5OMcV192G8N/s9rEkbJc3FsBtC8h3OTx9KAMDQovGHxU1K41NdYfT9Jg
m2pGpI4/ugD271e+FPiWfTV8V/21fSyRaf8AODM5OACw7+vFdp8IdMbTfh3YCRNksxaVwR6nj9K8
U8R6PqFz8UNW8O6c7gX12FZVPBXg5P05oA9E+Fv9seLPEmo+LNRubhbESMtrb7zsyfbuAOK9irO0
HRrbw/olrpdooEVugXOPvHuT7k1o0CCiiigAooooAhms7a4YNNbxSMOhdAafFDFAmyGNI1/uouBT
6KAKzafZvdi6a0gNwOkpjG4fj1psml6fNci5lsrd5wc+Y0QLfnVuigCGO1t4pWljgjSRvvMqAE/j
UVzplheuHurK3ncDAaSMMR+dW6KAIfstv9nFv5EfkjgR7Bt/KnpDHFEIo41WMDAVRgflT6KAIYbW
3t93kwRx7vvbEAz9ajGm2IYMLO3DA5B8sVaooAKpSaRps05nl0+1eUnJdolJz9cVdooAiltoJ0CT
QxyKvQOoIFElvBLEIpIY3jHRWUEflUtFAFDVJriw0e4k060E1xHGfJgXgM3YfSvPPhb4J1PTtQ1D
xH4khK6tdSEIrNuKKepz78D8K9SooAKKKKAP/9k=

------=_NextPart_001_0011_01D03A1D.DB352460--

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3duQHJpbS5uZXSB
E2Ricm93bkBjZXJ0aWNvbS5jb20wHQYDVR0OBBYEFFdFrujr5LyMGa3Hl1U4MTjlEtfvMB8GA1Ud
IwQYMBaAFObbryVSYEL0jYI1VF2A64ahrO/cMIIBMQYDVR0fBIIBKDCCASQwggEgoIIBHKCCARiG
gctsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1NQ0EwMllL
RixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmln
dXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFz
ZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIZIaHR0cDovL21jYTAyeWtmLnJpbS5u
ZXQvQ2VydEVucm9sbC9SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YuY3JsMIIBQQYI
KwYBBQUHAQEEggEzMIIBLzCBwgYIKwYBBQUHMAKGgbVsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGlu
YXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049
U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNh
dGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MGgGCCsGAQUFBzAChlxo
dHRwOi8vbWNhMDJ5a2YucmltLm5ldC9DZXJ0RW5yb2xsL01DQTAyWUtGLnJpbS5uZXRfUklNJTIw
U3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGKDQpLmNydDANBgkqhkiG9w0BAQUFAAOCAQEActBk
hryrMh5+C+8YiOrR8xi+G1NkUycfNLuz4fYdQzFNB9yWxyRs2K0ydl0X5PZXejhbIif0dFoyaxnh
g/D5hYfeGIhXfAOFG22EpMJWXVOavqYLxslnc2enihWAYcWkjPfE6tf3XMXkodFkMYvEd+qFj8eU
vxbbcR1dBqiBFNNDcKlAKn/oElp/iI/LjUGMEb+tJdHttsGExvQzSd1zwk1U6cOinYD82Y08zA5b
z38l5bE2+plmfX3EQ8vCKYA95psgGg3hsffn150smpY7HeEPGRZh9vglGfi2wnMqY/QgO+qs78dq
O/C1be3quQU3WHQ6YcZr3JP1Rc7yj76K7jCCBr8wggSnoAMCAQICEDIa85KxFFmUTU0vlRGze+Ew
DQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcwFQYKCZImiZPyLGQBGRYH
d2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcNMDYxMDEzMDEyNDU1WhcN
MTYxMDEzMDEzMDQxWjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxFzAVBgoJkiaJk/IsZAEZFgd3
aW5kb3dzMR0wGwYDVQQDExRSSU0gUm9vdCBDQSBNQ0EwMVlLRjCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAMbous78rVQBLT87+jYSuzmZ2osP40BMhFbJA3+cs3BZC0//uT87SG7/nhZi
9Qj9hYby7/HkGSQyheGL/lLIzxDdZV+AwxiirdDT6ck/acEMxWolLdK5xEYEmm6OxLaUuEvg7i/B
vXPpZlsA6m9FFrTzHVX2693w8IoMs9cofr1TAB3YYDnvZTwupz7YifSF02pu1eZiZg09Jjaav9Hy
aNyRGjbwyqFwTpCr+iHW7SsSszyJxulWGgnYCQgE95loK/ZMYhEBFCSq7yNn1yNM0WJ5S+uPILyv
OKXbE9sWSxba+DnWQJuEZCvFPnILq5Ugq+jVap326uv9zejBpsnPUgdgMoZNlUuuu+e1eJwc3mng
/rK6ZOCF1NzUzP/mIEdc1UuNV8L2WqvVH+fY9EyYTfcRlWTvO9XlVa9lXzca9MTqlKcHMYeSWWJF
nJlCRZWIkIdAjNj632g0U06kWUHeBd8VJXFxQFzhob2lyr4pHiOv7rZ1+rwpw8DFMZnp85b/HqTW
rcQ7LiIDljuKX6oBjMs1qNobnUPe/ucp1Kgy19+J61M7MxniBNyqKmLJLMTBd7aiIGnbfYTVl2j/
xJJ2aUQJmj9LNFeWb4Isl8PVK6p1sJkWy0JOx52HNIR0AY16AcikojsoYEkvci+mvuwANq4QT6bE
lSPS2AbNnDSpT7GXAgMBAAGjggGVMIIBkTATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMC
AUYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU1mmCZCQWwcwk2/EUfUcSfNzJTe4wggEpBgNV
HR8EggEgMIIBHDCCARigggEUoIIBEIaBxGxkYXA6Ly8vQ049UklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YsQ049TUNBMDFZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJl
dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGR2h0dHA6
Ly9tY2EwMXlrZi53aW5kb3dzLmxvY2FsL0NlcnRFbnJvbGwvUklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YuY3JsMBAGCSsGAQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4ICAQBDnlhbuDlU58ff
o2JPdog62tn9QXOY9VnrBBiDZeFQmPVicup9e2/4dnw5o4/SnyLaNyxNlno++5Uiar/y0ne8J300
FWVW9cAXtmbfi7jwKour1kgwEFTn3TjGFbuYps553/mTTC3bk6l2f2xUCk1rINqoQVsGomH8RGO5
1YN/mX0rasHPUd7/7Rx/m/ZF9xbii6FUOikq6lMgYn4SEY+e3jsOvyYzwPkiHf6dshGfsZgDUN9b
xNwRxUZttJGRx6gH3Qpk7dUuyw0ixwY9xmVyBVIHvWjyqswF3ntgwmEz92GHIKz/xWxRdkahkSIT
zPjHYya2jI3sfpzU/tigvxCFrG1PQ4BSCNMByqUcfK5STTfJJm/x/ahqnDWlvUP6cFE6V9W10nW8
72BbNzWOypmGIouENEUAhq/ejrw09P0uvyK51vr6mY5z1djF6hLskNC+R11Tpwou+vbhmHEZBKOc
cxCfxDL49O7wlpxu4fcpDYSxBDHMoFZgXVz/ajqqIHcjyQdAM8QGBqgkjE/Dq7NTP7K2Ul1An0nx
DR+YgXe28R+7l5he5GzhIIaJuwHHAtgpbeA1NLY/bBciFoOR+s8ujS3rZtv5M3Q95hmN7trVrYo1
Z3dglmNmLM2KNZWwwHxH4xi//bhaR+/WbfXpEUg+WW0p9Uja9Z443hqVd48MrjCCB0YwggUuoAMC
AQICChJuoPAAAAAAAiswDQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcw
FQYKCZImiZPyLGQBGRYHd2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcN
MTQwNDAyMDA1MTEyWhcNMTYwNDAyMDEwMTEyWjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYK
CZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZS0YwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzrn3UT996pLvUIVlnExxcXGmYftIOq1qMwitW
RCBe2j32VmDvzlJseIkfQuXDqjWnoqoE4sxQjxD5QNwhyBw9eXMCvLjHBW+HM4+HcmGIdan2w17E
4rR+RHVK6NzvkE1Gm4ziBTDr2jzSliZJpowLM+M/+cY2pyym074TQx+QCZQOKIqLnEgZ2uYw4kSj
nCcE7eJ+WmJFq9bX6Cv9SONQfgN5Z3O1N/36lgavm/G6Amt/ePNE0AhcJwxin7Fahkx6/SjRbf0r
Oa8uhCMxK8ebqTqD0+0VpViARFterasW5FTU2rcRFLHwwWV67yoFc2fbozkj5iseBXctM8NmqKt5
AgMBAAGjggMhMIIDHTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTm268lUmBC9I2CNVRdgOuG
oazv3DALBgNVHQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQQwIwYJKwYBBAGCNxUCBBYEFCLdxB/L
akuvuaYdTyqIgHmfibLUMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMB8GA1UdIwQYMBaAFNZp
gmQkFsHMJNvxFH1HEnzcyU3uMIIBKQYDVR0fBIIBIDCCARwwggEYoIIBFKCCARCGgcRsZGFwOi8v
L0NOPVJJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLENOPU1DQTAxWUtGLENOPUNEUCxDTj1QdWJs
aWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPXdpbmRv
d3MsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNS
TERpc3RyaWJ1dGlvblBvaW50hkdodHRwOi8vbWNhMDF5a2Yud2luZG93cy5sb2NhbC9DZXJ0RW5y
b2xsL1JJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLmNybDCCATwGCCsGAQUFBwEBBIIBLjCCASow
gbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1SSU0lMjBSb290JTIwQ0ElMjBNQ0EwMVlLRixDTj1B
SUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlv
bixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0
aWZpY2F0aW9uQXV0aG9yaXR5MGoGCCsGAQUFBzAChl5odHRwOi8vbWNhMDF5a2Yud2luZG93cy5s
b2NhbC9DZXJ0RW5yb2xsL01DQTAxWUtGLndpbmRvd3MubG9jYWxfUklNJTIwUm9vdCUyMENBJTIw
TUNBMDFZS0YuY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCUe8BMuuw2GW4AUAag80hqgwOQyezrSatL
SIadEDvzg3LgXMJcN7onC+1B7vHsMxVMbFz3V+85WSKtzCtaBe5rhUCXLBZEGbM+WPavYgYMnUsD
TpJwSXiDaM9Ym/ZLFsgfo3Qv7rfglydpqPCBfHUEQys2KeBVsDGd7HDK5Nk5fNaSmK0KgIBIvbXR
bJKzhTsuctYGlOf/2nFtuoxWcdhu7t6UR7DbSTerjug7rvCZH4bie5cphsu4lZDXdNRp2IKWVEF6
0VcEK8dXK1hZXEGgjuen7R03uaA+7VsSr7eUZSLiouG7XnvXWik11aNCgBiQcIGsHVRIccHphmfS
sFaZ0Bc+4/c/+K/v7X7RvdE29J9b1DqB2iV2SGZp58M0JLscohJ9uY0SJj8Hwl9YeuznijFBIC2y
Psb1V9CgoRtBl+Ek37tPp1Wm4XSS+as2kcdcsZwiM/LywbFvYDEBa71b0mquxjisPyPvmVccA0e6
WW6RDNYKUqBJsZDpjTbRZkQA7CmzrOK6YHip2F/92ZYmpqM84BsEkLuf6kzzk+r0OVsWaFP+plU3
MfqtAeKtBgJu6yd4SYbA9eFX9ePeIzBaCjTzIcd+CclwA8SeoAgP07Ut2WcB3QnD7fcU6CBegHSd
7504Ty34G+FymbG6ZBBUU0exF44VAplxv4rWFA7mPTGCAvMwggLvAgEBMF4wUDETMBEGCgmSJomT
8ixkARkWA25ldDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEyNzE1NDE0OVowIwYJKoZIhvcNAQkEMRYEFJtH
LoukWKnuSFQS4e2aaH7KqZFHMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYCvmUyIjhe8jGjq5fgjKwY32iHRxLTK
g9dFS+j0uaNyzsSDjzKhpfj2znooY90sDh0EZt5ebr12MsDnP6oF2nr/DemHZ+9yPo4zuZimeV05
Jk0YMhThf84F3UjjTDciiWOcw8GUMZC+oVl/KCaE+Ot36ffX671xIjnH//L5LK/BUQAAAAAAAA==

------=_NextPart_000_0010_01D03A1D.DB352460--


From nobody Tue Jan 27 07:50:02 2015
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 8DCF21A1AA6 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:49:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.61
X-Spam-Level: 
X-Spam-Status: No, score=-2.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QeoszwNttDVr for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:49:55 -0800 (PST)
Received: from prod-mail-xrelay07.akamai.com (prod-mail-xrelay07.akamai.com [72.246.2.115]) by ietfa.amsl.com (Postfix) with ESMTP id 328D71A885E for <cfrg@irtf.org>; Tue, 27 Jan 2015 07:47:01 -0800 (PST)
Received: from prod-mail-xrelay07.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 56F6E476B1; Tue, 27 Jan 2015 15:47:00 +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 4B39A476B0; Tue, 27 Jan 2015 15:47:00 +0000 (GMT)
Received: from email.msg.corp.akamai.com (ustx2ex-cas3.msg.corp.akamai.com [172.27.25.32]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id D020080040; Tue, 27 Jan 2015 15:46:53 +0000 (GMT)
Received: from USTX2EX-DAG1MB2.msg.corp.akamai.com (172.27.27.102) by ustx2ex-dag1mb5.msg.corp.akamai.com (172.27.27.105) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 27 Jan 2015 09:46:40 -0600
Received: from USTX2EX-DAG1MB2.msg.corp.akamai.com ([172.27.6.132]) by ustx2ex-dag1mb2.msg.corp.akamai.com ([172.27.6.132]) with mapi id 15.00.0913.011; Tue, 27 Jan 2015 09:46:28 -0600
From: "Salz, Rich" <rsalz@akamai.com>
To: Derek Atkins <derek@ihtfp.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Thread-Topic: [Cfrg] Point format endian
Thread-Index: AQHQOkfEv6UDf+87+0+bRs5gCExq/ZzUG+qw
Date: Tue, 27 Jan 2015 15:46:28 +0000
Message-ID: <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org>
In-Reply-To: <sjm386wjko8.fsf@securerf.ihtfp.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.19.60.148]
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/H-8NQZpjZMzJ0fxwUeRu2m3p244>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 15:49:59 -0000

> It would mean a completely separate code path to support 25519 versus
> supporting most (all?) existing ECC curves.

Don't they have a different code path for the math implementation?

If the parsing/serialization special-code so onerous?  If so, shouldn't we =
have the Y coordinate?


From nobody Tue Jan 27 08:00:03 2015
Return-Path: <smyshsv@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 E5F5A1A1B35 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:59:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.2
X-Spam-Level: 
X-Spam-Status: No, score=0.2 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.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 7m0F8Svos2fg for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:59:50 -0800 (PST)
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 24A531A887A for <cfrg@irtf.org>; Tue, 27 Jan 2015 07:57:41 -0800 (PST)
Received: by mail-oi0-f53.google.com with SMTP id i138so12972264oig.12 for <cfrg@irtf.org>; Tue, 27 Jan 2015 07:57:40 -0800 (PST)
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=Jp0aGeRpYZmcHoPOGYshUDckIkutvV6blsgjoRuKKsA=; b=0k0Q4dqy3B6Q/8mGra++9EndXby53nb+wiKq881gn5rKbTPsmFUWVB670+eCbda1dZ 1hHEDf4ulZGPT6s0k+2ugqWjbulvWsMAujiqsbV2XUBs/VzReTdZcupADhbykh9BXu91 DEBoJNpJfMwOk3edtHPXKBDonYyuXDTBkNo72itvp80Rjs232t3paATBqLVdrzekJZnF fsf9kRmEbLkleyl/q9iTVNHtowghqps364L9A4uF1EZ//Yf255oWFFmvplVvFfKqefA3 PtfXfkI9dxpMX33dPbCaFdGrXPnKNMBwlk79uTZecdhaMlYQLPP7OeaSY3zGy0qaERaH xVUA==
MIME-Version: 1.0
X-Received: by 10.60.123.14 with SMTP id lw14mr1210758oeb.31.1422374260414; Tue, 27 Jan 2015 07:57:40 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Tue, 27 Jan 2015 07:57:40 -0800 (PST)
Date: Tue, 27 Jan 2015 18:57:40 +0300
Message-ID: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com>
From: =?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCyINCh0LzRi9GI0LvRj9C10LI=?= <smyshsv@gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=047d7b5d47d8879ca4050da4500f
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/1L7W2lPu4MtcHOfjoTFn_mmGPG4>
Subject: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 15:59:53 -0000

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

Good afternoon, dear colleagues,



Currently the proposed draft on elliptic curves generation methods does not
explicitly consider curves with security more than 256 bits.



In Russia we have had a similar lack of 512-bit curves (both twisted
Edwards ones and curves with groups of prime order), so we at CryptoPro
(Russian cryptographic software company) proposed three of them to our
Technical Committee for Standardization =C2=ABCryptography and Security
Mechanisms=C2=BB (http://tc26.ru/en/).



In 2014 after a deep discussion with colleagues these curves were
standardized for usage with Russian national digital signature standard
(GOST R 34.10-2012).



For example, the twisted Edwards 512-bit curve is defined over the field
GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).

p =3D
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7

d =3D
0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E0A5=
15C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550

e =3D 0x1

m =3D
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336E919=
41AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4

q =3D
0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDBA46=
506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED

u(P) =3D 0x12

v(P) =3D
0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4B650=
CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D

a =3D
0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861C0E=
2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3

b =3D
0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2FFF=
719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1

x(P) =3D
0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272A7A=
E602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148


y(P) =3D
0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D33E=
3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F

(The following notation is used for Edwards curve coefficients: eu^2 + v^2
=3D 1 + du^2v^2, while the corresponding Weierstrass curve has form y^2 =3D=
 x^3
+ ax +b. We denote the total number of points on the curve as m and prime
subgroup order as q. We denote base point as P; x(P), y(P) and u(P), v(P)
are respectively base point coordinates in Weierstrass and twisted Edwards
form.)



p and q are prime. The curve has been examined to be secure against
MOV-attacks (thus it can be believed to be DDH-secure) and to satisfy
CM-security requirements. Twisted curve security has also been studied:
twisted curve points group order has a prime factor of:
0x40000000000000000000000000000000000000000000000000000000000000003673245b9=
af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fdaf7,
while the other factor is equal to 4.



The curve can be used both for digital signatures and for Diffie-Hellman
key agreement.



The curve parameters have been generated using random nonce W in such way
that e =3D 1, d =3D hash(W), where hash() is Russian national standard GOST=
 R
34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D,
https://www.streebog.net/en/). The seed value W is equal to:

W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 A5 =
AF
09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2 5E AF
FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC 7E D6
D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,



GOST R 34.11-2012 (Streebog) implementation can be found at
https://github.com/okazymyrov/stribog, for example.



The base point has been selected as a point with the smallest u-coordinate,
satisfying curve equation and having order equal to q.



Also we have an agreed (with Russian cryptographic community, including
experts from other Russian companies, scientific community and governmental
authorities) version of curve generation methods; if you consider it
interesting, we could prepare an English translation in a couple of days.



Best regards,

Stanislav V. Smyshlyaev, Ph.D.,

Head of Information Security Department,

CryptoPro LLC

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

<div dir=3D"ltr"><div><div class=3D"gmail_signature"><div dir=3D"ltr"><p cl=
ass=3D"MsoNormal"><span lang=3D"EN-US">Good
afternoon, dear colleagues,</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">Currently
the proposed draft on elliptic curves generation methods does not explicitl=
y
consider curves with security more than 256 bits. </span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">In Russia
we have had a similar lack of 512-bit curves (both twisted Edwards ones and
curves with groups of prime order), so we at CryptoPro (Russian cryptograph=
ic
software company) proposed three of them to our Technical Committee for
Standardization =C2=ABCryptography and Security Mechanisms=C2=BB (<a href=
=3D"http://tc26.ru/en/">http://tc26.ru/en/</a>).</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">In 2014
after a deep discussion with colleagues these curves were standardized for
usage with Russian national digital signature standard (GOST R 34.10-2012).=
 </span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">For
example, the twisted Edwards 512-bit curve is defined over the field GF(p),
where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">p =3D
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">d =3D
0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E0A5=
15C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">e =3D 0x1</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">m =3D
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336E919=
41AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">q =3D
0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDBA46=
506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">u(P) =3D 0x12</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">v(P) =3D
0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4B650=
CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">a =3D
0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861C0E=
2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">b =3D
0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2FFF=
719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">x(P) =3D
0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272A7A=
E602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148
</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">y(P) =3D
0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D33E=
3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">(The
following notation is used for Edwards curve coefficients: eu^2 + v^2 =3D 1=
 +
du^2v^2, while the corresponding Weierstrass curve has form y^2 =3D x^3 + a=
x +b.
We denote the total number of points on the curve as m and prime subgroup o=
rder
as q. We denote base point as P; x(P), y(P) and u(P), v(P) are respectively
base point coordinates in Weierstrass and twisted Edwards form.)</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">p and q are
prime. The curve has been examined to be secure against MOV-attacks (thus i=
t
can be believed to be DDH-secure) and to satisfy CM-security requirements.
Twisted curve security has also been studied: twisted curve points group or=
der
has a prime factor of: 0x40000000000000000000000000000000000000000000000000=
000000000000003673245b9af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fd=
af7,
while the other factor is equal to 4.</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">The curve
can be used both for digital signatures and for Diffie-Hellman key agreemen=
t.</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">The curve
parameters have been generated using random nonce W in such way that e =3D =
1, d =3D
hash(W), where hash() is Russian national standard GOST R 34.11-2012 hash
function (also known as =E2=80=9CStreebog=E2=80=9D, <a href=3D"https://www.=
streebog.net/en/">https://www.streebog.net/en/</a>).
The seed value W is equal to:</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">W =3D 1F BB
79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 A5 AF 09 57 77 =
5B
66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2 5E AF FE C6 67 76 =
70
2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC 7E D6 D1 9B 97 AC 2C =
B5
82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">GOST R
34.11-2012 (Streebog) implementation can be found at <a href=3D"https://git=
hub.com/okazymyrov/stribog">https://github.com/okazymyrov/stribog</a>,
for example. </span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">The base
point has been selected as a point with the smallest u-coordinate, satisfyi=
ng
curve equation and having order equal to q.</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">Also we
have an agreed (with Russian cryptographic community, including experts fro=
m
other Russian companies, scientific community and governmental authorities)
version of curve generation methods; if you consider it interesting, we cou=
ld
prepare an English translation in a couple of days.</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:rgb(31,73,125)">=
Best regards,</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:rgb(31,73,125)">=
Stanislav V. Smyshlyaev, Ph.D.,</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:rgb(31,73,125)">=
Head of Information Security Department,</span></p>

<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:rgb(31,73,125)">=
CryptoPro LLC</span></p><div><br></div></div></div></div>
</div>

--047d7b5d47d8879ca4050da4500f--


From nobody Tue Jan 27 08:00:06 2015
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 9F22A1A1B35 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:59:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lolcRuNHO-D0 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 07:59:49 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 09D221A8873 for <cfrg@irtf.org>; Tue, 27 Jan 2015 07:57:40 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 63D66BE83; Tue, 27 Jan 2015 15:57:38 +0000 (GMT)
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 HHoyeT_Rd3zL; Tue, 27 Jan 2015 15:57:38 +0000 (GMT)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 41C01BE80; Tue, 27 Jan 2015 15:57:38 +0000 (GMT)
Message-ID: <54C7B572.2020109@cs.tcd.ie>
Date: Tue, 27 Jan 2015 15:57:38 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: "Salz, Rich" <rsalz@akamai.com>, Derek Atkins <derek@ihtfp.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com>
In-Reply-To: <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/GicgpBe4XkmuN_uXo5OCURwzWPk>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 15:59:55 -0000

On 27/01/15 15:46, Salz, Rich wrote:
> Don't they have a different code path for the math implementation?

Right. So it makes very little to no difference really I'd guess.

Or if someone has code where it would then sending a pointer to
that would help me at least. Anytime I've done that kind of code
it'd have been no problem at all to deal with this issue.

S.


From nobody Tue Jan 27 08:07:40 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C08931A8855 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:07:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oJh3U8eqD-Jh for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:07:31 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 E71491A1B36 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:07:30 -0800 (PST)
Received: from [10.20.30.90] (50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91]) (authenticated bits=0) by proper.com (8.15.1/8.14.7) with ESMTPSA id t0RG7Tba097766 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:07:30 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com>
Date: Tue, 27 Jan 2015 08:07:29 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <DB4F04F6-82BA-41F9-B443-BA800D8E32A4@vpnc.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/x2lPIJ2WX6Bo-jhJuQpf0yMxxE4>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:07:31 -0000

We do not need "consensus" in this RG, just assurance that what we =
recommend does not have security holes. No one has suggested any =
security holes based on the endianness. The argument that "using =
different math would add code" is true, but pretty much irrelevant =
relative the to the size of the code needed to add a new curve. There is =
no interoperability issue: if someone messes up the math in either =
endian direction, they will know the first time they test their code, =
and there is approximately 2^-128 chance that if they got it wrong and =
only tested one vector, that they will accidentally get a good result.

The longer we argue about our preferences (instead of actual security =
issues), the worse off the IETF is.

--Paul Hoffman=


From nobody Tue Jan 27 08:12:31 2015
Return-Path: <derek@ihtfp.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 D3D241A8876 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:12:28 -0800 (PST)
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 3dpqQFDO76QJ for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:12:27 -0800 (PST)
Received: from mail2.ihtfp.org (mail2.ihtfp.org [IPv6:2001:4830:143:1::3a11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 572CC1A8831 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:12:27 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail2.ihtfp.org (Postfix) with ESMTP id C8BB2E203F; Tue, 27 Jan 2015 11:12:25 -0500 (EST)
Received: from mail2.ihtfp.org ([127.0.0.1]) by localhost (mail2.ihtfp.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 14132-02; Tue, 27 Jan 2015 11:12:23 -0500 (EST)
Received: from securerf.ihtfp.org (unknown [IPv6:fe80::ea2a:eaff:fe7d:235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mocana.ihtfp.org", Issuer "IHTFP Consulting Certification Authority" (verified OK)) by mail2.ihtfp.org (Postfix) with ESMTPS id D54E1E2039; Tue, 27 Jan 2015 11:12:23 -0500 (EST)
Received: (from warlord@localhost) by securerf.ihtfp.org (8.14.8/8.14.8/Submit) id t0RGCNvT009547; Tue, 27 Jan 2015 11:12:23 -0500
From: Derek Atkins <derek@ihtfp.com>
To: "Salz\, Rich" <rsalz@akamai.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com>
Date: Tue, 27 Jan 2015 11:12:22 -0500
In-Reply-To: <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com> (Rich Salz's message of "Tue, 27 Jan 2015 15:46:28 +0000")
Message-ID: <sjmy4ooi4nt.fsf@securerf.ihtfp.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: Maia Mailguard 1.0.2a
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/q2v1nEKHbMtf5844_OD3HPO0CEI>
Cc: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:12:29 -0000

"Salz, Rich" <rsalz@akamai.com> writes:

>> It would mean a completely separate code path to support 25519 versus
>> supporting most (all?) existing ECC curves.
>
> Don't they have a different code path for the math implementation?

Maybe.  Maybe not.  A modmult is a modmult (to some degree).

> If the parsing/serialization special-code so onerous?  If so,
> shouldn't we have the Y coordinate?

Anything new and different is onerous.  ;-) It means additional work
in terms of implementation, testing, validation, and interop.

My point is that there's years (decades, even) of standards and
implementation that parse network-byte-order numbers, even when the
local system is little-endian.  I don't see a good reason to change
that.  The only real argument I've seen is "well, the initial
implementation didn't do it that way, and other people have therefore
not done it that way."

-derek

-- 
       Derek Atkins                 617-623-3745
       derek@ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant


From nobody Tue Jan 27 08:26:02 2015
Return-Path: <derek@ihtfp.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 D7A0D1A8864 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:26:00 -0800 (PST)
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 tR4ZD7-Qiv5V for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:25:59 -0800 (PST)
Received: from mail2.ihtfp.org (mail2.ihtfp.org [IPv6:2001:4830:143:1::3a11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 44E901A885A for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:25:59 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail2.ihtfp.org (Postfix) with ESMTP id C816FE2039; Tue, 27 Jan 2015 11:25:56 -0500 (EST)
Received: from mail2.ihtfp.org ([127.0.0.1]) by localhost (mail2.ihtfp.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 14183-04; Tue, 27 Jan 2015 11:25:54 -0500 (EST)
Received: by mail2.ihtfp.org (Postfix, from userid 48) id 521D9E203A; Tue, 27 Jan 2015 11:25:54 -0500 (EST)
Received: from 192.168.248.220 (SquirrelMail authenticated user warlord) by mail2.ihtfp.org with HTTP; Tue, 27 Jan 2015 11:25:54 -0500
Message-ID: <65619772ca81009ec53ca5bb1842c03b.squirrel@mail2.ihtfp.org>
In-Reply-To: <DB4F04F6-82BA-41F9-B443-BA800D8E32A4@vpnc.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com> <DB4F04F6-82BA-41F9-B443-BA800D8E32A4@vpnc.org>
Date: Tue, 27 Jan 2015 11:25:54 -0500
From: "Derek Atkins" <derek@ihtfp.com>
To: "Paul Hoffman" <paul.hoffman@vpnc.org>
User-Agent: SquirrelMail/1.4.22-14.fc20
MIME-Version: 1.0
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-Virus-Scanned: Maia Mailguard 1.0.2a
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Wm2iM_Asx588KVD2_48BRy8Dbgo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:26:01 -0000

Paul,

On Tue, January 27, 2015 11:07 am, Paul Hoffman wrote:
> We do not need "consensus" in this RG, just assurance that what we
> recommend does not have security holes. No one has suggested any security
> holes based on the endianness. The argument that "using different math
> would add code" is true, but pretty much irrelevant relative the to the
> size of the code needed to add a new curve. There is no interoperability
> issue: if someone messes up the math in either endian direction, they will
> know the first time they test their code, and there is approximately
> 2^-128 chance that if they got it wrong and only tested one vector, that
> they will accidentally get a good result.
>
> The longer we argue about our preferences (instead of actual security
> issues), the worse off the IETF is.

It is important for interoperability.  If I tell you that my ECC Public
Key is 0102030405060708090a but you interpret that as 0a090807060504030201
-- we will get different results even if both of us implement the math
correctly.  So I would argue that transmission encoding of keys and
results *is* a matter of security.

Then of course there's the matter of using the shared secret in another
algorithm, like AES.  Again, byte-order differences would result in
different AES keys.  Yet another matter of security.

Yes, it just mean we just need to "choose one".  But for the last 20+
years we've already chosen:  network-byte-order.

> --Paul Hoffman

-derek

-- 
       Derek Atkins                 617-623-3745
       derek@ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant


From nobody Tue Jan 27 08:26:15 2015
Return-Path: <prvs=8469804022=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 EF7F91A888D for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:26:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.209
X-Spam-Level: 
X-Spam-Status: No, score=-4.209 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, 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 xi9-IQMYqiSJ for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:26:05 -0800 (PST)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by ietfa.amsl.com (Postfix) with ESMTP id 9453D1A888A for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:26:04 -0800 (PST)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id t0RGPdJ2018971; Tue, 27 Jan 2015 11:25:39 -0500
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: "'derek@ihtfp.com'" <derek@ihtfp.com>, "'stephen.farrell@cs.tcd.ie'" <stephen.farrell@cs.tcd.ie>
Thread-Topic: [Cfrg] Point format endian
Thread-Index: AQHQOke0axfSMd2GqEC9KruEIfNUg5zUJza8
Date: Tue, 27 Jan 2015 16:25:38 +0000
Message-ID: <65D2FD736B6B2B48B2EAD2BD189DC9CC14081079@LLE2K10-MBX01.mitll.ad.local>
In-Reply-To: <sjm386wjko8.fsf@securerf.ihtfp.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [155.34.14.22]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-27_03:2015-01-27,2015-01-26,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-1501270164
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/1QRdjYtzLMkDflMqS1XehYBzTbI>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>, "'pgut001@cs.auckland.ac.nz'" <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:26:09 -0000

Actually, AFAIK, *every* IETF-developed Internet protocol (not just in Secu=
rity area) uses Big Endian for on-the-wire.

--
Regards,
Uri Blumenthal                            Voice: (781) 981-1638
Cyber Systems and Technology   Fax:   (781) 981-0186
MIT Lincoln Laboratory                Cell:  (339) 223-5363
244 Wood Street, Lexington, MA 02420-9185      =20

Web:  http://www.ll.mit.edu/CST/
MIT LL Root CA:  <https://www.ll.mit.edu/labcertificateauthority.html>

----- Original Message -----
From: Derek Atkins [mailto:derek@ihtfp.com]
Sent: Tuesday, January 27, 2015 10:41 AM=0A=
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Cc: 'cfrg@irtf.org' <cfrg@irtf.org>; Peter Gutmann <pgut001@cs.auckland.ac.=
nz>
Subject: Re: [Cfrg] Point format endian

Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:

> On 27/01/15 10:34, Peter Gutmann wrote:
>> The universal standard for crypto bignums is big-endian
>
> Hmmm.... sez who? :-)

PKIX, OpenPGP, OpenSSH, Kerberos, TLS...  Pretty much every existing
IETF security standard I know of to date encodes numbers in big-endian
format.

> But seriously, if in fact this makes little or no difference,
> which I believe is the case, and which I believe you are also
> arguing, then what is the problem with going with the initial
> coder's choice here?
>
> If there is no problem then just doing that and making sure
> it's properly documented should be just fine I'd have thought.

It would mean a completely separate code path to support 25519 versus
supporting most (all?) existing ECC curves.

> S.

-derek
--=20
       Derek Atkins                 617-623-3745
       derek@ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant

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


From nobody Tue Jan 27 08:33:37 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C3C531A036F for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:33:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4rm4CKxT1XUV for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:33:25 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 D8DA91A1A5A for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:33:24 -0800 (PST)
Received: from [10.20.30.90] (50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91]) (authenticated bits=0) by proper.com (8.15.1/8.14.7) with ESMTPSA id t0RGXIuX000850 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Jan 2015 09:33:19 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91] claimed to be [10.20.30.90]
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Content-Type: text/plain; charset=us-ascii
From: Paul Hoffman <paul.hoffman@vpnc.org>
X-Priority: 3 (Normal)
In-Reply-To: <65619772ca81009ec53ca5bb1842c03b.squirrel@mail2.ihtfp.org>
Date: Tue, 27 Jan 2015 08:33:18 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <011E0470-EAA6-4B9F-9A3B-6682033E3F36@vpnc.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com> <DB4F04F6-82BA-41F9-B443-BA800D8E32A4@vpnc.org> <65619772ca81009ec53ca5bb1842c03b.squirrel@mail2.ihtfp.org>
To: Derek Atkins <derek@ihtfp.com>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/yFRu6Jp1_kN9DPAmpq8WdcOD4Ko>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:33:28 -0000

On Jan 27, 2015, at 8:25 AM, Derek Atkins <derek@ihtfp.com> wrote:
>=20
> Paul,
>=20
> On Tue, January 27, 2015 11:07 am, Paul Hoffman wrote:
>> We do not need "consensus" in this RG, just assurance that what we
>> recommend does not have security holes. No one has suggested any =
security
>> holes based on the endianness. The argument that "using different =
math
>> would add code" is true, but pretty much irrelevant relative the to =
the
>> size of the code needed to add a new curve. There is no =
interoperability
>> issue: if someone messes up the math in either endian direction, they =
will
>> know the first time they test their code, and there is approximately
>> 2^-128 chance that if they got it wrong and only tested one vector, =
that
>> they will accidentally get a good result.
>>=20
>> The longer we argue about our preferences (instead of actual security
>> issues), the worse off the IETF is.
>=20
> It is important for interoperability.  If I tell you that my ECC =
Public
> Key is 0102030405060708090a but you interpret that as =
0a090807060504030201
> -- we will get different results even if both of us implement the math
> correctly.  So I would argue that transmission encoding of keys and
> results *is* a matter of security.

Correct: if you tell me your ECC public key and use a format that is the =
opposite of what is in the RFC, I won't understand it. That seems like =
an irrelevant argument.

> Then of course there's the matter of using the shared secret in =
another
> algorithm, like AES.  Again, byte-order differences would result in
> different AES keys.  Yet another matter of security.

See above. If you choose to use a format that is different than the RFC, =
you will not interoperate. 'Twas always thus.

> Yes, it just mean we just need to "choose one".  But for the last 20+
> years we've already chosen:  network-byte-order.

Repeating your preference when it has no security implications doesn't =
help. If the eventual RFC specifies a different order than what you are =
used to, you can choose to follow the RFC or not.

--Paul Hoffman=


From nobody Tue Jan 27 08:35:38 2015
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 061F71A036F for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:35:38 -0800 (PST)
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 5RlFaO_RDvh0 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:35:36 -0800 (PST)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F21C71A8845 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:35:35 -0800 (PST)
Received: by mail-yk0-f179.google.com with SMTP id 142so6771402ykq.10 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:35:35 -0800 (PST)
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=LwANg4r7QUh0HeYlZGmz16rnhthviPQHtTIhqM5SlVw=; b=IaSmiED8wU9iZoTwDtzQep8r1WzupFGuHFP4mqz5TKEuRp4gk5/ZNO/zZlKSCOiqiD JGljiYinM2QbVTrJJycMII8tow7WAw7l38yUmz3UCM+jJeyxTbc62awlt0+jufN03QhL JYytccu07WmyDWlPwSTcnKY3XljHun0fKTZ8bE1M1KHD6KgmaNmrntjv7JpFbhxyG0kr mFFHE+1aa1PaeMTsYBk7bYwt/04/YPcnQsglQFxePkPAOhZE3uepkCAdqoQ01ZY8yz2J 6sXUtBsUH3200XTYYW76XNtkPZHuQM4PC8uzDTChl6b/XorAT3YnbfKzM/ZMfGsKZdV4 FlWA==
MIME-Version: 1.0
X-Received: by 10.170.128.149 with SMTP id u143mr1556909ykb.20.1422376535177;  Tue, 27 Jan 2015 08:35:35 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Tue, 27 Jan 2015 08:35:35 -0800 (PST)
In-Reply-To: <65619772ca81009ec53ca5bb1842c03b.squirrel@mail2.ihtfp.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com> <DB4F04F6-82BA-41F9-B443-BA800D8E32A4@vpnc.org> <65619772ca81009ec53ca5bb1842c03b.squirrel@mail2.ihtfp.org>
Date: Tue, 27 Jan 2015 08:35:35 -0800
Message-ID: <CACsn0cnyQybz39Reg7Oq8aJ2aJnj6nSbX2=J1DfD7cmmKbpXuw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Derek Atkins <derek@ihtfp.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ibKxy5ZNyL21HZswb_pQnT-8-Ys>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Paul Hoffman <paul.hoffman@vpnc.org>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:35:38 -0000

On Tue, Jan 27, 2015 at 8:25 AM, Derek Atkins <derek@ihtfp.com> wrote:
> Paul,
>
> On Tue, January 27, 2015 11:07 am, Paul Hoffman wrote:
>> We do not need "consensus" in this RG, just assurance that what we
>> recommend does not have security holes. No one has suggested any security
>> holes based on the endianness. The argument that "using different math
>> would add code" is true, but pretty much irrelevant relative the to the
>> size of the code needed to add a new curve. There is no interoperability
>> issue: if someone messes up the math in either endian direction, they will
>> know the first time they test their code, and there is approximately
>> 2^-128 chance that if they got it wrong and only tested one vector, that
>> they will accidentally get a good result.
>>
>> The longer we argue about our preferences (instead of actual security
>> issues), the worse off the IETF is.
>
> It is important for interoperability.  If I tell you that my ECC Public
> Key is 0102030405060708090a but you interpret that as 0a090807060504030201
> -- we will get different results even if both of us implement the math
> correctly.  So I would argue that transmission encoding of keys and
> results *is* a matter of security.

When I wrote the relevant section of the Turner draft, I was careful
to specify the keys as sequences of bytes. The concern you mention
doesn't exist: everything is a sequence of 32 bytes, with a defined
way to turn that into a number and process that number. If you don't
actually read the spec, of course you'll get it wrong.

>
> Then of course there's the matter of using the shared secret in another
> algorithm, like AES.  Again, byte-order differences would result in
> different AES keys.  Yet another matter of security.
>
> Yes, it just mean we just need to "choose one".  But for the last 20+
> years we've already chosen:  network-byte-order.

I think Emerson had something to say about this argument.

>
>> --Paul Hoffman
>
> -derek
>
> --
>        Derek Atkins                 617-623-3745
>        derek@ihtfp.com             www.ihtfp.com
>        Computer and Internet Security Consultant
>
> _______________________________________________
> 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 Jan 27 08:44:14 2015
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 EC52B1A88E4 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:44:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.467
X-Spam-Level: 
X-Spam-Status: No, score=-2.467 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 vMvseqLu9qHe for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:44:09 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 00ABE1A88F2 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:41:47 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id 8348610224008; Tue, 27 Jan 2015 08:41:46 -0800 (PST)
Received: from 104.36.248.10 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Tue, 27 Jan 2015 08:41:46 -0800 (PST)
Message-ID: <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
In-Reply-To: <54C77376.3080005@cs.tcd.ie>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie>
Date: Tue, 27 Jan 2015 08:41:46 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Stephen Farrell" <stephen.farrell@cs.tcd.ie>
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/Gh4sng58qXhEu2emrOOqXUNVHM4>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 16:44:12 -0000

On Tue, January 27, 2015 3:16 am, Stephen Farrell wrote:
>>>
>>> But seriously, if in fact this makes little or no difference, which I
>>> believe
>>> is the case, and which I believe you are also arguing, then what is the
>>> problem with going with the initial coder's choice here?
>>
>> Because, as I've already pointed out in an earlier message, if the
>> universal
>> standard is big-endian and the vast majority of your potential user base
>> (via
>> OpenSSL, not sure about MS CryptoAPI) only does big-endian, then
>> choosing a
>> format that's not big-endian is a really bad idea.
>
> You didn't say why. Why is it a bad idea? What is the downside?
> ("only does big-endian" isn't it clearly, because if the little
> endian form were adopted here that'd no longer be true so the
> question is how that'd cause problems if the spec called for it
> to be done.)
>
> I'm really asking there and not point-scoring btw. mostly because I
> think this entire process has been quite fraught about even the
> least important things, and I'd hope we don't do that to ourselves
> again;-)

  It's a bad idea because standards like X9.62 and ISO/IEC 15946
and RFC 5090 have all defined the way to go from a bitstring to an
integer to a field element and back that involve representation in
big endian. This is the canonical conversion between bit strings
and elements.

  And this is not some arbitrary issue that can just be relegated to
the bowels of the crypto library where we no longer care. Knowledge
of the special-case-ness of curve25519 will percolate up to the
application writer. For instance,

  * After doing an ECDH you take the X-coordinate and pass it to
    a KDF. But how? Well, there's those rules to go from field element
    to integer to bitstring. Except now you have to have a special case.
    So you do BN_bn2bin() unless it's curve25519 then you do
    BN_bn2binle() (which doesn't exist now for a very good reason).

   * Or Imagine if someone wanted to implement Watson's SPAKE2 draft.
    It involves hashing into an elliptic curve to get elements M and N.
    So after you hash up a bunch of cruft you convert the digest as a bit
    string into an integer and then into the X-coordinate of your element.
    But how do you do that? Well you do BN_bin2bn() unless it's curve25519
    and then you do BN_bin2bnle() (which does not exist now for a very
    good reason).

  This spells interop problems even if you just adopt DJB's code to
handle curve25519. Special cases will be a continued source of trouble.

  And for what? At least Martin Luther had a list of grievances that he
nailed to the church door to start his reformation. This particular attempt
at reformation to free curves from the canonical format has none.

  regards,

  Dan.




From nobody Tue Jan 27 08:45:23 2015
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 02A591A8977 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:45:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level: 
X-Spam-Status: No, score=-0.101 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BahBg3mMk0i3 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:45:14 -0800 (PST)
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 02F911A8840 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:42:32 -0800 (PST)
Received: by mail-yk0-f177.google.com with SMTP id 19so6782278ykq.8 for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:42:31 -0800 (PST)
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=srtax1S0vPKTrtYmjd2P3r6sZzE8H0+hdEk0dpZpa7A=; b=dT5NwrpZmrtCF2HThBvpN2LK+IATqRSHt+MD1MSi28s8lq5XUZiOlPX+s8ws/NZTWy SsHp6uMuFeTjNORf4KZjEVxhx4Cf/uYai5P914hR4MHRDUqIXQGZFcuiUPP2sUvulWV/ nGud3bNzsVPjHpOWZTmAkgObSEBCNZGxDnYNqU7nzLCEVroepgfxtuO68gTVjgCvcJBx Q28fEjqORhQQ+ADq34qmQPUhBpVw9jMB5yafZHR9xMu83NkauabKi0/1/F8HmtF1EZvm rBOUbX1jr0eKYd+Er38KhnHhycDJRYjdAdChfnzhaU3sjzuCd84xamxHtBZ1x0TBMi+y f5Zg==
MIME-Version: 1.0
X-Received: by 10.236.61.8 with SMTP id v8mr1359080yhc.44.1422376951211; Tue, 27 Jan 2015 08:42:31 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Tue, 27 Jan 2015 08:42:31 -0800 (PST)
Date: Tue, 27 Jan 2015 08:42:31 -0800
Message-ID: <CACsn0c=Mx9rWwQpGmK9gDH0bDRTVWtspy_D1=pJ3QHTdRrs8XA@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/4vt-h_RWK1_4eQu4HKd_rUlVwqc>
Subject: [Cfrg] Enough already!
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:45:18 -0000

Does anyone have any security objection to what's in the original TLS draft?

So why can't the TLS WG proceed with it?

Are we seriously going to spend another month (if we're lucky!)
arguing about endianness?

This is a catastrophe we should be sure not to repeat at higher
security levels by making rules and having a competition as opposed to
go play a game of Calvinball.

If we can't expeditiously answer basic questions in a reasonable
timeframe, people are going to avoid asking those questions. And they
are going to be worse off for it. The CFRG was sorely underutilized in
the past: I don't see any reason why a IETF WG would ask us anything
now.

A month ago I accused the chairs of continuing the farce. That was too
nice: it's a full-blown fiasco now. And I don't see any plans to avoid
it in the future. A year later, and we have a starting point with
unspecified future changes being considered, and arguments that popped
up over that year, coming back to life.

Is there a definite time at which we will be well and truly done?

Sincerely,
Watson Ladd


From nobody Tue Jan 27 08:59:50 2015
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 B308E1A7035 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:59:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.467
X-Spam-Level: 
X-Spam-Status: No, score=-2.467 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 5SUMLNAjeS3f for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 08:59:47 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 621D01A6EFB for <cfrg@irtf.org>; Tue, 27 Jan 2015 08:59:47 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id E53BD10224008; Tue, 27 Jan 2015 08:59:46 -0800 (PST)
Received: from 104.36.248.10 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Tue, 27 Jan 2015 08:59:47 -0800 (PST)
Message-ID: <607a42362766a5cd5952255513ec65e8.squirrel@www.trepanning.net>
In-Reply-To: <CACsn0c=Mx9rWwQpGmK9gDH0bDRTVWtspy_D1=pJ3QHTdRrs8XA@mail.gmail.com>
References: <CACsn0c=Mx9rWwQpGmK9gDH0bDRTVWtspy_D1=pJ3QHTdRrs8XA@mail.gmail.com>
Date: Tue, 27 Jan 2015 08:59:47 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Watson Ladd" <watsonbladd@gmail.com>
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/TgJ6wNMzD-0Mu0A2KVsCYi9qSoA>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Enough already!
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 16:59:49 -0000

On Tue, January 27, 2015 8:42 am, Watson Ladd wrote:
> Does anyone have any security objection to what's in the original TLS
> draft?
>
> So why can't the TLS WG proceed with it?
>
> Are we seriously going to spend another month (if we're lucky!)
> arguing about endianness?
>
> This is a catastrophe we should be sure not to repeat at higher
> security levels by making rules and having a competition as opposed to
> go play a game of Calvinball.
>
> If we can't expeditiously answer basic questions in a reasonable
> timeframe, people are going to avoid asking those questions. And they
> are going to be worse off for it. The CFRG was sorely underutilized in
> the past: I don't see any reason why a IETF WG would ask us anything
> now.

  -1

  We are answering basic questions, you just don't like the answers.

> A month ago I accused the chairs of continuing the farce. That was too
> nice: it's a full-blown fiasco now. And I don't see any plans to avoid
> it in the future. A year later, and we have a starting point with
> unspecified future changes being considered, and arguments that popped
> up over that year, coming back to life.

  Apparently your naivetι has finally been confronted with reality. Last
year I told you it would take something like 2 years to get an RFC published.
You said no, it should only take 30 minutes. This is how sausage gets
made.

  Dan.



From nobody Tue Jan 27 09:08:16 2015
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 F40A91A889D for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:08:14 -0800 (PST)
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 njI-vHwSD7Fb for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:08:08 -0800 (PST)
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 3A4671A8892 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:07:57 -0800 (PST)
Received: by mail-yh0-f44.google.com with SMTP id i57so6581666yha.3 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:07:56 -0800 (PST)
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=fWjVgriHEiMniu7WwcDbfIPGLk3NimMBhrqlW03Wq50=; b=Z+V8DZRXp/jB4qilkc/3qbpeg0gZJnnUW0AP4Ne0owfHjtSxRxlFidWhrLJy8baZlE BIjd+DEjFIk/UJxbdfaMlfRvKurdRulRCOSdta1DoAN0fJlWtwhniHV/jKcPt2Scxzph RdFSv+v1d381x4M1F9kePtvEB6t02lRObmsJYYZS/8c/hJGcMoY8QyzBuYZQk3Yi1SOT 8G44c0K6RMWzLgozTnpy8LzTYs60LNFDhaZG/KIgHME3s4YVpFbTFu6Gcjx8zXR8ja04 Q/k94GAl+n15VQCgZj8N36DSwZ4fJSRHIueLPbPV/iByz+lR1HVuIKtn/8DSY9NL1BXX EkvA==
MIME-Version: 1.0
X-Received: by 10.170.89.130 with SMTP id g124mr1567726yka.24.1422378476366; Tue, 27 Jan 2015 09:07:56 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Tue, 27 Jan 2015 09:07:56 -0800 (PST)
In-Reply-To: <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
Date: Tue, 27 Jan 2015 09:07:56 -0800
Message-ID: <CACsn0c=+uKicVmuex+jo5L6VQcJPLuQ45z3T1EZbSXMOrpy-=A@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/8jvMIGuKCd26dmszFiMavfnMB1U>
Cc: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 17:08:15 -0000

On Tue, Jan 27, 2015 at 8:41 AM, Dan Harkins <dharkins@lounge.org> wrote:
>
>
> On Tue, January 27, 2015 3:16 am, Stephen Farrell wrote:
>>>>
>>>> But seriously, if in fact this makes little or no difference, which I
>>>> believe
>>>> is the case, and which I believe you are also arguing, then what is the
>>>> problem with going with the initial coder's choice here?
>>>
>>> Because, as I've already pointed out in an earlier message, if the
>>> universal
>>> standard is big-endian and the vast majority of your potential user base
>>> (via
>>> OpenSSL, not sure about MS CryptoAPI) only does big-endian, then
>>> choosing a
>>> format that's not big-endian is a really bad idea.
>>
>> You didn't say why. Why is it a bad idea? What is the downside?
>> ("only does big-endian" isn't it clearly, because if the little
>> endian form were adopted here that'd no longer be true so the
>> question is how that'd cause problems if the spec called for it
>> to be done.)
>>
>> I'm really asking there and not point-scoring btw. mostly because I
>> think this entire process has been quite fraught about even the
>> least important things, and I'd hope we don't do that to ourselves
>> again;-)
>
>   It's a bad idea because standards like X9.62 and ISO/IEC 15946
> and RFC 5090 have all defined the way to go from a bitstring to an
> integer to a field element and back that involve representation in
> big endian. This is the canonical conversion between bit strings
> and elements.
>
>   And this is not some arbitrary issue that can just be relegated to
> the bowels of the crypto library where we no longer care. Knowledge
> of the special-case-ness of curve25519 will percolate up to the
> application writer. For instance,
>
>   * After doing an ECDH you take the X-coordinate and pass it to
>     a KDF. But how? Well, there's those rules to go from field element
>     to integer to bitstring. Except now you have to have a special case.
>     So you do BN_bn2bin() unless it's curve25519 then you do
>     BN_bn2binle() (which doesn't exist now for a very good reason).
>
>    * Or Imagine if someone wanted to implement Watson's SPAKE2 draft.
>     It involves hashing into an elliptic curve to get elements M and N.
>     So after you hash up a bunch of cruft you convert the digest as a bit
>     string into an integer and then into the X-coordinate of your element.
>     But how do you do that? Well you do BN_bin2bn() unless it's curve25519
>     and then you do BN_bin2bnle() (which does not exist now for a very
>     good reason).
>
>   This spells interop problems even if you just adopt DJB's code to
> handle curve25519. Special cases will be a continued source of trouble.

Curve25519 was specified as a function from 32 byte strings cross a
private key to 32 byte strings. There is no conversion from field
elements to strings before or after a Curve25519 calculation.

My SPAKE2 draft contains specified M&N, generated by a C program
Nathan McCullum sent me. I've been unable to determine what that
program does in anything more than the vaguest terms because OpenSSL
internals are opaque, but users do not need to generate their own
points.

>
>   And for what? At least Martin Luther had a list of grievances that he
> nailed to the church door to start his reformation. This particular attempt
> at reformation to free curves from the canonical format has none.
>
>   regards,
>
>   Dan.
>
>
>
> _______________________________________________
> 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 Jan 27 09:20:43 2015
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 CBF101A1B36 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:20:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level: 
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IuPX_0feUJJx for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:20:41 -0800 (PST)
Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D2ED91A887E for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:20:40 -0800 (PST)
Received: by mail-lb0-f174.google.com with SMTP id f15so14319737lbj.5 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:20:39 -0800 (PST)
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=DSYLR8Z+e6w8qJBUcwWFXpjP3Ywnl7escnP+7dzLu6o=; b=ZbM8cXl/ZYQ9x63aK0Ky5GPW0n49+bvpGc7t+NXuJihR3LEeR5mVf5RZGwTX8AD9R2 MO+3jOzu7R+WlpEcKdH4Ncg2iZ7J3fVXtQllTz0ctePlCD071FdRt6TNYn3xgKBOM0AI XbkVyAy8e9JG7UqAeGxc6IYml4XEjrHnPSWn961Smv3GonFPvaa90640Fw/i8XpjePv7 DHdogtteCicKnqIIKdjsDlTWpah04Q4yitJFzZp0azykTi4YiFG63gYDNggQJp+RCnLW vjIm/6tiKacPGByE+mDlU9b3ZM5iOCalEmmA20yn2b15AMyusUHXSD8qE7xKnjzWPfxn G8Ew==
X-Gm-Message-State: ALoCoQkX2zWxYwADxIHihxGxK27Q3p3YU9FsTDwKe8v58xvCkOfQgMVsIWZGtPB764NMPmwJCw30
X-Received: by 10.112.119.201 with SMTP id kw9mr2961416lbb.99.1422379239250; Tue, 27 Jan 2015 09:20:39 -0800 (PST)
MIME-Version: 1.0
Received: by 10.152.47.228 with HTTP; Tue, 27 Jan 2015 09:20:17 -0800 (PST)
In-Reply-To: <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
From: Andy Lutomirski <luto@amacapital.net>
Date: Tue, 27 Jan 2015 09:20:17 -0800
Message-ID: <CALCETrUififB6HHnymWzk5Agkmhyc2Kghz=BWEHmMLeRwNv7wA@mail.gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/mYhzNkm4bGfF0WvexXHJedvKlIo>
Cc: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 17:20:43 -0000

On Tue, Jan 27, 2015 at 8:41 AM, Dan Harkins <dharkins@lounge.org> wrote:
>
>
> On Tue, January 27, 2015 3:16 am, Stephen Farrell wrote:
>>>>
>>>> But seriously, if in fact this makes little or no difference, which I
>>>> believe
>>>> is the case, and which I believe you are also arguing, then what is the
>>>> problem with going with the initial coder's choice here?
>>>
>>> Because, as I've already pointed out in an earlier message, if the
>>> universal
>>> standard is big-endian and the vast majority of your potential user base
>>> (via
>>> OpenSSL, not sure about MS CryptoAPI) only does big-endian, then
>>> choosing a
>>> format that's not big-endian is a really bad idea.
>>
>> You didn't say why. Why is it a bad idea? What is the downside?
>> ("only does big-endian" isn't it clearly, because if the little
>> endian form were adopted here that'd no longer be true so the
>> question is how that'd cause problems if the spec called for it
>> to be done.)
>>
>> I'm really asking there and not point-scoring btw. mostly because I
>> think this entire process has been quite fraught about even the
>> least important things, and I'd hope we don't do that to ourselves
>> again;-)
>
>   It's a bad idea because standards like X9.62 and ISO/IEC 15946
> and RFC 5090 have all defined the way to go from a bitstring to an
> integer to a field element and back that involve representation in
> big endian. This is the canonical conversion between bit strings
> and elements.

This is not a good thing.  I've worked on software that manipulates
P-256 public keys.  They're *variable length* because someone thought
that this was a good idea.

>
>   And this is not some arbitrary issue that can just be relegated to
> the bowels of the crypto library where we no longer care. Knowledge
> of the special-case-ness of curve25519 will percolate up to the
> application writer. For instance,
>
>   * After doing an ECDH you take the X-coordinate and pass it to
>     a KDF. But how? Well, there's those rules to go from field element
>     to integer to bitstring. Except now you have to have a special case.
>     So you do BN_bn2bin() unless it's curve25519 then you do
>     BN_bn2binle() (which doesn't exist now for a very good reason).

Sorry, but this is backwards.

As an application writer, I want to pass a string of bytes into the
bowels of the crypto library, and I want to get a string of bytes
back.  I despise the fact that, with current crypto, I have to parse
some ASN.1 crap to figure out *how many* bytes to pass to the crypto
library.

Given a choice between using ASN.1-encoded numbers (or sequences or
whatever) and strings of bytes of either endianness, I'll take the
byte strings any day.

(Also, it's 100% unambiguous how to pass octet strings into a KDF,
given that they all seem to operate, quite sensibly, on bytes.  It's
not at all unambiguous how to pass numbers to a KDF, on the other hand
-- are they big-endian zero-padded?  are they big-endian
variable-length with MSB zeros stripped?  maybe there's a length
prefix?  maybe that prefix is ASN.1?  if so, how is it encoded?)

--Andy


From nobody Tue Jan 27 09:20:50 2015
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 5BC291A888B for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:20:47 -0800 (PST)
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 LYQEYKWWKGya for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:20:45 -0800 (PST)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com [IPv6:2607:f8b0:4002:c07::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 48AAE1A888A for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:20:45 -0800 (PST)
Received: by mail-yk0-f179.google.com with SMTP id 142so6878078ykq.10 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:20:44 -0800 (PST)
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=FjEWPjeRug6RffhPjbNiTMXf2fDzaP7tMJgXycY90Ho=; b=e0iNJeOgndrjbpwojkQ1DVUmCKhFaHRKAkVfJBxkVqnx4rlxFdDGm7Oclxe0PJuj4/ OhsRVL5W+KKtJHFs8QottHIKLMBuobPM4Vb0OdqvSj2Q9ud2wL1s2HX+d0PEATboIC2T KTvYEZuGEKuCtWz0Xni15dS/lC+7eZ/vgCg5RFhUUEKDwapa/1pSmwCHIklLAUtRPsut yKjbreOkkPbOPMATF1n2p75byPNf3q/ghjzUD+a1ChWleAcYF21ubJXRWqcKAx8QzbYg +TnvxGY1ilZk3Ytdt/nAfoy3NqRVYlLa7BMR+RPwAvAGioH0aqJXcsVPXpMCJCi66Nyn O7pw==
MIME-Version: 1.0
X-Received: by 10.236.11.45 with SMTP id 33mr1431122yhw.4.1422379244582; Tue, 27 Jan 2015 09:20:44 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Tue, 27 Jan 2015 09:20:44 -0800 (PST)
In-Reply-To: <607a42362766a5cd5952255513ec65e8.squirrel@www.trepanning.net>
References: <CACsn0c=Mx9rWwQpGmK9gDH0bDRTVWtspy_D1=pJ3QHTdRrs8XA@mail.gmail.com> <607a42362766a5cd5952255513ec65e8.squirrel@www.trepanning.net>
Date: Tue, 27 Jan 2015 09:20:44 -0800
Message-ID: <CACsn0cneQHKe9YKKs3rMMy9SHsN=Vbjjj005tZSVSQavTa0bXA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/A8zKDlLPaCndVYyZdMqBhLDmakE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Enough already!
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 17:20:47 -0000

On Tue, Jan 27, 2015 at 8:59 AM, Dan Harkins <dharkins@lounge.org> wrote:
>
> On Tue, January 27, 2015 8:42 am, Watson Ladd wrote:
>> Does anyone have any security objection to what's in the original TLS
>> draft?
>>
>> So why can't the TLS WG proceed with it?
>>
>> Are we seriously going to spend another month (if we're lucky!)
>> arguing about endianness?
>>
>> This is a catastrophe we should be sure not to repeat at higher
>> security levels by making rules and having a competition as opposed to
>> go play a game of Calvinball.
>>
>> If we can't expeditiously answer basic questions in a reasonable
>> timeframe, people are going to avoid asking those questions. And they
>> are going to be worse off for it. The CFRG was sorely underutilized in
>> the past: I don't see any reason why a IETF WG would ask us anything
>> now.
>
>   -1
>
>   We are answering basic questions, you just don't like the answers.

And what question would that be? We've devoted far more energy to
which byte goes first then to discussing the merits of various
signature proposals.

>
>> A month ago I accused the chairs of continuing the farce. That was too
>> nice: it's a full-blown fiasco now. And I don't see any plans to avoid
>> it in the future. A year later, and we have a starting point with
>> unspecified future changes being considered, and arguments that popped
>> up over that year, coming back to life.
>
>   Apparently your naivet=C3=A9 has finally been confronted with reality. =
Last
> year I told you it would take something like 2 years to get an RFC publis=
hed.
> You said no, it should only take 30 minutes. This is how sausage gets
> made.

No, this is how bikesheds get painted. Are you seriously thinking this
is preferable to a contest with requirements on timing and content of
proposals for the higher security levels?

>
>   Dan.
>
>



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


From nobody Tue Jan 27 09:30:48 2015
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 8496E1A883E for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:30:46 -0800 (PST)
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 dpzCFDOuRXNl for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:30:45 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 2F6E41A01A9 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:30:45 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id A93B010224008; Tue, 27 Jan 2015 09:30:44 -0800 (PST)
Received: from 104.36.248.10 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Tue, 27 Jan 2015 09:30:44 -0800 (PST)
Message-ID: <4dbcfbff889d175765d549d96826767a.squirrel@www.trepanning.net>
In-Reply-To: <CACsn0c=+uKicVmuex+jo5L6VQcJPLuQ45z3T1EZbSXMOrpy-=A@mail.gmail.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net> <CACsn0c=+uKicVmuex+jo5L6VQcJPLuQ45z3T1EZbSXMOrpy-=A@mail.gmail.com>
Date: Tue, 27 Jan 2015 09:30:44 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Watson Ladd" <watsonbladd@gmail.com>
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/F5jUH6F06aL_3JAHfLrF0hJFNRE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 17:30:46 -0000

On Tue, January 27, 2015 9:07 am, Watson Ladd wrote:
>
> My SPAKE2 draft contains specified M&N, generated by a C program
> Nathan McCullum sent me. I've been unable to determine what that
> program does in anything more than the vaguest terms because OpenSSL
> internals are opaque, but users do not need to generate their own
> points.

  Yes, it's opaque to you, the application writer. That's the point! But
to have curve25519 as a special case then you'd have to pry into the
opacity of the code and figure out what's going on.

  So to allow Nathan McCullum to send you a chunk of code that
should work with any curve supported by OpenSSL, and have it just
work without you knowing any opaque internals, it requires a
canonical conversion of bitstring to integer to field element and
back.

  If, as you say, users do not need to generate their own points then
they're gonna have to have a registry of M and N for all curves. And
to import a bitstring (for instance from the appendix of your draft)
into code requires converting that bitstring into an element. And
without the canonical conversion then you need to know about the
opaque internals.

  Thank you for illustrating my point so well!

  Dan.



From nobody Tue Jan 27 09:42:40 2015
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 C6CDF1A19FE for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:42:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FLG6RiVfN3Qk for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:42:37 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D90151A0A6A for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:42:36 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 0B386BEB2; Tue, 27 Jan 2015 17:42:35 +0000 (GMT)
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 lFadKl4_Nhr2; Tue, 27 Jan 2015 17:42:34 +0000 (GMT)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id D588EBEA0; Tue, 27 Jan 2015 17:42:34 +0000 (GMT)
Message-ID: <54C7CE0B.6050000@cs.tcd.ie>
Date: Tue, 27 Jan 2015 17:42:35 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Dan Harkins <dharkins@lounge.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
In-Reply-To: <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/m2eKvBEECPDK702H8wkKnwbs4Qs>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 17:42:38 -0000

Hi Dan,

On 27/01/15 16:41, Dan Harkins wrote:
>   This spells interop problems even if you just adopt DJB's code to
> handle curve25519. Special cases will be a continued source of trouble.

TBH I think that's a tad overstated.

The main thing that seems to be getting lost here is that big
endian vs. little endian is not a big deal. Either works and
there is little or nothing at stake worth fighting over. I've
expressed my slight preference for LE and it's fine that others
disagree - I'm sure the chairs and/or editors can write text
one way or another and it'll get fixed one way or another
before we're done as folks write code and see that it is better
or worse one way or the other. In the worst possible case,
a very late switch within CFRG from one to the other would
add a line of code and an cranky comment - so long as we get
that done before people deploy stuff widely. (And the stuff
that matters here are specific long term key values and not
code so much. If you think back to the DKIM signature format
changes the same arguments apply and so for ephemeral DH uses
this is something that stays malleable for a while yet.)

Moving on without considering this as a hill to die on and
getting to a decision before deployment but not necessarily
in the next nanosecond seems to me much more important than
which of LE vs BE is chosen.

S.


From nobody Tue Jan 27 09:52:04 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B6491A8902 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:51:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PmZO1cFMu3EU for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:51:55 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 11D481A88F1 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:51:55 -0800 (PST)
Received: from [10.20.30.90] (50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91]) (authenticated bits=0) by proper.com (8.15.1/8.14.7) with ESMTPSA id t0RHprL1006104 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Jan 2015 10:51:54 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-98-91.dsl.dynamic.fusionbroadband.com [50.1.98.91] claimed to be [10.20.30.90]
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Content-Type: text/plain; charset=iso-8859-1
From: Paul Hoffman <paul.hoffman@vpnc.org>
X-Priority: 3 (Normal)
In-Reply-To: <607a42362766a5cd5952255513ec65e8.squirrel@www.trepanning.net>
Date: Tue, 27 Jan 2015 09:51:53 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <6B6BAC11-7A8A-44C5-A875-95E9555B275B@vpnc.org>
References: <CACsn0c=Mx9rWwQpGmK9gDH0bDRTVWtspy_D1=pJ3QHTdRrs8XA@mail.gmail.com> <607a42362766a5cd5952255513ec65e8.squirrel@www.trepanning.net>
To: Dan Harkins <dharkins@lounge.org>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ZkqlwEYqPxlFNWqjX-EceodV1Zg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Enough already!
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 17:51:56 -0000

On Jan 27, 2015, at 8:59 AM, Dan Harkins <dharkins@lounge.org> wrote:
>  Apparently your naivet=E9 has finally been confronted with reality. =
Last
> year I told you it would take something like 2 years to get an RFC =
published.
> You said no, it should only take 30 minutes. This is how sausage gets
> made.

Oh, please. This is only how sausage gets made badly. Other groups, when =
asked to say what is and is not secure, don't stop and lecture people =
about how we used to do it.

--Paul Hoffman=


From nobody Tue Jan 27 09:55:46 2015
Return-Path: <dgil@yahoo-inc.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 8CFBE1A88E5 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:55:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.301
X-Spam-Level: 
X-Spam-Status: No, score=-14.301 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, USER_IN_DEF_WHITELIST=-15] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fRb28tbu_F2m for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:55:39 -0800 (PST)
Received: from mrout5.yahoo.com (mrout5.yahoo.com [216.145.54.154]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B18BA1A8906 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:55:29 -0800 (PST)
Received: from omp1029.mail.ne1.yahoo.com (omp1029.mail.ne1.yahoo.com [98.138.89.173]) by mrout5.yahoo.com (8.14.9/8.14.9/y.out) with ESMTP id t0RHsvtE095106 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:54:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1422381298; bh=decMLnJyNEb6iMlzJ/qZUyqRQIcN+smlfg6ymszmqGI=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject; b=kepbNlOLQjg3GE9aizseeD9+I+MxOHfz4phfVfUN9vd6qPSAvBVurQ9rmrqm1KAUk 0BByJH//xbB8Ui911YdEXlyrvto44Q+MAW31KyYXidLKcfRR363k8TpYRX/Ih8qcls 64Sfr1F9rqrrZxEzQYwS4IAvA/vKLv+nZYSVCuXU=
Received: (qmail 97853 invoked by uid 1000); 27 Jan 2015 17:54:57 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo-inc.com; s=ginc1024; t=1422381297; bh=decMLnJyNEb6iMlzJ/qZUyqRQIcN+smlfg6ymszmqGI=; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fdNTNUFMtq+3k2Tgvvfh2Euv2Z5zJ33kx4mvXVNUYE1F3+epo8tPa7oNu8w5H6wsl/Y/lhGzNwNQUcHWC/5Q6XxvPK9CZg6qna/y60tB/DFFGbdKKIpIll0KMXDCRnvYIYXXJK1E33qZisLow+WPEeaglEgKHfb1cbz4xEi3y+4=
X-YMail-OSG: 61MGvTgVM1mogoD.NjAmFw7w_CNZ2MpJLy_hTXxORAh0KOMhPovlcbg0fDL637h fT.9Dg74lmZHiecM133r2nI0jIe_Yt4GpTr_4KaHC9R1ie4bmRaA.4.2F3Hx.y6yWYGwuOVfU3WM 3BDkoa19owxw_yHWAufYQIaJSSECUrHZD59Q75.3w5IfGaEWa9BNb6nnPA.iQMJB5wViDF41DFs3 GjGjO1DGH9_ljJHw_i2yH_HGw1LPck1sxa5Q-
Received: by 98.138.105.208; Tue, 27 Jan 2015 17:54:56 +0000 
Date: Tue, 27 Jan 2015 17:54:56 +0000 (UTC)
From: David Gil <dgil@yahoo-inc.com>
To: Dan Brown <dbrown@certicom.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Message-ID: <260118468.805595.1422381296240.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Milter-Version: master.31+4-gbc07cd5+
X-CLX-ID: 381297007
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/KG5DxKpotWAaSDBhEkinTZ6H7TQ>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: David Gil <dgil@yahoo-inc.com>
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 17:55:41 -0000

A lot of older software (and hardware) that support arbitrary elliptic curves over Fq, q>3 assume that h=1. Those implementations will not handle Edwards curves correctly.

See, e.g., http://golang.org/pkg/crypto/elliptic/#CurveParams

I would prefer to break backwards compatibility for the sake of correctness. (And I would suspect that some implementations that claim to support arbitrary cofactor are broken: There has not been any reason before to really exercise the h!=1 case.)
- dlg


From nobody Tue Jan 27 09:59:22 2015
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 7F0961A1B3E for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:59:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bZhEDld_eq_3 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 09:59:19 -0800 (PST)
Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D29E21A01A9 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:59:18 -0800 (PST)
Received: by mail-la0-f52.google.com with SMTP id ge10so14718010lab.11 for <cfrg@irtf.org>; Tue, 27 Jan 2015 09:59:17 -0800 (PST)
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=FhI5DXfyg7i/VpNxAhXbqLLdrgdAEb9BFFNvcx9MaBM=; b=gb1pS1ifeMDt4Ermf5DuwW38JAYovGtF+NBp1InaUbrSPkEgGZCrV6BwCtMr4pqQ15 8JhJnSJONfHsxWG6YMo7w81jzo7VIj1OP0xgPAAYH0jSukPXISF4JrYNnClikDOkBSTR cbL/dj/bNJ9cRlMPjISeVl+KcI1cZcrv2rGfKPG+JN6+UwR7Bz+Hlp+SJ0E6cEMxrOcX 6DqUlQbSk1o5JsdohwcZlnoDXMXeInSCyCq7f94tjacuHyOw2bmQys16Q+bnhaEgBQA9 AhnHEDP1+5C9thwWpRG6J4V5gLW5lSn/SDC5mSLWKZbmh3srkMNlfef4GTW2EVvhLKBJ oqJQ==
MIME-Version: 1.0
X-Received: by 10.152.29.193 with SMTP id m1mr3326900lah.84.1422381557261; Tue, 27 Jan 2015 09:59:17 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Tue, 27 Jan 2015 09:59:17 -0800 (PST)
In-Reply-To: <6B6BAC11-7A8A-44C5-A875-95E9555B275B@vpnc.org>
References: <CACsn0c=Mx9rWwQpGmK9gDH0bDRTVWtspy_D1=pJ3QHTdRrs8XA@mail.gmail.com> <607a42362766a5cd5952255513ec65e8.squirrel@www.trepanning.net> <6B6BAC11-7A8A-44C5-A875-95E9555B275B@vpnc.org>
Date: Tue, 27 Jan 2015 12:59:17 -0500
X-Google-Sender-Auth: WLAuTWkItcGcPgmipqfJGzk4_pw
Message-ID: <CAMm+LwiOMG32bf-_RN-2s5qgiLXoAVXPzRK7Hef5Vaep6Ux3Gg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: multipart/alternative; boundary=089e0158bf4c74ac7a050da603ac
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/4IWX-HhbeEa0U5hBkDmZ-ejd2Hg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Enough already!
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 17:59:20 -0000

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

On Tue, Jan 27, 2015 at 12:51 PM, Paul Hoffman <paul.hoffman@vpnc.org>
wrote:

> On Jan 27, 2015, at 8:59 AM, Dan Harkins <dharkins@lounge.org> wrote:
> >  Apparently your naivet=C3=A9 has finally been confronted with reality.=
 Last
> > year I told you it would take something like 2 years to get an RFC
> published.
> > You said no, it should only take 30 minutes. This is how sausage gets
> > made.
>
> Oh, please. This is only how sausage gets made badly. Other groups, when
> asked to say what is and is not secure, don't stop and lecture people abo=
ut
> how we used to do it.
>

+1

If we are doing ASN.1 then we do endian-ness the way it specifies in ASN.1
and PKCS#1. We have routines for pulling bignums out of BitString and
OctetString structures and using them in all the crypto libs already.

I must have known that at several points in my life as I have implemented
X.509 in javascript, C# and C, some languages more than once. But I always
forget it immediately after.

Network byte order is irrelevant here. It is consistency with all the rest
of the widely used crypto that is the concern. Widely used means RSA. I
don't much care about any other EC formats.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 27, 2015 at 12:51 PM, Paul Hoffman <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:paul.hoffman@vpnc.org" target=3D"_blank">paul.hoffman@vpnc.=
org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"=
">On Jan 27, 2015, at 8:59 AM, Dan Harkins &lt;<a href=3D"mailto:dharkins@l=
ounge.org">dharkins@lounge.org</a>&gt; wrote:<br>
&gt;=C2=A0 Apparently your naivet=C3=A9 has finally been confronted with re=
ality. Last<br>
&gt; year I told you it would take something like 2 years to get an RFC pub=
lished.<br>
&gt; You said no, it should only take 30 minutes. This is how sausage gets<=
br>
&gt; made.<br>
<br>
</span>Oh, please. This is only how sausage gets made badly. Other groups, =
when asked to say what is and is not secure, don&#39;t stop and lecture peo=
ple about how we used to do it.<br></blockquote><div><br></div><div>+1</div=
><div><br></div><div>If we are doing ASN.1 then we do endian-ness the way i=
t specifies in ASN.1 and PKCS#1. We have routines for pulling bignums out o=
f BitString and OctetString structures and using them in all the crypto lib=
s already.</div><div><br></div><div>I must have known that at several point=
s in my life as I have implemented X.509 in javascript, C# and C, some lang=
uages more than once. But I always forget it immediately after.</div><div><=
br></div><div>Network byte order is irrelevant here. It is consistency with=
 all the rest of the widely used crypto that is the concern. Widely used me=
ans RSA. I don&#39;t much care about any other EC formats.</div></div></div=
></div>

--089e0158bf4c74ac7a050da603ac--


From nobody Tue Jan 27 10:15:50 2015
Return-Path: <rstruik.ext@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 69F771A88AC for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 10:15:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.4
X-Spam-Level: ***
X-Spam-Status: No, score=3.4 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_12=0.6, J_CHICKENPOX_21=0.6, MANGLED_OFF=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 H_nO0SK_sxCG for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 10:15:46 -0800 (PST)
Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 031CA1A88DB for <cfrg@irtf.org>; Tue, 27 Jan 2015 10:15:44 -0800 (PST)
Received: by mail-ig0-f172.google.com with SMTP id l13so5917544iga.5 for <cfrg@irtf.org>; Tue, 27 Jan 2015 10:15:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=je4l9eq17vxJU7/DAd399FkbQPN5P0xzlmKd9RYqcfA=; b=I6QGYScqZTheS1tQj3PmgI//ca0ju6g0zuYaQ9/dX0CiM5R1zjfS5DarJCmsZrX1XZ Lm5XJh3VLk61KYmNZGaAmREtPtxfTE1tMytnJxICPz4mJ2+n3XPKwiMNQv8gpLmQLZP4 fnneTr7ZGOOIQuFRB66+Z/4NRIWpurSTGXIWve+MBJYFgEwuGbTE4Rug+eAySAHYNfU4 uQg0t54yMk6uOgTneTMbxRuv52+9nflce3OfvWxefkGBg3OpYXHRt05B+UbswfMZWzV4 TfjZIqiC/q9z7OyxrnsULSc7jfZDf8nmaSMqF2P0NjBqs9VTw048bXxSLAdgNPcK4EjG 9NmA==
X-Received: by 10.50.25.225 with SMTP id f1mr4489103igg.29.1422382542112; Tue, 27 Jan 2015 10:15:42 -0800 (PST)
Received: from [192.168.0.10] (CPE7cb21b2cb904-CM7cb21b2cb901.cpe.net.cable.rogers.com. [99.231.49.38]) by mx.google.com with ESMTPSA id w140sm1105874iod.13.2015.01.27.10.15.41 for <cfrg@irtf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jan 2015 10:15:41 -0800 (PST)
Message-ID: <54C7D5BA.6050606@gmail.com>
Date: Tue, 27 Jan 2015 13:15:22 -0500
From: Rene Struik <rstruik.ext@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <54C3DD05.6060706@isode.com>
In-Reply-To: <54C3DD05.6060706@isode.com>
X-Forwarded-Message-Id: <54C3DD05.6060706@isode.com>
Content-Type: multipart/alternative; boundary="------------090407000301000605070401"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/hS36wESmQcxLap-2aYtA79rRdJs>
Subject: [Cfrg] (technical flaws to be corrected in next version of the draft) Fwd: Re: Adoption of draft-agl-cfrgcurve-00 as a RG document
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 18:15:49 -0000

This is a multi-part message in MIME format.
--------------090407000301000605070401
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

Dear colleagues:

It seems that draft-agl-cfrgcurve-00 contains a few technical flaws, 
including:
a) Section 9, p. 10:
The Montgomery ladder works on projective points of the form (X:Y:Z), or 
(X::Z) {if the Y-coordinate is deleted}, where x=X/Z, y=Y/Z, and where 
the point at infinity is (1::0).
If so, one has Q-Q'=(x1::z1)=(u::1), Q'=(x2::z2)=(1::0) {the point at 
infinity}, and Q=(x3::z3)=(u::1).
With the draft, one mistakenly has (x2::z2)=(0::1), i.e., the 
representation of the affine point (0,0) of order two. In that case 
Montgomery Adds results in (u::1) + (0::1) = (4::4u^3)~ (1:: u^3). So, 
the procedure outputs on input Q:=(u::1) and scalar k=1, the incorrect 
output R:=(1::u^3) (with x-coordinate u^{-3}), rather than simply u.
b) Section 9, p. 10:
The Montgomery ladder should produce, on input Q=(x1::z1) and scalar k, 
the output R:=kQ=(x2::z2), which can be mapped to an affine point with 
x-coordinate x2/z2.
With the draft, one mistakenly takes 1/z2 = z2^{p-1}, whereas this 
should obviously be z2^{p-2} (if z2 is nonzero).
c) Section 9, p. 10:
The Montgomery ladder does not produce the output R=kQ for each input Q 
and scalar k, since, e.g., (after correcting the flaw identified in #a 
above), one can end up with the unidentified string projective point 
(0::0) in some cases. So, one should clarify what the input/output 
behavior of the Montgomery ladder is more clearly. {Does this work for 
all Montgomery curves, e.g., also when the curve y^2 = x^3 + A x^2 + x 
for which A^2 <>4?, etc.}
d) Section 9.1, p. 11:
With the draft, the output of the Diffie-Hellman protocol, as presented, 
succumbs to the small subgroup attack (e.g., DH(f,0)=0), no matter the 
value of f contributed by A).
e) Section 9.1, p. 11:
With the draft one has some annoying editorial glitches, including
-- "Alice then transmits K_A=DH(f,9) to Bob, where 9 is the number 9" 
should most likely read "Alice then transmits K_A=DH(f,g) to Bob, where 
g is the number 9".
-- "Alice computes DH(f,DH(g,9))" should read "Alice computes 
DH(f,K_B)"; etc., and vice-versa for Bob.
f) Section 9, pp. 9-11:
-- With the draft, the first part of Section 9 (till Section 9.1) is 
about scalar multiplication and probably deserves a separate subsection 
to that effect.
-- With the draft, not sure why scalar multiplication ineptly uses the 
acronym "DH" (as in DH(s,u). I would strongly suggest avoiding any 
language that could put people on the wrong footing, due to connotations 
ubiquitous in the crypto literature.
-- With the draft, one seems to introduce lots of new variables to 
denote objects (e.g., why not use scalar k, point G, Q, DH key K= a Qb, 
co-factor h, etc., if one wants to cross a message most effectively)?
-- With the draft, outsiders who are not necessarily be versed in 
cryptography would have a hard time following/verifying esoteric 
language and certainly would not be familiar with "quadratic 
extensions", "projection maps ... extended, so". I would suggest that 
clarity of language is key here.

Notes: Andrey Jivsov noted error #b above. I tried to retrace other 
errors to cut-and-paste errors from 
draft-turner-thecurve25519function-01, but that original draft also 
contains these errors (despite mentioned review by Tanja Lange, 
according to acknowledgements). The turner draft does contain an 
implicit reference to flaw #d above, although in nebulous terms 
("contributory behavior").

For now, I refrain from other comments, but hope that we at least get 
the technical details right. (I was hoping that the adoption call would 
end with someone else noticing the errors above, but did not see this 
(except for #b above), so reluctantly go to the CFRG list to mention 
some of this here. [I have my private thoughts about how many people 
actually read the entire draft...].)

Best regards, Rene

-------- Forwarded Message --------
Subject: 	Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG document
Date: 	Sat, 24 Jan 2015 17:57:25 +0000
From: 	Alexey Melnikov <alexey.melnikov@isode.com>
To: 	cfrg@irtf.org <cfrg@irtf.org>



Dear CFRG participants,

On 05/01/2015 19:15, Alexey Melnikov wrote:
> This message starts 2 weeks adoption call (ending on January 19th
> 2015) on:
>
> https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>
> as the starting point for the CFRG document which describes an
> algorithm for safe curve parameter generation for a particular
> security level and also recommends a specific curve (2^255-19) for the
> 128-bit security level.
>
> Please reply to this message or directly to CFRG chairs, stating
> whether you support (or not) adoption of this document. If you do not
> support adoption of this document, please state whether you support
> adoption of any alternative document or whether you want a particular
> change be made to the document before adoption.
>
> Chairs ask not to reiterate previously expressed technical opinions or
> arguments. But clarifying questions on the adoption call are welcome.
>
> While making your decision, please keep in mind
>
> http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
Thank you for all the constructive feedback.

Chairs have reviewed responses to this message (both public and some
private) and can confirm that there is rough consensus for adopting
draft-agl-cfrgcurve-00 as a RG document. Some people supported the
document with conditions that some changes would (or would not) be done
to it, although the majority of people supported it unconditionally.
Some people who objected to the document being adopted asked about
changes that were also asked by people who supported the document, so we
are hoping that a future revision of the draft might become acceptable
even to them.

Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as
draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who
would be editors of the CFRG document.

Best Regards,
Alexey,
On behalf of CFRG chairs.
>
> Alexey,
> On behalf of CFRG chairs.
>
> P.S. Editors of draft-black-rpgecc-01 and
> draft-turner-thecurve25519function-01 can become co-editors of the
> adopted document, if they choose to do so. Email chairs directly if
> you are willing or not willing to do so.

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




--------------090407000301000605070401
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear colleagues:<br>
    <br>
    It seems that draft-agl-cfrgcurve-00 contains a few technical flaws,
    including:<br>
    a) Section 9, p. 10:<br>
    The Montgomery ladder works on projective points of the form
    (X:Y:Z), or (X::Z) {if the Y-coordinate is deleted}, where x=X/Z,
    y=Y/Z, and where the point at infinity is (1::0).<br>
    If so, one has Q-Q'=(x1::z1)=(u::1), Q'=(x2::z2)=(1::0) {the point
    at infinity}, and Q=(x3::z3)=(u::1). <br>
    With the draft, one mistakenly has (x2::z2)=(0::1), i.e., the
    representation of the affine point (0,0) of order two. In that case
    Montgomery Adds results in (u::1) + (0::1) = (4::4u^3)~ (1:: u^3).
    So, the procedure outputs on input Q:=(u::1) and scalar k=1, the
    incorrect output R:=(1::u^3) (with x-coordinate u^{-3}), rather than
    simply u.<br>
    b) Section 9, p. 10:<br>
    The Montgomery ladder should produce, on input Q=(x1::z1) and scalar
    k, the output R:=kQ=(x2::z2), which can be mapped to an affine point
    with x-coordinate x2/z2. <br>
    With the draft, one mistakenly takes 1/z2 = z2^{p-1}, whereas this
    should obviously be z2^{p-2} (if z2 is nonzero).<br>
    c) Section 9, p. 10:<br>
    The Montgomery ladder does not produce the output R=kQ for each
    input Q and scalar k, since, e.g., (after correcting the flaw
    identified in #a above), one can end up with the unidentified string
    projective point (0::0) in some cases. So, one should clarify what
    the input/output behavior of the Montgomery ladder is more clearly.
    {Does this work for all Montgomery curves, e.g., also when the curve
    y^2 = x^3 + A x^2 + x for which A^2 &lt;&gt;4?, etc.}<br>
    d) Section 9.1, p. 11:<br>
    With the draft, the output of the Diffie-Hellman protocol, as
    presented, succumbs to the small subgroup attack (e.g., DH(f,0)=0),
    no matter the value of f contributed by A).<br>
    e) Section 9.1, p. 11:<br>
    With the draft one has some annoying editorial glitches, including<br>
    -- "Alice then transmits K_A=DH(f,9) to Bob, where 9 is the number
    9" should most likely read "Alice then transmits K_A=DH(f,g) to Bob,
    where g is the number 9".<br>
    -- "Alice computes DH(f,DH(g,9))" should read "Alice computes
    DH(f,K_B)"; etc., and vice-versa for Bob.<br>
    f) Section 9, pp. 9-11:<br>
    -- With the draft, the first part of Section 9 (till Section 9.1) is
    about scalar multiplication and probably deserves a separate
    subsection to that effect.<br>
    -- With the draft, not sure why scalar multiplication ineptly uses
    the acronym "DH" (as in DH(s,u). I would strongly suggest avoiding
    any language that could put people on the wrong footing, due to
    connotations ubiquitous in the crypto literature.<br>
    -- With the draft, one seems to introduce lots of new variables to
    denote objects (e.g., why not use scalar k, point G, Q, DH key K= a
    Qb, co-factor h, etc., if one wants to cross a message most
    effectively)? <br>
    -- With the draft, outsiders who are not necessarily be versed in
    cryptography would have a hard time following/verifying esoteric
    language and certainly would not be familiar with "quadratic
    extensions", "projection maps ... extended, so". I would suggest
    that clarity of language is key here.<br>
       <br>
    <div class="moz-forward-container">Notes: Andrey Jivsov noted error
      #b above. I tried to retrace other errors to cut-and-paste errors
      from draft-turner-thecurve25519function-01, but that original
      draft also contains these errors (despite mentioned review by
      Tanja Lange, according to acknowledgements). The turner draft does
      contain an implicit reference to flaw #d above, although in
      nebulous terms ("contributory behavior").<br>
      <br>
      For now, I refrain from other comments, but hope that we at least
      get the technical details right. (I was hoping that the adoption
      call would end with someone else noticing the errors above, but
      did not see this (except for #b above), so reluctantly go to the
      CFRG list to mention some of this here. [I have my private
      thoughts about how many people actually read the entire
      draft...].)<br>
      <br>
      Best regards, Rene<br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG
              document</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Sat, 24 Jan 2015 17:57:25 +0000</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Alexey Melnikov <a class="moz-txt-link-rfc2396E" href="mailto:alexey.melnikov@isode.com">&lt;alexey.melnikov@isode.com&gt;</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:cfrg@irtf.org">cfrg@irtf.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:cfrg@irtf.org">&lt;cfrg@irtf.org&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>Dear CFRG participants,

On 05/01/2015 19:15, Alexey Melnikov wrote:
&gt; This message starts 2 weeks adoption call (ending on January 19th 
&gt; 2015) on:
&gt;
&gt; <a class="moz-txt-link-freetext" href="https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml">https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml</a>
&gt;
&gt; as the starting point for the CFRG document which describes an 
&gt; algorithm for safe curve parameter generation for a particular 
&gt; security level and also recommends a specific curve (2^255-19) for the 
&gt; 128-bit security level.
&gt;
&gt; Please reply to this message or directly to CFRG chairs, stating 
&gt; whether you support (or not) adoption of this document. If you do not 
&gt; support adoption of this document, please state whether you support 
&gt; adoption of any alternative document or whether you want a particular 
&gt; change be made to the document before adoption.
&gt;
&gt; Chairs ask not to reiterate previously expressed technical opinions or 
&gt; arguments. But clarifying questions on the adoption call are welcome.
&gt;
&gt; While making your decision, please keep in mind
&gt;
&gt; <a class="moz-txt-link-freetext" href="http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html">http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html</a>
Thank you for all the constructive feedback.

Chairs have reviewed responses to this message (both public and some 
private) and can confirm that there is rough consensus for adopting 
draft-agl-cfrgcurve-00 as a RG document. Some people supported the 
document with conditions that some changes would (or would not) be done 
to it, although the majority of people supported it unconditionally. 
Some people who objected to the document being adopted asked about 
changes that were also asked by people who supported the document, so we 
are hoping that a future revision of the draft might become acceptable 
even to them.

Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as 
draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who 
would be editors of the CFRG document.

Best Regards,
Alexey,
On behalf of CFRG chairs.
&gt;
&gt; Alexey,
&gt; On behalf of CFRG chairs.
&gt;
&gt; P.S. Editors of draft-black-rpgecc-01 and 
&gt; draft-turner-thecurve25519function-01 can become co-editors of the 
&gt; adopted document, if they choose to do so. Email chairs directly if 
&gt; you are willing or not willing to do so.

_______________________________________________
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>
      <br>
    </div>
    <br>
  </body>
</html>

--------------090407000301000605070401--


From nobody Tue Jan 27 11:40:57 2015
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 A4D0C1A897E for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 11:40:55 -0800 (PST)
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 nkhI72vLuTIs for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 11:40:54 -0800 (PST)
Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8584B1A89A7 for <cfrg@irtf.org>; Tue, 27 Jan 2015 11:40:52 -0800 (PST)
Received: by mail-ob0-f182.google.com with SMTP id gq1so15289819obb.13 for <cfrg@irtf.org>; Tue, 27 Jan 2015 11:40:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TCPooeAdc03ER1DxpX92BWr70onyrZmVkOKCC3aioZw=; b=T5xJmctv7iVeGOVdG3nmb+lSNQvYzgxcyKrSRCNGspC19hSD0PzXZdcEbbby/v5DpG 2+BSXaFkNGEr8eD22PsFyuTe07mL66TVpqmJpDdHV32iVrXslwBv+GFEP2sfqHdXHpy+ FfpnCe4HfYkz01mbMa+fO215WLXwAQ7opqS/PM1+3Z/0rrLOnNVsq2cA6iu+ewMQcO4L PYWpRhKUhlwM3AYxxCawp3RV6gR3fwCY8El2Dko/aKMb0EH/FirLak8pY1oV8OPzczwW AL8qBXXAzPjCw/Sd+OKBQozv4k0HIm+ummPvbvtUyxBaqugkmhKN4ae7dEV9AccU0BNB SFEQ==
X-Received: by 10.182.28.196 with SMTP id d4mr1885223obh.66.1422387651915; Tue, 27 Jan 2015 11:40:51 -0800 (PST)
MIME-Version: 1.0
Received: by 10.202.224.5 with HTTP; Tue, 27 Jan 2015 11:40:27 -0800 (PST)
In-Reply-To: <sjm386wjko8.fsf@securerf.ihtfp.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org>
From: Tony Arcieri <bascule@gmail.com>
Date: Tue, 27 Jan 2015 11:40:27 -0800
Message-ID: <CAHOTMVLUfG2OkzmwRYyBMU0KjtPq0oU7czt6gLv+Gb0PGUPEKQ@mail.gmail.com>
To: Derek Atkins <derek@ihtfp.com>
Content-Type: multipart/alternative; boundary=001a11c29d46b9b831050da76eca
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/szonFWeyYYXglET39dOacaCDT3Q>
Cc: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 19:40:55 -0000

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

On Tue, Jan 27, 2015 at 7:41 AM, Derek Atkins <derek@ihtfp.com> wrote:

> PKIX, OpenPGP, OpenSSH, Kerberos, TLS...  Pretty much every existing
> IETF security standard I know of to date encodes numbers in big-endian
> format.


Yet when it comes to running code, OpenSSH and GPG 2.1 are both using the
little endian versions of Curve25519 and Ed25519 already...

All of the existing material describing Curve25519 and Ed25519 describes it
in terms of little endian.

Changing the endianness now would break compatibility with all of the
existing running code and documentation, and for what? Why are we breaking
things and creating a pointless incompatibility?

"A foolish consistency..."

-- 
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Jan 27, 2015 at 7:41 AM, Derek Atkins <span dir=3D"ltr">&lt;<a href=3D"=
mailto:derek@ihtfp.com" target=3D"_blank">derek@ihtfp.com</a>&gt;</span> wr=
ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">PKIX, OpenPGP, OpenSSH, Kerberos, TL=
S...=C2=A0 Pretty much every existing<br>
IETF security standard I know of to date encodes numbers in big-endian<br>
format.</blockquote><div><br></div><div>Yet when it comes to running code, =
OpenSSH and GPG 2.1 are both using the little endian versions of Curve25519=
 and Ed25519 already...</div><div><br></div><div>All of the existing materi=
al describing Curve25519 and Ed25519 describes it in terms of little endian=
.</div><div><br></div><div>Changing the endianness now would break compatib=
ility with all of the existing running code and documentation, and for what=
? Why are we breaking things and creating a pointless incompatibility?</div=
><div><br></div><div>&quot;A foolish consistency...&quot;</div></div><div><=
br></div>-- <br><div class=3D"gmail_signature">Tony Arcieri<br></div>
</div></div>

--001a11c29d46b9b831050da76eca--


From nobody Tue Jan 27 11:56:24 2015
Return-Path: <michael@metaparadigm.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 3C7E41A8866 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 11:56:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.458
X-Spam-Level: 
X-Spam-Status: No, score=-1.458 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, IP_NOT_FRIENDLY=0.334, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] 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 HXEJeiLg1k-o for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 11:56:21 -0800 (PST)
Received: from tlsx.org (tlsx.org [67.207.128.90]) (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 72A161A8A1C for <cfrg@irtf.org>; Tue, 27 Jan 2015 11:56:21 -0800 (PST)
Received: from monty.local (unknown.maxonline.com.sg [58.182.168.20] (may be forged)) (authenticated bits=0) by tlsx.org (8.14.4/8.14.4/Debian-4) with ESMTP id t0RKICS7004231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 27 Jan 2015 20:18:16 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metaparadigm.com; s=klaatu; t=1422389898; bh=aYUF7cr1MEyZBJxIG207lcItxxLtTBYZXswwcIDzHyA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=JUsmn49WhRdCNuy8R4XhWAS2dpwY1ZzAZ7jRcrOT6wbMEVGKadM6hHyAl4a6qlUIl IRS1lo87gUbHI8Z/NkETIVjerRXh/oMjazlRJ349fxMrrAls+JCZWABuD3mNI9Lye2 wRUHdTgMD0clJkcxvqS0RFXH2ZmIFc0qBUeQq8R8=
Message-ID: <54C7ED50.2000303@metaparadigm.com>
Date: Wed, 28 Jan 2015 03:56:00 +0800
From: Michael Clark <michael@metaparadigm.com>
Organization: Metaparadigm
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "'cfrg@irtf.org'" <cfrg@irtf.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz>
In-Reply-To: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.98.4 at klaatu.tlsx.org
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Zc-UIFBOHpdoSbzlBggxxKX1pM0>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG document)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 19:56:23 -0000

On 27/1/15 6:34 pm, Peter Gutmann wrote:
> Michael Clark <michael@metaparadigm.com> writes:
> 
>> This code could do with some optimization, bswap(32|64) intrinsic (uses BSWAP
>> machine instruction on x86_64, ARM, etc), working with a machine word size
>> loop with a small tail loop to handle the modulus of the difference in length
>> of the bignum from the machine word size. It is working byte by byte.
> 
> This is another example of "I can't believe we're having this discussion".
> We're talking about bignum operations measured in the millions of CPU cycles
> (a basic 1024-bit RSA decrypt is about 10M cycles, with P256 it's 7M cycles,
> courtesy of the Crypto++ benchmark data) and you're bringing up optimising
> something that might take a few hundred cycles (ignoring memory latency
> overhead, which is going to hit you at some point whether you endian-reverse
> or not).
> 
> The issue isn't about whether a 0.001% overhead is worth applying custom
> architecture-specific assembly-language to eliminate, it's the issue of
> encoding a particular implementation artefact into a standard.  As djb has
> helpfully pointed out, he could have decided to encode the values as ASCII
> decimal digits, or perhaps doodles, sign language, and squirrel noises.  Would
> crypto standards then require that everything using 25519 be able to encode
> the output as squirrel noises just because that's what one implementation
> does?
> 
> The universal standard for crypto bignums is big-endian (things like
> curve25519-sha256@libssh.org aren't a standard, it's what one implementation
> chooses to do).  The 25519 form is an implementation artefact and should have
> no place in a standard.

I agree. I did qualify the statement that its unlikely to register on a
profile. e.g. don't forget to paraphrase without the context:

On 26/1/15 8:57 pm, Michael Clark wrote:
> So with big-endian wire-formats, practically all machines are going to
> bswap as the internal rep will be little endian. That cost is probably
> low compared to the cost of the computation, so there is a reasonable
> rationale to stick to big-endian.

This seems to be about adapting to IETF tradition. Fair enough.

The question is whether or not in the case of Curve25519, the keys are
considered an "opaque octet string" or unless the point needs to be
consumed and interpreted outside of the cryptographic primitive; then
there is an argument to follow the big-endian bignum tradition.

1). Will Curve25519 be used elsewhere (other than as a diffie-hellman
replacement) where the keys are exposed in form they need to be operated
on as a bignum, rather than opaque 32-byte octet strings? i.e. is to be
considered a standalone cryptographic primitive?

2). From reading Curve25519, the keys are stated as opaque, however I
understand that Curve25519 can be expressed in various isogenies where
the keys (32-byte strings) are no longer opaque and are big-nums. Is it
intended to be used in a general way as a parametrization?

If so it would mean it might be a good idea either for Curve25519 to use
byteswap from network byte order or to define a big-endian alternative
with a different name that does so. X25519; where the keys are no longer
opaque as per the current normative reference that specifies
"little-endian" 32-byte strings:

  https://tools.ietf.org/html/draft-josefsson-tls-curve25519-01
  http://cr.yp.to/ecdh/curve25519-20060209.pdf

a). If it is intended to be used as a standalone primitive, then it
doesn't matter so much: "32-byte octet string"

b). However if it is to be used generally as a parametrization that fits
into a curve generalization then this provides a good rationale to use
the tradition of big-endian bignums. i.e. ends up in ASN.1 fields, with
different parametrization of the same generalization.

Does that make it any easier? :-)


From nobody Tue Jan 27 12:07:58 2015
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 BE6621A8A54 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 12:07:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.111
X-Spam-Level: 
X-Spam-Status: No, score=-0.111 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4rFBQ_f_ZT1i for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 12:07:49 -0800 (PST)
Received: from waldorf.isode.com (ext-bt.isode.com [217.34.220.158]) by ietfa.amsl.com (Postfix) with ESMTP id 6FA5E1A8A4D for <cfrg@irtf.org>; Tue, 27 Jan 2015 12:07:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1422389268; d=isode.com; s=selector; i=@isode.com; bh=ME56o2FKXYVDqrsO9GVS7SG3Ki2QXnBQpqx6Au1OrKs=; 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=qY/3CO4q9Fhdjqp7KDTVxrcURrPPamaB2/H+P8rXKHPdyGiHuRP5FgQkQW9Vnf3P2Y39KR T7Q6vrrav3nYW6nb65/6JbKSyzoZ8TBFV2CjpW4SI6X4iAgRdyDwj0EYZh3WRlh9Sjve4t Kh1PvZMlKfp2Ac4vtHrDiDsZvy6IFAs=;
Received: from [192.168.0.12] (cpc5-nmal20-2-0-cust24.19-2.cable.virginm.net [92.234.84.25])  by waldorf.isode.com (submission channel) via TCP with ESMTPSA  id <VMfwEwAKaMbb@waldorf.isode.com>; Tue, 27 Jan 2015 20:07:48 +0000
X-SMTP-Protocol-Errors: PIPELINING
From: Alexey Melnikov <alexey.melnikov@isode.com>
X-Mailer: iPad Mail (12B435)
X-Identity-Key: id1
Date: Tue, 27 Jan 2015 20:13:23 +0000
X-Account-Key: account1
X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0; attachmentreminder=0
Message-Id: <C074A13E-C1C8-498D-A989-6FF68694CB2F@isode.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/-ii1yUx1Al4y-To5Nr_E1ROHzS8>
Subject: [Cfrg] Request for agenda items in Dallas
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 20:07:51 -0000

Dear CFRG participants,
Chairs have requested a 2 hour slot in Dallas. Please let us know (*) if the=
re are any particular topics you would like to see discussed or you would li=
ke to present.

Best Regards,
Alexey on behalf of chairs.

(*) - please reply to the mailing list or directly to chairs, but if you wan=
t to moan, *only* do it directly to chairs.


From nobody Tue Jan 27 12:43:15 2015
Return-Path: <paul@marvell.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5664A1A8AA1 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 12:43:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.667
X-Spam-Level: 
X-Spam-Status: No, score=-1.667 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, J_CHICKENPOX_45=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 AHmebLbk7OWU for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 12:43:04 -0800 (PST)
Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B01C31A8A8C for <cfrg@irtf.org>; Tue, 27 Jan 2015 12:43:04 -0800 (PST)
Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t0RKcpDO023667 for <cfrg@irtf.org>; Tue, 27 Jan 2015 12:43:04 -0800
Received: from sc-owa03.marvell.com ([199.233.58.149]) by mx0a-0016f401.pphosted.com with ESMTP id 1s49rxys6e-5 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for <cfrg@irtf.org>; Tue, 27 Jan 2015 12:43:04 -0800
Received: from SC-vEXCH2.marvell.com ([10.93.76.134]) by SC-OWA03.marvell.com ([::1]) with mapi; Tue, 27 Jan 2015 12:43:02 -0800
From: Paul Lambert <paul@marvell.com>
To: "'cfrg@irtf.org'" <cfrg@irtf.org>
Date: Tue, 27 Jan 2015 12:43:00 -0800
Thread-Topic: [Cfrg] Field Element Format
Thread-Index: AdA6cdd9oMYFS/WFRY6Qs+s7fxcB2Q==
Message-ID: <D0ED2EA1.5A00D%paul@marvell.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
acceptlanguage: en-US
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-27_03:2015-01-27,2015-01-26,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1501270203
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/51JQw8p0NEsUn8-BpWTZ4ytSAcQ>
Subject: Re: [Cfrg] Field Element Format
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 20:43:06 -0000

I think that Dan Harkins had a good point about the need for clarity about
both the internal and external structure of an octet string representing a
field=20
element.

Issue: Specifications MUST prescribe octet-string format for all
       applications of a field element (not just over-the-wire)

Suggested=20
A specific recommendation would be to define not just the =8Cwire-format=B9=
 of
field elements, but to be very specific that that both wire-format
and any other protocol usage of the field element as a octet string
must be in the prescribed encoding format.


Current text:
>Wire-format of field elements
>When transmitting field elements in the Diffie-Hellman protocol below,
>they
>MUST be encoded as an array of bytes, x, in =8A

Suggested change:
< Octet-string format of field elements
<
< Field elements are converted to a string of octets for transmission in
< the Diffie-Hellman protocol below and for other cryptographic
< protocol uses and operations that are not performed on Gfp
< (e.g. Hash(field element). When converting a field element
< to an octet-string, the field element
< MUST be encoded as an array of bytes x, in =8A

Note that the text above is independent of the endian, I left that out ...



Paul

PS - whoever is moderating this discussion, would you please add this to
your tracking list as an editorial comment to review and determine
if action or not is required.  Since we are supposedly =8Creviewing=B9
a document, tracking and clear resolution of topics
would be valuable.=20

It would be of great value to publish the list so that
we could have a clear burn-down list to reach an end.



On 1/27/15, 11:56 AM, "Michael Clark" <michael@metaparadigm.com> wrote:

>On 27/1/15 6:34 pm, Peter Gutmann wrote:
>> Michael Clark <michael@metaparadigm.com> writes:
>>=20
>>> This code could do with some optimization, bswap(32|64) intrinsic
>>>(uses BSWAP
>>> machine instruction on x86_64, ARM, etc), working with a machine word
>>>size
>>> loop with a small tail loop to handle the modulus of the difference in
>>>length
>>> of the bignum from the machine word size. It is working byte by byte.
>>=20
>> This is another example of "I can't believe we're having this
>>discussion".
>> We're talking about bignum operations measured in the millions of CPU
>>cycles
>> (a basic 1024-bit RSA decrypt is about 10M cycles, with P256 it's 7M
>>cycles,
>> courtesy of the Crypto++ benchmark data) and you're bringing up
>>optimising
>> something that might take a few hundred cycles (ignoring memory latency
>> overhead, which is going to hit you at some point whether you
>>endian-reverse
>> or not).
>>=20
>> The issue isn't about whether a 0.001% overhead is worth applying custom
>> architecture-specific assembly-language to eliminate, it's the issue of
>> encoding a particular implementation artefact into a standard.  As djb
>>has
>> helpfully pointed out, he could have decided to encode the values as
>>ASCII
>> decimal digits, or perhaps doodles, sign language, and squirrel noises.
>> Would
>> crypto standards then require that everything using 25519 be able to
>>encode
>> the output as squirrel noises just because that's what one
>>implementation
>> does?
>>=20
>> The universal standard for crypto bignums is big-endian (things like
>> curve25519-sha256@libssh.org aren't a standard, it's what one
>>implementation
>> chooses to do).  The 25519 form is an implementation artefact and
>>should have
>> no place in a standard.
>
>I agree. I did qualify the statement that its unlikely to register on a
>profile. e.g. don't forget to paraphrase without the context:
>
>On 26/1/15 8:57 pm, Michael Clark wrote:
>> So with big-endian wire-formats, practically all machines are going to
>> bswap as the internal rep will be little endian. That cost is probably
>> low compared to the cost of the computation, so there is a reasonable
>> rationale to stick to big-endian.
>
>This seems to be about adapting to IETF tradition. Fair enough.
>
>The question is whether or not in the case of Curve25519, the keys are
>considered an "opaque octet string" or unless the point needs to be
>consumed and interpreted outside of the cryptographic primitive; then
>there is an argument to follow the big-endian bignum tradition.
>
>1). Will Curve25519 be used elsewhere (other than as a diffie-hellman
>replacement) where the keys are exposed in form they need to be operated
>on as a bignum, rather than opaque 32-byte octet strings? i.e. is to be
>considered a standalone cryptographic primitive?
>
>2). From reading Curve25519, the keys are stated as opaque, however I
>understand that Curve25519 can be expressed in various isogenies where
>the keys (32-byte strings) are no longer opaque and are big-nums. Is it
>intended to be used in a general way as a parametrization?
>
>If so it would mean it might be a good idea either for Curve25519 to use
>byteswap from network byte order or to define a big-endian alternative
>with a different name that does so. X25519; where the keys are no longer
>opaque as per the current normative reference that specifies
>"little-endian" 32-byte strings:
>
>  https://tools.ietf.org/html/draft-josefsson-tls-curve25519-01
>  http://cr.yp.to/ecdh/curve25519-20060209.pdf
>
>a). If it is intended to be used as a standalone primitive, then it
>doesn't matter so much: "32-byte octet string"
>
>b). However if it is to be used generally as a parametrization that fits
>into a curve generalization then this provides a good rationale to use
>the tradition of big-endian bignums. i.e. ends up in ASN.1 fields, with
>different parametrization of the same generalization.
>
>Does that make it any easier? :-)
>
>_______________________________________________
>Cfrg mailing list
>Cfrg@irtf.org
>http://www.irtf.org/mailman/listinfo/cfrg


From nobody Tue Jan 27 13:33:30 2015
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 E68661A8BBE for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 13:33:25 -0800 (PST)
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 hUW8R8JDiliV for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 13:33:17 -0800 (PST)
Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0AF6F1A8BB5 for <cfrg@irtf.org>; Tue, 27 Jan 2015 13:33:17 -0800 (PST)
Received: by mail-ob0-f179.google.com with SMTP id va8so5077530obc.10 for <cfrg@irtf.org>; Tue, 27 Jan 2015 13:33:16 -0800 (PST)
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=6jSnMw12Cb9ipESSi/zkc77nOq2Fsc3quigMEw4DKeY=; b=rgM4hiraLk8OEN/gxEJKiWFDu9p13026Xzl+GaQ/sI5K5+uOu4ExOFou5E5BJKiHys YjUw+5HUEqVVaylUtMbG4dNLzMVBZtJhqwdEWHUGWUE94F8x84Z+CJjUR8Ce+x0R1cDI y2KUyw1ZO9ASGThoKaBthvbByuxAClZIVuTQu028GUmDKR4317RbnJwIffyhnvdv29ba zP7Gr+bUhKiCKr5gZayXhdr07GAixo68QTHgzvK/aqpKTKHNjk88hoyKc4XmC3UPz7PN zTHX5UioHa9TyUpn62LvoST+XI2Xv6eExKxf9c4nzIAegTcT0y0QvnQBhWCcZx2hwNO7 rDJQ==
MIME-Version: 1.0
X-Received: by 10.202.209.151 with SMTP id i145mr66532oig.108.1422394396216; Tue, 27 Jan 2015 13:33:16 -0800 (PST)
Received: by 10.202.224.5 with HTTP; Tue, 27 Jan 2015 13:33:16 -0800 (PST)
Date: Tue, 27 Jan 2015 13:33:16 -0800
Message-ID: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=001a113de1a4b79897050da90013
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/n4l4Q1Rgukp7rD3iABd7Vv26ZMM>
Subject: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 21:33:26 -0000

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

I would like to hear the opinions of the chairs and other CFRG participants
on the following:

- Ed25519 and EdDSA
- FrankenECDSA (ECDSA in Edwards)
- ECDSA with Edwards keys on the wire (converted to Weierstrass to do ECDSA)
- Other interesting thoughts on digital signatures


-- 
Tony Arcieri

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

I would like to hear the opinions of the chairs and other CFRG participants=
 on the following:<div><br></div><div>- Ed25519 and EdDSA</div><div>- Frank=
enECDSA (ECDSA in Edwards)</div><div>- ECDSA with Edwards keys on the wire =
(converted to Weierstrass to do ECDSA)</div><div>- Other interesting though=
ts on digital signatures<span></span></div><br><br>-- <br>Tony Arcieri<br><=
br>

--001a113de1a4b79897050da90013--


From nobody Tue Jan 27 14:01:13 2015
Return-Path: <djm@mindrot.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 6CD861A9064 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 14:01:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.497
X-Spam-Level: 
X-Spam-Status: No, score=-3.497 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, 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 oMLjjvJXiEqq for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 14:01:09 -0800 (PST)
Received: from newmailhub.uq.edu.au (mailhub1.soe.uq.edu.au [130.102.132.208]) by ietfa.amsl.com (Postfix) with ESMTP id DF3421A9051 for <cfrg@irtf.org>; Tue, 27 Jan 2015 14:01:08 -0800 (PST)
Received: from smtp1.soe.uq.edu.au (smtp1.soe.uq.edu.au [10.138.113.40]) by newmailhub.uq.edu.au (8.14.5/8.14.5) with ESMTP id t0RM0kIC037769; Wed, 28 Jan 2015 08:00:46 +1000
Received: from mailhub.eait.uq.edu.au (baccata.eait.uq.edu.au [130.102.79.57]) by smtp1.soe.uq.edu.au (8.14.5/8.14.5) with ESMTP id t0RM0kQ8018308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Jan 2015 08:00:46 +1000
Received: from natsu.mindrot.org (natsu.mindrot.org [130.102.96.2]) by mailhub.eait.uq.edu.au (8.14.6/8.14.6) with ESMTP id t0RM0gYp006952; Wed, 28 Jan 2015 08:00:42 +1000 (EST)
Received: by natsu.mindrot.org (Postfix, from userid 1000) id 022BFA4F30; Wed, 28 Jan 2015 09:00:41 +1100 (AEDT)
Received: from localhost (localhost [127.0.0.1]) by natsu.mindrot.org (Postfix) with ESMTP id F1EB4A4F2F; Wed, 28 Jan 2015 09:00:41 +1100 (AEDT)
Date: Wed, 28 Jan 2015 09:00:41 +1100 (AEDT)
From: Damien Miller <djm@mindrot.org>
To: Derek Atkins <derek@ihtfp.com>
In-Reply-To: <sjm386wjko8.fsf@securerf.ihtfp.org>
Message-ID: <alpine.BSO.2.11.1501280859340.16736@natsu.mindrot.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org>
User-Agent: Alpine 2.11 (BSO 23 2013-08-11)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.73 on UQ Mailhub
X-Scanned-By: MIMEDefang 2.73 on 130.102.79.57
X-UQ-FilterTime: 1422396048
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/2vBUESzniGepCkEr2CuQFqmYz0o>
Cc: Peter Gutmann <pgut001@cs.auckland.ac.nz>, "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 27 Jan 2015 22:01:11 -0000

On Tue, 27 Jan 2015, Derek Atkins wrote:

> Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:
> 
> > On 27/01/15 10:34, Peter Gutmann wrote:
> >> The universal standard for crypto bignums is big-endian
> >
> > Hmmm.... sez who? :-)
> 
> PKIX, OpenPGP, OpenSSH, Kerberos, TLS...  Pretty much every existing
> IETF security standard I know of to date encodes numbers in big-endian
> format.

No, OpenSSH uses little endian encoding for X25519 and Ed25519.

We don't care - they are opaque strings as far as our application is
concerned (which is IMO exactly how it should be).

+1 to little endian, for the sake of compatibility with deployed and
tested code.

-d


From nobody Tue Jan 27 16:16:29 2015
Return-Path: <alangley@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 2547B1AC3ED for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 16:16:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.923
X-Spam-Level: ****
X-Spam-Status: No, score=4.923 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, HTML_MESSAGE=0.001, J_CHICKENPOX_12=0.6, J_CHICKENPOX_21=0.6, MANGLED_OFF=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 K-3-bje7Mefd for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 16:16:19 -0800 (PST)
Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 222E01AC3EC for <cfrg@irtf.org>; Tue, 27 Jan 2015 16:16:19 -0800 (PST)
Received: by mail-la0-f48.google.com with SMTP id pv20so16158171lab.7 for <cfrg@irtf.org>; Tue, 27 Jan 2015 16:16:17 -0800 (PST)
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=5Kz3GMon9E2S/8Ph/IwE/Ru+xkWDpoZe3aU22172d+g=; b=IeppsyL6KJ/RiMIhPjqbCRp1PtVPni+4rnRFmXoTpMJhgFYIGt/teFk9zH8iWOeYDq pbNGTSno0vm2czSCjU0TOfMzrUXOoISyw3XaVA/F2nYQ17lF5z4JsAlYZ/utg1UniuZd wPUb3fNpukFw9l0XClUUxD+svqwZlTv6K76naePC2FIWQgoiy7I4uq0e754TSCqKJP4E rjt/7R/L9E426+rfrRcI0mfkmywbbDE4sgKPEOFxTu4Xp8+fgAI55Cm9LkffY1ddmug9 3d8xd9oYq144PvZkvEXjxxWO/d4tTCtmkBVxtOIJU0qHCDgwoTTYu99mXZRnaM6RJbqK r1GA==
MIME-Version: 1.0
X-Received: by 10.112.161.34 with SMTP id xp2mr4712145lbb.73.1422404176401; Tue, 27 Jan 2015 16:16:16 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Tue, 27 Jan 2015 16:16:16 -0800 (PST)
In-Reply-To: <54C7D5BA.6050606@gmail.com>
References: <54C3DD05.6060706@isode.com> <54C7D5BA.6050606@gmail.com>
Date: Tue, 27 Jan 2015 16:16:16 -0800
X-Google-Sender-Auth: 7kPqLaTfcz1jYzC_yR-FPev9B7w
Message-ID: <CAMfhd9XA5OkPHHnh19H8H6R7Z=XqJ1vWDG2-_U9Ej6_gO+KN4A@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Rene Struik <rstruik.ext@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c34864a95af1050dab47d9
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/UgbAOouEDqtw2LC2DIVPsZOzBHI>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] (technical flaws to be corrected in next version of the draft) Fwd: Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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, 28 Jan 2015 00:16:23 -0000

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

On Tue, Jan 27, 2015 at 10:15 AM, Rene Struik <rstruik.ext@gmail.com> wrote:

> It seems that draft-agl-cfrgcurve-00 contains a few technical flaws,
> including:
>

Thank you very much for this. It prompted me to make some changes that I've
been planning.

a) Section 9, p. 10:
> The Montgomery ladder works on projective points of the form (X:Y:Z), or
> (X::Z) {if the Y-coordinate is deleted}, where x=X/Z, y=Y/Z, and where the
> point at infinity is (1::0).
> If so, one has Q-Q'=(x1::z1)=(u::1), Q'=(x2::z2)=(1::0) {the point at
> infinity}, and Q=(x3::z3)=(u::1).
> With the draft, one mistakenly has (x2::z2)=(0::1), i.e., the
> representation of the affine point (0,0) of order two. In that case
> Montgomery Adds results in (u::1) + (0::1) = (4::4u^3)~ (1:: u^3). So, the
> procedure outputs on input Q:=(u::1) and scalar k=1, the incorrect output
> R:=(1::u^3) (with x-coordinate u^{-3}), rather than simply u.
>

You are quite correct. I've fixed this.


> b) Section 9, p. 10:
> The Montgomery ladder should produce, on input Q=(x1::z1) and scalar k,
> the output R:=kQ=(x2::z2), which can be mapped to an affine point with
> x-coordinate x2/z2.
> With the draft, one mistakenly takes 1/z2 = z2^{p-1}, whereas this should
> obviously be z2^{p-2} (if z2 is nonzero).
>

I had fixed this on GitHub after Andrey's note and it'll be in
draft-irtf-cfrg-curves-00.


> c) Section 9, p. 10:
> The Montgomery ladder does not produce the output R=kQ for each input Q
> and scalar k, since, e.g., (after correcting the flaw identified in #a
> above), one can end up with the unidentified string projective point (0::0)
> in some cases. So, one should clarify what the input/output behavior of the
> Montgomery ladder is more clearly. {Does this work for all Montgomery
> curves, e.g., also when the curve y^2 = x^3 + A x^2 + x for which A^2 <>4?,
> etc.}
>

The curve25519 function is defined as a function from ([32]byte, [32]byte)
-> [32]byte. As such, it does have a defined behaviour when the resulting
point is (0::0) as it'll output all zero bytes. Although the draft was
written with the possibility in mind that we might define several curves,
my estimation at the moment if that the CFRG won't actually do that. Things
might turn out differently but, for the moment, I'm changing the document
to be more curve25519 specific rather than specifying the Montgomery ladder
more generally.


> d) Section 9.1, p. 11:
> With the draft, the output of the Diffie-Hellman protocol, as presented,
> succumbs to the small subgroup attack (e.g., DH(f,0)=0), no matter the
> value of f contributed by A).
>

It's certainly possible to extract the value of the scalar mod the cofactor
from curve25519, but the scalar construction ensures that value is zero.
I've made a note about the "non-contributory" behaviour of curve25519 in
the draft.


> e) Section 9.1, p. 11:
> With the draft one has some annoying editorial glitches, including
> -- "Alice then transmits K_A=DH(f,9) to Bob, where 9 is the number 9"
> should most likely read "Alice then transmits K_A=DH(f,g) to Bob, where g
> is the number 9".
> -- "Alice computes DH(f,DH(g,9))" should read "Alice computes DH(f,K_B)";
> etc., and vice-versa for Bob.
>

Both fixed, thanks.


> f) Section 9, pp. 9-11:
> -- With the draft, the first part of Section 9 (till Section 9.1) is about
> scalar multiplication and probably deserves a separate subsection to that
> effect.
>

I've split the scalar-mult function into its own section and moved the DH
bits into a separate one.


> -- With the draft, not sure why scalar multiplication ineptly uses the
> acronym "DH" (as in DH(s,u). I would strongly suggest avoiding any language
> that could put people on the wrong footing, due to connotations ubiquitous
> in the crypto literature.
>

That's my screwup. The scalar-mult function was called "curve25519" and I
changed it to DH in anticipation that more curves might be defined. Since I
get the feeling that won't happen now, I've switched back to calling it
"curve25519".


> -- With the draft, one seems to introduce lots of new variables to denote
> objects (e.g., why not use scalar k, point G, Q, DH key K= a Qb, co-factor
> h, etc., if one wants to cross a message most effectively)?
>

This is still an open issue as I have it now. In order to be consistent,
I've called the coordinates on the Montgomery curve (u, v) and those on the
(twisted) Edwards (x, y). We need to figure out whether the existing
specification for generating curves is called for if we're not going to
have any others. If not, then we could have (x,y)  for the Montgomery curve
and at least be a little more consistent. I have, at least, make the scalar
be 'k'.


> -- With the draft, outsiders who are not necessarily be versed in
> cryptography would have a hard time following/verifying esoteric language
> and certainly would not be familiar with "quadratic extensions",
> "projection maps ... extended, so". I would suggest that clarity of
> language is key here.
>

I agree and have removed that language.


> Notes: Andrey Jivsov noted error #b above. I tried to retrace other errors
> to cut-and-paste errors from draft-turner-thecurve25519function-01, but
> that original draft also contains these errors (despite mentioned review by
> Tanja Lange, according to acknowledgements). The turner draft does contain
> an implicit reference to flaw #d above, although in nebulous terms
> ("contributory behavior").
>
> For now, I refrain from other comments, but hope that we at least get the
> technical details right. (I was hoping that the adoption call would end
> with someone else noticing the errors above, but did not see this (except
> for #b above), so reluctantly go to the CFRG list to mention some of this
> here. [I have my private thoughts about how many people actually read the
> entire draft...].)
>
> Best regards, Rene
>
> -------- Forwarded Message --------  Subject: Re: [Cfrg] Adoption of
> draft-agl-cfrgcurve-00 as a RG document  Date: Sat, 24 Jan 2015 17:57:25
> +0000  From: Alexey Melnikov <alexey.melnikov@isode.com>
> <alexey.melnikov@isode.com>  To: cfrg@irtf.org <cfrg@irtf.org>
> <cfrg@irtf.org>
>
> Dear CFRG participants,
>
> On 05/01/2015 19:15, Alexey Melnikov wrote:
> > This message starts 2 weeks adoption call (ending on January 19th
> > 2015) on:
> >
> > https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
> >
> > as the starting point for the CFRG document which describes an
> > algorithm for safe curve parameter generation for a particular
> > security level and also recommends a specific curve (2^255-19) for the
> > 128-bit security level.
> >
> > Please reply to this message or directly to CFRG chairs, stating
> > whether you support (or not) adoption of this document. If you do not
> > support adoption of this document, please state whether you support
> > adoption of any alternative document or whether you want a particular
> > change be made to the document before adoption.
> >
> > Chairs ask not to reiterate previously expressed technical opinions or
> > arguments. But clarifying questions on the adoption call are welcome.
> >
> > While making your decision, please keep in mind
> >
> > http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
> Thank you for all the constructive feedback.
>
> Chairs have reviewed responses to this message (both public and some
> private) and can confirm that there is rough consensus for adopting
> draft-agl-cfrgcurve-00 as a RG document. Some people supported the
> document with conditions that some changes would (or would not) be done
> to it, although the majority of people supported it unconditionally.
> Some people who objected to the document being adopted asked about
> changes that were also asked by people who supported the document, so we
> are hoping that a future revision of the draft might become acceptable
> even to them.
>
> Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as
> draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who
> would be editors of the CFRG document.
>
> Best Regards,
> Alexey,
> On behalf of CFRG chairs.
> >
> > Alexey,
> > On behalf of CFRG chairs.
> >
> > P.S. Editors of draft-black-rpgecc-01 and
> > draft-turner-thecurve25519function-01 can become co-editors of the
> > adopted document, if they choose to do so. Email chairs directly if
> > you are willing or not willing to do so.
>
> _______________________________________________
> Cfrg mailing listCfrg@irtf.orghttp://www.irtf.org/mailman/listinfo/cfrg
>
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>
>


-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Jan 27, 2015 at 10:15 AM, Rene Struik <span dir=3D"ltr">&lt;<a href=3D"=
mailto:rstruik.ext@gmail.com" target=3D"_blank">rstruik.ext@gmail.com</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);borde=
r-left-style:solid;padding-left:1ex">
 =20

   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">It seems that draft-agl-cfrgcur=
ve-00 contains a few technical flaws,
    including:<br>
    </div></blockquote><div><br></div><div>Thank you very much for this. It=
 prompted me to make some changes that I&#39;ve been planning.</div><div><b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style=
:solid;padding-left:1ex"><div bgcolor=3D"#FFFFFF" text=3D"#000000">a) Secti=
on 9, p. 10:<br>
    The Montgomery ladder works on projective points of the form
    (X:Y:Z), or (X::Z) {if the Y-coordinate is deleted}, where x=3DX/Z,
    y=3DY/Z, and where the point at infinity is (1::0).<br>
    If so, one has Q-Q&#39;=3D(x1::z1)=3D(u::1), Q&#39;=3D(x2::z2)=3D(1::0)=
 {the point
    at infinity}, and Q=3D(x3::z3)=3D(u::1). <br>
    With the draft, one mistakenly has (x2::z2)=3D(0::1), i.e., the
    representation of the affine point (0,0) of order two. In that case
    Montgomery Adds results in (u::1) + (0::1) =3D (4::4u^3)~ (1:: u^3).
    So, the procedure outputs on input Q:=3D(u::1) and scalar k=3D1, the
    incorrect output R:=3D(1::u^3) (with x-coordinate u^{-3}), rather than
    simply u.<br></div></blockquote><div><br></div><div>You are quite corre=
ct. I&#39;ve fixed this.</div><div>=C2=A0</div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-c=
olor:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolo=
r=3D"#FFFFFF" text=3D"#000000">
    b) Section 9, p. 10:<br>
    The Montgomery ladder should produce, on input Q=3D(x1::z1) and scalar
    k, the output R:=3DkQ=3D(x2::z2), which can be mapped to an affine poin=
t
    with x-coordinate x2/z2. <br>
    With the draft, one mistakenly takes 1/z2 =3D z2^{p-1}, whereas this
    should obviously be z2^{p-2} (if z2 is nonzero).<br></div></blockquote>=
<div><br></div><div>I had fixed this on GitHub after=C2=A0Andrey&#39;s note=
 and it&#39;ll be in draft-irtf-cfrg-curves-00.</div><div>=C2=A0</div><bloc=
kquote 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;paddin=
g-left:1ex"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
    c) Section 9, p. 10:<br>
    The Montgomery ladder does not produce the output R=3DkQ for each
    input Q and scalar k, since, e.g., (after correcting the flaw
    identified in #a above), one can end up with the unidentified string
    projective point (0::0) in some cases. So, one should clarify what
    the input/output behavior of the Montgomery ladder is more clearly.
    {Does this work for all Montgomery curves, e.g., also when the curve
    y^2 =3D x^3 + A x^2 + x for which A^2 &lt;&gt;4?, etc.}<br></div></bloc=
kquote><div><br></div><div>The curve25519 function is defined as a function=
 from ([32]byte, [32]byte) -&gt; [32]byte. As such, it does have a defined =
behaviour when the resulting point is (0::0) as it&#39;ll output all zero b=
ytes. Although the draft was written with the possibility in mind that we m=
ight define several curves, my estimation at the moment if that the CFRG wo=
n&#39;t actually do that. Things might turn out differently but, for the mo=
ment, I&#39;m changing the document to be more curve25519 specific rather t=
han specifying the Montgomery ladder more generally.</div><div>=C2=A0=C2=A0=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:s=
olid;padding-left:1ex"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
    d) Section 9.1, p. 11:<br>
    With the draft, the output of the Diffie-Hellman protocol, as
    presented, succumbs to the small subgroup attack (e.g., DH(f,0)=3D0),
    no matter the value of f contributed by A).<br></div></blockquote><div>=
<br></div><div>It&#39;s certainly possible to extract the value of the scal=
ar mod the cofactor from curve25519, but the scalar construction ensures th=
at value is zero. I&#39;ve made a note about the &quot;non-contributory&quo=
t; behaviour of curve25519 in the draft.</div><div>=C2=A0</div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1=
px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:=
1ex"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
    e) Section 9.1, p. 11:<br>
    With the draft one has some annoying editorial glitches, including<br>
    -- &quot;Alice then transmits K_A=3DDH(f,9) to Bob, where 9 is the numb=
er
    9&quot; should most likely read &quot;Alice then transmits K_A=3DDH(f,g=
) to Bob,
    where g is the number 9&quot;.<br>
    -- &quot;Alice computes DH(f,DH(g,9))&quot; should read &quot;Alice com=
putes
    DH(f,K_B)&quot;; etc., and vice-versa for Bob.<br></div></blockquote><d=
iv><br></div><div>Both fixed, thanks.</div><div>=C2=A0</div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;=
border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex=
"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
    f) Section 9, pp. 9-11:<br>
    -- With the draft, the first part of Section 9 (till Section 9.1) is
    about scalar multiplication and probably deserves a separate
    subsection to that effect.<br></div></blockquote><div><br></div><div>I&=
#39;ve split the scalar-mult function into its own section and moved the DH=
 bits into a separate one.</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-style:solid;padding-left:1ex"><div bgco=
lor=3D"#FFFFFF" text=3D"#000000">
    -- With the draft, not sure why scalar multiplication ineptly uses
    the acronym &quot;DH&quot; (as in DH(s,u). I would strongly suggest avo=
iding
    any language that could put people on the wrong footing, due to
    connotations ubiquitous in the crypto literature.<br></div></blockquote=
><div><br></div><div>That&#39;s my screwup. The scalar-mult function was ca=
lled &quot;curve25519&quot; and I changed it to DH in anticipation that mor=
e curves might be defined. Since I get the feeling that won&#39;t happen no=
w, I&#39;ve switched back to calling it &quot;curve25519&quot;.</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"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
    -- With the draft, one seems to introduce lots of new variables to
    denote objects (e.g., why not use scalar k, point G, Q, DH key K=3D a
    Qb, co-factor h, etc., if one wants to cross a message most
    effectively)?<br></div></blockquote><div><br></div><div>This is still a=
n open issue as I have it now. In order to be consistent, I&#39;ve called t=
he coordinates on the Montgomery curve (u, v) and those on the (twisted) Ed=
wards (x, y). We need to figure out whether the existing specification for =
generating curves is called for if we&#39;re not going to have any others. =
If not, then we could have (x,y) =C2=A0for the Montgomery curve and at leas=
t be a little more consistent. I have, at least, make the scalar be &#39;k&=
#39;.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,20=
4);border-left-style:solid;padding-left:1ex"><div bgcolor=3D"#FFFFFF" text=
=3D"#000000">
    -- With the draft, outsiders who are not necessarily be versed in
    cryptography would have a hard time following/verifying esoteric
    language and certainly would not be familiar with &quot;quadratic
    extensions&quot;, &quot;projection maps ... extended, so&quot;. I would=
 suggest
    that clarity of language is key here.<br></div></blockquote><div><br></=
div><div>I agree and have removed that language.</div><div>=C2=A0</div><blo=
ckquote 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;paddi=
ng-left:1ex"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div>Notes: Andrey Jivsov noted error
      #b above. I tried to retrace other errors to cut-and-paste errors
      from draft-turner-thecurve25519function-01, but that original
      draft also contains these errors (despite mentioned review by
      Tanja Lange, according to acknowledgements). The turner draft does
      contain an implicit reference to flaw #d above, although in
      nebulous terms (&quot;contributory behavior&quot;).<br>
      <br>
      For now, I refrain from other comments, but hope that we at least
      get the technical details right. (I was hoping that the adoption
      call would end with someone else noticing the errors above, but
      did not see this (except for #b above), so reluctantly go to the
      CFRG list to mention some of this here. [I have my private
      thoughts about how many people actually read the entire
      draft...].)<br>
      <br>
      Best regards, Rene<br>
      <br>
      -------- Forwarded Message --------
      <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
        <tbody>
          <tr>
            <th align=3D"RIGHT" nowrap valign=3D"BASELINE">Subject:
            </th>
            <td>Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG
              document</td>
          </tr>
          <tr>
            <th align=3D"RIGHT" nowrap valign=3D"BASELINE">Date: </th>
            <td>Sat, 24 Jan 2015 17:57:25 +0000</td>
          </tr>
          <tr>
            <th align=3D"RIGHT" nowrap valign=3D"BASELINE">From: </th>
            <td>Alexey Melnikov <a href=3D"mailto:alexey.melnikov@isode.com=
" target=3D"_blank">&lt;alexey.melnikov@isode.com&gt;</a></td>
          </tr>
          <tr>
            <th align=3D"RIGHT" nowrap valign=3D"BASELINE">To: </th>
            <td><a href=3D"mailto:cfrg@irtf.org" target=3D"_blank">cfrg@irt=
f.org</a> <a href=3D"mailto:cfrg@irtf.org" target=3D"_blank">&lt;cfrg@irtf.=
org&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>Dear CFRG participants,

On 05/01/2015 19:15, Alexey Melnikov wrote:
&gt; This message starts 2 weeks adoption call (ending on January 19th=20
&gt; 2015) on:
&gt;
&gt; <a href=3D"https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml" tar=
get=3D"_blank">https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml</a>
&gt;
&gt; as the starting point for the CFRG document which describes an=20
&gt; algorithm for safe curve parameter generation for a particular=20
&gt; security level and also recommends a specific curve (2^255-19) for the=
=20
&gt; 128-bit security level.
&gt;
&gt; Please reply to this message or directly to CFRG chairs, stating=20
&gt; whether you support (or not) adoption of this document. If you do not=
=20
&gt; support adoption of this document, please state whether you support=20
&gt; adoption of any alternative document or whether you want a particular=
=20
&gt; change be made to the document before adoption.
&gt;
&gt; Chairs ask not to reiterate previously expressed technical opinions or=
=20
&gt; arguments. But clarifying questions on the adoption call are welcome.
&gt;
&gt; While making your decision, please keep in mind
&gt;
&gt; <a href=3D"http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.=
html" target=3D"_blank">http://www.ietf.org/mail-archive/web/cfrg/current/m=
sg05813.html</a>
Thank you for all the constructive feedback.

Chairs have reviewed responses to this message (both public and some=20
private) and can confirm that there is rough consensus for adopting=20
draft-agl-cfrgcurve-00 as a RG document. Some people supported the=20
document with conditions that some changes would (or would not) be done=20
to it, although the majority of people supported it unconditionally.=20
Some people who objected to the document being adopted asked about=20
changes that were also asked by people who supported the document, so we=20
are hoping that a future revision of the draft might become acceptable=20
even to them.

Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as=20
draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who=20
would be editors of the CFRG document.

Best Regards,
Alexey,
On behalf of CFRG chairs.
&gt;
&gt; Alexey,
&gt; On behalf of CFRG chairs.
&gt;
&gt; P.S. Editors of draft-black-rpgecc-01 and=20
&gt; draft-turner-thecurve25519function-01 can become co-editors of the=20
&gt; adopted document, if they choose to do so. Email chairs directly if=20
&gt; you are willing or not willing to do so.

_______________________________________________
Cfrg mailing list
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
      <br>
    </div>
    <br>
  </div>

<br>_______________________________________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/listinfo/cfrg</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div>Ada=
m Langley <a href=3D"mailto:agl@imperialviolet.org" target=3D"_blank">agl@i=
mperialviolet.org</a> <a href=3D"https://www.imperialviolet.org" target=3D"=
_blank">https://www.imperialviolet.org</a></div>
</div></div>

--001a11c34864a95af1050dab47d9--


From nobody Tue Jan 27 17:24:54 2015
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 32A2A1A0235 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 17:24:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UoezVDiI_rq8 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 17:24:51 -0800 (PST)
Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B49061A0210 for <cfrg@irtf.org>; Tue, 27 Jan 2015 17:24:50 -0800 (PST)
Received: by mail-lb0-f178.google.com with SMTP id u10so16157288lbd.9 for <cfrg@irtf.org>; Tue, 27 Jan 2015 17:24:49 -0800 (PST)
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=0wANuxMOs5Iry5nYzFNvqh1xlme1XdWrpzUG5+c8wK4=; b=DSrRzXCU9ekokt+78DD86zePHdGGsSkP2pWRcID3EFBS4odDtNgq9forDyOSQkL7KQ y0VsiqdcJKsRIv2VwXVoVxKCONv8IjyLHuxgHfVOqLq2KAkOHCKYrSWneT3+caZMW/8S 19jJMqU6sLluRCdFP8UKc7NaFnNQ2ajxJLeUXmwQ1CKWfBy9frGgCfV7ZxJol3rhhR0S L2BJfLlg3ImpPhz3OtAvvzRjVTH3DXdLO0LjLRxJbX7GZkUpZIlbE5nVvWB6YLqUw0gg i0SGwqyh/NWWftXJghVDl5FvgAGgsXtR60v6TGFYAMxpBwL2MUNS+wAMmsQLMqFlMqBx 7z9g==
MIME-Version: 1.0
X-Received: by 10.152.87.50 with SMTP id u18mr4993602laz.21.1422408289087; Tue, 27 Jan 2015 17:24:49 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Tue, 27 Jan 2015 17:24:48 -0800 (PST)
In-Reply-To: <54C7B572.2020109@cs.tcd.ie>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <b2b8d964885246748ebde894064b6a3c@ustx2ex-dag1mb2.msg.corp.akamai.com> <54C7B572.2020109@cs.tcd.ie>
Date: Tue, 27 Jan 2015 20:24:48 -0500
X-Google-Sender-Auth: 6DV2p_PIc_14ZgLz7fN_-BqdtuU
Message-ID: <CAMm+LwgZP60ypKSAgLop0CGykPPsMo2pUR+gPgYf3Zc2PPuhsw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Content-Type: multipart/alternative; boundary=001a11c36536cbf7e8050dac3c4b
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/XOhwI05EN_AFsZEs-Y3gdRvdZ5U>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 01:24:52 -0000

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

On Tue, Jan 27, 2015 at 10:57 AM, Stephen Farrell <stephen.farrell@cs.tcd.ie
> wrote:

>
>
> On 27/01/15 15:46, Salz, Rich wrote:
> > Don't they have a different code path for the math implementation?
>
> Right. So it makes very little to no difference really I'd guess.
>
> Or if someone has code where it would then sending a pointer to
> that would help me at least. Anytime I've done that kind of code
> it'd have been no problem at all to deal with this issue.
>

Actually no, it makes a huge difference because I only have one encoder
library that serves all my algorithms and that maps the in-memory data
formats to one serialization format.

The algorithm implementations don't have their own bignum implementations
either. This is a different layer in the application stack, different rules
apply.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 27, 2015 at 10:57 AM, Stephen Farrell <span dir=3D"ltr">&lt=
;<a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=3D"_blank">stephen.far=
rell@cs.tcd.ie</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><spa=
n class=3D""><br>
<br>
On 27/01/15 15:46, Salz, Rich wrote:<br>
&gt; Don&#39;t they have a different code path for the math implementation?=
<br>
<br>
</span>Right. So it makes very little to no difference really I&#39;d guess=
.<br>
<br>
Or if someone has code where it would then sending a pointer to<br>
that would help me at least. Anytime I&#39;ve done that kind of code<br>
it&#39;d have been no problem at all to deal with this issue.<br></blockquo=
te><div><br></div><div>Actually no, it makes a huge difference because I on=
ly have one encoder library that serves all my algorithms and that maps the=
 in-memory data formats to one serialization format.</div><div><br></div><d=
iv>The algorithm implementations don&#39;t have their own bignum implementa=
tions either. This is a different layer in the application stack, different=
 rules apply.</div></div></div></div>

--001a11c36536cbf7e8050dac3c4b--


From nobody Tue Jan 27 17:34:18 2015
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 5238D1A1A34 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 17:34:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AQVL25InHJdr for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 17:34:15 -0800 (PST)
Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CB3B81A1A1E for <cfrg@irtf.org>; Tue, 27 Jan 2015 17:34:14 -0800 (PST)
Received: by mail-lb0-f181.google.com with SMTP id u10so16184577lbd.12 for <cfrg@irtf.org>; Tue, 27 Jan 2015 17:34:13 -0800 (PST)
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=NhS/YQBFsgs8/hKpK2Ulgq78dOA9FW2Wjt579iuwf8Q=; b=a7+Rlt5kWdInSmr/xBIysLOIe0kpDJ8i/vit1jdMkgh0gSufNPUrwMiF6CXoflm0E5 4QMgQZ60cnIDaoBCCszg4El20bO1JJA9uYQKCbnVqGrgImWFZSCUrAG22/TOoouRVAcb V4fdTSIB+QbzTmNxX2OxxzPzGGr/VXlCjPAqbBzE+1vVc9+hpudAhXlSTs9aXOvapwh7 C+pTNg7FvQgfAcb6zuzHftlzI146EPmYr9k6RQqyxCYtV/xoGnp2v5xpM3DGr95dy7TX iBVAGYiv9OIhHjY3oWSkbsbnc86zX4pcDW3AdMKkB+PwjYIEAkh/JswMGWMJ6KpPH8/E JBmw==
MIME-Version: 1.0
X-Received: by 10.112.27.133 with SMTP id t5mr5018128lbg.45.1422408853353; Tue, 27 Jan 2015 17:34:13 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Tue, 27 Jan 2015 17:34:13 -0800 (PST)
In-Reply-To: <alpine.BSO.2.11.1501280859340.16736@natsu.mindrot.org>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF68325@uxcn10-tdc05.UoA.auckland.ac.nz> <54C76EED.6090205@cs.tcd.ie> <sjm386wjko8.fsf@securerf.ihtfp.org> <alpine.BSO.2.11.1501280859340.16736@natsu.mindrot.org>
Date: Tue, 27 Jan 2015 20:34:13 -0500
X-Google-Sender-Auth: nv3xRg7FYy-_XIzyVvFUh4fOb28
Message-ID: <CAMm+LwgN=bWvJYLwQXThs23jkw74wB8CgSq-HVZTVJhDOF+d2Q@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Damien Miller <djm@mindrot.org>
Content-Type: multipart/alternative; boundary=001a1133b04a6df9ab050dac5e32
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/LCRlR_zx85zTtwcb_-87KXAqxRU>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, Peter Gutmann <pgut001@cs.auckland.ac.nz>
Subject: Re: [Cfrg] Point format endian
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 01:34:16 -0000

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

On Tue, Jan 27, 2015 at 5:00 PM, Damien Miller <djm@mindrot.org> wrote:

> On Tue, 27 Jan 2015, Derek Atkins wrote:
>
> > Stephen Farrell <stephen.farrell@cs.tcd.ie> writes:
> >
> > > On 27/01/15 10:34, Peter Gutmann wrote:
> > >> The universal standard for crypto bignums is big-endian
> > >
> > > Hmmm.... sez who? :-)
> >
> > PKIX, OpenPGP, OpenSSH, Kerberos, TLS...  Pretty much every existing
> > IETF security standard I know of to date encodes numbers in big-endian
> > format.
>
> No, OpenSSH uses little endian encoding for X25519 and Ed25519.
>

TLS uses certificates. OpenSSH does not, it is currently using a raw key
which is a complete pain in the patootiee.

I am not going to be using any common code serializing for TLS and for
OpenSSH or GPG so the issue really does not arise there.


Internal consistency in TLS is what matters for TLS and after that internal
consistency in IETF. I really don't see why a TLS key would be used for
OpenSSH and it seems a bad idea to do so in any case. So making
transcription of keys easy is hardly a priority.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Jan 27, 2015 at 5:00 PM, Damien Miller <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:djm@mindrot.org" target=3D"_blank">djm@mindrot.org</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">On Tue, 27=
 Jan 2015, Derek Atkins wrote:<br>
<br>
&gt; Stephen Farrell &lt;<a href=3D"mailto:stephen.farrell@cs.tcd.ie">steph=
en.farrell@cs.tcd.ie</a>&gt; writes:<br>
&gt;<br>
&gt; &gt; On 27/01/15 10:34, Peter Gutmann wrote:<br>
&gt; &gt;&gt; The universal standard for crypto bignums is big-endian<br>
&gt; &gt;<br>
&gt; &gt; Hmmm.... sez who? :-)<br>
&gt;<br>
&gt; PKIX, OpenPGP, OpenSSH, Kerberos, TLS...=C2=A0 Pretty much every exist=
ing<br>
&gt; IETF security standard I know of to date encodes numbers in big-endian=
<br>
&gt; format.<br>
<br>
</span>No, OpenSSH uses little endian encoding for X25519 and Ed25519.<br><=
/blockquote><div><br></div><div>TLS uses certificates. OpenSSH does not, it=
 is currently using a raw key which is a complete pain in the patootiee.</d=
iv><div><br></div><div>I am not going to be using any common code serializi=
ng for TLS and for OpenSSH or GPG so the issue really does not arise there.=
</div><div><br></div><div>=C2=A0</div><div>Internal consistency in TLS is w=
hat matters for TLS and after that internal consistency in IETF. I really d=
on&#39;t see why a TLS key would be used for OpenSSH and it seems a bad ide=
a to do so in any case. So making transcription of keys easy is hardly a pr=
iority.</div></div></div></div>

--001a1133b04a6df9ab050dac5e32--


From nobody Tue Jan 27 17:49:21 2015
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 566741AC3D7 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 17:49:19 -0800 (PST)
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 mGG8zvUHr1oh for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 17:49:16 -0800 (PST)
Received: from mail-yh0-x22e.google.com (mail-yh0-x22e.google.com [IPv6:2607:f8b0:4002:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B6D01A9175 for <cfrg@irtf.org>; Tue, 27 Jan 2015 17:49:16 -0800 (PST)
Received: by mail-yh0-f46.google.com with SMTP id c41so7584076yho.5 for <cfrg@irtf.org>; Tue, 27 Jan 2015 17:49:15 -0800 (PST)
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=80N5IZ9kJdeMBLOoGxvO40N5wvJ6TiCfNy7sJi0V7BE=; b=LGQojbByiOTknM6IOOygyRV97t1S7PF0nRuuFwQgp9q35ULi5wC+wSnRyX5IIPW8ES RpqkQrFZqW0tlkQVbSGcCOLFtoD+Z6ADcQOw/yVrSLgBMVIFV1CtZsLrfB9h8ypYA2Vk TOxptZs2dlwqJsxyjfQtqHmZ6DhGfTPyQFBha/ySAOWPpguJIDvqjo4CvZZ+gO6/FERW n0v+5LwJAj+1Olld2zzjqiIPEYjLeY5LlaVo7vmAoiKQBakWqOwHGPp71W2oCmgCI5Hc gStgIyDalbXJPcO3xVB7f/PS7BTOwrLBus7FVeaoaC5D5qBr0MT0VfsDtOzCmX+AQ/Qu jQzw==
MIME-Version: 1.0
X-Received: by 10.170.46.3 with SMTP id 3mr223469yko.24.1422409755417; Tue, 27 Jan 2015 17:49:15 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Tue, 27 Jan 2015 17:49:15 -0800 (PST)
In-Reply-To: <4dbcfbff889d175765d549d96826767a.squirrel@www.trepanning.net>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net> <CACsn0c=+uKicVmuex+jo5L6VQcJPLuQ45z3T1EZbSXMOrpy-=A@mail.gmail.com> <4dbcfbff889d175765d549d96826767a.squirrel@www.trepanning.net>
Date: Tue, 27 Jan 2015 17:49:15 -0800
Message-ID: <CACsn0cnFQhRrP=7oG+7eWKr_2+L+kNjGkXW0xHsdV5WLXsH1Tw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: multipart/alternative; boundary=001a11437dca32659f050dac94dd
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Cyk6ANheUVzgE0pKvN0Na2XtIOA>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 28 Jan 2015 01:49:19 -0000

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

On Jan 27, 2015 9:30 AM, "Dan Harkins" <dharkins@lounge.org> wrote:
>
>
>
> On Tue, January 27, 2015 9:07 am, Watson Ladd wrote:
> >
> > My SPAKE2 draft contains specified M&N, generated by a C program
> > Nathan McCullum sent me. I've been unable to determine what that
> > program does in anything more than the vaguest terms because OpenSSL
> > internals are opaque, but users do not need to generate their own
> > points.
>
>   Yes, it's opaque to you, the application writer. That's the point! But
> to have curve25519 as a special case then you'd have to pry into the
> opacity of the code and figure out what's going on.
>
>   So to allow Nathan McCullum to send you a chunk of code that
> should work with any curve supported by OpenSSL, and have it just
> work without you knowing any opaque internals, it requires a
> canonical conversion of bitstring to integer to field element and
> back.
>
>   If, as you say, users do not need to generate their own points then
> they're gonna have to have a registry of M and N for all curves. And
> to import a bitstring (for instance from the appendix of your draft)
> into code requires converting that bitstring into an element. And
> without the canonical conversion then you need to know about the
> opaque internals.

What makes you think I wouldn't write the point appropriately? More
importantly, if this encoding was different for each curve, how would I
notice, except when I generate the table? Every point has a representation
either way.

I can always do the calculation in PARI and reverse and pad the result. In
fact, PARI only uses decimal IO so I have to convert anyway. I'm not
insisting on decimal format to make my tools work.

There is an encoding of x coordinates as 32 byte strings. The intent is
that this encoding is used for everything having to do with Curve25519. Why
is this such a large problem? At least with the Weierstrass coordinate on
the wire proposal there was a clear rationale for the change in terms of
compatibility. But this has nothing to do with compatibility: you will need
to write new code anyway.

Of course, it's not the case that there is a single universal key format.
SEC1 serializes bignums as fixed-width in keys and variable width in
signatures. PGP uses a different length encoding from TLS. Nor do all
algorithms on words take the words the same way: MD5 uses a little-endian
length encoding, and encodes the low byte first. SHA1 uses a big-endian
length encoding and big-endian words.

Furthermore, forcing applications to carry out encoding and decoding,
instead of having the library do it has several bad effects. It makes it
more complicated to use Curve25519. It prevents codesharing among
libraries, unless they have identical bignum APIs. It makes applications
non portable across libraries.

Defining Curve25519 as a function of bigintegers was considered and
rejected by multiple people due to interoperability problems historically
caused by lack of canonical byte encodings: TLS DHE uses two distinct
encodings at some point.

What's wrong with the API everyone is already using?

Sincerely,
Watson Ladd

>
>   Thank you for illustrating my point so well!

>
>   Dan.
>
>

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

<div dir=3D"ltr"><p dir=3D"ltr"><br>
On Jan 27, 2015 9:30 AM, &quot;Dan Harkins&quot; &lt;<a href=3D"mailto:dhar=
kins@lounge.org" target=3D"_blank">dharkins@lounge.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, January 27, 2015 9:07 am, Watson Ladd wrote:<br>
&gt; &gt;<br>
&gt; &gt; My SPAKE2 draft contains specified M&amp;N, generated by a C prog=
ram<br>
&gt; &gt; Nathan McCullum sent me. I&#39;ve been unable to determine what t=
hat<br>
&gt; &gt; program does in anything more than the vaguest terms because Open=
SSL<br>
&gt; &gt; internals are opaque, but users do not need to generate their own=
<br>
&gt; &gt; points.<br>
&gt;<br>
&gt; =C2=A0 Yes, it&#39;s opaque to you, the application writer. That&#39;s=
 the point! But<br>
&gt; to have curve25519 as a special case then you&#39;d have to pry into t=
he<br>
&gt; opacity of the code and figure out what&#39;s going on.<br>
&gt;<br>
&gt; =C2=A0 So to allow Nathan McCullum to send you a chunk of code that<br=
>
&gt; should work with any curve supported by OpenSSL, and have it just<br>
&gt; work without you knowing any opaque internals, it requires a<br>
&gt; canonical conversion of bitstring to integer to field element and<br>
&gt; back.<br>
&gt;<br>
&gt; =C2=A0 If, as you say, users do not need to generate their own points =
then<br>
&gt; they&#39;re gonna have to have a registry of M and N for all curves. A=
nd<br>
&gt; to import a bitstring (for instance from the appendix of your draft)<b=
r>
&gt; into code requires converting that bitstring into an element. And<br>
&gt; without the canonical conversion then you need to know about the<br>
&gt; opaque internals.</p>
<p dir=3D"ltr">What makes you think I wouldn&#39;t write the point appropri=
ately? More importantly, if this encoding was different for each curve, how=
 would I notice, except when I generate the table? Every point has a repres=
entation either way.</p>
<p dir=3D"ltr">I can always do the calculation in PARI and reverse and pad =
the result. In fact, PARI only uses decimal IO so I have to convert anyway.=
 I&#39;m not insisting on decimal format to make my tools work.</p>
<p dir=3D"ltr">There is an encoding of x coordinates as 32 byte strings. Th=
e intent is that this encoding is used for everything having to do with Cur=
ve25519. Why is this such a large problem? At least with the Weierstrass co=
ordinate on the wire proposal there was a clear rationale for the change in=
 terms of compatibility. But this has nothing to do with compatibility: you=
 will need to write new code anyway.</p><p>Of course, it&#39;s not the case=
 that there is a single universal key format. SEC1 serializes bignums as fi=
xed-width in keys and variable width in signatures. PGP uses a different le=
ngth encoding from TLS. Nor do all algorithms on words take the words the s=
ame way: MD5 uses a little-endian length encoding, and encodes the low byte=
 first. SHA1 uses a big-endian length encoding and big-endian words.</p><p>=
Furthermore, forcing applications to carry out encoding and decoding, inste=
ad of having the library do it has several bad effects. It makes it more co=
mplicated to use Curve25519. It prevents codesharing among libraries, unles=
s they have identical bignum APIs. It makes applications non portable acros=
s libraries.</p><p>Defining Curve25519 as a function of bigintegers was con=
sidered and rejected by multiple people due to interoperability problems hi=
storically caused by lack of canonical byte encodings: TLS DHE uses two dis=
tinct encodings at some point.=C2=A0</p><p>What&#39;s wrong with the API ev=
eryone is already using?</p><p>Sincerely,<br>Watson Ladd</p>
<p dir=3D"ltr">&gt;<br>
&gt; =C2=A0 Thank you for illustrating my point so well!</p>
<p dir=3D"ltr">&gt;<br>
&gt; =C2=A0 Dan.<br>
&gt;<br>
&gt;<br>
</p>
</div>

--001a11437dca32659f050dac94dd--


From nobody Tue Jan 27 18:25:40 2015
Return-Path: <rstruik.ext@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 65E9F1A1AD8 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 18:25:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.201
X-Spam-Level: ****
X-Spam-Status: No, score=4.201 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_12=0.6, J_CHICKENPOX_21=0.6, MANGLED_OFF=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 ok7pZuZEgViR for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 18:25:34 -0800 (PST)
Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001: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 89CC61ACCE0 for <cfrg@irtf.org>; Tue, 27 Jan 2015 18:25:28 -0800 (PST)
Received: by mail-ie0-f170.google.com with SMTP id y20so19163880ier.1 for <cfrg@irtf.org>; Tue, 27 Jan 2015 18:25:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=4hSqMmyV7GT8Z05s1nRtTAN0VYMjUTzTw6Qos6sg9ms=; b=V6ZjnwgbH4ruzdy7U4lAZRR+cWFu4/L54hk+HJtvm7fEFgOXSegFHPTlAmxFqoeGzh I0++nUFkkhOSIzE0yGcxAtrTzqKRmoynH7In++XkxbmpXxGI/kifyNX7M8h8nx6xZV5g rC3SfDiCidfKt0bYWKmjQmRcGbOYWcwBrD7ywAucbApvhPGs9vzeUVQDsQWfhYsHlVd7 vv/q9896TBTDI+famBTKB72yFLzqmWV4SWFtGJutN/efBRXifye37EMb4VGzI1fuYgVo UIr+5fibw4fEFQR0GA6zNbx/OZfEjSPppFE0Qkzkcrwo51iSiK1L3sSKBb9HemT7NprQ WNdw==
X-Received: by 10.50.36.103 with SMTP id p7mr1123615igj.20.1422411927587; Tue, 27 Jan 2015 18:25:27 -0800 (PST)
Received: from [192.168.0.10] (CPE7cb21b2cb904-CM7cb21b2cb901.cpe.net.cable.rogers.com. [99.231.49.38]) by mx.google.com with ESMTPSA id b7sm2043904igx.15.2015.01.27.18.25.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jan 2015 18:25:27 -0800 (PST)
Message-ID: <54C84883.2090608@gmail.com>
Date: Tue, 27 Jan 2015 21:25:07 -0500
From: Rene Struik <rstruik.ext@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Adam Langley <agl@imperialviolet.org>
References: <54C3DD05.6060706@isode.com>	<54C7D5BA.6050606@gmail.com> <CAMfhd9XA5OkPHHnh19H8H6R7Z=XqJ1vWDG2-_U9Ej6_gO+KN4A@mail.gmail.com>
In-Reply-To: <CAMfhd9XA5OkPHHnh19H8H6R7Z=XqJ1vWDG2-_U9Ej6_gO+KN4A@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------040303010307060901050706"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/oZU4EkEQCHqYhq-hsWzwt_Ni8lo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] (technical flaws to be corrected in next version of the draft) Fwd: Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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, 28 Jan 2015 02:25:38 -0000

This is a multi-part message in MIME format.
--------------040303010307060901050706
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Adam:

Thanks for the quick feedback and willingness to accommodate my 
suggestions to improve the draft.

I will revisit your email later. However, just another brief process note:
I would like to strongly suggest first re-publishing your individual 
internet draft draft-agl-cfrgcurve-00, but now as 
draft-irtf-cfrg-curve-00 (i.e., verbatim copy, except change of title 
and submission date) and only then make changes to the resulting 
document. As I said in my previous process note (Jan 5, 2015, 4.42pm 
EST), this allows easy to keep track of evolution over time.

Please forgive me my "rigid" approach here, but the "rigid curve 
selection criteria" we started out with seem to have to apply to the 
processes of this (somewhat dysfunctional) IRTF group as well. I hope 
you appreciate this; this is not a personal criticism. BTW - this 
republication suggestion is precisely what Alexey Melnikov suggested in 
his Sat Jan 24, 2015 adoption email.

Best regards, Rene

On 1/27/2015 7:16 PM, Adam Langley wrote:
> On Tue, Jan 27, 2015 at 10:15 AM, Rene Struik <rstruik.ext@gmail.com 
> <mailto:rstruik.ext@gmail.com>> wrote:
>
>     It seems that draft-agl-cfrgcurve-00 contains a few technical
>     flaws, including:
>
>
> Thank you very much for this. It prompted me to make some changes that 
> I've been planning.
>
>     a) Section 9, p. 10:
>     The Montgomery ladder works on projective points of the form
>     (X:Y:Z), or (X::Z) {if the Y-coordinate is deleted}, where x=X/Z,
>     y=Y/Z, and where the point at infinity is (1::0).
>     If so, one has Q-Q'=(x1::z1)=(u::1), Q'=(x2::z2)=(1::0) {the point
>     at infinity}, and Q=(x3::z3)=(u::1).
>     With the draft, one mistakenly has (x2::z2)=(0::1), i.e., the
>     representation of the affine point (0,0) of order two. In that
>     case Montgomery Adds results in (u::1) + (0::1) = (4::4u^3)~ (1::
>     u^3). So, the procedure outputs on input Q:=(u::1) and scalar k=1,
>     the incorrect output R:=(1::u^3) (with x-coordinate u^{-3}),
>     rather than simply u.
>
>
> You are quite correct. I've fixed this.
>
>     b) Section 9, p. 10:
>     The Montgomery ladder should produce, on input Q=(x1::z1) and
>     scalar k, the output R:=kQ=(x2::z2), which can be mapped to an
>     affine point with x-coordinate x2/z2.
>     With the draft, one mistakenly takes 1/z2 = z2^{p-1}, whereas this
>     should obviously be z2^{p-2} (if z2 is nonzero).
>
>
> I had fixed this on GitHub after Andrey's note and it'll be in 
> draft-irtf-cfrg-curves-00.
>
>     c) Section 9, p. 10:
>     The Montgomery ladder does not produce the output R=kQ for each
>     input Q and scalar k, since, e.g., (after correcting the flaw
>     identified in #a above), one can end up with the unidentified
>     string projective point (0::0) in some cases. So, one should
>     clarify what the input/output behavior of the Montgomery ladder is
>     more clearly. {Does this work for all Montgomery curves, e.g.,
>     also when the curve y^2 = x^3 + A x^2 + x for which A^2 <>4?, etc.}
>
>
> The curve25519 function is defined as a function from ([32]byte, 
> [32]byte) -> [32]byte. As such, it does have a defined behaviour when 
> the resulting point is (0::0) as it'll output all zero bytes. Although 
> the draft was written with the possibility in mind that we might 
> define several curves, my estimation at the moment if that the CFRG 
> won't actually do that. Things might turn out differently but, for the 
> moment, I'm changing the document to be more curve25519 specific 
> rather than specifying the Montgomery ladder more generally.
>
>     d) Section 9.1, p. 11:
>     With the draft, the output of the Diffie-Hellman protocol, as
>     presented, succumbs to the small subgroup attack (e.g.,
>     DH(f,0)=0), no matter the value of f contributed by A).
>
>
> It's certainly possible to extract the value of the scalar mod the 
> cofactor from curve25519, but the scalar construction ensures that 
> value is zero. I've made a note about the "non-contributory" behaviour 
> of curve25519 in the draft.
>
>     e) Section 9.1, p. 11:
>     With the draft one has some annoying editorial glitches, including
>     -- "Alice then transmits K_A=DH(f,9) to Bob, where 9 is the number
>     9" should most likely read "Alice then transmits K_A=DH(f,g) to
>     Bob, where g is the number 9".
>     -- "Alice computes DH(f,DH(g,9))" should read "Alice computes
>     DH(f,K_B)"; etc., and vice-versa for Bob.
>
>
> Both fixed, thanks.
>
>     f) Section 9, pp. 9-11:
>     -- With the draft, the first part of Section 9 (till Section 9.1)
>     is about scalar multiplication and probably deserves a separate
>     subsection to that effect.
>
>
> I've split the scalar-mult function into its own section and moved the 
> DH bits into a separate one.
>
>     -- With the draft, not sure why scalar multiplication ineptly uses
>     the acronym "DH" (as in DH(s,u). I would strongly suggest avoiding
>     any language that could put people on the wrong footing, due to
>     connotations ubiquitous in the crypto literature.
>
>
> That's my screwup. The scalar-mult function was called "curve25519" 
> and I changed it to DH in anticipation that more curves might be 
> defined. Since I get the feeling that won't happen now, I've switched 
> back to calling it "curve25519".
>
>     -- With the draft, one seems to introduce lots of new variables to
>     denote objects (e.g., why not use scalar k, point G, Q, DH key K=
>     a Qb, co-factor h, etc., if one wants to cross a message most
>     effectively)?
>
>
> This is still an open issue as I have it now. In order to be 
> consistent, I've called the coordinates on the Montgomery curve (u, v) 
> and those on the (twisted) Edwards (x, y). We need to figure out 
> whether the existing specification for generating curves is called for 
> if we're not going to have any others. If not, then we could have 
> (x,y)  for the Montgomery curve and at least be a little more 
> consistent. I have, at least, make the scalar be 'k'.
>
>     -- With the draft, outsiders who are not necessarily be versed in
>     cryptography would have a hard time following/verifying esoteric
>     language and certainly would not be familiar with "quadratic
>     extensions", "projection maps ... extended, so". I would suggest
>     that clarity of language is key here.
>
>
> I agree and have removed that language.
>
>     Notes: Andrey Jivsov noted error #b above. I tried to retrace
>     other errors to cut-and-paste errors from
>     draft-turner-thecurve25519function-01, but that original draft
>     also contains these errors (despite mentioned review by Tanja
>     Lange, according to acknowledgements). The turner draft does
>     contain an implicit reference to flaw #d above, although in
>     nebulous terms ("contributory behavior").
>
>     For now, I refrain from other comments, but hope that we at least
>     get the technical details right. (I was hoping that the adoption
>     call would end with someone else noticing the errors above, but
>     did not see this (except for #b above), so reluctantly go to the
>     CFRG list to mention some of this here. [I have my private
>     thoughts about how many people actually read the entire draft...].)
>
>     Best regards, Rene
>
>     -------- Forwarded Message --------
>     Subject: 	Re: [Cfrg] Adoption of draft-agl-cfrgcurve-00 as a RG
>     document
>     Date: 	Sat, 24 Jan 2015 17:57:25 +0000
>     From: 	Alexey Melnikov <alexey.melnikov@isode.com>
>     <mailto:alexey.melnikov@isode.com>
>     To: 	cfrg@irtf.org <mailto:cfrg@irtf.org> <cfrg@irtf.org>
>     <mailto:cfrg@irtf.org>
>
>
>
>     Dear CFRG participants,
>
>     On 05/01/2015 19:15, Alexey Melnikov wrote:
>     > This message starts 2 weeks adoption call (ending on January 19th
>     > 2015) on:
>     >
>     >https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml
>     >
>     > as the starting point for the CFRG document which describes an
>     > algorithm for safe curve parameter generation for a particular
>     > security level and also recommends a specific curve (2^255-19) for the
>     > 128-bit security level.
>     >
>     > Please reply to this message or directly to CFRG chairs, stating
>     > whether you support (or not) adoption of this document. If you do not
>     > support adoption of this document, please state whether you support
>     > adoption of any alternative document or whether you want a particular
>     > change be made to the document before adoption.
>     >
>     > Chairs ask not to reiterate previously expressed technical opinions or
>     > arguments. But clarifying questions on the adoption call are welcome.
>     >
>     > While making your decision, please keep in mind
>     >
>     >http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html
>     Thank you for all the constructive feedback.
>
>     Chairs have reviewed responses to this message (both public and some
>     private) and can confirm that there is rough consensus for adopting
>     draft-agl-cfrgcurve-00 as a RG document. Some people supported the
>     document with conditions that some changes would (or would not) be done
>     to it, although the majority of people supported it unconditionally.
>     Some people who objected to the document being adopted asked about
>     changes that were also asked by people who supported the document, so we
>     are hoping that a future revision of the draft might become acceptable
>     even to them.
>
>     Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as
>     draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who
>     would be editors of the CFRG document.
>
>     Best Regards,
>     Alexey,
>     On behalf of CFRG chairs.
>     >
>     > Alexey,
>     > On behalf of CFRG chairs.
>     >
>     > P.S. Editors of draft-black-rpgecc-01 and
>     > draft-turner-thecurve25519function-01 can become co-editors of the
>     > adopted document, if they choose to do so. Email chairs directly if
>     > you are willing or not willing to do so.
>
>     _______________________________________________
>     Cfrg mailing list
>     Cfrg@irtf.org  <mailto:Cfrg@irtf.org>
>     http://www.irtf.org/mailman/listinfo/cfrg
>
>
>
>
>     _______________________________________________
>     Cfrg mailing list
>     Cfrg@irtf.org <mailto:Cfrg@irtf.org>
>     http://www.irtf.org/mailman/listinfo/cfrg
>
>
>
>
> -- 
> Adam Langley agl@imperialviolet.org <mailto:agl@imperialviolet.org> 
> https://www.imperialviolet.org


-- 
email: rstruik.ext@gmail.com | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363


--------------040303010307060901050706
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Adam:<br>
      <br>
      Thanks for the quick feedback and willingness to accommodate my
      suggestions to improve the draft.<br>
      <br>
      I will revisit your email later. However, just another brief
      process note: <br>
      I would like to strongly suggest first re-publishing your
      individual internet draft draft-agl-cfrgcurve-00, but now as
      draft-irtf-cfrg-curve-00 (i.e., verbatim copy, except change of
      title and submission date) and only then make changes to the
      resulting document. As I said in my previous process note (Jan 5,
      2015, 4.42pm EST), this allows easy to keep track of evolution
      over time.<br>
      <br>
      Please forgive me my "rigid" approach here, but the "rigid curve
      selection criteria" we started out with seem to have to apply to
      the processes of this (somewhat dysfunctional) IRTF group as well.
      I hope you appreciate this; this is not a personal criticism. BTW
      - this republication suggestion is precisely what Alexey Melnikov
      suggested in his Sat Jan 24, 2015 adoption email.<br>
      <br>
      Best regards, Rene<br>
      <br>
      On 1/27/2015 7:16 PM, Adam Langley wrote:<br>
    </div>
    <blockquote
cite="mid:CAMfhd9XA5OkPHHnh19H8H6R7Z=XqJ1vWDG2-_U9Ej6_gO+KN4A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, Jan 27, 2015 at 10:15 AM,
            Rene Struik <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:rstruik.ext@gmail.com" target="_blank">rstruik.ext@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">It seems that
                draft-agl-cfrgcurve-00 contains a few technical flaws,
                including:<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Thank you very much for this. It prompted me to make
              some changes that I've been planning.</div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">a) Section 9, p. 10:<br>
                The Montgomery ladder works on projective points of the
                form (X:Y:Z), or (X::Z) {if the Y-coordinate is
                deleted}, where x=X/Z, y=Y/Z, and where the point at
                infinity is (1::0).<br>
                If so, one has Q-Q'=(x1::z1)=(u::1), Q'=(x2::z2)=(1::0)
                {the point at infinity}, and Q=(x3::z3)=(u::1). <br>
                With the draft, one mistakenly has (x2::z2)=(0::1),
                i.e., the representation of the affine point (0,0) of
                order two. In that case Montgomery Adds results in
                (u::1) + (0::1) = (4::4u^3)~ (1:: u^3). So, the
                procedure outputs on input Q:=(u::1) and scalar k=1, the
                incorrect output R:=(1::u^3) (with x-coordinate u^{-3}),
                rather than simply u.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>You are quite correct. I've fixed this.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> b) Section 9, p.
                10:<br>
                The Montgomery ladder should produce, on input
                Q=(x1::z1) and scalar k, the output R:=kQ=(x2::z2),
                which can be mapped to an affine point with x-coordinate
                x2/z2. <br>
                With the draft, one mistakenly takes 1/z2 = z2^{p-1},
                whereas this should obviously be z2^{p-2} (if z2 is
                nonzero).<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>I had fixed this on GitHub afterΒ Andrey's note and
              it'll be in draft-irtf-cfrg-curves-00.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> c) Section 9, p.
                10:<br>
                The Montgomery ladder does not produce the output R=kQ
                for each input Q and scalar k, since, e.g., (after
                correcting the flaw identified in #a above), one can end
                up with the unidentified string projective point (0::0)
                in some cases. So, one should clarify what the
                input/output behavior of the Montgomery ladder is more
                clearly. {Does this work for all Montgomery curves,
                e.g., also when the curve y^2 = x^3 + A x^2 + x for
                which A^2 &lt;&gt;4?, etc.}<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>The curve25519 function is defined as a function from
              ([32]byte, [32]byte) -&gt; [32]byte. As such, it does have
              a defined behaviour when the resulting point is (0::0) as
              it'll output all zero bytes. Although the draft was
              written with the possibility in mind that we might define
              several curves, my estimation at the moment if that the
              CFRG won't actually do that. Things might turn out
              differently but, for the moment, I'm changing the document
              to be more curve25519 specific rather than specifying the
              Montgomery ladder more generally.</div>
            <div>Β Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> d) Section 9.1, p.
                11:<br>
                With the draft, the output of the Diffie-Hellman
                protocol, as presented, succumbs to the small subgroup
                attack (e.g., DH(f,0)=0), no matter the value of f
                contributed by A).<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>It's certainly possible to extract the value of the
              scalar mod the cofactor from curve25519, but the scalar
              construction ensures that value is zero. I've made a note
              about the "non-contributory" behaviour of curve25519 in
              the draft.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> e) Section 9.1, p.
                11:<br>
                With the draft one has some annoying editorial glitches,
                including<br>
                -- "Alice then transmits K_A=DH(f,9) to Bob, where 9 is
                the number 9" should most likely read "Alice then
                transmits K_A=DH(f,g) to Bob, where g is the number 9".<br>
                -- "Alice computes DH(f,DH(g,9))" should read "Alice
                computes DH(f,K_B)"; etc., and vice-versa for Bob.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Both fixed, thanks.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> f) Section 9, pp.
                9-11:<br>
                -- With the draft, the first part of Section 9 (till
                Section 9.1) is about scalar multiplication and probably
                deserves a separate subsection to that effect.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>I've split the scalar-mult function into its own
              section and moved the DH bits into a separate one.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> -- With the draft,
                not sure why scalar multiplication ineptly uses the
                acronym "DH" (as in DH(s,u). I would strongly suggest
                avoiding any language that could put people on the wrong
                footing, due to connotations ubiquitous in the crypto
                literature.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>That's my screwup. The scalar-mult function was called
              "curve25519" and I changed it to DH in anticipation that
              more curves might be defined. Since I get the feeling that
              won't happen now, I've switched back to calling it
              "curve25519".</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> -- With the draft,
                one seems to introduce lots of new variables to denote
                objects (e.g., why not use scalar k, point G, Q, DH key
                K= a Qb, co-factor h, etc., if one wants to cross a
                message most effectively)?<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>This is still an open issue as I have it now. In order
              to be consistent, I've called the coordinates on the
              Montgomery curve (u, v) and those on the (twisted) Edwards
              (x, y). We need to figure out whether the existing
              specification for generating curves is called for if we're
              not going to have any others. If not, then we could have
              (x,y) Β for the Montgomery curve and at least be a little
              more consistent. I have, at least, make the scalar be 'k'.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> -- With the draft,
                outsiders who are not necessarily be versed in
                cryptography would have a hard time following/verifying
                esoteric language and certainly would not be familiar
                with "quadratic extensions", "projection maps ...
                extended, so". I would suggest that clarity of language
                is key here.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>I agree and have removed that language.</div>
            <div>Β </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Notes: Andrey Jivsov noted error #b above. I tried
                  to retrace other errors to cut-and-paste errors from
                  draft-turner-thecurve25519function-01, but that
                  original draft also contains these errors (despite
                  mentioned review by Tanja Lange, according to
                  acknowledgements). The turner draft does contain an
                  implicit reference to flaw #d above, although in
                  nebulous terms ("contributory behavior").<br>
                  <br>
                  For now, I refrain from other comments, but hope that
                  we at least get the technical details right. (I was
                  hoping that the adoption call would end with someone
                  else noticing the errors above, but did not see this
                  (except for #b above), so reluctantly go to the CFRG
                  list to mention some of this here. [I have my private
                  thoughts about how many people actually read the
                  entire draft...].)<br>
                  <br>
                  Best regards, Rene<br>
                  <br>
                  -------- Forwarded Message --------
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr>
                        <th align="RIGHT" nowrap="nowrap"
                          valign="BASELINE">Subject: </th>
                        <td>Re: [Cfrg] Adoption of
                          draft-agl-cfrgcurve-00 as a RG document</td>
                      </tr>
                      <tr>
                        <th align="RIGHT" nowrap="nowrap"
                          valign="BASELINE">Date: </th>
                        <td>Sat, 24 Jan 2015 17:57:25 +0000</td>
                      </tr>
                      <tr>
                        <th align="RIGHT" nowrap="nowrap"
                          valign="BASELINE">From: </th>
                        <td>Alexey Melnikov <a moz-do-not-send="true"
                            href="mailto:alexey.melnikov@isode.com"
                            target="_blank">&lt;alexey.melnikov@isode.com&gt;</a></td>
                      </tr>
                      <tr>
                        <th align="RIGHT" nowrap="nowrap"
                          valign="BASELINE">To: </th>
                        <td><a moz-do-not-send="true"
                            href="mailto:cfrg@irtf.org" target="_blank">cfrg@irtf.org</a>
                          <a moz-do-not-send="true"
                            href="mailto:cfrg@irtf.org" target="_blank">&lt;cfrg@irtf.org&gt;</a></td>
                      </tr>
                    </tbody>
                  </table>
                  <br>
                  <br>
                  <pre>Dear CFRG participants,

On 05/01/2015 19:15, Alexey Melnikov wrote:
&gt; This message starts 2 weeks adoption call (ending on January 19th 
&gt; 2015) on:
&gt;
&gt; <a moz-do-not-send="true" href="https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml" target="_blank">https://www.imperialviolet.org/cfrgcurve/cfrgcurve.xml</a>
&gt;
&gt; as the starting point for the CFRG document which describes an 
&gt; algorithm for safe curve parameter generation for a particular 
&gt; security level and also recommends a specific curve (2^255-19) for the 
&gt; 128-bit security level.
&gt;
&gt; Please reply to this message or directly to CFRG chairs, stating 
&gt; whether you support (or not) adoption of this document. If you do not 
&gt; support adoption of this document, please state whether you support 
&gt; adoption of any alternative document or whether you want a particular 
&gt; change be made to the document before adoption.
&gt;
&gt; Chairs ask not to reiterate previously expressed technical opinions or 
&gt; arguments. But clarifying questions on the adoption call are welcome.
&gt;
&gt; While making your decision, please keep in mind
&gt;
&gt; <a moz-do-not-send="true" href="http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html" target="_blank">http://www.ietf.org/mail-archive/web/cfrg/current/msg05813.html</a>
Thank you for all the constructive feedback.

Chairs have reviewed responses to this message (both public and some 
private) and can confirm that there is rough consensus for adopting 
draft-agl-cfrgcurve-00 as a RG document. Some people supported the 
document with conditions that some changes would (or would not) be done 
to it, although the majority of people supported it unconditionally. 
Some people who objected to the document being adopted asked about 
changes that were also asked by people who supported the document, so we 
are hoping that a future revision of the draft might become acceptable 
even to them.

Chairs are asking Adam to republish draft-agl-cfrgcurve-00 as 
draft-irtf-cfrg-curves-00. Chairs are in the process of discussing who 
would be editors of the CFRG document.

Best Regards,
Alexey,
On behalf of CFRG chairs.
&gt;
&gt; Alexey,
&gt; On behalf of CFRG chairs.
&gt;
&gt; P.S. Editors of draft-black-rpgecc-01 and 
&gt; draft-turner-thecurve25519function-01 can become co-editors of the 
&gt; adopted document, if they choose to do so. Email chairs directly if 
&gt; you are willing or not willing to do so.

_______________________________________________
Cfrg mailing list
<a moz-do-not-send="true" href="mailto:Cfrg@irtf.org" target="_blank">Cfrg@irtf.org</a>
<a moz-do-not-send="true" href="http://www.irtf.org/mailman/listinfo/cfrg" target="_blank">http://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
                  <br>
                </div>
                <br>
              </div>
              <br>
              _______________________________________________<br>
              Cfrg mailing list<br>
              <a moz-do-not-send="true" href="mailto:Cfrg@irtf.org"
                target="_blank">Cfrg@irtf.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.irtf.org/mailman/listinfo/cfrg"
                target="_blank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div>Adam Langley <a moz-do-not-send="true"
              href="mailto:agl@imperialviolet.org" target="_blank">agl@imperialviolet.org</a>
            <a moz-do-not-send="true"
              href="https://www.imperialviolet.org" target="_blank">https://www.imperialviolet.org</a></div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
email: <a class="moz-txt-link-abbreviated" href="mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363</pre>
  </body>
</html>

--------------040303010307060901050706--


From nobody Tue Jan 27 18:29:56 2015
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 344FF1A1B24 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 18:29:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.496
X-Spam-Level: ***
X-Spam-Status: No, score=3.496 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545, J_CHICKENPOX_64=0.6, 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 g8NmYf9hdoGp for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 18:29:51 -0800 (PST)
Received: from calvin.win.tue.nl (calvin.win.tue.nl [131.155.70.11]) by ietfa.amsl.com (Postfix) with SMTP id 171221A00A8 for <cfrg@irtf.org>; Tue, 27 Jan 2015 18:29:50 -0800 (PST)
Received: (qmail 24548 invoked by uid 1017); 28 Jan 2015 02:30:10 -0000
Received: from unknown (unknown) by unknown with QMTP; 28 Jan 2015 02:30:10 -0000
Received: (qmail 10932 invoked by uid 1000); 28 Jan 2015 02:29:32 -0000
Date: 28 Jan 2015 02:29:32 -0000
Message-ID: <20150128022932.10930.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: <9A043F3CF02CD34C8E74AC1594475C73AAF65EBB@uxcn10-tdc05.UoA.auckland.ac.nz>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/nV77hg7YDIm1gZM8T1QZSg29Wb0>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 28 Jan 2015 02:29:53 -0000

Peter Gutmann writes:
> Looking at BN_bn2bin()/BN_bin2bn() from one
> widely-used library that powers half the Internet (and mobile phone market),
> it only supports the big-endian format.

To evaluate this "support" claim, let's try writing actual code using
BN_bn2bin() to print a 256-bit x-coordinate as a 32-byte binary string:

   BIGNUM *x = 0;
   char xstr[32];
   ...
   BN_bn2bin(x,xstr);
   fwrite(xstr,1,32,stdout);

Let's assume that the (omitted) code computing x guarantees that x is
between 0 and 2^256-1 so that there isn't a buffer overflow here; assume
that the fwrite() doesn't fail; etc.

This code will pass typical test vectors. However, if you do thousands
of random tests under valgrind etc., then you'll see that this code is
simply wrong: integers x below 2^248 fail to write anything to the last
byte of xstr. The number of bytes touched by BN_bn2bin() is the minimum
number of bytes _needed_ for x, whereas what we want is exactly 32 bytes.

Second try. Let's clear xstr before calling BN_bn2bin():

   BIGNUM *x = 0;
   char xstr[32];
   ...
   memset(xstr,0,32);
   BN_bn2bin(x,xstr);
   fwrite(xstr,1,32,stdout);

This now passes memory tests---but it's still wrong, as sufficiently
comprehensive correctness tests will show. The problem is again with
the occasional integers x below 2^248: there's a difference between

   * the variable-size "big-endian" BN_bn2bin() format, aligning the
     first byte of output with the most significant byte used in x; and

   * the intended constant-size "big-endian" format, aligning 32 bytes
     of output with 32 bytes in x, no matter which bytes of x are 0.

Notice that this discrepancy is very much tied to the use of big-endian:
if the BN functions and target format had been little-endian then this
code _would_ have worked.

If you're thinking "Wait a minute, isn't there a symmetry between
little-endian and big-endian?": Yes, there is, but this is tied to the
symmetry between the convention of pointing to arrays via their _first_
element and the convention of pointing to arrays via their _last_
element. In the real world, machine languages and assembly languages and
C and so on have all converged upon the first convention by default, and
trying to fight this is silly.

Third try, now that we understand how severe the mismatch is between the
OpenSSL API and the target. Let's call an auxiliary OpenSSL function so
that we can figure out where we're supposed to put the first byte of x:

   BIGNUM *x = 0;
   char xstr[32];
   ...
   memset(xstr,0,32);
   BN_bn2bin(x,xstr + 32 - BN_num_bytes(x));
   fwrite(xstr,1,32,stdout);

This always works (I think---I'm not an OpenSSL expert), and it seems to
be what Peter is alluding to when he tells us that OpenSSL "supports the
big-endian format". For comparison, here's code that uses exactly the
same OpenSSL functions but reverses the order of output bytes:

   BIGNUM *x = 0;
   char xstr[32];
   int i;
   ...
   memset(xstr,0,32);
   BN_bn2bin(x,xstr + 32 - BN_num_bytes(x));
   for (i = 31;i >= 0;--i) putchar(xstr[i]);

For some reason Peter doesn't call this "support" for little-endian. I
suppose he could argue that this code is marginally more complex than
the previous code; but calling this a lack of "support"---and claiming
that it's a serious argument for choosing one format over another---is
quite a severe exaggeration of a tiny code change.

The difference between little-endian and big-endian is much more
noticeable for people doing serious size optimization of crypto code
(e.g., complete crypto libraries in <20KB of compiled code). These
people would never tolerate the ludicrously bloated code shown above:
it's crazy to use three functions to create a 32-byte copy of something
that should already be sitting in memory in the first place. These
people are happiest when the CPU, via the ABI, has easy instructions to
handle the I/O format---and at the CPU+ABI levels it's clear that the
religious war is over:

   * The big-endian CPUs have been killed by the little-endian CPUs and
     the agnostic CPUs.

   * For agnostic CPUs the big-endian ABIs are rapidly being replaced by
     little-endian ABIs.
     
I'm not saying that the resulting code-size benefit is very large; I'm
just saying that it outweighs the miniscule benefits of what some people
here are calling "tradition".

---Dan


From nobody Tue Jan 27 20:47:15 2015
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 38BA81ACD26 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 20:47:14 -0800 (PST)
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 RfweRhttdwvS for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 20:47:12 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 446DA1A1B8D for <cfrg@irtf.org>; Tue, 27 Jan 2015 20:47:12 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id B190310224008; Tue, 27 Jan 2015 20:47:11 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Tue, 27 Jan 2015 20:47:11 -0800 (PST)
Message-ID: <0bb77994109993ccca2f70fc646aead0.squirrel@www.trepanning.net>
In-Reply-To: <CACsn0cnFQhRrP=7oG+7eWKr_2+L+kNjGkXW0xHsdV5WLXsH1Tw@mail.gmail.com>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net> <CACsn0c=+uKicVmuex+jo5L6VQcJPLuQ45z3T1EZbSXMOrpy-=A@mail.gmail.com> <4dbcfbff889d175765d549d96826767a.squirrel@www.trepanning.net> <CACsn0cnFQhRrP=7oG+7eWKr_2+L+kNjGkXW0xHsdV5WLXsH1Tw@mail.gmail.com>
Date: Tue, 27 Jan 2015 20:47:11 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Watson Ladd" <watsonbladd@gmail.com>
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/fzT26WgkjYw14bS_XhnnLNpeWwo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 28 Jan 2015 04:47:14 -0000

On Tue, January 27, 2015 5:49 pm, Watson Ladd wrote:
> On Jan 27, 2015 9:30 AM, "Dan Harkins" <dharkins@lounge.org> wrote:
>>
>> On Tue, January 27, 2015 9:07 am, Watson Ladd wrote:
>> >
>> > My SPAKE2 draft contains specified M&N, generated by a C program
>> > Nathan McCullum sent me. I've been unable to determine what that
>> > program does in anything more than the vaguest terms because OpenSSL
>> > internals are opaque, but users do not need to generate their own
>> > points.
>>
>>   Yes, it's opaque to you, the application writer. That's the point! But
>> to have curve25519 as a special case then you'd have to pry into the
>> opacity of the code and figure out what's going on.
>>
>>   So to allow Nathan McCullum to send you a chunk of code that
>> should work with any curve supported by OpenSSL, and have it just
>> work without you knowing any opaque internals, it requires a
>> canonical conversion of bitstring to integer to field element and
>> back.
>>
>>   If, as you say, users do not need to generate their own points then
>> they're gonna have to have a registry of M and N for all curves. And
>> to import a bitstring (for instance from the appendix of your draft)
>> into code requires converting that bitstring into an element. And
>> without the canonical conversion then you need to know about the
>> opaque internals.
>
> What makes you think I wouldn't write the point appropriately? More
> importantly, if this encoding was different for each curve, how would I
> notice, except when I generate the table? Every point has a representation
> either way.

  You don't understand. It's not that you don't write them appropriately.
It's that you are writing them big endian because you are interpreting the
output of the appropriate hash function as a big endian number.

  Your draft claims "[t]he points are presented in hexidecimal SEC1 format."
If someone wants to implement your draft he or she would have to convert
the bit strings in table 3 into points on the elliptic curve.

  So check out how one converts an octet string into an elliptic curve
point in
SEC1. It's section 2.3.4 and that will take you eventually to section
2.3.8 (octet
string to integer conversion) and that is quite obviously a big endian
conversion.

> I can always do the calculation in PARI and reverse and pad the result. In
> fact, PARI only uses decimal IO so I have to convert anyway. I'm not
> insisting on decimal format to make my tools work.
>
> There is an encoding of x coordinates as 32 byte strings. The intent is
> that this encoding is used for everything having to do with Curve25519.
> Why
> is this such a large problem? At least with the Weierstrass coordinate on
> the wire proposal there was a clear rationale for the change in terms of
> compatibility. But this has nothing to do with compatibility: you will
> need
> to write new code anyway.

 The point is, your draft lists M and N for p256, p384, and p521 and it uses
big endian format exclusively. If one were to try to use curve25519 to
compute M and N it would have to interpret the output of the hash
function differently. So therefore someone who implements your draft
has to know about the special case of curve25519. He has to know not
to do what he'd do for every other curve.

> Of course, it's not the case that there is a single universal key format.
> SEC1 serializes bignums as fixed-width in keys and variable width in
> signatures. PGP uses a different length encoding from TLS. Nor do all
> algorithms on words take the words the same way: MD5 uses a little-endian
> length encoding, and encodes the low byte first. SHA1 uses a big-endian
> length encoding and big-endian words.

  No there is, and it's big endian. MD5 and SHA1 are hash algorithms and
their output is a digest, not a number. The important thing to realize
though is that if one were to use MD5 or SHA1 to generate a bit string
in order to convert the digest into a point on an elliptic curve according
to SEC1 (or X9.62 or ISO/IEC 15946 or RFC 6090) that output would be
interpreted as big endian in both instances, the internals of the hash
algorithm notwithstanding.

> Furthermore, forcing applications to carry out encoding and decoding,
> instead of having the library do it has several bad effects. It makes it
> more complicated to use Curve25519. It prevents codesharing among
> libraries, unless they have identical bignum APIs. It makes applications
> non portable across libraries.

  That is exactly my point! Applications shouldn't have to carry out
different encodings and decodings. If curve25519 does not follow the
canonical convention, though, they will.

> Defining Curve25519 as a function of bigintegers was considered and
> rejected by multiple people due to interoperability problems historically
> caused by lack of canonical byte encodings: TLS DHE uses two distinct
> encodings at some point.
>
> What's wrong with the API everyone is already using?

  Exactly, and everybody is using big endian.

  Dan.




From nobody Tue Jan 27 22:02:56 2015
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 5541E1A0024 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 22:02:46 -0800 (PST)
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 0hYGgiuBkOg6 for <cfrg@ietfa.amsl.com>; Tue, 27 Jan 2015 22:02:39 -0800 (PST)
Received: from mail-yh0-x236.google.com (mail-yh0-x236.google.com [IPv6:2607:f8b0:4002:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 315AE1A003A for <cfrg@irtf.org>; Tue, 27 Jan 2015 22:02:32 -0800 (PST)
Received: by mail-yh0-f54.google.com with SMTP id 29so7941057yhl.13 for <cfrg@irtf.org>; Tue, 27 Jan 2015 22:02:31 -0800 (PST)
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=vLqSNlFr/KcYoXTpvZ6NGmgUDmk+bwBVEr0dXAKGLwY=; b=zF6QUP6NS3NqRtg04Xs2+M8a9ibZcu9q7nftbyHzi54bmfcpf7cWocSlZ/HEqxG/k6 UOFtYW5dIcrFyXwU4H0hA4ObcbmUsnFfFV4y1EpdUNEaObdQ8+JhAcbWsS9ZlLB7wFMe n0FI0iKAl4HrDysauZSjO7asxordxYsIkcy/Md8I4UrWD3OdLvVKJDF9aZzquDAcsNK4 PORctRnm++I1C2Te7+2JB7dWTIZEEeUVOjQKk7laSMSLU5dcQWY1Fkdg4NOJ5rB1dpFc uy1MGpLjOgJLCL3HF4VVfz2mW7vfGf47YYZF/9M769rufAhkxXss/OYSBx8nmgYm3szU zrvg==
MIME-Version: 1.0
X-Received: by 10.236.61.8 with SMTP id v8mr378112yhc.44.1422424951283; Tue, 27 Jan 2015 22:02:31 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Tue, 27 Jan 2015 22:02:31 -0800 (PST)
In-Reply-To: <0bb77994109993ccca2f70fc646aead0.squirrel@www.trepanning.net>
References: <9A043F3CF02CD34C8E74AC1594475C73AAF6839A@uxcn10-tdc05.UoA.auckland.ac.nz> <54C77376.3080005@cs.tcd.ie> <9ad11090808dc1e97bfc10196ad0e0c4.squirrel@www.trepanning.net> <CACsn0c=+uKicVmuex+jo5L6VQcJPLuQ45z3T1EZbSXMOrpy-=A@mail.gmail.com> <4dbcfbff889d175765d549d96826767a.squirrel@www.trepanning.net> <CACsn0cnFQhRrP=7oG+7eWKr_2+L+kNjGkXW0xHsdV5WLXsH1Tw@mail.gmail.com> <0bb77994109993ccca2f70fc646aead0.squirrel@www.trepanning.net>
Date: Tue, 27 Jan 2015 22:02:31 -0800
Message-ID: <CACsn0c=KjbT5rKzHOv9t3yphPkMZ=CTBNbttW_9HLCCpzSsmnA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Harkins <dharkins@lounge.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/g2BXa2HEU5D8qD9fUpGd8sikQBg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Point format endian (was: Adoption of draft-ladd-spake2 as a RG 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, 28 Jan 2015 06:02:49 -0000

On Tue, Jan 27, 2015 at 8:47 PM, Dan Harkins <dharkins@lounge.org> wrote:
>
>
> On Tue, January 27, 2015 5:49 pm, Watson Ladd wrote:
>> On Jan 27, 2015 9:30 AM, "Dan Harkins" <dharkins@lounge.org> wrote:
>>>
>>> On Tue, January 27, 2015 9:07 am, Watson Ladd wrote:
>>> >
>>> > My SPAKE2 draft contains specified M&N, generated by a C program
>>> > Nathan McCullum sent me. I've been unable to determine what that
>>> > program does in anything more than the vaguest terms because OpenSSL
>>> > internals are opaque, but users do not need to generate their own
>>> > points.
>>>
>>>   Yes, it's opaque to you, the application writer. That's the point! But
>>> to have curve25519 as a special case then you'd have to pry into the
>>> opacity of the code and figure out what's going on.
>>>
>>>   So to allow Nathan McCullum to send you a chunk of code that
>>> should work with any curve supported by OpenSSL, and have it just
>>> work without you knowing any opaque internals, it requires a
>>> canonical conversion of bitstring to integer to field element and
>>> back.
>>>
>>>   If, as you say, users do not need to generate their own points then
>>> they're gonna have to have a registry of M and N for all curves. And
>>> to import a bitstring (for instance from the appendix of your draft)
>>> into code requires converting that bitstring into an element. And
>>> without the canonical conversion then you need to know about the
>>> opaque internals.
>>
>> What makes you think I wouldn't write the point appropriately? More
>> importantly, if this encoding was different for each curve, how would I
>> notice, except when I generate the table? Every point has a representation
>> either way.
>
>   You don't understand. It's not that you don't write them appropriately.
> It's that you are writing them big endian because you are interpreting the
> output of the appropriate hash function as a big endian number.
>
>   Your draft claims "[t]he points are presented in hexidecimal SEC1 format."
> If someone wants to implement your draft he or she would have to convert
> the bit strings in table 3 into points on the elliptic curve.
>
>   So check out how one converts an octet string into an elliptic curve
> point in
> SEC1. It's section 2.3.4 and that will take you eventually to section
> 2.3.8 (octet
> string to integer conversion) and that is quite obviously a big endian
> conversion.
>
>> I can always do the calculation in PARI and reverse and pad the result. In
>> fact, PARI only uses decimal IO so I have to convert anyway. I'm not
>> insisting on decimal format to make my tools work.
>>
>> There is an encoding of x coordinates as 32 byte strings. The intent is
>> that this encoding is used for everything having to do with Curve25519.
>> Why
>> is this such a large problem? At least with the Weierstrass coordinate on
>> the wire proposal there was a clear rationale for the change in terms of
>> compatibility. But this has nothing to do with compatibility: you will
>> need
>> to write new code anyway.
>
>  The point is, your draft lists M and N for p256, p384, and p521 and it uses
> big endian format exclusively. If one were to try to use curve25519 to
> compute M and N it would have to interpret the output of the hash
> function differently. So therefore someone who implements your draft
> has to know about the special case of curve25519. He has to know not
> to do what he'd do for every other curve.
>
>> Of course, it's not the case that there is a single universal key format.
>> SEC1 serializes bignums as fixed-width in keys and variable width in
>> signatures. PGP uses a different length encoding from TLS. Nor do all
>> algorithms on words take the words the same way: MD5 uses a little-endian
>> length encoding, and encodes the low byte first. SHA1 uses a big-endian
>> length encoding and big-endian words.
>
>   No there is, and it's big endian. MD5 and SHA1 are hash algorithms and
> their output is a digest, not a number. The important thing to realize
> though is that if one were to use MD5 or SHA1 to generate a bit string
> in order to convert the digest into a point on an elliptic curve according
> to SEC1 (or X9.62 or ISO/IEC 15946 or RFC 6090) that output would be
> interpreted as big endian in both instances, the internals of the hash
> algorithm notwithstanding.
>
>> Furthermore, forcing applications to carry out encoding and decoding,
>> instead of having the library do it has several bad effects. It makes it
>> more complicated to use Curve25519. It prevents codesharing among
>> libraries, unless they have identical bignum APIs. It makes applications
>> non portable across libraries.
>
>   That is exactly my point! Applications shouldn't have to carry out
> different encodings and decodings. If curve25519 does not follow the
> canonical convention, though, they will.
>
>> Defining Curve25519 as a function of bigintegers was considered and
>> rejected by multiple people due to interoperability problems historically
>> caused by lack of canonical byte encodings: TLS DHE uses two distinct
>> encodings at some point.
>>
>> What's wrong with the API everyone is already using?
>
>   Exactly, and everybody is using big endian.

You're confusing the job of the person who writes a library that
provides a function called X25519 with the job of the person who
writes an application that uses X25519 to calculate keys, and then
conflating that with the work required to do calculations of points on
the curve in some other application. I'll let slide the fact that
SPAKE2 will not work with X coordinate only arithmetic.

If you look in tweetnacl.c you will see a function crypto_scalarmult
that takes two const char * arguments, and places a result in a third
char *. There is no encoding or decoding anywhere in sight in an
application that uses this function. Clearly, an application calling
this function isn't affected by the endian choice, provided we all
agree. It's clear we can write down X coordinates as arguments to this
function: 64 hex nibbles as 32 bytes in the order we all know and
love: 0f10 is the byte array with first byte 15, second one 16, etc.

Now let's consider the library writer. They potentially have to write
a swap routine, if their prefered bignum library doesn't have a little
endian load. It's likely, as DJB points out, that they have to do some
work to get the padding correct even if we pick big endian.

But what if I want to do a calculation in the field F_p? Well, you can
use SAGE or PARI or your whatever: that format doesn't have anything
to do with the format here. If I'm going to take 32 bytes and
interpret them as a field element, why does it matter which one goes
first vs. which one goes first in the format used by the
crypto_scalarmult function above for purposes of picking random field
elements? And why does the absolute order that I use when doing the
calculation matter between one field and the next, so long as I know
what it is?

So what actually is your argument? It can't be that applications that
link against a library containing crypto_scalarmult_curve25519 have to
deal with an inconsistent API if we switch endianness: they don't. It
can't be that authors of libraries providing that function can't do it
if the endianness is little-endian: they clearly can. And it can't be
that we can't do calculations on the curve itself if we switch
endianness: we can.

Of course, you might as well ask why we don't use big-endian. But the
fact is that switching has costs: at minimum we need to rename the
primitive. All existing implementations of that crypto_scalarmult
function don't work anymore. All existing documentation has to be
carefully checked to ensure that it's dealing with the correct
variant. The old version isn't going away: working groups end up
having to pick one.

Is this the only way to structure the interface between the library
and the application? No. One could instead have the library separate
out the necessary steps of masking the private key, converting x to a
bignum, carrying out the scalar multiplication, and turning the result
back into a sequence of bytes. Now, there actually is something to
complain about if you decide to expose the endianness to the
application developer. But this need is entirely self-inflicted
damage: the API was already terrible by exposing details that didn't
need to be exposed.

(It's also unclear how you manage to do this: A SEC1 encoded point and
a SEC1 signature don't have the same padding. You would have to leave
almost everything about the packing and unpacking to the calling
application unless you had a per-curve encoding and decoding function,
in which case endianness can be hidden inside it.  Why would leaving
this up to the caller be a good idea?)

Sincerely,
Watson Ladd

>
>   Dan.
>
>
>



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


From nobody Wed Jan 28 00:00:21 2015
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 898221A00F5; Wed, 28 Jan 2015 00:00:19 -0800 (PST)
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 1QxVi0LVltPF; Wed, 28 Jan 2015 00:00:18 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 1DD391A00E9; Wed, 28 Jan 2015 00:00:18 -0800 (PST)
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.10.1.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150128080018.14434.70269.idtracker@ietfa.amsl.com>
Date: Wed, 28 Jan 2015 00:00:18 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/0QIkYPLnyRUWuh_-X8mD74qlM9Q>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-augpake-03.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, 28 Jan 2015 08:00:20 -0000

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

        Title           : Augmented Password-Authenticated Key Exchange (AugPAKE)
        Authors         : SeongHan Shin
                          Kazukuni Kobara
	Filename        : draft-irtf-cfrg-augpake-03.txt
	Pages           : 20
	Date            : 2015-01-27

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

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


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 Jan 28 00:00:28 2015
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 872E11A00EC; Wed, 28 Jan 2015 00:00:20 -0800 (PST)
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 ib3qK8Xm9mp2; Wed, 28 Jan 2015 00:00:19 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 420C01A00ED; Wed, 28 Jan 2015 00:00:18 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: cfrg-chairs@tools.ietf.org, cfrg@ietf.org, draft-irtf-cfrg-augpake.all@tools.ietf.org, IRSG <irsg@irtf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 5.10.1.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150128080018.14434.11179.idtracker@ietfa.amsl.com>
Date: Wed, 28 Jan 2015 00:00:18 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/4lNl-nErW478GEbZWT2O9lQI2-g>
Subject: [Cfrg] New Version Notification - draft-irtf-cfrg-augpake-03.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, 28 Jan 2015 08:00:21 -0000

A new version (-03) has been submitted for draft-irtf-cfrg-augpake:
http://www.ietf.org/internet-drafts/draft-irtf-cfrg-augpake-03.txt


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

Diff from previous version:
http://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-augpake-03

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.

IETF Secretariat.


From nobody Wed Jan 28 01:19:33 2015
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 23FD91A01E7 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 01:19:31 -0800 (PST)
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 j3Y1jLv9PY8L for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 01:19:29 -0800 (PST)
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 D84261A00CD for <cfrg@irtf.org>; Wed, 28 Jan 2015 01:19:28 -0800 (PST)
In-Reply-To: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com>
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@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: Wed, 28 Jan 2015 09:19:26 +0000
To: cfrg@irtf.org
Message-ID: <45DA4E29-972A-4902-BFB4-4C23DC62ABEA@akr.io>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/P7apxeLKBKvIVimamc8jtMMRMCs>
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 09:19:31 -0000

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

On 27 January 2015 21:33:16 GMT+00:00, Tony Arcieri <bascule@gmail.com> wrote:
>I would like to hear the opinions of the chairs and other CFRG participants on the following:

Not to detract from the other fascinating discussions, but yes, I do think it is a good idea to get some groundwork discussion started to avoid *too much* delay.

>- Ed25519 and EdDSA

Well, *I* like it. Seems to have attained some external traction, too: OpenBSD, GnuPG, OpenSSH, for a start.

Positives:
β’ Already fast, high-quality, constant-time existing implementations in software (and some hardware, too).
β’ Deterministic signatures = test vectors!  No need for signer or verifier themselves to have random sources! Win.
β’ As deployed uses SHA-512, a well-known mature hash function with plenty of hardware and software support that's weathered fairly well. (Can potentially use any other.)
β’ Potentially batchable.

Negatives:
β’ As deployed uses SHA-512, an NSA algorithm, not the fastest or best now that SHA-3 competition is over, with some potential length-extension issues to watch for. (I'm not too worried about this. SHA-2 is not backdoored, to the best of my knowledge.)
β’ Hash double width of curve. I get why, and I think it's very careful and sensible, but this complicates extending EdDSA to other curves (say, a >=WF192 curve), as hashes with outputs that large are uncommon. SHAKE256 might be suitable, but I'm not too sure how I feel about that.
β’ Batch verify may exhibit side-channels?
β’ Old hardware hard-coded (i.e. not firmwared) to ECDSA is SOL. (I don't see this as a significant negative, if we want something new and better, we make it.)

>- FrankenECDSA (ECDSA in Edwards)

I'm not totally clear on the details of what this suggestion actually *is*, or its relative advantages/disadvantages. Someone fill me in?

>- ECDSA with Edwards keys on the wire (converted to Weierstrass to do ECDSA)

Ugh. All the disadvantages of ECDSA and few, perhaps none, of the advantages of new curves. I don't like this option much.

Positives:
β’ Existing hard-coded hardware can perhaps be jury-rigged to do it

Negatives:
β’ That means we can't mandate/test deterministic nonces
β’ Carries trust of existing 'validated' hardware forward, though that is in external doubt
β’ Overhead of wire format conversion

>- Other interesting thoughts on digital signatures

Can whatever we do please be (mandatory) deterministic with test vectors, at least?

Do we have any better ideas?

Feel free to correct me/discuss!

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

iQI3BAEBCgAhBQJUyKmdGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6XYAP/176s3n9Qdx7seGzVrGbsnPegyBTbTDRrgRa3XMg84S/QQ4MR+JY
0pbsykqqQiICs2qEixF3T6wdYW/c/1VUC0OX8g2gp/z2wle1qMHAqLRA3GJtKvny
s9RkJR5Y9cQBrjwBTE47kiNF0pCZeEdOKN+gBqxtcF9Rt2wHeHipCoyWSmCfdeOw
sAlCsJt6ePZ9yKQP3ldJkq6s6Nb7A+4dqRTKKdafli+ut9FevVYImBBIX5Xydd64
QJ/wfX0OWkT+J6I0tB2RgqEXFQl4tVOtR0wm5jwi/t2Wsfk6c2/MFTGDl4d4hv7L
uI21XU+mP/2PGleKjsnJe7kaVeHgqFZB9+6oYtSzVDnZOAfDLhtryhORzKv8sKaV
fZoBSXDirapout9zJuVHMPJaoDbwpHn3Mh7HHmoYd9g96HlXfEK9LNdruO++BbaT
GHXiEapeVDIq4cdR0ElKlxP/3NT68A/P2rjl9B6+GKoAiB6fV7IXyOKTjUlEoNYn
q+BGoLh9Y4sgVgVp5FBEUYKrqgX+9af23IaDum/av/iqNEaFza6ZXsD/xTlZOrhZ
LKEnfTnNYPHNkK1MAaVDXd1QFgciDvU9CFWTBB9/ihoxnghUGvasGv+A9p7ibHEC
4UozyKVudnmTOBfHDt3HdUBbJJcK11JiKxZyN+EjcV9gfE5i8bz4rvO1
=GPdY
-----END PGP SIGNATURE-----


From nobody Wed Jan 28 02:32:59 2015
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 AC8911A039A for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 02:32:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.202
X-Spam-Level: 
X-Spam-Status: No, score=-0.202 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, MIME_8BIT_HEADER=0.3, 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 KvBMp2HVMQ9h for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 02:32:54 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0649.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::649]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B87D51A0211 for <cfrg@irtf.org>; Wed, 28 Jan 2015 02:32:53 -0800 (PST)
Received: from DBXPR03MB383.eurprd03.prod.outlook.com (10.141.10.15) by DBXPR03MB382.eurprd03.prod.outlook.com (10.141.10.12) with Microsoft SMTP Server (TLS) id 15.1.65.19; Wed, 28 Jan 2015 10:32:29 +0000
Received: from DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) by DBXPR03MB383.eurprd03.prod.outlook.com ([10.141.10.15]) with mapi id 15.01.0065.013; Wed, 28 Jan 2015 10:32:29 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: =?windows-1251?B?0fLg7ejx6+DiINHs+/jr/+Xi?= <smyshsv@gmail.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
Thread-Index: AQHQOkpgQWElPvL0/EaQwowVk8M5cZzVVs2A
Date: Wed, 28 Jan 2015 10:32:29 +0000
Message-ID: <D0EE695F.3D7F3%kenny.paterson@rhul.ac.uk>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com>
In-Reply-To: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@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.7.141117
x-originating-ip: [134.219.227.30]
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=rhul.ac.uk;
x-dmarcaction-test: None
x-microsoft-antispam: BCL:0;PCL:0;RULEID:(3005004);SRVR:DBXPR03MB382;
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DBXPR03MB382;
x-forefront-prvs: 047001DADA
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(24454002)(66654002)(479174004)(51704005)(52604005)(107886001)(106116001)(15975445007)(77096005)(102836002)(77156002)(62966003)(2900100001)(19580405001)(19580395003)(83506001)(2950100001)(40100003)(122556002)(575784001)(86362001)(15395725005)(87936001)(2656002)(4477795004)(66066001)(2501002)(74482002)(92566002)(46102003)(50986999)(54356999)(76176999)(36756003)(15198665003); DIR:OUT; SFP:1101; SCL:1; SRVR:DBXPR03MB382; H:DBXPR03MB383.eurprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; 
Content-Type: text/plain; charset="windows-1251"
Content-ID: <7F0753CE1A8A094CA3332503184DF763@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2015 10:32:29.1822 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR03MB382
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Gf4NOqw1hQi0p67AsAqBosnnv8c>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 10:32:56 -0000

Dear Stanislav,

Many thanks for sharing this detailed information.

In the current draft https://tools.ietf.org/html/draft-agl-cfrgcurve-00
(which CFRG has just adopted), we have a specific curve generation method
that is different from the one you outline below. It has taken the group
quite a bit of discussion to get to the point of having a rough consensus
that that method is one we want to use, and if we decide to produce a
higher security level curve (which I personally hope we will), then it
seems pretty likely that this method will be the one we select.

Perhaps I could encourage you to look at the current draft and engage with
the editors on it where you see fit? Note that the draft should be
evolving fairly rapidly in response to others' inputs and as we further
develop it to include signatures, higher security level curves, etc.

Regards,

Kenny (for the chairs)



On 27/01/2015 15:57, "=D1=F2=E0=ED=E8=F1=EB=E0=E2 =D1=EC=FB=F8=EB=FF=E5=E2"=
 <smyshsv@gmail.com> wrote:

>Good afternoon, dear colleagues,
>=20
>Currently the proposed draft on elliptic curves generation methods does
>not explicitly consider curves with security more than 256 bits.
>
>=20
>In Russia we have had a similar lack of 512-bit curves (both twisted
>Edwards ones and curves with groups of prime order), so we at CryptoPro
>(Russian cryptographic software company) proposed three of them to our
>Technical
> Committee for Standardization =ABCryptography and Security Mechanisms=BB
>(http://tc26.ru/en/).
>=20
>In 2014 after a deep discussion with colleagues these curves were
>standardized for usage with Russian national digital signature standard
>(GOST R 34.10-2012).
>
>=20
>For example, the twisted Edwards 512-bit curve is defined over the field
>GF(p), where p is equal to 2^512 =96 569, p =3D 3 (mod 4).
>p =3D=20
>0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
>FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7
>d =3D=20
>0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E0A
>515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550
>e =3D 0x1
>m =3D=20
>0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336E91
>941AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4
>q =3D=20
>0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDBA4
>6506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED
>u(P) =3D 0x12
>v(P) =3D=20
>0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4B65
>0CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D
>a =3D=20
>0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861C0
>E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3
>b =3D=20
>0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2FF
>F719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1
>x(P) =3D=20
>0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272A7
>AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148
>
>y(P) =3D=20
>0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D33
>E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F
>(The following notation is used for Edwards curve coefficients: eu^2 +
>v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form y^=
2
>=3D x^3 + ax +b. We denote the total number of points on the curve as m an=
d
> prime subgroup order as q. We denote base point as P; x(P), y(P) and
>u(P), v(P) are respectively base point coordinates in Weierstrass and
>twisted Edwards form.)
>=20
>p and q are prime. The curve has been examined to be secure against
>MOV-attacks (thus it can be believed to be DDH-secure) and to satisfy
>CM-security requirements. Twisted curve security has also been studied:
>twisted
> curve points group order has a prime factor of:
>0x40000000000000000000000000000000000000000000000000000000000000003673245b
>9af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fdaf7, while the other
>factor is equal to 4.
>=20
>The curve can be used both for digital signatures and for Diffie-Hellman
>key agreement.
>=20
>The curve parameters have been generated using random nonce W in such way
>that e =3D 1, d =3D hash(W), where hash() is Russian national standard GOS=
T R
>34.11-2012 hash function (also known as =93Streebog=94,
>https://www.streebog.net/en/). The seed value W is equal to:
>W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 A5
>AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2
>5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26
> AC 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60
>83,
>=20
>GOST R 34.11-2012 (Streebog) implementation can be found at
>https://github.com/okazymyrov/stribog, for example.
>
>=20
>The base point has been selected as a point with the smallest
>u-coordinate, satisfying curve equation and having order equal to q.
>=20
>Also we have an agreed (with Russian cryptographic community, including
>experts from other Russian companies, scientific community and
>governmental authorities) version of curve generation methods; if you
>consider it
> interesting, we could prepare an English translation in a couple of days.
>=20
>Best regards,
>Stanislav V. Smyshlyaev, Ph.D.,
>Head of Information Security Department,
>CryptoPro LLC
>
>
>
>
>
>


From nobody Wed Jan 28 02:48:40 2015
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 7269A1A03AA for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 02:48:37 -0800 (PST)
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 pup-y8U0ZYXU for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 02:48:34 -0800 (PST)
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 697B71A039F for <cfrg@irtf.org>; Wed, 28 Jan 2015 02:48:34 -0800 (PST)
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 948F51887DC; Wed, 28 Jan 2015 12:48:31 +0200 (EET)
Date: Wed, 28 Jan 2015 12:48:31 +0200
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Alyssa Rowan <akr@akr.io>
Message-ID: <20150128104831.GA2272@LK-Perkele-VII>
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com> <45DA4E29-972A-4902-BFB4-4C23DC62ABEA@akr.io>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <45DA4E29-972A-4902-BFB4-4C23DC62ABEA@akr.io>
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/2Wyvrj9C5_82_l3iQQtnYJl2yF0>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 10:48:37 -0000

On Wed, Jan 28, 2015 at 09:19:26AM +0000, Alyssa Rowan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> On 27 January 2015 21:33:16 GMT+00:00, Tony Arcieri <bascule@gmail.com> wrote:
> 
> >- Ed25519 and EdDSA
> 
> Well, *I* like it. Seems to have attained some external traction, too: OpenBSD, GnuPG, OpenSSH, for a start.
> 
> Positives:
> β’ Already fast, high-quality, constant-time existing implementations in software (and some hardware, too).
> β’ Deterministic signatures = test vectors!  No need for signer or verifier themselves to have random sources! Win.
> β’ As deployed uses SHA-512, a well-known mature hash function with plenty of hardware and software support that's weathered fairly well. (Can potentially use any other.)
> β’ Potentially batchable.
> 
> Negatives:
> β’ As deployed uses SHA-512, an NSA algorithm, not the fastest or best now that SHA-3 competition is over, with some potential length-extension issues to watch for. (I'm not too worried about this. SHA-2 is not backdoored, to the best of my knowledge.)
> β’ Hash double width of curve. I get why, and I think it's very careful and sensible, but this complicates extending EdDSA to other curves (say, a >=WF192 curve), as hashes with outputs that large are uncommon. SHAKE256 might be suitable, but I'm not too sure how I feel about that.

When I implemented something that captures Ed25519 as special case, I
used more aggressive rule of 64 extra bits rounded up to hash output
size, which can just use 512-bit hash even with Ed448-Goldilocks.

But for E-521, it overflows 512 bits (uses 1024 bits (505 extra
bits) with 512-bit hash).

For when one needed output exceeding blocksize, that implementation
caluclated: H(0x00|<data>)|H(0x01|<data>)|H(0x02|<data>)|... with
however many hashes required.

It also did implement one 1024-bit hash (Skein-1024, was a SHA-3
finalist)

> β’ Batch verify may exhibit side-channels?

I think it definitely does have side-channels.

> β’ Old hardware hard-coded (i.e. not firmwared) to ECDSA is SOL. (I don't see this as a significant negative, if we want something new and better, we make it.)
> 
> >- FrankenECDSA (ECDSA in Edwards)
> 
> I'm not totally clear on the details of what this suggestion actually *is*, or its relative advantages/disadvantages. Someone fill me in?

Basically, taking x-coordinate mod l of Edwards point as r, instead of
x-coordinate mod l of Weierstrass point, like ECDSA itself does.

+ All curve calculations in Edwards domain.
- Still has the annoying scalar inversion.
- Non-deterministic (as specified)
 
> >- ECDSA with Edwards keys on the wire (converted to Weierstrass to do ECDSA)
> 
> Ugh. All the disadvantages of ECDSA and few, perhaps none, of the advantages of new curves. I don't like this option much.
> 
> Positives:
> β’ Existing hard-coded hardware can perhaps be jury-rigged to do it
> 
> Negatives:
> β’ That means we can't mandate/test deterministic nonces
> β’ Carries trust of existing 'validated' hardware forward, though that is in external doubt
> β’ Overhead of wire format conversion

Actually, I don't think it will work with existing hardware. The problem
is dealing with the Edwards keys.

I have actually implemented full ECDSA (complete with SEC1 Weierstrass
keys, but using deterministic nonces) with Curve25519 (and some other curves).
Coding up the conversion of Weierstrass points to Edwards points wasn't
pleasant, but still lots more pleasant than trying to implement Weierstrass
arithmetic (even with no sidechannel protection).

Booby traps:
- Signing: Random nonces.
- Signing: Sidechannels from trying to use generic curve.
- Signing: Sidechannels from sclar inversion.
- Verification: Weierstrass is complicated and pretty easy to get wrong.

> >- Other interesting thoughts on digital signatures
> 
> Can whatever we do please be (mandatory) deterministic with test vectors, at least?
> 
> Do we have any better ideas?

I looked what it would take to add EdDSA to TLS (AFAICT):

- Defining EdDSA itself.
- Adding TLS SignatureAlgorithm codepoint for it (Expert Review)
- Adding Signature Algorithm OIDs for it (IANA considerations).
- Adding OIDs for the curves (IANA considerations).


Also, here is the interesting question: Is it worth staying "in bounds"
here or just revamp the whole thing all at once (something like EdDSA
or so)?


-Ilari


From nobody Wed Jan 28 03:13:34 2015
Return-Path: <smyshsv@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 E03311A1A2F for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 03:13:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.089
X-Spam-Level: *
X-Spam-Status: No, score=1.089 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, FR_TEST_BASE64_BAD=3.189, GB_I_LETTER=-2, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yjTszLt4TFkC for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 03:13:30 -0800 (PST)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0AC371A1A37 for <cfrg@irtf.org>; Wed, 28 Jan 2015 03:13:29 -0800 (PST)
Received: by mail-oi0-f49.google.com with SMTP id a3so16945073oib.8 for <cfrg@irtf.org>; Wed, 28 Jan 2015 03:13:29 -0800 (PST)
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=3fMrQpakQwm9/koonrMyEoahGTqn6iUTGo7O3HW5FVs=; b=YLXeRk3KvJBra/Gn3ov10GwvxbJapuHErfrHOmM/fYLKmx6cV9WmTAKQW6ibElH1os Nx90tT6UQI+R0DB+6ULukRuEMaWlAZtveVhuu02Vz1+Ja5OXrsm6xGjWTL5qmg/RLWLT YhiBCMBsVoSlL1yFN/VzO2IgLYi52/usc3PGA1AkcQKWKEhoU7jD2y99IbTWwSFniOXo zFknMdZR20f/PBOclPBHvXCSU7OtEnFTpROylpUwWhrSaGXZotSJAwRwxs6Db9q8lVIh 0rZgV6iTzLt5Mnt0h9KYeGL9T+dFwjEttObL7Zof9OVyHO/pJa9ejubI815DRykXBEda 5cEw==
MIME-Version: 1.0
X-Received: by 10.202.212.66 with SMTP id l63mr1521253oig.117.1422443608212; Wed, 28 Jan 2015 03:13:28 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Wed, 28 Jan 2015 03:13:28 -0800 (PST)
In-Reply-To: <D0EE695F.3D7F3%kenny.paterson@rhul.ac.uk>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <D0EE695F.3D7F3%kenny.paterson@rhul.ac.uk>
Date: Wed, 28 Jan 2015 15:13:28 +0400
Message-ID: <CAMr0u6noJ1bKW=z-v=6sz4s6eKY-FqLRLpGDRyaRaaZc0OUb=g@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: multipart/alternative; boundary=001a113cf288fb0d0d050db475d3
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/9hH_7TQPBwX4ehL_ce_-fnOqvL4>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 11:13:33 -0000

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

Dear Kenny,

Thank you very much for your letter. We'll prepare and send our comments
for the current draft as soon as possible.

Best regards,

Stanislav V. Smyshlyaev, Ph.D.,

Head of Information Security Department,

CryptoPro LLC


2015-01-28 13:32 GMT+03:00 Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>:

> Dear Stanislav,
>
> Many thanks for sharing this detailed information.
>
> In the current draft https://tools.ietf.org/html/draft-agl-cfrgcurve-00
> (which CFRG has just adopted), we have a specific curve generation method
> that is different from the one you outline below. It has taken the group
> quite a bit of discussion to get to the point of having a rough consensus
> that that method is one we want to use, and if we decide to produce a
> higher security level curve (which I personally hope we will), then it
> seems pretty likely that this method will be the one we select.
>
> Perhaps I could encourage you to look at the current draft and engage wit=
h
> the editors on it where you see fit? Note that the draft should be
> evolving fairly rapidly in response to others' inputs and as we further
> develop it to include signatures, higher security level curves, etc.
>
> Regards,
>
> Kenny (for the chairs)
>
>
>
> On 27/01/2015 15:57, "=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=
=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2" <smyshsv@gmail.com> w=
rote:
>
> >Good afternoon, dear colleagues,
> >
> >Currently the proposed draft on elliptic curves generation methods does
> >not explicitly consider curves with security more than 256 bits.
> >
> >
> >In Russia we have had a similar lack of 512-bit curves (both twisted
> >Edwards ones and curves with groups of prime order), so we at CryptoPro
> >(Russian cryptographic software company) proposed three of them to our
> >Technical
> > Committee for Standardization =C2=ABCryptography and Security Mechanism=
s=C2=BB
> >(http://tc26.ru/en/).
> >
> >In 2014 after a deep discussion with colleagues these curves were
> >standardized for usage with Russian national digital signature standard
> >(GOST R 34.10-2012).
> >
> >
> >For example, the twisted Edwards 512-bit curve is defined over the field
> >GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).
> >p =3D
> >0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FF
> >FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7
> >d =3D
> >0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E=
0A
> >515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550
> >e =3D 0x1
> >m =3D
> >0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336E=
91
> >941AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4
> >q =3D
> >0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDB=
A4
> >6506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED
> >u(P) =3D 0x12
> >v(P) =3D
> >0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4B=
65
> >0CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D
> >a =3D
> >0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861=
C0
> >E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3
> >b =3D
> >0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2=
FF
> >F719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1
> >x(P) =3D
> >0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272=
A7
> >AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148
> >
> >y(P) =3D
> >0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D=
33
> >E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F
> >(The following notation is used for Edwards curve coefficients: eu^2 +
> >v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form =
y^2
> >=3D x^3 + ax +b. We denote the total number of points on the curve as m =
and
> > prime subgroup order as q. We denote base point as P; x(P), y(P) and
> >u(P), v(P) are respectively base point coordinates in Weierstrass and
> >twisted Edwards form.)
> >
> >p and q are prime. The curve has been examined to be secure against
> >MOV-attacks (thus it can be believed to be DDH-secure) and to satisfy
> >CM-security requirements. Twisted curve security has also been studied:
> >twisted
> > curve points group order has a prime factor of:
> >0x4000000000000000000000000000000000000000000000000000000000000000367324=
5b
> >9af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fdaf7, while the othe=
r
> >factor is equal to 4.
> >
> >The curve can be used both for digital signatures and for Diffie-Hellman
> >key agreement.
> >
> >The curve parameters have been generated using random nonce W in such wa=
y
> >that e =3D 1, d =3D hash(W), where hash() is Russian national standard G=
OST R
> >34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D,
> >https://www.streebog.net/en/). The seed value W is equal to:
> >W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 =
A5
> >AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2
> >5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26
> > AC 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60
> >83,
> >
> >GOST R 34.11-2012 (Streebog) implementation can be found at
> >https://github.com/okazymyrov/stribog, for example.
> >
> >
> >The base point has been selected as a point with the smallest
> >u-coordinate, satisfying curve equation and having order equal to q.
> >
> >Also we have an agreed (with Russian cryptographic community, including
> >experts from other Russian companies, scientific community and
> >governmental authorities) version of curve generation methods; if you
> >consider it
> > interesting, we could prepare an English translation in a couple of day=
s.
> >
> >Best regards,
> >Stanislav V. Smyshlyaev, Ph.D.,
> >Head of Information Security Department,
> >CryptoPro LLC
> >
> >
> >
> >
> >
> >
>
>

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

<div dir=3D"ltr">Dear Kenny,<div><br></div><div>Thank you very much for you=
r letter. We&#39;ll prepare and send our comments for the current draft as =
soon as possible.</div><div class=3D"gmail_extra"><br clear=3D"all"><div><d=
iv class=3D"gmail_signature"><div dir=3D"ltr"><p class=3D"MsoNormal" style=
=3D"font-size:13px"><span lang=3D"EN-US" style=3D"color:rgb(31,73,125)">Bes=
t regards,</span></p><p class=3D"MsoNormal" style=3D"font-size:13px"><span =
lang=3D"EN-US" style=3D"color:rgb(31,73,125)">Stanislav V. Smyshlyaev, Ph.D=
.,</span></p><p class=3D"MsoNormal" style=3D"font-size:13px"><span lang=3D"=
EN-US" style=3D"color:rgb(31,73,125)">Head of Information Security Departme=
nt,</span></p><p class=3D"MsoNormal" style=3D"font-size:13px"><span lang=3D=
"EN-US" style=3D"color:rgb(31,73,125)">CryptoPro LLC</span></p><div><br></d=
iv></div></div></div>
<br><div class=3D"gmail_quote">2015-01-28 13:32 GMT+03:00 Paterson, Kenny <=
span dir=3D"ltr">&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk" target=3D=
"_blank">Kenny.Paterson@rhul.ac.uk</a>&gt;</span>:<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;padding-left:1ex">Dear=
 Stanislav,<br>
<br>
Many thanks for sharing this detailed information.<br>
<br>
In the current draft <a href=3D"https://tools.ietf.org/html/draft-agl-cfrgc=
urve-00" target=3D"_blank">https://tools.ietf.org/html/draft-agl-cfrgcurve-=
00</a><br>
(which CFRG has just adopted), we have a specific curve generation method<b=
r>
that is different from the one you outline below. It has taken the group<br=
>
quite a bit of discussion to get to the point of having a rough consensus<b=
r>
that that method is one we want to use, and if we decide to produce a<br>
higher security level curve (which I personally hope we will), then it<br>
seems pretty likely that this method will be the one we select.<br>
<br>
Perhaps I could encourage you to look at the current draft and engage with<=
br>
the editors on it where you see fit? Note that the draft should be<br>
evolving fairly rapidly in response to others&#39; inputs and as we further=
<br>
develop it to include signatures, higher security level curves, etc.<br>
<br>
Regards,<br>
<br>
Kenny (for the chairs)<br>
<div class=3D""><div class=3D"h5"><br>
<br>
<br>
On 27/01/2015 15:57, &quot;=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=
=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2&quot; &lt;<a href=
=3D"mailto:smyshsv@gmail.com">smyshsv@gmail.com</a>&gt; wrote:<br>
<br>
&gt;Good afternoon, dear colleagues,<br>
&gt;<br>
&gt;Currently the proposed draft on elliptic curves generation methods does=
<br>
&gt;not explicitly consider curves with security more than 256 bits.<br>
&gt;<br>
&gt;<br>
&gt;In Russia we have had a similar lack of 512-bit curves (both twisted<br=
>
&gt;Edwards ones and curves with groups of prime order), so we at CryptoPro=
<br>
&gt;(Russian cryptographic software company) proposed three of them to our<=
br>
&gt;Technical<br>
&gt; Committee for Standardization =C2=ABCryptography and Security Mechanis=
ms=C2=BB<br>
&gt;(<a href=3D"http://tc26.ru/en/" target=3D"_blank">http://tc26.ru/en/</a=
>).<br>
&gt;<br>
&gt;In 2014 after a deep discussion with colleagues these curves were<br>
&gt;standardized for usage with Russian national digital signature standard=
<br>
&gt;(GOST R 34.10-2012).<br>
&gt;<br>
&gt;<br>
&gt;For example, the twisted Edwards 512-bit curve is defined over the fiel=
d<br>
&gt;GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).<br>
&gt;p =3D<br>
&gt;0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFF<br>
&gt;FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7<br>
&gt;d =3D<br>
&gt;0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39=
E0A<br>
&gt;515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550<br>
&gt;e =3D 0x1<br>
&gt;m =3D<br>
&gt;0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336=
E91<br>
&gt;941AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4<br>
&gt;q =3D<br>
&gt;0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CD=
BA4<br>
&gt;6506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED<br>
&gt;u(P) =3D 0x12<br>
&gt;v(P) =3D<br>
&gt;0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4=
B65<br>
&gt;0CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D<br>
&gt;a =3D<br>
&gt;0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E86=
1C0<br>
&gt;E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3<br>
&gt;b =3D<br>
&gt;0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC=
2FF<br>
&gt;F719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1<br>
&gt;x(P) =3D<br>
&gt;0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA2727=
2A7<br>
&gt;AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148<br>
&gt;<br>
&gt;y(P) =3D<br>
&gt;0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2=
D33<br>
&gt;E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F<br>
&gt;(The following notation is used for Edwards curve coefficients: eu^2 +<=
br>
&gt;v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form=
 y^2<br>
&gt;=3D x^3 + ax +b. We denote the total number of points on the curve as m=
 and<br>
&gt; prime subgroup order as q. We denote base point as P; x(P), y(P) and<b=
r>
&gt;u(P), v(P) are respectively base point coordinates in Weierstrass and<b=
r>
&gt;twisted Edwards form.)<br>
&gt;<br>
&gt;p and q are prime. The curve has been examined to be secure against<br>
&gt;MOV-attacks (thus it can be believed to be DDH-secure) and to satisfy<b=
r>
&gt;CM-security requirements. Twisted curve security has also been studied:=
<br>
&gt;twisted<br>
&gt; curve points group order has a prime factor of:<br>
&gt;0x400000000000000000000000000000000000000000000000000000000000000036732=
45b<br>
&gt;9af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fdaf7, while the oth=
er<br>
&gt;factor is equal to 4.<br>
&gt;<br>
&gt;The curve can be used both for digital signatures and for Diffie-Hellma=
n<br>
&gt;key agreement.<br>
&gt;<br>
&gt;The curve parameters have been generated using random nonce W in such w=
ay<br>
&gt;that e =3D 1, d =3D hash(W), where hash() is Russian national standard =
GOST R<br>
&gt;34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D,<br>
&gt;<a href=3D"https://www.streebog.net/en/" target=3D"_blank">https://www.=
streebog.net/en/</a>). The seed value W is equal to:<br>
&gt;W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6=
 A5<br>
&gt;AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2=
<br>
&gt;5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26=
<br>
&gt; AC 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 6=
0<br>
&gt;83,<br>
&gt;<br>
&gt;GOST R 34.11-2012 (Streebog) implementation can be found at<br>
&gt;<a href=3D"https://github.com/okazymyrov/stribog" target=3D"_blank">htt=
ps://github.com/okazymyrov/stribog</a>, for example.<br>
&gt;<br>
&gt;<br>
&gt;The base point has been selected as a point with the smallest<br>
&gt;u-coordinate, satisfying curve equation and having order equal to q.<br=
>
&gt;<br>
&gt;Also we have an agreed (with Russian cryptographic community, including=
<br>
&gt;experts from other Russian companies, scientific community and<br>
&gt;governmental authorities) version of curve generation methods; if you<b=
r>
&gt;consider it<br>
&gt; interesting, we could prepare an English translation in a couple of da=
ys.<br>
&gt;<br>
&gt;Best regards,<br>
&gt;Stanislav V. Smyshlyaev, Ph.D.,<br>
&gt;Head of Information Security Department,<br>
&gt;CryptoPro LLC<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div></div>

--001a113cf288fb0d0d050db475d3--


From nobody Wed Jan 28 05:28:11 2015
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 8F7871A0084 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 05:28:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.602
X-Spam-Level: 
X-Spam-Status: No, score=-1.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, 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 UVmQPL1pfUCo for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 05:28:07 -0800 (PST)
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 DC5F91A0081 for <cfrg@irtf.org>; Wed, 28 Jan 2015 05:28:06 -0800 (PST)
In-Reply-To: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@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: Wed, 28 Jan 2015 13:28:05 +0000
To: =?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCyINCh0LzRi9GI0LvRj9C10LI=?= <smyshsv@gmail.com>, cfrg@irtf.org
Message-ID: <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io>
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/9chS-QQN_heVKwCQFYBupHlrHUw>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 13:28:08 -0000

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

On 27 January 2015 15:57:40 GMT+00:00, "Π‘ΡΠ°Π½ΠΈΡΠ»Π°Π² Π‘ΠΌΡΡΠ»ΡΠ΅Π²" <smyshsv@gmail.com> wrote:

>The curve parameters have been generated using random nonce W in such way that e = 1, d = hash(W), where hash() is Russian national standard GOST R 34.11-2012 hash function (also known as βStreebogβ, https://www.streebog.net/en/). The seed value W is equal to:
>W = 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 A5 AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2 5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,

...and the million-rouble question, if I may be the first to ask:

How was that seed W generated, and under what criteria?

There is now a strong preference for open curve generation processes whose criteria are all explicitly shown, chosen for clearly-defined "rigid" reasons, and whose generation can be replicated and verified.

I can't see the procedure you show here has that property, due to the unexplained seed; a property it shares with the US standard NIST curves we've been asked to replace, so I'm not too sure as to the merits of your curve?

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

iQI3BAEBCgAhBQJUyOPlGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
jtkWi2t6rbAP/0/Cz+7r1IIf8spVLUVeAxtrgdsuKvtRt6Dpz5vkNiiS/pwRXpVF
/70MbeBQA4M2ak7enzYGnRI/I2hGAv6nV6ybTwwnPDjq33iBS6F16sV7KsBaLRcy
7KmUTYKIT7oTncTWTDO0zlgo2k+/Hy1G/ChmnOLBFH6peKSwgt8OJgEPe0rZbg8E
pTukrmr8lDw18MiGPhoqnj7Ug46ydJhqqZkP0aT3xtSF8Y+lVEpn7O36QV03QnAU
d/0oQCQHkHJBfcI9w2W6tiyI6iHFH40U3c78kdASLdWjHyOfYZ/P00BasQudWcvD
kgqYVGrZMXkrIQvn1JnMt5PD5Wl+XN6/6csAkeUOBr9oTwwWnX9xmvT+Ly14TFw2
fw5/WaMKYht9K//qPh0hQLHCZuG0NEx/0pcoTTgYSGyXOIlAx19gDSbybmd/+ssj
9/ttSN+t9eENghr1IcXRMCrPcxbwnQRS2dQYGzCmqohf0ZS3DIzYAI2ChMT5eLNl
lD9iSluaf7ss2/qlzwu+4kw25qDR/JwgKL8gmC0jhDE1ID4e8P4/ovpj3EwlW47S
2tRBD1XhRR0L1ZLiA5za+LLHPg9kUgFVnZ9kMhpm0ATE/bZzAujwFG1rlHmhLxiC
RsU3euvrcb8QPcdLkNLunoCv71QSiCyABeUIG0jFKdU+oA4VoTkP+LWV
=BuQY
-----END PGP SIGNATURE-----


From nobody Wed Jan 28 06:14:50 2015
Return-Path: <smyshsv@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 0B1C61A009B for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 06:14:48 -0800 (PST)
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 Chugyx1bFjSD for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 06:14:44 -0800 (PST)
Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 748D31A0084 for <cfrg@irtf.org>; Wed, 28 Jan 2015 06:14:44 -0800 (PST)
Received: by mail-ob0-f170.google.com with SMTP id wp4so19271612obc.1 for <cfrg@irtf.org>; Wed, 28 Jan 2015 06:14:43 -0800 (PST)
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=OKMIveEvMHLGAyRZmNslNJNlReuoTPIq/D544A7DC8I=; b=FtCQdltKAiCXeGPPBymDooVbnYCJPxdleTJhqwlr9xZuayhyFh8HUbpKaT9iP+staa YklOt9xEYi/VGSnq/+/BI27+RJ+xXywoqw2kUd2Xuna6PqPj+cGO5ws7BDeWgq+TS8TE FE6yWtIm32F3+rtwgMjy6liyACXkt+RybXfNwTSw9HFvHSslXB6ZYuKjsMbwowC+OQmb JGMnJGKthsAZsLwDFE0il76mFkLq8RDEJrw3SfGN8jcRoWgrpxUn+DTNiiEocsV6Un99 Vm6MAIxY96zs2ssjeDKAa5Ot2d6N8d9yf69y1eWWCaw8c3ApiIVa5tiDrfvUsjC6JL6k Tzkg==
MIME-Version: 1.0
X-Received: by 10.182.18.66 with SMTP id u2mr2201784obd.33.1422454483574; Wed, 28 Jan 2015 06:14:43 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Wed, 28 Jan 2015 06:14:43 -0800 (PST)
In-Reply-To: <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io>
Date: Wed, 28 Jan 2015 18:14:43 +0400
Message-ID: <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: Alyssa Rowan <akr@akr.io>, "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=001a11c2bda833e4a7050db6fe1f
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/BOkB5xmAihgO31Mm2CfQoNNCVAo>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 14:14:48 -0000

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

Dear Alyssa,

As we believe (and as it has been mentioned earlier during discussion at
CFRG), the initital seed value doesn't have to be chosen explicitly in case
of trust in basic hash function properties =E2=80=93 to gain some "backdoor=
-type"
properties of the curve with d =3D hash(W), one has either to combine such
algebraic properties of a curve with properties of a hash function (for a
trivial example, to have an ability to obtain a hash preimage) or to choose
a very probable "backdoor-type" property of a curve (such that it is
possible to obtain by random choice of a curve).

We believe that there really cannot be a higher level of "proven
randomness" than using d with a known hash preimage (regarding to
properties of hash function, of course).

The only one option to get a "backdoored" curve with our method that I
understand is the existence of some large publicly unknown class of "bad"
("backdoored", subverted) curves. But if such a class exists, who can
guarantee that any of your generated curves doesn't belong to this class?..

P.S.:
Nevertheless, for that exact twisted Edwards curve we have also a preimage
value of first 512 bits of W (we did this only to organize process of
candidate curve generation in parallel, without too much need also though),
but I had to mention this (pretty useless) fact.

Best regards,
Stanislav V. Smyshlyaev, Ph.D.,
Head of Information Security Department, CryptoPro LLC


2015-01-28 16:28 GMT+03:00 Alyssa Rowan <akr@akr.io>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 27 January 2015 15:57:40 GMT+00:00, "=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=
=81=D0=BB=D0=B0=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2" <
> smyshsv@gmail.com> wrote:
>
> >The curve parameters have been generated using random nonce W in such wa=
y
> that e =3D 1, d =3D hash(W), where hash() is Russian national standard GO=
ST R
> 34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D,
> https://www.streebog.net/en/). The seed value W is equal to:
> >W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 =
A5
> AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2 5=
E
> AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC 7=
E
> D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,
>
> ...and the million-rouble question, if I may be the first to ask:
>
> How was that seed W generated, and under what criteria?
>
> There is now a strong preference for open curve generation processes whos=
e
> criteria are all explicitly shown, chosen for clearly-defined "rigid"
> reasons, and whose generation can be replicated and verified.
>
> I can't see the procedure you show here has that property, due to the
> unexplained seed; a property it shares with the US standard NIST curves
> we've been asked to replace, so I'm not too sure as to the merits of your
> curve?
>
> - --
> /akr
> -----BEGIN PGP SIGNATURE-----
> Version: APG v1.1.1
>
> iQI3BAEBCgAhBQJUyOPlGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE
> jtkWi2t6rbAP/0/Cz+7r1IIf8spVLUVeAxtrgdsuKvtRt6Dpz5vkNiiS/pwRXpVF
> /70MbeBQA4M2ak7enzYGnRI/I2hGAv6nV6ybTwwnPDjq33iBS6F16sV7KsBaLRcy
> 7KmUTYKIT7oTncTWTDO0zlgo2k+/Hy1G/ChmnOLBFH6peKSwgt8OJgEPe0rZbg8E
> pTukrmr8lDw18MiGPhoqnj7Ug46ydJhqqZkP0aT3xtSF8Y+lVEpn7O36QV03QnAU
> d/0oQCQHkHJBfcI9w2W6tiyI6iHFH40U3c78kdASLdWjHyOfYZ/P00BasQudWcvD
> kgqYVGrZMXkrIQvn1JnMt5PD5Wl+XN6/6csAkeUOBr9oTwwWnX9xmvT+Ly14TFw2
> fw5/WaMKYht9K//qPh0hQLHCZuG0NEx/0pcoTTgYSGyXOIlAx19gDSbybmd/+ssj
> 9/ttSN+t9eENghr1IcXRMCrPcxbwnQRS2dQYGzCmqohf0ZS3DIzYAI2ChMT5eLNl
> lD9iSluaf7ss2/qlzwu+4kw25qDR/JwgKL8gmC0jhDE1ID4e8P4/ovpj3EwlW47S
> 2tRBD1XhRR0L1ZLiA5za+LLHPg9kUgFVnZ9kMhpm0ATE/bZzAujwFG1rlHmhLxiC
> RsU3euvrcb8QPcdLkNLunoCv71QSiCyABeUIG0jFKdU+oA4VoTkP+LWV
> =3DBuQY
> -----END PGP SIGNATURE-----
>
>

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

<div dir=3D"ltr"><div>Dear Alyssa,<br><br>As we believe (and as it has been=
 mentioned earlier during discussion at CFRG), the initital seed value does=
n&#39;t have to be chosen explicitly in case of trust in basic hash functio=
n properties =E2=80=93 to gain some &quot;backdoor-type&quot; properties of=
 the curve with d =3D hash(W), one has either to combine such algebraic pro=
perties of a curve with properties of a hash function (for a trivial exampl=
e, to have an ability to obtain a hash preimage) or to choose a very probab=
le &quot;backdoor-type&quot; property of a curve (such that it is possible =
to obtain by random choice of a curve).<br><br>We believe that there really=
 cannot be a higher level of &quot;proven randomness&quot; than using d wit=
h a known hash preimage (regarding to properties of hash function, of cours=
e).<br><br>The only one option to get a &quot;backdoored&quot; curve with o=
ur method that I understand is the existence of some large publicly unknown=
 class of &quot;bad&quot; (&quot;backdoored&quot;, subverted) curves. But i=
f such a class exists, who can guarantee that any of your generated curves =
doesn&#39;t belong to this class?..</div><div><br>P.S.:<br>Nevertheless, fo=
r that exact twisted Edwards curve we have also a preimage value of first 5=
12 bits of W (we did this only to organize process of candidate curve gener=
ation in parallel, without too much need also though), but I had to mention=
 this (pretty useless) fact.<br><div class=3D"gmail_extra"><br clear=3D"all=
">Best regards,</div><div class=3D"gmail_extra">Stanislav V. Smyshlyaev, Ph=
.D.,<br>Head of Information Security Department, CryptoPro LLC=C2=A0</div><=
div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra"><br><div cla=
ss=3D"gmail_quote">2015-01-28 16:28 GMT+03:00 Alyssa Rowan <span dir=3D"ltr=
">&lt;<a href=3D"mailto:akr@akr.io" target=3D"_blank">akr@akr.io</a>&gt;</s=
pan>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-styl=
e:solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA512<br>
<span class=3D""><br>
On 27 January 2015 15:57:40 GMT+00:00, &quot;=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=
=D1=81=D0=BB=D0=B0=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2&q=
uot; &lt;<a href=3D"mailto:smyshsv@gmail.com">smyshsv@gmail.com</a>&gt; wro=
te:<br>
<br>
&gt;The curve parameters have been generated using random nonce W in such w=
ay that e =3D 1, d =3D hash(W), where hash() is Russian national standard G=
OST R 34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D, <=
a href=3D"https://www.streebog.net/en/" target=3D"_blank">https://www.stree=
bog.net/en/</a>). The seed value W is equal to:<br>
&gt;W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6=
 A5 AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2=
 5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC=
 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,<b=
r>
<br>
</span>...and the million-rouble question, if I may be the first to ask:<br=
>
<br>
How was that seed W generated, and under what criteria?<br>
<br>
There is now a strong preference for open curve generation processes whose =
criteria are all explicitly shown, chosen for clearly-defined &quot;rigid&q=
uot; reasons, and whose generation can be replicated and verified.<br>
<br>
I can&#39;t see the procedure you show here has that property, due to the u=
nexplained seed; a property it shares with the US standard NIST curves we&#=
39;ve been asked to replace, so I&#39;m not too sure as to the merits of yo=
ur curve?<br>
<br>
- --<br>
/akr<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: APG v1.1.1<br>
<br>
iQI3BAEBCgAhBQJUyOPlGhxBbHlzc2EgUm93YW4gPGFrckBha3IuaW8+AAoJEOyE<br>
jtkWi2t6rbAP/0/Cz+7r1IIf8spVLUVeAxtrgdsuKvtRt6Dpz5vkNiiS/pwRXpVF<br>
/70MbeBQA4M2ak7enzYGnRI/I2hGAv6nV6ybTwwnPDjq33iBS6F16sV7KsBaLRcy<br>
7KmUTYKIT7oTncTWTDO0zlgo2k+/Hy1G/ChmnOLBFH6peKSwgt8OJgEPe0rZbg8E<br>
pTukrmr8lDw18MiGPhoqnj7Ug46ydJhqqZkP0aT3xtSF8Y+lVEpn7O36QV03QnAU<br>
d/0oQCQHkHJBfcI9w2W6tiyI6iHFH40U3c78kdASLdWjHyOfYZ/P00BasQudWcvD<br>
kgqYVGrZMXkrIQvn1JnMt5PD5Wl+XN6/6csAkeUOBr9oTwwWnX9xmvT+Ly14TFw2<br>
fw5/WaMKYht9K//qPh0hQLHCZuG0NEx/0pcoTTgYSGyXOIlAx19gDSbybmd/+ssj<br>
9/ttSN+t9eENghr1IcXRMCrPcxbwnQRS2dQYGzCmqohf0ZS3DIzYAI2ChMT5eLNl<br>
lD9iSluaf7ss2/qlzwu+4kw25qDR/JwgKL8gmC0jhDE1ID4e8P4/ovpj3EwlW47S<br>
2tRBD1XhRR0L1ZLiA5za+LLHPg9kUgFVnZ9kMhpm0ATE/bZzAujwFG1rlHmhLxiC<br>
RsU3euvrcb8QPcdLkNLunoCv71QSiCyABeUIG0jFKdU+oA4VoTkP+LWV<br>
=3DBuQY<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote></div><br></div></div></div>

--001a11c2bda833e4a7050db6fe1f--


From nobody Wed Jan 28 07:53:10 2015
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 7E19D1A8752 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 07:53:08 -0800 (PST)
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 BDaIIZV5ev7J for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 07:53:06 -0800 (PST)
Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 677CA1A8738 for <cfrg@irtf.org>; Wed, 28 Jan 2015 07:53:06 -0800 (PST)
Received: by mail-yk0-f169.google.com with SMTP id 200so9215049ykr.0 for <cfrg@irtf.org>; Wed, 28 Jan 2015 07:53:05 -0800 (PST)
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=eof3Zc1L0uwrvuTrhX9BJewkjyj480CSkME53Ggk/IY=; b=aEXk0oU5HfjbyfIhCc53Lgz/3+asVbD7R7Tz3+0i4Pg6dZKUtkDFbvqOS7u618wBEG 5vXHhpUvKjOcAr/RHljJXgQslikSEZDegX9HxyAddU5ZB1M6UuxeiSfx5eMNnBWXjAzQ 0d7LDI8KbCJjBmajsUeey+3U2+lKgr9JxZH5j9hSn19+QZuGQEaecJxy1c2r0CLg3jGQ G63AOQkIaI9hZNRYEXik7yXzzPesXFDyxFE2W8S+6LqZEmwF0oWSXKXVITgHVayKeJlb eqSV0AwrsHRviZjwB395TYn9dyecvCLDZwW6vtGju0M+1SjsePVGGkGs6o5xCdUHuiBL 28KA==
MIME-Version: 1.0
X-Received: by 10.236.1.102 with SMTP id 66mr1528664yhc.163.1422460385608; Wed, 28 Jan 2015 07:53:05 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Wed, 28 Jan 2015 07:53:05 -0800 (PST)
Date: Wed, 28 Jan 2015 07:53:05 -0800
Message-ID: <CACsn0c=a90vhRNg8Dj2otqp4HfjSdA5Cj8oU2XgKcYYMXS+znA@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/KkgP4dG_OYgzL-xAmdvM7Gzo0Zc>
Subject: [Cfrg] Primes (last time hopefully!)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 15:53:08 -0000

Dear all,

The following have been suggested for primes at sizes between 2^255-19
and 2^521-1.

2^521-1
2^512-big
2^448-2^224-1
2^414-17
2^389-21
2^384-big
2^379-19

I'm omitting smaller primes from the list, because I don't think that
2^324-24 is that interesting to anyone, for instance, as the time
taken to compute  a discrete log isn't that much bigger than 2^255-19
and the performance not much better then 2^379-19.

Personally I think 2^521-1 needs to be in there, and 2^379-19 is
reasonable, absent hard numbers showing its terrible. I'm hoping
sometime to get those hard numbers.

I'm assuming we use Edwards with the minimal d and the isogenous
Montgomery curve with small value of a24 for all of these: there
doesn't seem to be a reason not to. We can twist if that produces a
complete curve: it's almost completely irrelevant.

Sincerely,
Watson Ladd


From nobody Wed Jan 28 07:53:28 2015
Return-Path: <npmccallum@redhat.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 132D31A8764 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 07:53:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.012
X-Spam-Level: 
X-Spam-Status: No, score=-4.012 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o4O6C_OsW3oy for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 07:53:14 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 4E9261A875E for <cfrg@irtf.org>; Wed, 28 Jan 2015 07:53:14 -0800 (PST)
Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0SFrAVd005732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Jan 2015 10:53:10 -0500
Received: from vpn-62-218.rdu2.redhat.com (vpn-62-218.rdu2.redhat.com [10.10.62.218]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0SFr85w004071 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 28 Jan 2015 10:53:09 -0500
Message-ID: <1422460388.26683.62.camel@redhat.com>
From: Nathaniel McCallum <npmccallum@redhat.com>
To: cfrg@irtf.org
Date: Wed, 28 Jan 2015 10:53:08 -0500
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/M-MG_AZo5zVZIdnal3lefaS70lU>
Subject: [Cfrg] Using draft-irtf-cfrg-spake2-00 in Kerberos Preauth
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 15:53:27 -0000

I've only just now joined the mailing list, so I'm a bit late to the
party (though I see my name has been brought up in the previous
discussions).

I am currently implementing a PAKE preauthentication mechanism for
Kerberos. https://github.com/npmccallum/krb5-pake

One of the PAKEs we have chosen to use is SPAKE2. The aforementioned
program that I am using to generate M and N constants is here:
https://github.com/npmccallum/krb5-pake/blob/master/src/pake/spake_constants.c

This program uses two seed strings:
 "OID point generation seed (M)"
 "OID point generation seed (N)"

OID is replaced by the OID of the curve. Since some curves have multiple
aliases, the use of OIDs removes any ambiguity to the seed.

The method use to generate the constants is fairly similar to that used
by Chromium, but differs in several ways:
http://src.chromium.org/viewvc/chrome/trunk/src/crypto/p224_spake.cc

First, we calculate the length of the encoded value of a single point on
the curve. I'll call this $CURVE_SIZE.

Second, we determine which is the smallest hash function (of SHA-1,
SHA-2-*) which outputs at least $CURVE_SIZE bytes. So, for instance,
given P256, SHA-2-256 will be used. If no hash function is larger than
$CURVE_SIZE, we use the largest hash. For example, P521 uses SHA-2-512.

Third, we generate the seeds by filling in the OID value.

Fourth, we begin a recursive process whereby we hash the seed (or the
previous hash of the seed) until the output of the hash yields an X
coordinate on the curve. The Y coordinate (+/-) is chosen using the
right-most bit of the hash.

This methodology differs from the Chromium methodology in three ways:
1. The hash function is variable.
2. OIDs are used instead of a friendly name (like P256).
3. We generate M/N for all curves supported by OpenSSL at build time.

In short, this is just a poorly devised method for hashing a constant
string onto the curve. I am definitely open to alternatives.

One other important difference of our implementation from
draft-irtf-cfrg-spake2-00 is that we do not use the SPAKE2 derivation
hash, but rather use a variant of it. The purpose of this is to have a
generic derivation which:
1. Works for all PAKE types (notably, JPAKE).
2. Includes all public negotiation data to provide protection from
downgrade attacks.

Specifically, our derivation step includes:
* Client identity
* Server identity
* Recursive hash of all negotiation data (including SPAKE's public keys)
* The secret (w)
* The derived session key (K)

So, all that to say this...

As I see it, two improvements are needed to the draft.

First, the method to calculate M/N needs to be clearly laid out. If an
existing method is chosen (Chromium's/krb5-pake's), I feel that using
curve names is not sufficiently unambiguous. Alternatively, a new method
of producing M/N constants could be devised. The latter may be necessary
since I'm not sure either of the existing methods will work for
Curve25519.

Second, the "real" SPAKE algorithm is the generation of K. The
derivation step is a common step that should be done for all PAKEs and
is not SPAKE specific. This derivation step is usually application
specific. While it may include other data, it must include at least the
following in some form:
* Client identity
* Server identity
* All publicly exchanged group members (in SPAKE: T and S)
* The secret (w)
* The derived session key (K)

Nathaniel


From nobody Wed Jan 28 08:06:45 2015
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 99B6E1A1B01 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 08:06:41 -0800 (PST)
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 cCeaSQiLnStd for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 08:06:38 -0800 (PST)
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 4E3C11A00BE for <cfrg@irtf.org>; Wed, 28 Jan 2015 08:06:38 -0800 (PST)
Received: by mail-yk0-f171.google.com with SMTP id 10so9261669ykt.2 for <cfrg@irtf.org>; Wed, 28 Jan 2015 08:06:36 -0800 (PST)
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=nnMgG3068CBy2mSWdAzU5e3yMouJHIejxZv1LkraAlI=; b=qEl2g26h9K+Yg5y1ZyGAPzpJUx+nxZE96X/KgaL3TvrOF8wc/QcnqWrsklMAmXEy70 n1aSiPgg85kir5QXU+l4RvVTJSvuDAFwc2nF/Emv0ZYgBRd8x3wtmYFG/bfERoZVeTOw /zROHFAbKK9Ew3eMMSJSNaV5QEHcTOb8+5dTN9yEe2EYT1rN7yzeNwU2xZLIzMyeCHpK MahEWsr3PzZVH+8aq9G5IHhe0ArzDHsWH+gDcpxvC+iUiwy0guJ7pS+tgDzkCP3+OULI qduWTGI3oGpvoLPhpivu68QB8sf3LTBtX5Yawkx0fjGqG3OCS/jqZjBokf8RTIV3vfeD rxtQ==
MIME-Version: 1.0
X-Received: by 10.236.61.8 with SMTP id v8mr1587225yhc.44.1422461196500; Wed, 28 Jan 2015 08:06:36 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Wed, 28 Jan 2015 08:06:36 -0800 (PST)
In-Reply-To: <1422460388.26683.62.camel@redhat.com>
References: <1422460388.26683.62.camel@redhat.com>
Date: Wed, 28 Jan 2015 08:06:36 -0800
Message-ID: <CACsn0ckv09951WZ3d46ScoKVdSEs-GekQG55cSOmH+BSGx5Diw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Nathaniel McCallum <npmccallum@redhat.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/wrgCIZrEJgFOrHSr7t1NQWYBgKQ>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Using draft-irtf-cfrg-spake2-00 in Kerberos Preauth
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 16:06:42 -0000

On Wed, Jan 28, 2015 at 7:53 AM, Nathaniel McCallum
<npmccallum@redhat.com> wrote:
> I've only just now joined the mailing list, so I'm a bit late to the
> party (though I see my name has been brought up in the previous
> discussions).
>
> I am currently implementing a PAKE preauthentication mechanism for
> Kerberos. https://github.com/npmccallum/krb5-pake
>
> One of the PAKEs we have chosen to use is SPAKE2. The aforementioned
> program that I am using to generate M and N constants is here:
> https://github.com/npmccallum/krb5-pake/blob/master/src/pake/spake_constants.c
>
> This program uses two seed strings:
>  "OID point generation seed (M)"
>  "OID point generation seed (N)"
>
> OID is replaced by the OID of the curve. Since some curves have multiple
> aliases, the use of OIDs removes any ambiguity to the seed.
>
> The method use to generate the constants is fairly similar to that used
> by Chromium, but differs in several ways:
> http://src.chromium.org/viewvc/chrome/trunk/src/crypto/p224_spake.cc
>
> First, we calculate the length of the encoded value of a single point on
> the curve. I'll call this $CURVE_SIZE.
>
> Second, we determine which is the smallest hash function (of SHA-1,
> SHA-2-*) which outputs at least $CURVE_SIZE bytes. So, for instance,
> given P256, SHA-2-256 will be used. If no hash function is larger than
> $CURVE_SIZE, we use the largest hash. For example, P521 uses SHA-2-512.
>
> Third, we generate the seeds by filling in the OID value.
>
> Fourth, we begin a recursive process whereby we hash the seed (or the
> previous hash of the seed) until the output of the hash yields an X
> coordinate on the curve. The Y coordinate (+/-) is chosen using the
> right-most bit of the hash.

I don't think this is what your C code is doing, or if it is, I can't
figure it out because of the way it uses OpenSSL internals.
I may try coding that up in SAGE and seeing if it agrees in the
output. (In particular I think the first byte of the digest might get
mangled to have the decode function work).

>
> This methodology differs from the Chromium methodology in three ways:
> 1. The hash function is variable.
> 2. OIDs are used instead of a friendly name (like P256).
> 3. We generate M/N for all curves supported by OpenSSL at build time.
>
> In short, this is just a poorly devised method for hashing a constant
> string onto the curve. I am definitely open to alternatives.

Do they matter? This only needs to happen once.

>
> One other important difference of our implementation from
> draft-irtf-cfrg-spake2-00 is that we do not use the SPAKE2 derivation
> hash, but rather use a variant of it. The purpose of this is to have a
> generic derivation which:
> 1. Works for all PAKE types (notably, JPAKE).
> 2. Includes all public negotiation data to provide protection from
> downgrade attacks.
>
> Specifically, our derivation step includes:
> * Client identity
> * Server identity
> * Recursive hash of all negotiation data (including SPAKE's public keys)
> * The secret (w)
> * The derived session key (K)
>
> So, all that to say this...
>
> As I see it, two improvements are needed to the draft.
>
> First, the method to calculate M/N needs to be clearly laid out. If an
> existing method is chosen (Chromium's/krb5-pake's), I feel that using
> curve names is not sufficiently unambiguous. Alternatively, a new method
> of producing M/N constants could be devised. The latter may be necessary
> since I'm not sure either of the existing methods will work for
> Curve25519.

Why won't the same method work for the Edwards curve? I pick x by
incrementing until there is a valid y value, then pick one of the two
solutions of the quadratic.

Why do we need to be completely unambiguous? The only thing we need is
that I don't know the discrete logarithms, which the method being used
now already achieves.

>
> Second, the "real" SPAKE algorithm is the generation of K. The
> derivation step is a common step that should be done for all PAKEs and
> is not SPAKE specific. This derivation step is usually application
> specific. While it may include other data, it must include at least the
> following in some form:
> * Client identity
> * Server identity
> * All publicly exchanged group members (in SPAKE: T and S)
> * The secret (w)
> * The derived session key (K)

I disagree with this change for the following reason: hashing the
transcript needs to be done anyway. But some protocols don't do it
correctly. In those protocols we derive additional protection from
defining K to already include the data from SPAKE2.

Sincerely,
Watson Ladd

>
> Nathaniel
>



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


From nobody Wed Jan 28 09:10:08 2015
Return-Path: <alangley@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 F07D01A87AD for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:10:05 -0800 (PST)
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 pTb0uf4566uS for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:10:04 -0800 (PST)
Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 569C01A87A9 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:10:04 -0800 (PST)
Received: by mail-lb0-f169.google.com with SMTP id f15so19929590lbj.0 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:10:02 -0800 (PST)
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=bAcXPLNECWA/5stDHDMlJkMIspyVX4d2/Lvodynm2ME=; b=I8FyQX9MumxAFTx8zHBAGbjjOCZUjdcZv1TM/00mOhjwtPwwX4g9I7G3+7Th5ZLf9k vlxgM2zKP8QQvtkTGQTYvL8+na6Me3kFC7Ud/14Gn7fAcNZvl35rGaJUbm556Nw93gRm mUOHOejCK6ynSdNYjCk1kxCjPb9n7XUxLwGR0Dg8eNWjuPSMSaKnGEqYf4sB/dx9plnu YBCpKfub4gcC7pnZW9yxgnuztL7hkR/xysx9PWmmjPcYxRMfyv05rjdZ4XIAVoB8Esef MXdc2xA3CGr6di3+GwpsB9bFcGC6+RALtc3khNjDYnp/pMvNWdQppGYGWif2nflmCMn/ zmqA==
MIME-Version: 1.0
X-Received: by 10.152.245.44 with SMTP id xl12mr9612530lac.81.1422465002362; Wed, 28 Jan 2015 09:10:02 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Wed, 28 Jan 2015 09:10:02 -0800 (PST)
In-Reply-To: <54C84883.2090608@gmail.com>
References: <54C3DD05.6060706@isode.com> <54C7D5BA.6050606@gmail.com> <CAMfhd9XA5OkPHHnh19H8H6R7Z=XqJ1vWDG2-_U9Ej6_gO+KN4A@mail.gmail.com> <54C84883.2090608@gmail.com>
Date: Wed, 28 Jan 2015 09:10:02 -0800
X-Google-Sender-Auth: AAyL2RzjCfEy5S0fgZmBOYoHgB8
Message-ID: <CAMfhd9VSSq4LCiWomGxCAF=HxQDE2hwcpuew99sF6sgYP8ygSA@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: Rene Struik <rstruik.ext@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/qbagnPnLqMj19Gv_LbM3z_JF11E>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] (technical flaws to be corrected in next version of the draft) Fwd: Re: Adoption of draft-agl-cfrgcurve-00 as a RG 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, 28 Jan 2015 17:10:06 -0000

On Tue, Jan 27, 2015 at 6:25 PM, Rene Struik <rstruik.ext@gmail.com> wrote:
> I will revisit your email later. However, just another brief process note=
:
> I would like to strongly suggest first re-publishing your individual inte=
rnet draft draft-agl-cfrgcurve-00, but now as draft-irtf-cfrg-curve-00 (i.e=
., verbatim copy, except change of title and submission date) and only then=
 make changes to the resulting document. As I said in my previous process n=
ote (Jan 5, 2015, 4.42pm EST), this allows easy to keep track of evolution =
over time.

I've submitted draft-agl-cfrgcurve-00 as draft-irtf-cfrg-curve-00
(it's pending chair approval) with no changes other than the name.
Once that's published, I'll quickly follow up with -01 which will be
similar to what's currently in git: https://github.com/agl/cfrgcurve


Cheers

AGL


From nobody Wed Jan 28 09:22:40 2015
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 24BD31A884E for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:22:39 -0800 (PST)
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 4Bfic2N_LEwZ for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:22:37 -0800 (PST)
Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 514351A8842 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:22:37 -0800 (PST)
Received: by mail-ob0-f175.google.com with SMTP id wp4so20429198obc.6 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:22:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=cUPHbI3WGminLEGTUEO9bQ+Aj875GSKWw4YrlSRUH+I=; b=v6NRL35Z2D57nvLq2xjO1kPEYnFrrrFt4/HybkT2xXVRLbOBYn9pYYRFsv9DM8GoIQ yD6c8LMTs2NDS13No990izeuyfGtN6hUWoWb5UPnE33eYjnW5oLyZGT60YlPGcIHfOSU asjhkl5zLZN0CGoo9PQ7t97FCkO8st/THGmONHSbto2H1kRZoiwJAm7yuT3l70WjCMpa Mo+YnIJxMGgrjCifHcnLhxrv/I/H3zDvto7keLjeKBzd0uOscmOdoGz6vq2wCDrEro0o N8wNOgO4KHBqHF25aCF8y+nv82xjYDCnouB6MmMZLfzRivAOcUVS58Zi6huRaY9kzNo0 7n+A==
X-Received: by 10.182.130.231 with SMTP id oh7mr2831015obb.47.1422465756433; Wed, 28 Jan 2015 09:22:36 -0800 (PST)
MIME-Version: 1.0
Received: by 10.202.224.5 with HTTP; Wed, 28 Jan 2015 09:22:16 -0800 (PST)
In-Reply-To: <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 28 Jan 2015 09:22:16 -0800
Message-ID: <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com>
To: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
Content-Type: multipart/alternative; boundary=089e011778e71e15b3050db99e01
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/k782O-tGGwGFDosmq3sbJX8St7o>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:22:39 -0000

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

On Wed, Jan 28, 2015 at 6:14 AM, Stanislav V. Smyshlyaev <smyshsv@gmail.com=
>
wrote:

> As we believe (and as it has been mentioned earlier during discussion at
> CFRG), the initital seed value doesn't have to be chosen explicitly in ca=
se
> of trust in basic hash function properties =E2=80=93 to gain some "backdo=
or-type"
> properties of the curve with d =3D hash(W), one has either to combine suc=
h
> algebraic properties of a curve with properties of a hash function (for a
> trivial example, to have an ability to obtain a hash preimage) or to choo=
se
> a very probable "backdoor-type" property of a curve (such that it is
> possible to obtain by random choice of a curve).
>

Hi Stanislav,

Dan Bernstein and Tanja Lange have already demonstrated that such
"verifiably random" generation procedures can be used to surreptitiously
tweak specific curve parameters:

http://safecurves.cr.yp.to/bada55.html

I for one would not feel particularly inclined to trust a curve generated
with this method, and would personally prefer the sort of rigid curve
generation approach that this committee and others have been working on to
any curve with large unexplained mystery constants.

--=20
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jan 28, 2015 at 6:14 AM, Stanislav V. Smyshlyaev <span dir=3D"ltr">&lt;=
<a href=3D"mailto:smyshsv@gmail.com" target=3D"_blank" onclick=3D"window.op=
en(&#39;https://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dsmyshsv=
@gmail.com&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;=
);return false;">smyshsv@gmail.com</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;=
border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex=
"><div dir=3D"ltr"><div>As we believe (and as it has been mentioned earlier=
 during discussion at CFRG), the initital seed value doesn&#39;t have to be=
 chosen explicitly in case of trust in basic hash function properties =E2=
=80=93 to gain some &quot;backdoor-type&quot; properties of the curve with =
d =3D hash(W), one has either to combine such algebraic properties of a cur=
ve with properties of a hash function (for a trivial example, to have an ab=
ility to obtain a hash preimage) or to choose a very probable &quot;backdoo=
r-type&quot; property of a curve (such that it is possible to obtain by ran=
dom choice of a curve).</div></div></blockquote><div><br></div><div>Hi Stan=
islav,</div><div><br></div><div>Dan Bernstein and Tanja Lange have already =
demonstrated that such &quot;verifiably random&quot; generation procedures =
can be used to surreptitiously tweak specific curve parameters:</div><div><=
br></div><div><a href=3D"http://safecurves.cr.yp.to/bada55.html">http://saf=
ecurves.cr.yp.to/bada55.html</a></div><div><br></div><div>I for one would n=
ot feel particularly inclined to trust a curve generated with this method, =
and would personally prefer the sort of rigid curve generation approach tha=
t this committee and others have been working on to any curve with large un=
explained mystery constants.</div></div><div><br></div>-- <br><div class=3D=
"gmail_signature">Tony Arcieri<br></div>
</div></div>

--089e011778e71e15b3050db99e01--


From nobody Wed Jan 28 09:33:27 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3409E1A1B35 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:33:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8wnEYVn9cz5h for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:33:25 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 1ED001A00F6 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:33:25 -0800 (PST)
Received: from [10.20.30.90] (50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206]) (authenticated bits=0) by proper.com (8.15.1/8.14.9) with ESMTPSA id t0SHXM2W079440 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jan 2015 10:33:23 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com>
Date: Wed, 28 Jan 2015 09:33:22 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <F1BAFC8D-F380-420F-8254-2BD17A3E4A79@vpnc.org>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com>
To: Tony Arcieri <bascule@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/HlCFqGSrCjIO1jPEMV_LkZhXV1A>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:33:26 -0000

On Jan 28, 2015, at 9:22 AM, Tony Arcieri <bascule@gmail.com> wrote:
> Dan Bernstein and Tanja Lange have already demonstrated that such =
"verifiably random" generation procedures can be used to surreptitiously =
tweak specific curve parameters:
>=20
> http://safecurves.cr.yp.to/bada55.html

That is a huge overstatement of what they showed. They showed that if a =
group of people with a common interest pick the form for the verifiably =
random value, they can tweak parameters. There are obvious procedures =
that prevent the number being chosen by such a group, and instead have =
the number chosen by a group where even if a single person is trusted, =
the randomness is trusted.

> I for one would not feel particularly inclined to trust a curve =
generated with this method, and would personally prefer the sort of =
rigid curve generation approach that this committee and others have been =
working on to any curve with large unexplained mystery constants.

If there were no downside to using a trustable random number, we could =
use one, but it seems that there are performance penalties and =
difficulty to make such calculations constant-time (if I understand =
earlier arguments correctly).

--Paul Hoffman=


From nobody Wed Jan 28 09:36:23 2015
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 496581A1F00 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:36:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.49
X-Spam-Level: *
X-Spam-Status: No, score=1.49 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, FR_TEST_BASE64_BAD=3.189, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.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 d2ufkNocd1Wl for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:36:16 -0800 (PST)
Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 788481A1B69 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:36:15 -0800 (PST)
Received: by mail-yk0-f181.google.com with SMTP id 79so9439069ykr.12 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:36:14 -0800 (PST)
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=4mBD2HwgyFC4cuYxdW6+aukObd392vSyriGDuMns9dE=; b=0W4cY4LpBGviQGIibP4pmf1pzPCo7sztVkn8t3ImaZgO6Ds8W0eqti4tNZc58L0Pkm qry7ickSTtaHh4enl0psHyOD6slBV2olTJcIuAcC7GtnVgLQxohY2Y/ek5454VVDxmub zlXB5ZwCkmkjR0iTLIfav/ZTe7Dpu0Le0Z+sGgUTUmTOwgPe3HVBicWsby39gwT/e/OO YEcr350Jm13DWpDzAUc00tTpuUocsHpu23mSNZVk0tUjpOW8MxZkTbPAbJv+FSyViOOM dXJ4bkmf9mI8BZH4bV6j16q90H9bvWHGofto0KS34K4V90CnvWcMFTgHSs29mIcGyklA 4HIw==
MIME-Version: 1.0
X-Received: by 10.170.46.3 with SMTP id 3mr1980993yko.24.1422466574605; Wed, 28 Jan 2015 09:36:14 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Wed, 28 Jan 2015 09:36:14 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Wed, 28 Jan 2015 09:36:14 -0800 (PST)
In-Reply-To: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com>
Date: Wed, 28 Jan 2015 09:36:14 -0800
Message-ID: <CACsn0cm4wrhH8xgbA3SxbfpZHn1SKJJN+Ch7Out8WViZ7s2PYw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: =?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCyINCh0LzRi9GI0LvRj9C10LI=?= <smyshsv@gmail.com>
Content-Type: multipart/alternative; boundary=001a11437dcae28609050db9ce44
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/RkrufgObQtz8AZdRgqnOvNWz1OU>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:36:18 -0000

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

On Jan 27, 2015 8:00 AM, "=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=
=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2" <smyshsv@gmail.com=
> wrote:
>
> Good afternoon, dear colleagues,
>
>
>
> Currently the proposed draft on elliptic curves generation methods does
not explicitly consider curves with security more than 256 bits.
>
>
>
> In Russia we have had a similar lack of 512-bit curves (both twisted
Edwards ones and curves with groups of prime order), so we at CryptoPro
(Russian cryptographic software company) proposed three of them to our
Technical Committee for Standardization =C2=ABCryptography and Security
Mechanisms=C2=BB (http://tc26.ru/en/).
>
>
>
> In 2014 after a deep discussion with colleagues these curves were
standardized for usage with Russian national digital signature standard
(GOST R 34.10-2012).
>
>
>
> For example, the twisted Edwards 512-bit curve is defined over the field
GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).
>
> p =3D
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7

This prime is not as fast on many platforms as p=3D2^521-1. Why was it
selected?

>
> d =3D
0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E0A5=
15C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550
>
> e =3D 0x1
>
> m =3D
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336E919=
41AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4
>
> q =3D
0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDBA46=
506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED
>
> u(P) =3D 0x12
>
> v(P) =3D
0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4B650=
CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D
>
> a =3D
0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861C0E=
2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3
>
> b =3D
0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2FFF=
719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1
>
> x(P) =3D
0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272A7A=
E602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148
>
> y(P) =3D
0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D33E=
3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F
>
> (The following notation is used for Edwards curve coefficients: eu^2 +
v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form y^2=
 =3D
x^3 + ax +b. We denote the total number of points on the curve as m and
prime subgroup order as q. We denote base point as P; x(P), y(P) and u(P),
v(P) are respectively base point coordinates in Weierstrass and twisted
Edwards form.)
>
>
>
> p and q are prime. The curve has been examined to be secure against
MOV-attacks (thus it can be believed to be DDH-secure) and to satisfy
CM-security requirements. Twisted curve security has also been studied:
twisted curve points group order has a prime factor of:
0x40000000000000000000000000000000000000000000000000000000000000003673245b9=
af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fdaf7,
while the other factor is equal to 4.
>
>
>
> The curve can be used both for digital signatures and for Diffie-Hellman
key agreement.
>
>
>
> The curve parameters have been generated using random nonce W in such way
that e =3D 1, d =3D hash(W), where hash() is Russian national standard GOST=
 R
34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D,
https://www.streebog.net/en/). The seed value W is equal to:
>
> W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6 A=
5
AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2 5E
AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC 7E
D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,
>
>
>
> GOST R 34.11-2012 (Streebog) implementation can be found at
https://github.com/okazymyrov/stribog, for example.
>
>
>
> The base point has been selected as a point with the smallest
u-coordinate, satisfying curve equation and having order equal to q.
>
>
>
> Also we have an agreed (with Russian cryptographic community, including
experts from other Russian companies, scientific community and governmental
authorities) version of curve generation methods; if you consider it
interesting, we could prepare an English translation in a couple of days.
>
>
>
> Best regards,
>
> Stanislav V. Smyshlyaev, Ph.D.,
>
> Head of Information Security Department,
>
> CryptoPro LLC
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

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

<p dir=3D"ltr"><br>
On Jan 27, 2015 8:00 AM, &quot;=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=
=D0=B0=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2&quot; &lt;<a =
href=3D"mailto:smyshsv@gmail.com">smyshsv@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Good afternoon, dear colleagues,<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; Currently the proposed draft on elliptic curves generation methods doe=
s not explicitly consider curves with security more than 256 bits.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; In Russia we have had a similar lack of 512-bit curves (both twisted E=
dwards ones and curves with groups of prime order), so we at CryptoPro (Rus=
sian cryptographic software company) proposed three of them to our Technica=
l Committee for Standardization =C2=ABCryptography and Security Mechanisms=
=C2=BB (<a href=3D"http://tc26.ru/en/">http://tc26.ru/en/</a>).<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; In 2014 after a deep discussion with colleagues these curves were stan=
dardized for usage with Russian national digital signature standard (GOST R=
 34.10-2012).<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; For example, the twisted Edwards 512-bit curve is defined over the fie=
ld GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).<br>
&gt;<br>
&gt; p =3D 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7</p>
<p dir=3D"ltr">This prime is not as fast on many platforms as p=3D2^521-1. =
Why was it selected?</p>
<p dir=3D"ltr">&gt;<br>
&gt; d =3D 0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A062105043=
9CA6B39E0A515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550<br>
&gt;<br>
&gt; e =3D 0x1<br>
&gt;<br>
&gt; m =3D 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FF26336E91941AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4<br>
&gt;<br>
&gt; q =3D 0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFC98CDBA46506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED<br>
&gt;<br>
&gt; u(P) =3D 0x12<br>
&gt;<br>
&gt; v(P) =3D 0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B3=
8669522DD4B650CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D<br>
&gt;<br>
&gt; a =3D 0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E14306=
4546E861C0E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3<br>
&gt;<br>
&gt; b =3D 0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5AD=
E038CBC2FFF719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1<br>
&gt;<br>
&gt; x(P) =3D 0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CE=
A043AA27272A7AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148<br>
&gt;<br>
&gt; y(P) =3D 0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D209=
0FF9BE18E2D33E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F<br>
&gt;<br>
&gt; (The following notation is used for Edwards curve coefficients: eu^2 +=
 v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form y^=
2 =3D x^3 + ax +b. We denote the total number of points on the curve as m a=
nd prime subgroup order as q. We denote base point as P; x(P), y(P) and u(P=
), v(P) are respectively base point coordinates in Weierstrass and twisted =
Edwards form.)<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; p and q are prime. The curve has been examined to be secure against MO=
V-attacks (thus it can be believed to be DDH-secure) and to satisfy CM-secu=
rity requirements. Twisted curve security has also been studied: twisted cu=
rve points group order has a prime factor of: 0x400000000000000000000000000=
00000000000000000000000000000000000003673245b9af954ffb3cc5600aeb8afd3371256=
1858965ed96b9dc310b80fdaf7, while the other factor is equal to 4.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; The curve can be used both for digital signatures and for Diffie-Hellm=
an key agreement.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; The curve parameters have been generated using random nonce W in such =
way that e =3D 1, d =3D hash(W), where hash() is Russian national standard =
GOST R 34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D, =
<a href=3D"https://www.streebog.net/en/">https://www.streebog.net/en/</a>).=
 The seed value W is equal to:<br>
&gt;<br>
&gt; W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F=
6 A5 AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F=
2 5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 A=
C 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,<=
br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; GOST R 34.11-2012 (Streebog) implementation can be found at <a href=3D=
"https://github.com/okazymyrov/stribog">https://github.com/okazymyrov/strib=
og</a>, for example.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; The base point has been selected as a point with the smallest u-coordi=
nate, satisfying curve equation and having order equal to q.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; Also we have an agreed (with Russian cryptographic community, includin=
g experts from other Russian companies, scientific community and government=
al authorities) version of curve generation methods; if you consider it int=
eresting, we could prepare an English translation in a couple of days.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Stanislav V. Smyshlyaev, Ph.D.,<br>
&gt;<br>
&gt; Head of Information Security Department,<br>
&gt;<br>
&gt; CryptoPro LLC<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt; <a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt; <a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.=
org/mailman/listinfo/cfrg</a><br>
&gt;<br>
</p>

--001a11437dcae28609050db9ce44--


From nobody Wed Jan 28 09:37:22 2015
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 E0C7C1A1F00 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:37:19 -0800 (PST)
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 d0BPhzLyQg7A for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:37:18 -0800 (PST)
Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 599431A1B69 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:37:18 -0800 (PST)
Received: by mail-oi0-f42.google.com with SMTP id i138so18654912oig.1 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:37:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2Cdc+e1rja7EYMPkX+rBTICWNYalr0Ad1OWXlMtoTpc=; b=Toy3Qh6Y90dWtQaavyR6eekRCL0L1vITiZ+WN0BrfFCIOfal+biP+4wmr1ZSJZqekr RftKquXYuYsuD283LPMglWlzrIwp5hIrGNCG5pVvHSMoJeGNQJJUSjvEj3kL1f1OfMkE K0ESpx+4C62HypHF7MWCQMQGbUByS2bJfGIY5jsi0knDIJflP7GmWmx/aisCaDe+U7Q8 0hoZZSmS8r7p0p9qrQ23KeSQJulFTiELp421HTHFZj8+nYyTdUl5qvrlrifQkitdCKy8 bfU6Q8Jqm5al1SQhgLfVcIp2dTWHDLH7gTlcQmiJF7t3wZ5OrMVs4PDUi6nCLO6ZioLX ZITw==
X-Received: by 10.202.187.10 with SMTP id l10mr2769158oif.86.1422466637649; Wed, 28 Jan 2015 09:37:17 -0800 (PST)
MIME-Version: 1.0
Received: by 10.202.224.5 with HTTP; Wed, 28 Jan 2015 09:36:57 -0800 (PST)
In-Reply-To: <F1BAFC8D-F380-420F-8254-2BD17A3E4A79@vpnc.org>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com> <F1BAFC8D-F380-420F-8254-2BD17A3E4A79@vpnc.org>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 28 Jan 2015 09:36:57 -0800
Message-ID: <CAHOTMVKcTvQbWyVexNJdrtXx-vz6HCbK+D=WLriHDQPLotL0VQ@mail.gmail.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: multipart/alternative; boundary=001a113ce040a49d62050db9d25d
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/_Zs5RKnTNh4VdY46IQ2TlY1ZcI0>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:37:20 -0000

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

On Wed, Jan 28, 2015 at 9:33 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:

> That is a huge overstatement of what they showed.


No it isn't. Unless these numbers are justified they can be poisoned.


> They showed that if a group of people with a common interest pick the form
> for the verifiably random value, they can tweak parameters. There are
> obvious procedures that prevent the number being chosen by such a group,
> and instead have the number chosen by a group where even if a single person
> is trusted, the randomness is trusted.
>

I guess you're probably talking about Brainpool? I guess the Brainpool
numbers are probably ok? But why use this sort of process at all? It just
provides an avenue for suspicion.

-- 
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jan 28, 2015 at 9:33 AM, Paul Hoffman <span dir=3D"ltr">&lt;<a href=3D"=
mailto:paul.hoffman@vpnc.org" target=3D"_blank" onclick=3D"window.open(&#39=
;https://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dpaul.hoffman@v=
pnc.org&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);r=
eturn false;">paul.hoffman@vpnc.org</a>&gt;</span> wrote:<br><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex">That is a huge overstatement of what they showed.</blockqu=
ote><div><br></div><div>No it isn&#39;t. Unless these numbers are justified=
 they can be poisoned.</div><div>=C2=A0</div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
> They showed that if a group of people with a common interest pick the for=
m for the verifiably random value, they can tweak parameters. There are obv=
ious procedures that prevent the number being chosen by such a group, and i=
nstead have the number chosen by a group where even if a single person is t=
rusted, the randomness is trusted.<br></blockquote><div><br></div><div>I gu=
ess you&#39;re probably talking about Brainpool? I guess the Brainpool numb=
ers are probably ok? But why use this sort of process at all? It just provi=
des an avenue for suspicion.</div><div><br></div></div>-- <br><div class=3D=
"gmail_signature">Tony Arcieri<br></div>
</div></div>

--001a113ce040a49d62050db9d25d--


From nobody Wed Jan 28 09:41:12 2015
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 990201A6F3B; Wed, 28 Jan 2015 09:41:08 -0800 (PST)
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 eJn5kDHpjnZc; Wed, 28 Jan 2015 09:41:07 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A93B1A0E10; Wed, 28 Jan 2015 09:41:07 -0800 (PST)
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.10.1.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150128174107.23159.2905.idtracker@ietfa.amsl.com>
Date: Wed, 28 Jan 2015 09:41:07 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/gxDRGc6o1vO0fVuBWfWxPQ3CVuw>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-curves-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 17:41:08 -0000

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

        Title           : Elliptic Curves for Security
        Author          : Adam Langley
	Filename        : draft-irtf-cfrg-curves-00.txt
	Pages           : 13
	Date            : 2015-01-28

Abstract:
   This memo describes an algorithm for deterministically generating
   parameters for elliptic curves over prime fields offering high
   practical security in cryptographic applications, including Transport
   Layer Security (TLS) and X.509 certificates.  It also specifies a
   specific curve at the ~128-bit security level.


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

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


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

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


From nobody Wed Jan 28 09:46:04 2015
Return-Path: <smyshsv@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 D6E471A6EED for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:46:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.19
X-Spam-Level: *
X-Spam-Status: No, score=1.19 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, FR_TEST_BASE64_BAD=3.189, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1EV9xyHwra2V for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:45:59 -0800 (PST)
Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 399D41A1EF9 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:45:59 -0800 (PST)
Received: by mail-ob0-f171.google.com with SMTP id va2so20572841obc.2 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:45:58 -0800 (PST)
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=GPihtQ0OKhx3tFpCJojybwQEYw6hgElqpLW7HF+/SMY=; b=lv2AHCbPPbJ/GWFTPVqBejRm6UIEgTrdJy+wshVXss/Ve3ZfhFY+XOdyaldbADOzlN Nkcpc2zda1wAp16WdJEoWbTNKaRojNb6/fbpn8LdpgZ2KWef2kbZHq6SLuWGgxny3PZU V2OhbwNnFi9RRsrrfzJPz41LdpmKgcfPE39zrbwJn1DmgfkC++kRBL+2+avfeJB0oX9x JHD9BJ2G32TG+Slx3QbMFr/SeBZbsHW63eE7/35lP8OADuYeoPXzIxx8z8yDbtEYT+o7 MQPiEF1F/PCm78n2g2FLEf+mm5uIlCzoHgn1aDMCrEm17PW02NPvG4V7OIx8m52gRON7 j6Fg==
MIME-Version: 1.0
X-Received: by 10.182.33.138 with SMTP id r10mr2894333obi.67.1422467158532; Wed, 28 Jan 2015 09:45:58 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Wed, 28 Jan 2015 09:45:58 -0800 (PST)
In-Reply-To: <CACsn0cm4wrhH8xgbA3SxbfpZHn1SKJJN+Ch7Out8WViZ7s2PYw@mail.gmail.com>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <CACsn0cm4wrhH8xgbA3SxbfpZHn1SKJJN+Ch7Out8WViZ7s2PYw@mail.gmail.com>
Date: Wed, 28 Jan 2015 21:45:58 +0400
Message-ID: <CAMr0u6=avxwgcLSNUQiOYwhjob7BUnjWdHucEchH5C6MN4Y8_A@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c2cb9ab067ad050db9f197
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/JZZi0iKy3N-nJqub4Z-DKJZwaI8>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:46:02 -0000

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

For a very simple reason =E2=80=93 our Russian GOST signature standard has =
a
requirement for q: q must be either 2^254<q<2^256 or 2^508<q<2^512, where q
is the order of a cyclic subgroup.

Best regards,

Stanislav


2015-01-28 20:36 GMT+03:00 Watson Ladd <watsonbladd@gmail.com>:

>
> On Jan 27, 2015 8:00 AM, "=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=
=B0=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2" <smyshsv@gmail.=
com> wrote:
> >
> > Good afternoon, dear colleagues,
> >
> >
> >
> > Currently the proposed draft on elliptic curves generation methods does
> not explicitly consider curves with security more than 256 bits.
> >
> >
> >
> > In Russia we have had a similar lack of 512-bit curves (both twisted
> Edwards ones and curves with groups of prime order), so we at CryptoPro
> (Russian cryptographic software company) proposed three of them to our
> Technical Committee for Standardization =C2=ABCryptography and Security
> Mechanisms=C2=BB (http://tc26.ru/en/).
> >
> >
> >
> > In 2014 after a deep discussion with colleagues these curves were
> standardized for usage with Russian national digital signature standard
> (GOST R 34.10-2012).
> >
> >
> >
> > For example, the twisted Edwards 512-bit curve is defined over the fiel=
d
> GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).
> >
> > p =3D
> 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7
>
> This prime is not as fast on many platforms as p=3D2^521-1. Why was it
> selected?
>
> >
> > d =3D
> 0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E0=
A515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550
> >
> > e =3D 0x1
> >
> > m =3D
> 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF26336E9=
1941AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4
> >
> > q =3D
> 0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDBA=
46506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED
> >
> > u(P) =3D 0x12
> >
> > v(P) =3D
> 0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B38669522DD4B6=
50CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D
> >
> > a =3D
> 0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861C=
0E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3
> >
> > b =3D
> 0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2F=
FF719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1
> >
> > x(P) =3D
> 0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272A=
7AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148
> >
> > y(P) =3D
> 0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D3=
3E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F
> >
> > (The following notation is used for Edwards curve coefficients: eu^2 +
> v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form y=
^2 =3D
> x^3 + ax +b. We denote the total number of points on the curve as m and
> prime subgroup order as q. We denote base point as P; x(P), y(P) and u(P)=
,
> v(P) are respectively base point coordinates in Weierstrass and twisted
> Edwards form.)
> >
> >
> >
> > p and q are prime. The curve has been examined to be secure against
> MOV-attacks (thus it can be believed to be DDH-secure) and to satisfy
> CM-security requirements. Twisted curve security has also been studied:
> twisted curve points group order has a prime factor of:
> 0x40000000000000000000000000000000000000000000000000000000000000003673245=
b9af954ffb3cc5600aeb8afd33712561858965ed96b9dc310b80fdaf7,
> while the other factor is equal to 4.
> >
> >
> >
> > The curve can be used both for digital signatures and for Diffie-Hellma=
n
> key agreement.
> >
> >
> >
> > The curve parameters have been generated using random nonce W in such
> way that e =3D 1, d =3D hash(W), where hash() is Russian national standar=
d GOST
> R 34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D,
> https://www.streebog.net/en/). The seed value W is equal to:
> >
> > W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F6=
 A5
> AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F2 5=
E
> AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 AC 7=
E
> D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,
> >
> >
> >
> > GOST R 34.11-2012 (Streebog) implementation can be found at
> https://github.com/okazymyrov/stribog, for example.
> >
> >
> >
> > The base point has been selected as a point with the smallest
> u-coordinate, satisfying curve equation and having order equal to q.
> >
> >
> >
> > Also we have an agreed (with Russian cryptographic community, including
> experts from other Russian companies, scientific community and government=
al
> authorities) version of curve generation methods; if you consider it
> interesting, we could prepare an English translation in a couple of days.
> >
> >
> >
> > Best regards,
> >
> > Stanislav V. Smyshlyaev, Ph.D.,
> >
> > Head of Information Security Department,
> >
> > CryptoPro LLC
> >
> >
> >
> > _______________________________________________
> > Cfrg mailing list
> > Cfrg@irtf.org
> > http://www.irtf.org/mailman/listinfo/cfrg
> >
>

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

<div dir=3D"ltr">For a very simple reason =E2=80=93 our Russian GOST signat=
ure standard has a requirement for q: q must be either 2^254&lt;q&lt;2^256 =
or 2^508&lt;q&lt;2^512, where q is the order of a cyclic subgroup.<div clas=
s=3D"gmail_extra"><br clear=3D"all"><div><div class=3D"gmail_signature"><di=
v dir=3D"ltr"><p><font color=3D"#1f497d">Best regards,</font></p><p><font c=
olor=3D"#1f497d">Stanislav</font></p><div><br></div></div></div></div>
<br><div class=3D"gmail_quote">2015-01-28 20:36 GMT+03:00 Watson Ladd <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:watsonbladd@gmail.com" target=3D"_blank"=
>watsonbladd@gmail.com</a>&gt;</span>:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><s=
pan class=3D""><p dir=3D"ltr"><br>
On Jan 27, 2015 8:00 AM, &quot;=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=
=D0=B0=D0=B2 =D0=A1=D0=BC=D1=8B=D1=88=D0=BB=D1=8F=D0=B5=D0=B2&quot; &lt;<a =
href=3D"mailto:smyshsv@gmail.com" target=3D"_blank">smyshsv@gmail.com</a>&g=
t; wrote:<br>
&gt;<br>
&gt; Good afternoon, dear colleagues,<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; Currently the proposed draft on elliptic curves generation methods doe=
s not explicitly consider curves with security more than 256 bits.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; In Russia we have had a similar lack of 512-bit curves (both twisted E=
dwards ones and curves with groups of prime order), so we at CryptoPro (Rus=
sian cryptographic software company) proposed three of them to our Technica=
l Committee for Standardization =C2=ABCryptography and Security Mechanisms=
=C2=BB (<a href=3D"http://tc26.ru/en/" target=3D"_blank">http://tc26.ru/en/=
</a>).<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; In 2014 after a deep discussion with colleagues these curves were stan=
dardized for usage with Russian national digital signature standard (GOST R=
 34.10-2012).<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; For example, the twisted Edwards 512-bit curve is defined over the fie=
ld GF(p), where p is equal to 2^512 =E2=80=93 569, p =3D 3 (mod 4).<br>
&gt;<br>
&gt; p =3D 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7</p>
</span><p dir=3D"ltr">This prime is not as fast on many platforms as p=3D2^=
521-1. Why was it selected?</p>
<p dir=3D"ltr"><span class=3D"">&gt;<br>
&gt; d =3D 0x9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A062105043=
9CA6B39E0A515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550<br>
&gt;<br>
&gt; e =3D 0x1<br>
&gt;<br>
&gt; m =3D 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FF26336E91941AAC0130CEA7FD451D40B323B6A79E9DA6849A5188F3BD1FC08FB4<br>
&gt;<br>
&gt; q =3D 0x3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF=
FFC98CDBA46506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED<br>
&gt;<br>
&gt; u(P) =3D 0x12<br>
&gt;<br>
&gt; v(P) =3D 0x469AF79D1FB1F5E16B99592B77A01E2A0FDFB0D01794368D9A56117F7B3=
8669522DD4B650CF789EEBF068C5D139732F0905622C04B2BAAE7600303EE73001A3D<br>
&gt;<br>
&gt; a =3D 0xDC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E14306=
4546E861C0E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3<br>
&gt;<br>
&gt; b =3D 0xB4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5AD=
E038CBC2FFF719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1<br>
&gt;<br>
&gt; x(P) =3D 0xE2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CE=
A043AA27272A7AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148<br>
&gt;<br>
&gt; y(P) =3D 0xF5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D209=
0FF9BE18E2D33E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F<br>
&gt;<br>
&gt; (The following notation is used for Edwards curve coefficients: eu^2 +=
 v^2 =3D 1 + du^2v^2, while the corresponding Weierstrass curve has form y^=
2 =3D x^3 + ax +b. We denote the total number of points on the curve as m a=
nd prime subgroup order as q. We denote base point as P; x(P), y(P) and u(P=
), v(P) are respectively base point coordinates in Weierstrass and twisted =
Edwards form.)<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; p and q are prime. The curve has been examined to be secure against MO=
V-attacks (thus it can be believed to be DDH-secure) and to satisfy CM-secu=
rity requirements. Twisted curve security has also been studied: twisted cu=
rve points group order has a prime factor of: 0x400000000000000000000000000=
00000000000000000000000000000000000003673245b9af954ffb3cc5600aeb8afd3371256=
1858965ed96b9dc310b80fdaf7, while the other factor is equal to 4.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; The curve can be used both for digital signatures and for Diffie-Hellm=
an key agreement.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; The curve parameters have been generated using random nonce W in such =
way that e =3D 1, d =3D hash(W), where hash() is Russian national standard =
GOST R 34.11-2012 hash function (also known as =E2=80=9CStreebog=E2=80=9D, =
<a href=3D"https://www.streebog.net/en/" target=3D"_blank">https://www.stre=
ebog.net/en/</a>). The seed value W is equal to:<br>
&gt;<br>
&gt; W =3D 1F BB 79 69 B9 1B 3E A0 81 17 FB 10 74 BF BF 55 49 DD 66 07 63 F=
6 A5 AF 09 57 77 5B 66 4C B1 13 CF CB 91 C4 A7 7D 27 98 06 BC F2 4A 56 77 F=
2 5E AF FE C6 67 76 70 2E E2 C7 AA 84 16 07 50 DA 1D D1 50 AE D2 8C 30 26 A=
C 7E D6 D1 9B 97 AC 2C B5 82 7C 00 03 18 47 13 53 5B FA 65 24 B3 E4 60 83,<=
br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; GOST R 34.11-2012 (Streebog) implementation can be found at <a href=3D=
"https://github.com/okazymyrov/stribog" target=3D"_blank">https://github.co=
m/okazymyrov/stribog</a>, for example.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; The base point has been selected as a point with the smallest u-coordi=
nate, satisfying curve equation and having order equal to q.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; Also we have an agreed (with Russian cryptographic community, includin=
g experts from other Russian companies, scientific community and government=
al authorities) version of curve generation methods; if you consider it int=
eresting, we could prepare an English translation in a couple of days.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Stanislav V. Smyshlyaev, Ph.D.,<br>
&gt;<br>
&gt; Head of Information Security Department,<br>
&gt;<br>
&gt; CryptoPro LLC<br>
&gt;<br>
&gt;<br>
&gt;<br></span>
&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>
</blockquote></div><br></div></div>

--001a11c2cb9ab067ad050db9f197--


From nobody Wed Jan 28 09:54:36 2015
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 B73971A0381 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:54:34 -0800 (PST)
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 3lH1XLOqd8nb for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:54:33 -0800 (PST)
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 653A01A1AC2 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:54:30 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 90D19F2208; Wed, 28 Jan 2015 09:54:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1422467667; bh=H7M4ZbVdmMIs9Xa4coU7ZZhZ8/n1mG9QsztGeOgRU3A=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=CgwJAOisU/TkIOEcQ3qs8Gva+BEkXUAA829aRixiNKPoSkWE9gpBpOg4noKJcz5jJ 3F/AZrkPJwjfPXWtdiEiWqjhhaNgc/uKlugj6V/7NyW3y+WmpmHzAbgoZpkllt9+i/ Q0+7oO863gw4+jgTXOI+ZyVAx9Ozh8Zjbx8pXmxQ=
Message-ID: <54C92254.7070505@shiftleft.org>
Date: Wed, 28 Jan 2015 09:54:28 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>, Alyssa Rowan <akr@akr.io>
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com> <45DA4E29-972A-4902-BFB4-4C23DC62ABEA@akr.io> <20150128104831.GA2272@LK-Perkele-VII>
In-Reply-To: <20150128104831.GA2272@LK-Perkele-VII>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/GdNYe-IJ7vtJbmIXjtKQcP1pUxc>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:54:34 -0000

On 01/28/2015 02:48 AM, Ilari Liusvaara wrote:
> On Wed, Jan 28, 2015 at 09:19:26AM +0000, Alyssa Rowan wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>>
>> On 27 January 2015 21:33:16 GMT+00:00, Tony Arcieri <bascule@gmail.com> wrote:
>>
>>> - Ed25519 and EdDSA
>> Well, *I* like it. Seems to have attained some external traction, too: OpenBSD, GnuPG, OpenSSH, for a start.
>>
>> Positives:
>> β’ Already fast, high-quality, constant-time existing implementations in software (and some hardware, too).
>> β’ Deterministic signatures = test vectors!  No need for signer or verifier themselves to have random sources! Win.
>> β’ As deployed uses SHA-512, a well-known mature hash function with plenty of hardware and software support that's weathered fairly well. (Can potentially use any other.)
>> β’ Potentially batchable.
>>
>> Negatives:
>> β’ As deployed uses SHA-512, an NSA algorithm, not the fastest or best now that SHA-3 competition is over, with some potential length-extension issues to watch for. (I'm not too worried about this. SHA-2 is not backdoored, to the best of my knowledge.)
>> β’ Hash double width of curve. I get why, and I think it's very careful and sensible, but this complicates extending EdDSA to other curves (say, a >=WF192 curve), as hashes with outputs that large are uncommon. SHAKE256 might be suitable, but I'm not too sure how I feel about that.
> When I implemented something that captures Ed25519 as special case, I
> used more aggressive rule of 64 extra bits rounded up to hash output
> size, which can just use 512-bit hash even with Ed448-Goldilocks.
>
> But for E-521, it overflows 512 bits (uses 1024 bits (505 extra
> bits) with 512-bit hash).
>
> For when one needed output exceeding blocksize, that implementation
> caluclated: H(0x00|<data>)|H(0x01|<data>)|H(0x02|<data>)|... with
> however many hashes required.
>
> It also did implement one 1024-bit hash (Skein-1024, was a SHA-3
> finalist)
I think SHAKE256 is a good idea.  I'm planning to experiment with it in 
the Goldilocks source code, mostly so that I don't need H(data), 
H(H(data)) for E-521.
>> β’ Batch verify may exhibit side-channels?
> I think it definitely does have side-channels.
Verification code usually has side-channels, because none of the inputs 
is usually considered secret.  Depending on how you're using the 
signature, that could be a concern though.

-- Mike
>> β’ Old hardware hard-coded (i.e. not firmwared) to ECDSA is SOL. (I don't see this as a significant negative, if we want something new and better, we make it.)
>>
>>> - FrankenECDSA (ECDSA in Edwards)
>> I'm not totally clear on the details of what this suggestion actually *is*, or its relative advantages/disadvantages. Someone fill me in?
> Basically, taking x-coordinate mod l of Edwards point as r, instead of
> x-coordinate mod l of Weierstrass point, like ECDSA itself does.
>
> + All curve calculations in Edwards domain.
> - Still has the annoying scalar inversion.
> - Non-deterministic (as specified)
>   
>>> - ECDSA with Edwards keys on the wire (converted to Weierstrass to do ECDSA)
>> Ugh. All the disadvantages of ECDSA and few, perhaps none, of the advantages of new curves. I don't like this option much.
>>
>> Positives:
>> β’ Existing hard-coded hardware can perhaps be jury-rigged to do it
>>
>> Negatives:
>> β’ That means we can't mandate/test deterministic nonces
>> β’ Carries trust of existing 'validated' hardware forward, though that is in external doubt
>> β’ Overhead of wire format conversion
> Actually, I don't think it will work with existing hardware. The problem
> is dealing with the Edwards keys.
>
> I have actually implemented full ECDSA (complete with SEC1 Weierstrass
> keys, but using deterministic nonces) with Curve25519 (and some other curves).
> Coding up the conversion of Weierstrass points to Edwards points wasn't
> pleasant, but still lots more pleasant than trying to implement Weierstrass
> arithmetic (even with no sidechannel protection).
>
> Booby traps:
> - Signing: Random nonces.
> - Signing: Sidechannels from trying to use generic curve.
> - Signing: Sidechannels from sclar inversion.
> - Verification: Weierstrass is complicated and pretty easy to get wrong.
>
>>> - Other interesting thoughts on digital signatures
>> Can whatever we do please be (mandatory) deterministic with test vectors, at least?
>>
>> Do we have any better ideas?
> I looked what it would take to add EdDSA to TLS (AFAICT):
>
> - Defining EdDSA itself.
> - Adding TLS SignatureAlgorithm codepoint for it (Expert Review)
> - Adding Signature Algorithm OIDs for it (IANA considerations).
> - Adding OIDs for the curves (IANA considerations).
>
>
> Also, here is the interesting question: Is it worth staying "in bounds"
> here or just revamp the whole thing all at once (something like EdDSA
> or so)?
>
>
> -Ilari
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


From nobody Wed Jan 28 09:59:07 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7192E1A6F1E for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:58:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XEH8IHfoEgSY for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 09:58:54 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 A01B31A8725 for <cfrg@irtf.org>; Wed, 28 Jan 2015 09:58:54 -0800 (PST)
Received: from [10.20.30.90] (50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206]) (authenticated bits=0) by proper.com (8.15.1/8.14.9) with ESMTPSA id t0SHwqqr083358 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jan 2015 10:58:53 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CAHOTMVKcTvQbWyVexNJdrtXx-vz6HCbK+D=WLriHDQPLotL0VQ@mail.gmail.com>
Date: Wed, 28 Jan 2015 09:58:51 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <4F528649-1DF6-446B-A39C-75AA4B820BFC@vpnc.org>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com> <F1BAFC8D-F380-420F-8254-2BD17A3E4A79@vpnc.org> <CAHOTMVKcTvQbWyVexNJdrtXx-vz6HCbK+D=WLriHDQPLotL0VQ@mail.gmail.com>
To: Tony Arcieri <bascule@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Rk9KPY1LSvFK1djBiLu7Z_Pehpg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 17:58:55 -0000

On Jan 28, 2015, at 9:36 AM, Tony Arcieri <bascule@gmail.com> wrote:
>=20
> On Wed, Jan 28, 2015 at 9:33 AM, Paul Hoffman <paul.hoffman@vpnc.org> =
wrote:
> That is a huge overstatement of what they showed.
>=20
> No it isn't. Unless these numbers are justified they can be poisoned.

Please define "justified".

> =20
> They showed that if a group of people with a common interest pick the =
form for the verifiably random value, they can tweak parameters. There =
are obvious procedures that prevent the number being chosen by such a =
group, and instead have the number chosen by a group where even if a =
single person is trusted, the randomness is trusted.
>=20
> I guess you're probably talking about Brainpool?

No.

> I guess the Brainpool numbers are probably ok?

I don't.

> But why use this sort of process at all? It just provides an avenue =
for suspicion.

Right, so don't say that I'm using that sort of process. As I said, =
there are many ways to hold a process that comes out with a trustable =
random number. Brainpool isn't that.

--Paul Hoffman=


From nobody Wed Jan 28 10:04:22 2015
Return-Path: <simon@josefsson.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 491A11A1AB2 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:04:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EKG0MFjbdpGz for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:04:18 -0800 (PST)
Received: from duva.sjd.se (duva.sjd.se [IPv6:2001:9b0:1:1702::100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 71FDF1A1A8C for <cfrg@irtf.org>; Wed, 28 Jan 2015 10:04:18 -0800 (PST)
Received: from latte.josefsson.org (c-04f7e555.014-1001-73746f1.cust.bredbandsbolaget.se [85.229.247.4]) (authenticated bits=0) by duva.sjd.se (8.14.4/8.14.4/Debian-4) with ESMTP id t0SI460U021354 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 28 Jan 2015 19:04:08 +0100
From: Simon Josefsson <simon@josefsson.org>
To: Alexey Melnikov <alexey.melnikov@isode.com>
References: <C074A13E-C1C8-498D-A989-6FF68694CB2F@isode.com>
OpenPGP: id=54265E8C; url=http://josefsson.org/54265e8c.txt
X-Hashcash: 1:22:150128:alexey.melnikov@isode.com::REMgrfV/ltAMudFm:8b3w
X-Hashcash: 1:22:150128:cfrg@irtf.org::qKbXMo9yNg2zkwj1:acKQ
Date: Wed, 28 Jan 2015 19:04:06 +0100
In-Reply-To: <C074A13E-C1C8-498D-A989-6FF68694CB2F@isode.com> (Alexey Melnikov's message of "Tue, 27 Jan 2015 20:13:23 +0000")
Message-ID: <87twzazsrt.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.98.5 at duva.sjd.se
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ZVgpN0QSUJSlIawAILgRT1eW2vk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Request for agenda items in Dallas
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 18:04:20 -0000

Alexey Melnikov <alexey.melnikov@isode.com> writes:

> Dear CFRG participants,
> Chairs have requested a 2 hour slot in Dallas. Please let us know (*)
> if there are any particular topics you would like to see discussed or
> you would like to present.

Please consider allocating a slot for scrypt.  Rich Salz will be present
and can talk about it.

https://tools.ietf.org/html/draft-josefsson-scrypt-kdf-02

/Simon


From nobody Wed Jan 28 10:04:41 2015
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 6E1941A86FE for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:04:36 -0800 (PST)
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 jwMqBs7HV5xe for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:04:33 -0800 (PST)
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 0A62D1A6F29 for <cfrg@irtf.org>; Wed, 28 Jan 2015 10:04:33 -0800 (PST)
Message-ID: <54C924AC.7060504@akr.io>
Date: Wed, 28 Jan 2015 18:04:28 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>,  "cfrg@irtf.org" <cfrg@irtf.org>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com>	<C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com>
In-Reply-To: <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/icsGtmmnZEMDYioDfOF4sx6r5N4>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 18:04:36 -0000

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

On 28/01/2015 14:14, Stanislav V. Smyshlyaev wrote:

> β¦one has either to combine such algebraic properties of a curve
> with properties of a hash function (for a trivial example, to have
> an ability to obtain a hash preimage) or to choose a very probable 
> "backdoor-type" property of a curve (such that it is possible to 
> obtain by random choice of a curve).

Even a _partial_ second-preimage presents a significant problem here,
which is the big problem with the SEC1/NIST approach - and unless I'm
misunderstanding of course, the one you've taken?

A simple brute force partial second-preimage search lets you cook a
seed which yields a hash (even with a theoretical perfect hash
function) with as many bits as you can brute-force (64, no problem;
70-80, maybe for some?), and thus covertly select curves with
properties one desires (and perhaps, which we don't desire!) even down
to, say, p=1/(2^63).

Now I wouldn't characterise those properties as "very probable" to
occur by random chance at all, or indeed a large class - but it's
definitely a totally feasible condition to force for anyone who gets
to freely choose the seed.

That's why our draft rigid generation process doesn't use seeds - and
why anyone who does use seeds needs to be incredibly careful to the
extent to which anyone _can_ choose them (BADA55 being a demonstration
that a 'verifiably pseudo-random' process needs to be careful too, as
the mere choice of primitives and constants in the process may allow
enough of a degree of freedom to affect the outcome to force a
one-in-a-million choice).

Soβ¦ who did choose W? Or, if W is a hash output itself, who chose the
seed for that? (The attack still works on iterated hash functions.)

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

iQIcBAEBCgAGBQJUySSsAAoJEOyEjtkWi2t6HKIP/1OfbTbsADv0gUI2cywXmINM
2WTc3ulsMMEPDI/LIp15Dg8BEZJHQAiUWpZGcRGAvPyX6X27Uo+Jol2+Ab2G/EAh
zRLkw0HKnaACGpJftLKDoOZmwa2myLJWjVANz3YhRqu9HOee+IbPO1nelQMVJn89
hEg7h/JcPHQT65/PuXDE5ZVCwbJSfth3/LxS0bmkLeC1hGdr+bHuhPvf298vtk+d
ZlcmL5oiexCs+2Io63U6CTL9+XT881su75aMfMK+8cW9SphV6IASocSmhPotAJns
blYCnvBxAKNZD5cgHlgx7TV/9bhO14n8AT7ausUT6cwLzRj6kJT6fsBreeiNZagy
SC2j6WOFYgThyGbUz6xoot/bHpmP0zGVxeQwKmTIVjlD4IHmSA7dpf2wCCJSkkhI
DYfc7bAPKOl2+DXn43DRJ6uyGAOfpU+/oKkzUzyIklhP/7B17F1PBNMKVIgySKtC
ccozug5LNcwHfuzxpJVITDR9YvAwxDkcGuD0dVetaH4wY/F/4n2YWqhqQd7PTZgk
NtO0HhsoL610CpfVrB1PsIHvPWRwt8pAzi3k0oJMxjg7PB1bmVMj6Xv/BctvA4ki
BDiMKr9k9ZCSgwlFxkQR3568v993g72vUh6NwbSfChqxvZBcKnx1MayF8wQhjC96
FtOdtZJ9NDzZlO0QNbvw
=gvRr
-----END PGP SIGNATURE-----


From nobody Wed Jan 28 10:04:42 2015
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 2014D1A86FE for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:04:39 -0800 (PST)
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 K4jniJ5eHVT1 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:04:36 -0800 (PST)
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7BDE81A6FEC for <cfrg@irtf.org>; Wed, 28 Jan 2015 10:04:34 -0800 (PST)
Received: by mail-oi0-f53.google.com with SMTP id i138so18790136oig.12 for <cfrg@irtf.org>; Wed, 28 Jan 2015 10:04:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qH+sieXx4scomHxUnr3U3HGN6DfTkrDU0WiB8OWwwRk=; b=u4XB01EIBXSlpO7CO9vXnJfBVAPC85yzmMpMQYxoAhX4ksoqzJZmtEiH4f3fIJC7A9 wJjtGSdVz+f1nuyS0nNtXfV0IcdNWoMBZR/nMUdjC149WxbExPHBlvxQJyBuWC98AOv2 /XdUVrZa2aRSdI4IGdxP9k5VGj0bUM+I/vwxAPjw12mjhFqW9HdIOm3bNwMI0gqz6mKc qZDxOZzJGS2EneFfm3fNhSAg39YuI2jtG0pKt+ysNJa4Z8cXS08rCWASv2QJG9qHyxzn FuXIWL+doZd41bdo77xLMFa0kxUWmNOiSUehnH6k886IsgBYYdKJ00evknHft8VZteUw SeCw==
X-Received: by 10.202.98.2 with SMTP id w2mr2786126oib.15.1422468273819; Wed, 28 Jan 2015 10:04:33 -0800 (PST)
MIME-Version: 1.0
Received: by 10.202.224.5 with HTTP; Wed, 28 Jan 2015 10:04:13 -0800 (PST)
In-Reply-To: <4F528649-1DF6-446B-A39C-75AA4B820BFC@vpnc.org>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com> <F1BAFC8D-F380-420F-8254-2BD17A3E4A79@vpnc.org> <CAHOTMVKcTvQbWyVexNJdrtXx-vz6HCbK+D=WLriHDQPLotL0VQ@mail.gmail.com> <4F528649-1DF6-446B-A39C-75AA4B820BFC@vpnc.org>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 28 Jan 2015 10:04:13 -0800
Message-ID: <CAHOTMVLrpWx-BVLYxwFbqmW1OkMFZqmXuzVP=TVE9A4RKBwc3A@mail.gmail.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: multipart/alternative; boundary=001a113d39882a57d5050dba3472
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/CnvBvfsDf3SooQgIiFTAPVdG-fY>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 18:04:39 -0000

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

On Wed, Jan 28, 2015 at 9:58 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:

> Please define "justified".
>

I can give a couple examples of the opposite:

- The NIST curves
- This thread


> Right, so don't say that I'm using that sort of process. As I said, there
> are many ways to hold a process that comes out with a trustable random
> number. Brainpool isn't that.


Yeah, wasn't trying to suggest Brainpool did something that makes it
significantly better than the above.

-- 
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jan 28, 2015 at 9:58 AM, Paul Hoffman <span dir=3D"ltr">&lt;<a href=3D"=
mailto:paul.hoffman@vpnc.org" target=3D"_blank" onclick=3D"window.open(&#39=
;https://mail.google.com/mail/?view=3Dcm&amp;tf=3D1&amp;to=3Dpaul.hoffman@v=
pnc.org&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp;body=3D&#39;,&#39;_blank&#39;);r=
eturn false;">paul.hoffman@vpnc.org</a>&gt;</span> wrote:<br><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex">Please define &quot;justified&quot;.<br></blockquote><div>=
<br></div><div>I can give a couple examples of the opposite:</div><div><br>=
</div><div>- The NIST curves</div><div>- This thread</div><div>=C2=A0</div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Right, so don&#39;t say that I&#39;m using t=
hat sort of process. As I said, there are many ways to hold a process that =
comes out with a trustable random number. Brainpool isn&#39;t that.</blockq=
uote><div><br></div><div>Yeah, wasn&#39;t trying to suggest Brainpool did s=
omething that makes it significantly better than the above.=C2=A0</div></di=
v><div><br></div>-- <br><div class=3D"gmail_signature">Tony Arcieri<br></di=
v>
</div></div>

--001a113d39882a57d5050dba3472--


From nobody Wed Jan 28 10:12:28 2015
Return-Path: <npmccallum@redhat.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 CC2261A1A2C for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:12:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.911
X-Spam-Level: 
X-Spam-Status: No, score=-5.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dMFCjwfshIS2 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:12:23 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 B26351A1A94 for <cfrg@irtf.org>; Wed, 28 Jan 2015 10:12:23 -0800 (PST)
Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0SICKlF022429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Jan 2015 13:12:21 -0500
Received: from vpn-62-218.rdu2.redhat.com (vpn-62-218.rdu2.redhat.com [10.10.62.218]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0SICIon027493 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 28 Jan 2015 13:12:19 -0500
Message-ID: <1422468737.26683.110.camel@redhat.com>
From: Nathaniel McCallum <npmccallum@redhat.com>
To: Watson Ladd <watsonbladd@gmail.com>
Date: Wed, 28 Jan 2015 13:12:17 -0500
In-Reply-To: <CACsn0ckv09951WZ3d46ScoKVdSEs-GekQG55cSOmH+BSGx5Diw@mail.gmail.com>
References: <1422460388.26683.62.camel@redhat.com> <CACsn0ckv09951WZ3d46ScoKVdSEs-GekQG55cSOmH+BSGx5Diw@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/c9Esx7WMQaWOIA209S_VZdqDqXg>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Using draft-irtf-cfrg-spake2-00 in Kerberos Preauth
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 18:12:27 -0000

On Wed, 2015-01-28 at 08:06 -0800, Watson Ladd wrote:
> On Wed, Jan 28, 2015 at 7:53 AM, Nathaniel McCallum
> <npmccallum@redhat.com> wrote:
> > I've only just now joined the mailing list, so I'm a bit late to the
> > party (though I see my name has been brought up in the previous
> > discussions).
> >
> > I am currently implementing a PAKE preauthentication mechanism for
> > Kerberos. https://github.com/npmccallum/krb5-pake
> >
> > One of the PAKEs we have chosen to use is SPAKE2. The aforementioned
> > program that I am using to generate M and N constants is here:
> > https://github.com/npmccallum/krb5-pake/blob/master/src/pake/spake_constants.c
> >
> > This program uses two seed strings:
> >  "OID point generation seed (M)"
> >  "OID point generation seed (N)"
> >
> > OID is replaced by the OID of the curve. Since some curves have multiple
> > aliases, the use of OIDs removes any ambiguity to the seed.
> >
> > The method use to generate the constants is fairly similar to that used
> > by Chromium, but differs in several ways:
> > http://src.chromium.org/viewvc/chrome/trunk/src/crypto/p224_spake.cc
> >
> > First, we calculate the length of the encoded value of a single point on
> > the curve. I'll call this $CURVE_SIZE.
> >
> > Second, we determine which is the smallest hash function (of SHA-1,
> > SHA-2-*) which outputs at least $CURVE_SIZE bytes. So, for instance,
> > given P256, SHA-2-256 will be used. If no hash function is larger than
> > $CURVE_SIZE, we use the largest hash. For example, P521 uses SHA-2-512.
> >
> > Third, we generate the seeds by filling in the OID value.
> >
> > Fourth, we begin a recursive process whereby we hash the seed (or the
> > previous hash of the seed) until the output of the hash yields an X
> > coordinate on the curve. The Y coordinate (+/-) is chosen using the
> > right-most bit of the hash.
> 
> I don't think this is what your C code is doing, or if it is, I can't
> figure it out because of the way it uses OpenSSL internals.
> I may try coding that up in SAGE and seeing if it agrees in the
> output. (In particular I think the first byte of the digest might get
> mangled to have the decode function work).

What internals?

EC_GROUP *g = EC_GROUP_new_by_curve_name(NID_secp521r1);
EC_POINT *p = EC_POINT_new();
BIGNUM *x = BN_new(hash(seed));
int y = seed[-1] & 0x1; // Last bit
EC_POINT_set_compressed_coordinates_GFp(g, p, x, y);

That seems straightforward to me.

> > This methodology differs from the Chromium methodology in three ways:
> > 1. The hash function is variable.
> > 2. OIDs are used instead of a friendly name (like P256).
> > 3. We generate M/N for all curves supported by OpenSSL at build time.
> >
> > In short, this is just a poorly devised method for hashing a constant
> > string onto the curve. I am definitely open to alternatives.
> 
> Do they matter? This only needs to happen once.

No, not really. By "poorly devised" I simply meant it is the
"hunt'n'peck" approach.

> > One other important difference of our implementation from
> > draft-irtf-cfrg-spake2-00 is that we do not use the SPAKE2 derivation
> > hash, but rather use a variant of it. The purpose of this is to have a
> > generic derivation which:
> > 1. Works for all PAKE types (notably, JPAKE).
> > 2. Includes all public negotiation data to provide protection from
> > downgrade attacks.
> >
> > Specifically, our derivation step includes:
> > * Client identity
> > * Server identity
> > * Recursive hash of all negotiation data (including SPAKE's public keys)
> > * The secret (w)
> > * The derived session key (K)
> >
> > So, all that to say this...
> >
> > As I see it, two improvements are needed to the draft.
> >
> > First, the method to calculate M/N needs to be clearly laid out. If an
> > existing method is chosen (Chromium's/krb5-pake's), I feel that using
> > curve names is not sufficiently unambiguous. Alternatively, a new method
> > of producing M/N constants could be devised. The latter may be necessary
> > since I'm not sure either of the existing methods will work for
> > Curve25519.
> 
> Why won't the same method work for the Edwards curve? I pick x by
> incrementing until there is a valid y value, then pick one of the two
> solutions of the quadratic.

Sure, it could work.

> Why do we need to be completely unambiguous? The only thing we need is
> that I don't know the discrete logarithms, which the method being used
> now already achieves.

Um. Because its a draft? As an implementer of several RFCs, ambiguity
always comes to bite me later.

In this case, the RFC will define a table of common constants. But as
soon as someone does another curve not in the table there will be two
different constants because the aliases are different. I'd rather see
the draft define a *method* for defining constants and then provide a
list of several common values. Curves that do not have constants defined
in the RFC can then follow the method to arrive at the same constants.

> > Second, the "real" SPAKE algorithm is the generation of K. The
> > derivation step is a common step that should be done for all PAKEs and
> > is not SPAKE specific. This derivation step is usually application
> > specific. While it may include other data, it must include at least the
> > following in some form:
> > * Client identity
> > * Server identity
> > * All publicly exchanged group members (in SPAKE: T and S)
> > * The secret (w)
> > * The derived session key (K)
> 
> I disagree with this change for the following reason: hashing the
> transcript needs to be done anyway. But some protocols don't do it
> correctly. In those protocols we derive additional protection from
> defining K to already include the data from SPAKE2.

Just because some people do derivation incorrectly is not a valid reason
to dictate where derivation must occur.

All other PAKEs provide a computed session key which is a group member
and derivation is left to the implementer. Making SPAKE2 different in
this regard is a burden on projects which intend to allow
interchangeable PAKE algorithms.

Additionally, there are caveats regarding state-tracking. When stateless
servers are doing a PAKE exchange, the private values of the PAKE
(regardless of the PAKE) are typically sent in an encrypted cookie along
with a rolling transcript hash. The rolling transcript hash already
contains the public key data; but not in a form which can be provided to
SPAKE2's derivation. This would mean that SPAKE2 would require the
encrypted cookie to contain the private key, the transcript hash (which
includes both public keys) AND one or two public keys (depending on who
starts the PAKE).

Let's look at one example of this. The use of SHA-2-256 with P521 will
be a common scenario. The transcript hash will be 32 bytes. Depending on
who initiates the conversation and the encoding of the points, retaining
the points for later derivation can cause the size of the cookie to grow
substantially (upwards of 8x against the transcript size). And if the
addition of the public key(s) causes the cookie data to be larger than
the block size of the encryption, now you get to send a whole new block
over the network filled with padding.









From nobody Wed Jan 28 10:13:12 2015
Return-Path: <alangley@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 03C0F1A1A66; Wed, 28 Jan 2015 10:13:10 -0800 (PST)
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 Sdd6hfU5WaDK; Wed, 28 Jan 2015 10:13:08 -0800 (PST)
Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A88E51A887D; Wed, 28 Jan 2015 10:12:51 -0800 (PST)
Received: by mail-lb0-f169.google.com with SMTP id f15so20251684lbj.0; Wed, 28 Jan 2015 10:12:50 -0800 (PST)
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=6G6FhRelWzFY0T1lNWdtbEUfoXccF+k0TJ7dacq1bCU=; b=wIob7bP7qFB5E7vXqcqrngQC4FKpD0i35tMw3pjv98EhaUSVBShujh6ehwDAyeWHpr CGL6VZuyA2/q+RUS/nCyJk0W9TqmLxAfFyLpLqQTj2+jh26l29UL2YJzgaYYrpxSPQR3 0S4aon3qLQv40BYbeA7E68i3vGWXBwFJPqdcuW1YQNyLC0YQLVARlt6562uWxDzXRtdi 0VJI+qcSAxXrDC1abnGAEDJUazypDM1g7PgXJhZCJ1VSu+HzdzmFfSmT2HUdaVxthu8X WHuasb19eRuenI9gkigGrYmnR3M3kxaFKCFjS1VZ43T1f+cnIfVtjvWlXU4atfZ+1eX9 a/IA==
MIME-Version: 1.0
X-Received: by 10.152.116.9 with SMTP id js9mr10066105lab.20.1422468770140; Wed, 28 Jan 2015 10:12:50 -0800 (PST)
Sender: alangley@gmail.com
Received: by 10.112.114.225 with HTTP; Wed, 28 Jan 2015 10:12:50 -0800 (PST)
In-Reply-To: <20150128174107.23159.2905.idtracker@ietfa.amsl.com>
References: <20150128174107.23159.2905.idtracker@ietfa.amsl.com>
Date: Wed, 28 Jan 2015 10:12:50 -0800
X-Google-Sender-Auth: hdpzcBYjZ26ve7ExXRfxGAkTVIk
Message-ID: <CAMfhd9WpqxV+dZiB0r-xe9RGhQXZD7pShw9_8jvBO2LgVPO3Og@mail.gmail.com>
From: Adam Langley <agl@imperialviolet.org>
To: internet-drafts@ietf.org
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/hcZ_7HgyaX-bsq6U5H7UVREm8GU>
Cc: cfrg@ietf.org, i-d-announce@ietf.org
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-curves-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 18:13:10 -0000

On Wed, Jan 28, 2015 at 9:41 AM,  <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 Working Group of the IETF.
>
>         Title           : Elliptic Curves for Security
>         Author          : Adam Langley
>         Filename        : draft-irtf-cfrg-curves-00.txt
>         Pages           : 13
>         Date            : 2015-01-28
>
> Abstract:
>    This memo describes an algorithm for deterministically generating
>    parameters for elliptic curves over prime fields offering high
>    practical security in cryptographic applications, including Transport
>    Layer Security (TLS) and X.509 certificates.  It also specifies a
>    specific curve at the ~128-bit security level.

Please note that for ease of diffing, this is exactly the same as
draft-agl-cfrgcurves-00, except with a name change. I'll be submitting
-01 shortly.


Cheers

AGL

-- 
Adam Langley agl@imperialviolet.org https://www.imperialviolet.org


From nobody Wed Jan 28 10:33:04 2015
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 82E171A3BA5; Wed, 28 Jan 2015 10:32:53 -0800 (PST)
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 CeqM4NXHHKpt; Wed, 28 Jan 2015 10:32:52 -0800 (PST)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id D54D01A036D; Wed, 28 Jan 2015 10:32:51 -0800 (PST)
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.10.1.p1
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <20150128183251.25209.94701.idtracker@ietfa.amsl.com>
Date: Wed, 28 Jan 2015 10:32:51 -0800
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/DiKSVhv-rirMcmlciDMKyWF7W_Y>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-curves-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: Wed, 28 Jan 2015 18:32:53 -0000

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

        Title           : Elliptic Curves for Security
        Authors         : Adam Langley
                          Rich Salz
                          Sean Turner
	Filename        : draft-irtf-cfrg-curves-01.txt
	Pages           : 13
	Date            : 2015-01-28

Abstract:
   This memo describes an algorithm for deterministically generating
   parameters for elliptic curves over prime fields offering high
   practical security in cryptographic applications, including Transport
   Layer Security (TLS) and X.509 certificates.  It also specifies a
   specific curve at the ~128-bit security level.


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

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

A diff from the previous version is available at:
http://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-curves-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 Wed Jan 28 10:48:51 2015
Return-Path: <dkg@fifthhorseman.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 803F31A1AC6 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:48:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.001
X-Spam-Level: 
X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-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 zI3IcPibdiB4 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 10:48:48 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id A71111A1A22 for <cfrg@irtf.org>; Wed, 28 Jan 2015 10:48:48 -0800 (PST)
Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 40785F984 for <cfrg@irtf.org>; Wed, 28 Jan 2015 13:48:45 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 3872A203A0; Wed, 28 Jan 2015 13:48:44 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: cfrg@irtf.org
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
Date: Wed, 28 Jan 2015 13:48:44 -0500
Message-ID: <87386ug2r7.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/f_MdN5IG5QweCRbXqZVeQ40DcZA>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 18:48:50 -0000

On Tue 2015-01-27 10:41:50 -0500, Dan Brown wrote:
> But I wonder if there are any old implementations of the standards I listed
> above, that accept generic specified short Weierstrass curves, but lock
> together the KDF and raw ECDH operations.  Users stuck with such
> implementations couldn't gain _all_ the benefits of Curve25519, side channel
> resistance or whatever, but surely there's some residual benefits for them
> to use Curve25519 with a generic representation: maybe the rigidity
> Curve25519, or interoperability with other users with the newfangled
> software, not to mention the blessing of the collective wisdom of CFRG.  
>
> If the argument is that no such implementations could exist, or that the
> implementations, or even old ECC standards, are so bad that we should try to
> discourage interoperability, then please present that case.

It sounds to me like you're presenting a choice between two options for
the CFRG:

 0) help more people move to better curves, without moving anyone to
    better algorithms or requiring anyone to move to better
    implementations.

 1) Allow people who can move to better algorithms, implementations, and
    curves to do so in one step, while leaving people with brittle
    software behind if the new system is adopted in exclusion to the
    old.

It seems like the answer to this would be governed by your perception of
(a) existing curves compared algorithms and implementations, and (b) how
you expect the rollout+deprecation process to happen, but even
considering both of these choices independently, it seems like (1) is
better.

Curves vs. Algorithms and Implementations
=========================================

If you feel that the existing curves themselves are the main source of
concern, but not the algorithms and implementations, you might lean a
little bit toward (0).  However, there seems to be a general consensus
that existing implemetations and algorithms themselves are problematic
-- for example, libraries like OpenSSL have rewritten their P-256
implementations in the last year, and deterministic signature mechanisms
are clearly better than traditional ECDSA.  So (1) is more appealing --
if we can fix more things during this transition, we should fix them.

Rollout and Deprecation
=======================

There is existing code that is never going to change.  There is existing
code that can be minorly changed by tweaked parameters.  And there is
existing code that can be easily, fully upgraded.

The first group is never going to disappear, and unfortuately, members
of that group might be too important for every tool to just ignore the
group entirely (consider systems that want to talk to home routers or
networked printers, or systems that are only willing to use NIST
curves).  So tools that require backward compatibility that covers these
systems will need to have some level of fallback interoperability to
existing practice in both curves and algorithms.

But if we're going to have the fallback to existing practice anyway, we
can also use that to cover those implementations that can only accept
minor changes.

(1) seems like the better option to me, from an overall ecological point
of view.  Let's take advantage of this transition time to include
important fixes in all areas, for those who can make them.




As for byte-ordering: higher levels of abstraction (both on the wire and
logically) all prefer fixed-length bitstrings anyway.  So that's the
interface that we should use for the primitive.  We should declare
something explicit so that libraries know what to produce to get
canonical bitstrings, and move on.  Little-endian is fine.

Regards,

       --dkg


From nobody Wed Jan 28 11:23:26 2015
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 A82291A0072 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 11:23:23 -0800 (PST)
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 wGRaXXlkX-at for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 11:23:22 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 5F5901A0064 for <cfrg@irtf.org>; Wed, 28 Jan 2015 11:23:22 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id A87C310224008; Wed, 28 Jan 2015 11:23:21 -0800 (PST)
Received: from 69.12.173.8 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Wed, 28 Jan 2015 11:23:21 -0800 (PST)
Message-ID: <1c986af65bbb408a6fcab8d52f85e054.squirrel@www.trepanning.net>
In-Reply-To: <1422460388.26683.62.camel@redhat.com>
References: <1422460388.26683.62.camel@redhat.com>
Date: Wed, 28 Jan 2015 11:23:21 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Nathaniel McCallum" <npmccallum@redhat.com>
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/hPFd5AttcSbrjYt1QHZf9K3JKbk>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Using draft-irtf-cfrg-spake2-00 in Kerberos Preauth
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 19:23:23 -0000

On Wed, January 28, 2015 7:53 am, Nathaniel McCallum wrote:
[snip]
> This methodology differs from the Chromium methodology in three ways:
> 1. The hash function is variable.
> 2. OIDs are used instead of a friendly name (like P256).
> 3. We generate M/N for all curves supported by OpenSSL at build time.
>
> In short, this is just a poorly devised method for hashing a constant
> string onto the curve. I am definitely open to alternatives.

  Have you considered the technique from "An Indifferentiable Hash
Function into Elliptic Curves" by Coron and Icart?

  regards,

  Dan.



From nobody Wed Jan 28 11:34:20 2015
Return-Path: <npmccallum@redhat.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 0CD201A0064 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 11:34:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.911
X-Spam-Level: 
X-Spam-Status: No, score=-5.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4O9rqkEn0qNn for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 11:34:17 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 A1DD81A005C for <cfrg@irtf.org>; Wed, 28 Jan 2015 11:34:17 -0800 (PST)
Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0SJYG9Y028376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Jan 2015 14:34:17 -0500
Received: from vpn-62-218.rdu2.redhat.com (vpn-62-218.rdu2.redhat.com [10.10.62.218]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0SJYFRQ028163 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 28 Jan 2015 14:34:16 -0500
Message-ID: <1422473655.26683.112.camel@redhat.com>
From: Nathaniel McCallum <npmccallum@redhat.com>
To: Dan Harkins <dharkins@lounge.org>
Date: Wed, 28 Jan 2015 14:34:15 -0500
In-Reply-To: <1c986af65bbb408a6fcab8d52f85e054.squirrel@www.trepanning.net>
References: <1422460388.26683.62.camel@redhat.com> <1c986af65bbb408a6fcab8d52f85e054.squirrel@www.trepanning.net>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/LQ85jF7LwzefCBcNiFCn_4Tqoxg>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Using draft-irtf-cfrg-spake2-00 in Kerberos Preauth
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 19:34:19 -0000

On Wed, 2015-01-28 at 11:23 -0800, Dan Harkins wrote:
> 
> On Wed, January 28, 2015 7:53 am, Nathaniel McCallum wrote:
> [snip]
> > This methodology differs from the Chromium methodology in three ways:
> > 1. The hash function is variable.
> > 2. OIDs are used instead of a friendly name (like P256).
> > 3. We generate M/N for all curves supported by OpenSSL at build time.
> >
> > In short, this is just a poorly devised method for hashing a constant
> > string onto the curve. I am definitely open to alternatives.
> 
>   Have you considered the technique from "An Indifferentiable Hash
> Function into Elliptic Curves" by Coron and Icart?

I have a copy of the paper and have glanced at it briefly. I have not
had time to implement it. Nor am I sure how difficult this would be to
do with OpenSSL.

Nathaniel


From nobody Wed Jan 28 13:23:38 2015
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 4CE061A0385 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 13:23:37 -0800 (PST)
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 sB3xgqltPF0x for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 13:23:34 -0800 (PST)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 7707B1A033B for <cfrg@irtf.org>; Wed, 28 Jan 2015 13:23:34 -0800 (PST)
Received: from xct106cnc.rim.net ([10.65.161.206]) by mhs212cnc.rim.net with ESMTP/TLS/AES128-SHA; 28 Jan 2015 16:23:30 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT106CNC.rim.net ([fe80::d824:6c98:60dc:3918%16]) with mapi id 14.03.0210.002; Wed, 28 Jan 2015 16:23:29 -0500
From: Dan Brown <dbrown@certicom.com>
To: "'dkg@fifthhorseman.net'" <dkg@fifthhorseman.net>, "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5A=
Date: Wed, 28 Jan 2015 21:23:27 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net>
In-Reply-To: <87386ug2r7.fsf@alice.fifthhorseman.net>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.252]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0046_01D03B16.BF373510"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/nGl13j3LggHR_jil85hER3AvRrA>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 21:23:37 -0000

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

Well, maybe everybody could agree on this middle ground? 

00) Continue (or start) to allow generic ECC modes in IETF protocols, such
as the specified curve option RFC 4492, while specifically encouraging
implementers to use best practices, e.g. recommend constant-time for private
key operations, checks for MOV, etc., to help implementers look out for the
known pitfalls, perhaps collected in an RFC. 

10) Continue to use the old ECC standards' big-endian short Weierstrass
formats to specify arbitrary curves whenever the above-mentioned optional
generic ECC modes are actually used.  

01) Continue to use big-endian short-Weierstrass point and KDF input formats
for these generic ECC modes, at least whenever the curve is specified using
big-endian short-Weierstrass.  So, just to be clear, if somebody happens to
specify Curve25519 using the big-endian short Weierstrass a and b, then the
old formats will be honoured, not the new.  So, this would be backwards
compatible optional way to use Curve25519.

11) For curves indicated via names or OIDs, use a format determined by that
name.

This middle ground refers to formats only: not signature algorithms, key
agreement algorithms.

Specific replies to previous message inserted below (but somewhat
independently of the comment above).

> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Daniel Kahn Gillmor
> On Tue 2015-01-27 10:41:50 -0500, Dan Brown wrote:
> > But I wonder if there are any old implementations of the standards I
> > listed above, that accept generic specified short Weierstrass curves,
> > but lock together the KDF and raw ECDH operations.  Users stuck with
> > such implementations couldn't gain _all_ the benefits of Curve25519,
> > side channel resistance or whatever, but surely there's some residual
> > benefits for them to use Curve25519 with a generic representation:
> > maybe the rigidity Curve25519, or interoperability with other users
> > with the newfangled software, not to mention the blessing of the
collective
> wisdom of CFRG.
> >
> > If the argument is that no such implementations could exist, or that
> > the implementations, or even old ECC standards, are so bad that we
> > should try to discourage interoperability, then please present that
case.
> 
> It sounds to me like you're presenting a choice between two options for
the
> CFRG:
> 
>  0) help more people move to better curves, without moving anyone to
>     better algorithms or requiring anyone to move to better
>     implementations.
> 
>  1) Allow people who can move to better algorithms, implementations, and
>     curves to do so in one step, while leaving people with brittle
>     software behind if the new system is adopted in exclusion to the
>     old.

That's another way to put it, though I was not exactly asking for 0 they way
you put it. Specifically, I was _not_ proposing to stop anybody from moving
ahead to newer implementations.  I was only aiming to maintain having
backwards interoperability with old implementations.  For example, RFC 4492
allows curves to be specified in Weierstrass form, not just as named form.
I don't know if any TLS implementations support the specified curve option,
but if they do, then it would be nice if the new implementations could talk
to them, using the new curves.  

Well, in that case, I suppose that the new implementations talking to old
implementations could just as well revert to old point formats, to send on
the wire, and to compute shared secrets.  There might side be channels on
the old side, but at least the new side would be safe: stopping half the
leak might have some small value.  Of course, for that, new implementations
would have to support big-endian short-Weierstrass, but they wouldn't use it
normally, except for backwards compatibility.

> 
> It seems like the answer to this would be governed by your perception of
> (a) existing curves compared algorithms and implementations, and (b) how
> you expect the rollout+deprecation process to happen, but even considering
> both of these choices independently, it seems like (1) is better.

Yes, about (a) and (b).  Still not sure about (1). 

> 
> Curves vs. Algorithms and Implementations
> =========================================
> 
> If you feel that the existing curves themselves are the main source of
concern,
> but not the algorithms and implementations, you might lean a little bit
toward
> (0).  However, there seems to be a general consensus that existing
> implemetations and algorithms themselves are problematic
> -- for example, libraries like OpenSSL have rewritten their P-256
> implementations in the last year, and deterministic signature mechanisms
are
> clearly better than traditional ECDSA.  So (1) is more appealing -- if we
can fix
> more things during this transition, we should fix them.

Hmm, yes, I think that most of the claimed security benefits for Curve25519
have to do with implementability: efficiency, avoiding security pitfalls in
implementations.  More precisely, these are claimed as the primary benefits.
The rigidity of the curve is claimed only a secondary benefit (compared to
the primary benefits), as I understand the claims.  In any case, that's how
I'd classify the benefits the Curve25519 and similar.

> 
> Rollout and Deprecation
> =======================
> 
> There is existing code that is never going to change.  There is existing
code that
> can be minorly changed by tweaked parameters.  And there is existing code
> that can be easily, fully upgraded.
> 
> The first group is never going to disappear, and unfortuately, members of
that
> group might be too important for every tool to just ignore the group
entirely
> (consider systems that want to talk to home routers or networked printers,
or
> systems that are only willing to use NIST curves).  So tools that require
> backward compatibility that covers these systems will need to have some
level
> of fallback interoperability to existing practice in both curves and
algorithms.
> 
> But if we're going to have the fallback to existing practice anyway, we
can also
> use that to cover those implementations that can only accept minor
changes.
>

Ok, I'm the last person to know about software upgrades etc., but I do
understand that the old standards allowed specified curves, which in theory
allows the curve choice to be updated on the fly, without upgrading the
software.

Note: I know that X9.62 and SEC1 placed restrictions on the field size and
curve sizes.  The SEC1 field sizes were meant to encourage interoperability.
Suppose these old standards were updated to allow new curves.  Ok, more
work.  Change formats, yet more work.  But, doable.  

Aside: interoperability which seems necessary for non-monopoly security.  We
don't want everybody to use the same software, right?  Interoperablity
sometimes involves conceding perfection for something good enough, right?
 
> (1) seems like the better option to me, from an overall ecological point
of view.
> Let's take advantage of this transition time to include important fixes in
all
> areas, for those who can make them.
> 
> 
> 
> 
> As for byte-ordering: higher levels of abstraction (both on the wire and
> logically) all prefer fixed-length bitstrings anyway.  So that's the
interface that
> we should use for the primitive.  We should declare something explicit so
that
> libraries know what to produce to get canonical bitstrings, and move on.

Done that, almost. Old ECC standards chose octet strings for EC public key
reps and for KDF inputs.  They just chose the prevailing big-endian approach
and moved on (perhaps never expecting this decision to be revisited, and
furthermore being told to move on ;-)

One and half exceptions to octet string only formats, hence the "almost"
above. (1/2) EC standards chose preserve integers in ECDSA: F_p field
elements were mapped into the field F_n, by preserving integers and reducing
mod n, which would have been equivalent to converting to fixed-length
big-endian octet string and then converting back to integers,  (3/2) for
ASN.1 representation of ECDSA signatures the old EC standards encode the
integers in (r,s) as ASN.1 integer types.  An alternative would have been
for the EC standards to convert integers (r,s) in a signature to octet
strings before going into ASN.1, but if you are using ASN.1 already, why not
keep integers as integers?

> Little-endian is fine.

Ignoring any backwards interoperability, I would agree, in fact, it is
probably better if it works better with current computer architecture.
Isn't maintaining backwards interoperability usually supposed to a good
thing?  

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3duQHJpbS5uZXSB
E2Ricm93bkBjZXJ0aWNvbS5jb20wHQYDVR0OBBYEFFdFrujr5LyMGa3Hl1U4MTjlEtfvMB8GA1Ud
IwQYMBaAFObbryVSYEL0jYI1VF2A64ahrO/cMIIBMQYDVR0fBIIBKDCCASQwggEgoIIBHKCCARiG
gctsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1NQ0EwMllL
RixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmln
dXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFz
ZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIZIaHR0cDovL21jYTAyeWtmLnJpbS5u
ZXQvQ2VydEVucm9sbC9SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YuY3JsMIIBQQYI
KwYBBQUHAQEEggEzMIIBLzCBwgYIKwYBBQUHMAKGgbVsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGlu
YXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049
U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNh
dGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MGgGCCsGAQUFBzAChlxo
dHRwOi8vbWNhMDJ5a2YucmltLm5ldC9DZXJ0RW5yb2xsL01DQTAyWUtGLnJpbS5uZXRfUklNJTIw
U3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGKDQpLmNydDANBgkqhkiG9w0BAQUFAAOCAQEActBk
hryrMh5+C+8YiOrR8xi+G1NkUycfNLuz4fYdQzFNB9yWxyRs2K0ydl0X5PZXejhbIif0dFoyaxnh
g/D5hYfeGIhXfAOFG22EpMJWXVOavqYLxslnc2enihWAYcWkjPfE6tf3XMXkodFkMYvEd+qFj8eU
vxbbcR1dBqiBFNNDcKlAKn/oElp/iI/LjUGMEb+tJdHttsGExvQzSd1zwk1U6cOinYD82Y08zA5b
z38l5bE2+plmfX3EQ8vCKYA95psgGg3hsffn150smpY7HeEPGRZh9vglGfi2wnMqY/QgO+qs78dq
O/C1be3quQU3WHQ6YcZr3JP1Rc7yj76K7jCCBr8wggSnoAMCAQICEDIa85KxFFmUTU0vlRGze+Ew
DQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcwFQYKCZImiZPyLGQBGRYH
d2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcNMDYxMDEzMDEyNDU1WhcN
MTYxMDEzMDEzMDQxWjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxFzAVBgoJkiaJk/IsZAEZFgd3
aW5kb3dzMR0wGwYDVQQDExRSSU0gUm9vdCBDQSBNQ0EwMVlLRjCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAMbous78rVQBLT87+jYSuzmZ2osP40BMhFbJA3+cs3BZC0//uT87SG7/nhZi
9Qj9hYby7/HkGSQyheGL/lLIzxDdZV+AwxiirdDT6ck/acEMxWolLdK5xEYEmm6OxLaUuEvg7i/B
vXPpZlsA6m9FFrTzHVX2693w8IoMs9cofr1TAB3YYDnvZTwupz7YifSF02pu1eZiZg09Jjaav9Hy
aNyRGjbwyqFwTpCr+iHW7SsSszyJxulWGgnYCQgE95loK/ZMYhEBFCSq7yNn1yNM0WJ5S+uPILyv
OKXbE9sWSxba+DnWQJuEZCvFPnILq5Ugq+jVap326uv9zejBpsnPUgdgMoZNlUuuu+e1eJwc3mng
/rK6ZOCF1NzUzP/mIEdc1UuNV8L2WqvVH+fY9EyYTfcRlWTvO9XlVa9lXzca9MTqlKcHMYeSWWJF
nJlCRZWIkIdAjNj632g0U06kWUHeBd8VJXFxQFzhob2lyr4pHiOv7rZ1+rwpw8DFMZnp85b/HqTW
rcQ7LiIDljuKX6oBjMs1qNobnUPe/ucp1Kgy19+J61M7MxniBNyqKmLJLMTBd7aiIGnbfYTVl2j/
xJJ2aUQJmj9LNFeWb4Isl8PVK6p1sJkWy0JOx52HNIR0AY16AcikojsoYEkvci+mvuwANq4QT6bE
lSPS2AbNnDSpT7GXAgMBAAGjggGVMIIBkTATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMC
AUYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU1mmCZCQWwcwk2/EUfUcSfNzJTe4wggEpBgNV
HR8EggEgMIIBHDCCARigggEUoIIBEIaBxGxkYXA6Ly8vQ049UklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YsQ049TUNBMDFZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJl
dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGR2h0dHA6
Ly9tY2EwMXlrZi53aW5kb3dzLmxvY2FsL0NlcnRFbnJvbGwvUklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YuY3JsMBAGCSsGAQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4ICAQBDnlhbuDlU58ff
o2JPdog62tn9QXOY9VnrBBiDZeFQmPVicup9e2/4dnw5o4/SnyLaNyxNlno++5Uiar/y0ne8J300
FWVW9cAXtmbfi7jwKour1kgwEFTn3TjGFbuYps553/mTTC3bk6l2f2xUCk1rINqoQVsGomH8RGO5
1YN/mX0rasHPUd7/7Rx/m/ZF9xbii6FUOikq6lMgYn4SEY+e3jsOvyYzwPkiHf6dshGfsZgDUN9b
xNwRxUZttJGRx6gH3Qpk7dUuyw0ixwY9xmVyBVIHvWjyqswF3ntgwmEz92GHIKz/xWxRdkahkSIT
zPjHYya2jI3sfpzU/tigvxCFrG1PQ4BSCNMByqUcfK5STTfJJm/x/ahqnDWlvUP6cFE6V9W10nW8
72BbNzWOypmGIouENEUAhq/ejrw09P0uvyK51vr6mY5z1djF6hLskNC+R11Tpwou+vbhmHEZBKOc
cxCfxDL49O7wlpxu4fcpDYSxBDHMoFZgXVz/ajqqIHcjyQdAM8QGBqgkjE/Dq7NTP7K2Ul1An0nx
DR+YgXe28R+7l5he5GzhIIaJuwHHAtgpbeA1NLY/bBciFoOR+s8ujS3rZtv5M3Q95hmN7trVrYo1
Z3dglmNmLM2KNZWwwHxH4xi//bhaR+/WbfXpEUg+WW0p9Uja9Z443hqVd48MrjCCB0YwggUuoAMC
AQICChJuoPAAAAAAAiswDQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcw
FQYKCZImiZPyLGQBGRYHd2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcN
MTQwNDAyMDA1MTEyWhcNMTYwNDAyMDEwMTEyWjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYK
CZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZS0YwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzrn3UT996pLvUIVlnExxcXGmYftIOq1qMwitW
RCBe2j32VmDvzlJseIkfQuXDqjWnoqoE4sxQjxD5QNwhyBw9eXMCvLjHBW+HM4+HcmGIdan2w17E
4rR+RHVK6NzvkE1Gm4ziBTDr2jzSliZJpowLM+M/+cY2pyym074TQx+QCZQOKIqLnEgZ2uYw4kSj
nCcE7eJ+WmJFq9bX6Cv9SONQfgN5Z3O1N/36lgavm/G6Amt/ePNE0AhcJwxin7Fahkx6/SjRbf0r
Oa8uhCMxK8ebqTqD0+0VpViARFterasW5FTU2rcRFLHwwWV67yoFc2fbozkj5iseBXctM8NmqKt5
AgMBAAGjggMhMIIDHTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTm268lUmBC9I2CNVRdgOuG
oazv3DALBgNVHQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQQwIwYJKwYBBAGCNxUCBBYEFCLdxB/L
akuvuaYdTyqIgHmfibLUMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMB8GA1UdIwQYMBaAFNZp
gmQkFsHMJNvxFH1HEnzcyU3uMIIBKQYDVR0fBIIBIDCCARwwggEYoIIBFKCCARCGgcRsZGFwOi8v
L0NOPVJJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLENOPU1DQTAxWUtGLENOPUNEUCxDTj1QdWJs
aWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPXdpbmRv
d3MsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNS
TERpc3RyaWJ1dGlvblBvaW50hkdodHRwOi8vbWNhMDF5a2Yud2luZG93cy5sb2NhbC9DZXJ0RW5y
b2xsL1JJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLmNybDCCATwGCCsGAQUFBwEBBIIBLjCCASow
gbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1SSU0lMjBSb290JTIwQ0ElMjBNQ0EwMVlLRixDTj1B
SUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlv
bixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0
aWZpY2F0aW9uQXV0aG9yaXR5MGoGCCsGAQUFBzAChl5odHRwOi8vbWNhMDF5a2Yud2luZG93cy5s
b2NhbC9DZXJ0RW5yb2xsL01DQTAxWUtGLndpbmRvd3MubG9jYWxfUklNJTIwUm9vdCUyMENBJTIw
TUNBMDFZS0YuY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCUe8BMuuw2GW4AUAag80hqgwOQyezrSatL
SIadEDvzg3LgXMJcN7onC+1B7vHsMxVMbFz3V+85WSKtzCtaBe5rhUCXLBZEGbM+WPavYgYMnUsD
TpJwSXiDaM9Ym/ZLFsgfo3Qv7rfglydpqPCBfHUEQys2KeBVsDGd7HDK5Nk5fNaSmK0KgIBIvbXR
bJKzhTsuctYGlOf/2nFtuoxWcdhu7t6UR7DbSTerjug7rvCZH4bie5cphsu4lZDXdNRp2IKWVEF6
0VcEK8dXK1hZXEGgjuen7R03uaA+7VsSr7eUZSLiouG7XnvXWik11aNCgBiQcIGsHVRIccHphmfS
sFaZ0Bc+4/c/+K/v7X7RvdE29J9b1DqB2iV2SGZp58M0JLscohJ9uY0SJj8Hwl9YeuznijFBIC2y
Psb1V9CgoRtBl+Ek37tPp1Wm4XSS+as2kcdcsZwiM/LywbFvYDEBa71b0mquxjisPyPvmVccA0e6
WW6RDNYKUqBJsZDpjTbRZkQA7CmzrOK6YHip2F/92ZYmpqM84BsEkLuf6kzzk+r0OVsWaFP+plU3
MfqtAeKtBgJu6yd4SYbA9eFX9ePeIzBaCjTzIcd+CclwA8SeoAgP07Ut2WcB3QnD7fcU6CBegHSd
7504Ty34G+FymbG6ZBBUU0exF44VAplxv4rWFA7mPTGCAvMwggLvAgEBMF4wUDETMBEGCgmSJomT
8ixkARkWA25ldDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEyODIxMjMyN1owIwYJKoZIhvcNAQkEMRYEFKvY
pHTpLAVVjZ4Yh9xiQUpIlZ+aMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYAEa4bEWyIXQNEkgYbjkaD9UeHBmTp6
IlcV+qmCkhneBI5mODql5awN6n3i5QcWsXquWyGJt453+uWbNagF89kSAyGHv+kJm2O3JJr2C3Z3
Xc+2pTBgb9opVsnYCCdQeJJVHL6pzbzdycBwfutFBOPkKra3+ZFglV2m/shsUngGTgAAAAAAAA==

------=_NextPart_000_0046_01D03B16.BF373510--


From nobody Wed Jan 28 14:30:39 2015
Return-Path: <dkg@fifthhorseman.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D07461A0AF8 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 14:30:37 -0800 (PST)
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 qBmwmwQ92v4x for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 14:30:35 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id CA29E1A1A34 for <cfrg@irtf.org>; Wed, 28 Jan 2015 14:30:35 -0800 (PST)
Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id A70A3F984 for <cfrg@irtf.org>; Wed, 28 Jan 2015 17:30:33 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 02FA52039E; Wed, 28 Jan 2015 17:30:31 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: cfrg@irtf.org
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
Date: Wed, 28 Jan 2015 17:30:28 -0500
Message-ID: <87r3ueedx7.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/s1aBvSRRmSXVPsIzBohyUf7CJ0s>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 22:30:38 -0000

--=-=-=
Content-Type: text/plain

On Wed 2015-01-28 16:23:27 -0500, Dan Brown wrote:
> For example, RFC 4492 allows curves to be specified in Weierstrass
> form, not just as named form.  I don't know if any TLS implementations
> support the specified curve option, but if they do, then it would be
> nice if the new implementations could talk to them, using the new
> curves.

Over in the TLS WG, we're working on actively deprecating the custom
curve selection mechanism and moving strictly toward pre-named curves
(this is true for finite-field DH as well).  Custom curve and FFDHE
group selection will be gone in TLS 1.3.

oThe over-flexibility in EC group selection isn't widely used, and when
it is used, there is no clear way for a receiving implementation to have
confidence in the structure of the arbitrary curves provided (even
simple primality-testing is probably too expensive for most to do at
runtime), or to have a reasonable (efficient, constant-time)
implementation.

I don't think this is a particularly useful half-measure.  I'd rather
see implementations pick up new, reasonably-vetted curves than try to
muddle through supporting arbitrary curves provided by the peer.

     --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJUyWMFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB
NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpcck0QAIdtU6aelhrvt6VEhVt3Uz6D
P4Ryx3FVTWNIzUNZN61FkDikED51qUR0NjIhOX+jJXyQe0hGJ10PzoEVu2fa9ocW
xFR5TcHiIuJSHerMXRuShSp/DdW/d1bTbau8HNPHdJXRw75QVlByXdMBJFZ6sp5L
5ElK/30Bf3k5l4M6/+W2rHaxIIeE6+cP2IbY50LR69bV/pfTa6XOzZMrdwCouzZE
YvImwy8+GD4dPTiEr18C/KmrCUxDfRTSa+3PAtdmaWw4D/dn0CgXZ3PZ7pYjGWIt
GyOYjtBHCmlGoLl90gfZQ+h13GVXgnFeNO9/+6VyOS6kigMswwI4Vzfdr5FyWacw
FUqX+ncb7IWu66BLfdagkfaVwmaEPQh0PyJM6+ZN8Shy740zdAnY3zI/WPl92zAy
EzSjgF2V/piRjYMv3kaThNNhOPUaNoZjb7wcdTszz7j1CHsf6gm28ATZFYHmLkCl
jcKULGkEJ7/zMR5GEtKiHX7kqXI4wlfTVsf/tMx7cDQrMSvj4hhDVOoWKQ/k97LZ
SR8Fld1DVYh/iDOesSBAXMidRE3uYgMizAn3uIhwT9d6T0ETLpoiLSCZhRwd3Xhi
wBG/OSszHAZdnfT7T9mheT8S0ww468Fug+O+kcL0P4/AAtf/+ZfO1agZW3GV4lc5
c2D/oEgk4kvw+x7B+bxm
=YASm
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Jan 28 15:10:25 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 23E661A1BFC for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:10:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VXmIlRIsqEhA for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:10:12 -0800 (PST)
Received: from homiemail-a108.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 241B51A1BF4 for <cfrg@irtf.org>; Wed, 28 Jan 2015 15:10:12 -0800 (PST)
Received: from homiemail-a108.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a108.g.dreamhost.com (Postfix) with ESMTP id 93D312005D82D; Wed, 28 Jan 2015 15:10:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=mTjeIHViiIjmHp FI11DJbXQzqjg=; b=UqQbOk29pmdt0GsGtvcyLr+D1/RD+xHvWVkJ23OHxPGs8C gHP8ITKvevGeYhUN8IrC3khrK8gN8W5njZORjkzQyH95A278XX8oGpctFqWslcDE DU9k+15y13X5IEL4sSDSJ8Q6WlydT2qmFKMlET5NNNKX7dNDxRDSsAJQZURtI=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a108.g.dreamhost.com (Postfix) with ESMTPA id 4DB632005D82C; Wed, 28 Jan 2015 15:10:11 -0800 (PST)
Date: Wed, 28 Jan 2015 17:10:10 -0600
From: Nico Williams <nico@cryptonector.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Message-ID: <20150128231006.GJ3110@localhost>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87r3ueedx7.fsf@alice.fifthhorseman.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/DDmv0-xyAg3WXI2YXYiek-rRguc>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 23:10:16 -0000

On Wed, Jan 28, 2015 at 05:30:28PM -0500, Daniel Kahn Gillmor wrote:
> On Wed 2015-01-28 16:23:27 -0500, Dan Brown wrote:
> > For example, RFC 4492 allows curves to be specified in Weierstrass
> > form, not just as named form.  I don't know if any TLS implementations
> > support the specified curve option, but if they do, then it would be
> > nice if the new implementations could talk to them, using the new
> > curves.
> 
> Over in the TLS WG, we're working on actively deprecating the custom
> curve selection mechanism and moving strictly toward pre-named curves
> (this is true for finite-field DH as well).  Custom curve and FFDHE
> group selection will be gone in TLS 1.3.
> 
> oThe over-flexibility in EC group selection isn't widely used, and when
> it is used, there is no clear way for a receiving implementation to have
> confidence in the structure of the arbitrary curves provided (even
> simple primality-testing is probably too expensive for most to do at
> runtime), or to have a reasonable (efficient, constant-time)
> implementation.
> 
> I don't think this is a particularly useful half-measure.  I'd rather
> see implementations pick up new, reasonably-vetted curves than try to
> muddle through supporting arbitrary curves provided by the peer.

+1


From nobody Wed Jan 28 15:20:56 2015
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 CCA561A6F10 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:20:49 -0800 (PST)
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 B8_mtCK0KyJY for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:20:44 -0800 (PST)
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 A89771A6F0E for <cfrg@irtf.org>; Wed, 28 Jan 2015 15:20:44 -0800 (PST)
Message-ID: <54C96ECC.504@akr.io>
Date: Wed, 28 Jan 2015 23:20:44 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net>
In-Reply-To: <87r3ueedx7.fsf@alice.fifthhorseman.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/8PjT-JQYk95K6c8PV2tm02ZiHWo>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 23:20:50 -0000

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

On 28/01/2015 22:30, Daniel Kahn Gillmor wrote:

> I'd rather see implementations pick up new, reasonably-vetted 
> curves than try to muddle through supporting arbitrary curves 
> provided by the peer.

+1.

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

iQIcBAEBCgAGBQJUyW7MAAoJEOyEjtkWi2t6ocgQAI3t/KYbU8lTf9C6xjH1vx1a
oUpmRrBec6TxdmDQQnM8FB0t/v/G4ngyqUS19kK4Wj0DDf8qfTEgxNGdYiHDWZ3I
nMGjooQq8SrdsXCVzPGV3Gc0lQ6OG+YFoXfCbXh3jRMdngqspilJQC9FQHzAnijQ
F/NfLJHzT4u1KCuJFLs/2lNkLxzl5zRO8kAa1eMUf8q+lBZox64g4VOu+z2zp2Lq
xSI6LiTxjzNpDVkIT5xG+gQc+SC8YDTxhRPHGCCFyfqABFQi90EIgnO3zTJMPo6/
7CN2mNRY9mJkERRZKvqLZG85vVo20lCbnR2LYR1bun80EejOm7PYf/dyq0ztE3v+
rJUBcRFY3YBRfSNKQVjg6KZO/bTTIewh0G5vFLbm+GTsqTjv/uXijLN3ar2KkObZ
o7ivigNEGLilZ0hI39AtJ0R3SK8TJ3LFgLlEyO4ByWNJEFLaL2Ld3DML7ISPJizb
kAGX5YryH7BGj5ZNR4mVB2EtdU7Og41bwHW7vjTVkC+1pH0zAg2j3yr59PkqJ9B/
Zsy57vRKjeE7AHrIPga/3cK2L4p88c1mp6S4H5IgFXRgnZUHY5GgARjg7l8Kp9CO
Q5xpwMLhiKxR7xtS2c86hFOeUoHoDLaQ3m6QROwAatioCAaVla1dBs99URYjYtgS
o01FtnnJzS/dsWZYDm2v
=vQHR
-----END PGP SIGNATURE-----


From nobody Wed Jan 28 15:32:37 2015
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 875F71A6FE9 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:32:33 -0800 (PST)
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 XnGXcaDJJr5H for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:32:31 -0800 (PST)
Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9ED0A1A6F20 for <cfrg@irtf.org>; Wed, 28 Jan 2015 15:32:31 -0800 (PST)
Received: by mail-oi0-f50.google.com with SMTP id h136so21316656oig.9 for <cfrg@irtf.org>; Wed, 28 Jan 2015 15:32:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=4sSHECBehLI9X3LzHAIy/h54US2N/+SaIGQ7xq0yzJU=; b=GIdggoB+tuvDNvQWRUL4+NlYHOQSkgIk4TeA9voGnwgUWQC7ZvjdoV3d/U/LPhdHcX 9NlFiGUfdBKVwL8qBlzGKCskpSv4yA/YnUuLuChLPCYjTMbOwV94pR0ms0p/qBckTues qqbJ193sh5Rd46scKyiGsWgC7XhM+EdRoh2waQbGBdrlH0mMgnNdwG//+Amj8YFrX4+9 Hs4ZHGkj/ZpHiAu7EUPpYB0n+oXBIxKLUPqbnIt/ysLLYaJG5Q+YtGi4QYKmea4gvI7j xofzxMYMZ4xA8L1TbWviJWYNSkGokWwNY8XW1TZ6xM5jgYlJ2RCBuXCHu0pIUYQ27jW4 QdDw==
X-Received: by 10.60.83.140 with SMTP id q12mr3816378oey.54.1422487950935; Wed, 28 Jan 2015 15:32:30 -0800 (PST)
MIME-Version: 1.0
Received: by 10.202.224.5 with HTTP; Wed, 28 Jan 2015 15:32:10 -0800 (PST)
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 28 Jan 2015 15:32:10 -0800
Message-ID: <CAHOTMVL4zv0vyP2be7m5XMcSmycNFLDqL+VFCpG8qmR=gU6xqg@mail.gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: multipart/alternative; boundary=089e0115faf2034fa4050dbec945
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/_bpM2LZ4yvNWvScTbeozFD6QbkE>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 23:32:33 -0000

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

On Tue, Jan 27, 2015 at 7:41 AM, Dan Brown <dbrown@certicom.com> wrote:

> I appreciate that currently, TLS is thinking to use Curve25519 a named
> curve, specified by an OID, and then determine all point representations,
> including the internal used ones used in the KDF and signatures, based on
> the named curve.  That should work too for TLS and any easily updatable
> software.
>
>
>
> But I wonder if there are any old implementations of the standards I
> listed above, that accept generic specified short Weierstrass curves, but
> lock together the KDF and raw ECDH operations.  Users stuck with such
> implementations couldn=E2=80=99t gain _*all*_ the benefits of Curve25519,=
 side
> channel resistance or whatever, but surely there=E2=80=99s some residual =
benefits
> for them to use Curve25519 with a generic representation: maybe the
> rigidity Curve25519, or interoperability with other users with the
> newfangled software, not to mention the blessing of the collective wisdom
> of CFRG.
>

I *strongly* oppose this entire proposal.

For D-H, Montgomery x-coordinates are way less error prone. Field
arithmetic bugs in Weierstrass implementations are common, and furthermore
old Weierstrass implementations that need to interoperate with Montgomery
x-coordinate representation can convert to Weierstrass. For signatures we
should be using Edwards for similar reasons.

My employer is doing something of this nature I can't disclose and it is
working quite well for us. That is just my personal opinion: I am not
speaking on behalf of my employer.

If you accept that we should be using Montgonery x-coordinates and Edwards
group elements to represent public keys (for D-H and signatures
respectively), then we get to djb's recent arguments that big endian is
more error prone.

Big-endian short-Weierstrass is the the most error-prone representation we
could possibly use, and legacy implementations can easily still use more
modern formats on the wire then convert to the representation they
implement natively.

--=20
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Jan 27, 2015 at 7:41 AM, Dan Brown <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:dbrown@certicom.com" target=3D"_blank">dbrown@certicom.com</a>&gt;</spa=
n> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div lang=3D"EN-US" link=3D"blu=
e" vlink=3D"purple"><p class=3D"MsoNormal">I appreciate that currently, TLS=
 is thinking to use Curve25519 a named curve, specified by an OID, and then=
 determine all point representations, including the internal used ones used=
 in the KDF and signatures, based on the named curve.=C2=A0 That should wor=
k too for TLS and any easily updatable software.=C2=A0<br></p><p class=3D"M=
soNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p><p class=3D"M=
soNormal"><span lang=3D"EN-CA">But I wonder if there are any old implementa=
tions of the standards I listed above, that accept generic specified short =
Weierstrass curves, but lock together the KDF and raw ECDH operations.=C2=
=A0 Users stuck with such implementations couldn=E2=80=99t gain _<i>all</i>=
_ the benefits of Curve25519, side channel resistance or whatever, but sure=
ly there=E2=80=99s some residual benefits for them to use Curve25519 with a=
 generic representation: maybe the rigidity Curve25519, or interoperability=
 with other users with the newfangled software, not to mention the blessing=
 of the collective wisdom of CFRG.</span></p></div></blockquote><div><br></=
div><div>I *strongly* oppose this entire proposal.</div><div><br></div><div=
>For D-H, Montgomery x-coordinates are way less error prone. Field arithmet=
ic bugs in Weierstrass implementations are common, and furthermore old Weie=
rstrass implementations that need to interoperate with Montgomery x-coordin=
ate representation can convert to Weierstrass. For signatures we should be =
using Edwards for similar reasons.</div><div><br></div><div>My employer is =
doing something of this nature I can&#39;t disclose and it is working quite=
 well for us. That is just my personal opinion: I am not speaking on behalf=
 of my employer.</div><div><br></div><div>If you accept that we should be u=
sing Montgonery x-coordinates and Edwards group elements to represent publi=
c keys (for D-H and signatures respectively), then we get to djb&#39;s rece=
nt arguments that big endian is more error prone.</div><div><br></div><div>=
Big-endian short-Weierstrass is the the most error-prone representation we =
could possibly use, and legacy implementations can easily still use more mo=
dern formats on the wire then convert to the representation they implement =
natively.</div><div><br></div></div>-- <br><div class=3D"gmail_signature">T=
ony Arcieri<br></div>
</div></div>

--089e0115faf2034fa4050dbec945--


From nobody Wed Jan 28 15:39:36 2015
Return-Path: <prvs=94703ee9bf=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 763D91A802F for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:39:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.208
X-Spam-Level: 
X-Spam-Status: No, score=-4.208 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, 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 wvTMu8jA3dER for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 15:39:33 -0800 (PST)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by ietfa.amsl.com (Postfix) with ESMTP id 7E3411A0058 for <cfrg@irtf.org>; Wed, 28 Jan 2015 15:39:33 -0800 (PST)
Received: from LLE2K10-HUB02.mitll.ad.local (LLE2K10-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id t0SNctVG009057; Wed, 28 Jan 2015 18:39:30 -0500
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Nico Williams <nico@cryptonector.com>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5D///TDAIAACxgA//+0JAA=
Date: Wed, 28 Jan 2015 23:38:49 +0000
Message-ID: <D0EED79E.204B1%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost>
In-Reply-To: <20150128231006.GJ3110@localhost>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
x-originating-ip: [172.26.144.105]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3505315120_1371522"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-28_02:2015-01-28,2015-01-28,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-1501280236
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/eE8KiTa6iIa8_O3zliJMbRNS0Lc>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 28 Jan 2015 23:39:35 -0000

--B_3505315120_1371522
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

On 1/28/15, 18:10 , "Nico Williams" <nico@cryptonector.com> wrote:

>On Wed, Jan 28, 2015 at 05:30:28PM -0500, Daniel Kahn Gillmor wrote:
>> On Wed 2015-01-28 16:23:27 -0500, Dan Brown wrote:
>> > For example, RFC 4492 allows curves to be specified in Weierstrass
>> > form, not just as named form.  I don't know if any TLS implementations
>> > support the specified curve option, but if they do, then it would be
>> > nice if the new implementations could talk to them, using the new
>> > curves.
>>=20
>> Over in the TLS WG, we're working on actively deprecating the custom
>> curve selection mechanism and moving strictly toward pre-named curves
>> (this is true for finite-field DH as well).  Custom curve and FFDHE
>> group selection will be gone in TLS 1.3.
>>=20
>>=E2=80=A6=E2=80=A6
>>=20
>> I don't think this is a particularly useful half-measure.  I'd rather
>> see implementations pick up new, reasonably-vetted curves than try to
>> muddle through supporting arbitrary curves provided by the peer.
>
>+1

The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All of the
above?

Attractiveness of the ability to select a custom curve is similar to that
of PGP Web of Trust: you can make a choice for yourself, rather than being
forced into what other experts (or =E2=80=9Cexperts=E2=80=9D :) decide for you.

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

MIIUVwYJKoZIhvcNAQcCoIIUSDCCFEQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghImMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7bYbBUuDpN25Lc86P9RaOiiICtyu
ZZP2P/2kkKYRAgMBAAGjggGyMIIBrjAdBgNVHQ4EFgQUEN9QHIi9GvlGjs9Th46jrfPir+Uw
DgYDVR0PAQH/BAQDAgbAMB8GA1UdIwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1Ud
HwQsMCowKKAmoCSGImh0dHA6Ly9jcmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYB
BQUHAQEEWjBYMC0GCCsGAQUFBzAChiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExD
QTMwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3
FQcEMDAuBiYrBgEEAYI3FQiDg+Udh+ynZoathxWD6vBFhbahHx2Fy94yh/+KcwIBZAIBBTAi
BgNVHSUBAf8EGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDDDAYBgNVHSAEETAPMA0GCyqGSIb3
EgIBAwEIMBkGA1UdEQQSMBCBDnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABM
AFUAcwBlAHIAUwBpAGcALQBTAFcwDQYJKoZIhvcNAQELBQADggEBAL2kCh9ovO8AbHgAVU6T
eH5qRmKnOrfTUfn9JnHzkspdWMQA1IdtftSpiZZ7C3lCmblSDCgPqbQl4zMZxXeTgxnQsB6m
1LA6uDHM/0G27RcOJH4OTN9sQ0/2CKb4JPIXXIps1z+s8XjSRzPJZuD8fPC8R8QWvOH3owL2
BLzZebZTOMa5yws3kohY02vP/Clv0KQXYVzUZUYXoYmhUSYmQ1UZZZSFJ2rNdgNn0z8fPrUQ
NIYlVaJV0kKQYjlHWTfomVapLEfIY7xRHZy9g997IjYReD0t9IZd6tTwcJES+2ijFM8l/fxk
u/cQ4WCYyI+58DaBaV9p68/AC147b0HhvLUwggS8MIIDpKADAgECAgEpMA0GCSqGSIb3DQEB
BQUAMFQxCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGluY29sbiBMYWJvcmF0b3J5MQww
CgYDVQQLEwNQS0kxFjAUBgNVBAMTDU1JVExMIFJvb3QgQ0EwHhcNMTMxMjE3MDAwMDAwWhcN
MjAxMjMxMjM1OTU5WjBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFi
b3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0zMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2jBSdW18tuW1tNxG6h8B0kqckFZQAAtoHCkvUpUEX6jF
vBd8mQI53GyLYRuAo4HWJpe7/izFXOfSJDs6UM5ovvCOfXg2bJgDYlBC9JDcLBFIn0nppOu9
RvpjWSixtC56crwJ5Us5QPdtxtKdek5LJXl2oKw3w8lihUixePbxWad1m7ZMKKagvm9zTybP
6FumKRxeYJjSpB2+cAYjoGGEbSVHyx8uzHm6xAoBMHxa8by+yDz8Jzk6sP9iilgP3iXSGoCA
mhyBzvlQQ5QNNWP+Emo9jz/ukKhYVB/VwdxtoquPAqn4ifDAIaM9dtb05cy1gXAFSP3Z/iUk
xyBZZUORfwIDAQABo4IBmjCCAZYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU12Bm
DntJjXVMDf3PRt7IxxKHyr8wHwYDVR0jBBgwFoAUZ6p6z/QKprlytYqg0p3yEMND7SkwDgYD
VR0PAQH/BAQDAgGGMGYGCCsGAQUFBwEBBFowWDAtBggrBgEFBQcwAoYhaHR0cDovL2NybC5s
bC5taXQuZWR1L2dldHRvP0xMUkNBMCcGCCsGAQUFBzABhhtodHRwOi8vb2NzcC5sbC5taXQu
ZWR1L29jc3AwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sbC5taXQuZWR1L2dldGNy
bD9MTFJDQTCBkgYDVR0gBIGKMIGHMA0GCyqGSIb3EgIBAwEGMA0GCyqGSIb3EgIBAwEIMA0G
CyqGSIb3EgIBAwEHMA0GCyqGSIb3EgIBAwEJMA0GCyqGSIb3EgIBAwEKMA0GCyqGSIb3EgIB
AwELMA0GCyqGSIb3EgIBAwEOMA0GCyqGSIb3EgIBAwEPMA0GCyqGSIb3EgIBAwEQMA0GCSqG
SIb3DQEBBQUAA4IBAQAsf9HBn72qU7UTgkxarjAc7iynhcDEgWwezYKtd/SLGSQ0DhtzIV/L
TCxqULjOd+H+HTqMJXB8+nHnzhyqQ43RsnGZOFT5RfzPh94db/ZJ3ql244DwlJI7yXBA2DkZ
cEEgOWC9bHcrElzU6NnigahSW5odVJrhmH/XhQAcMS77E5H62yyxK1WPPgcBipGVnu1xSHbT
iHe7DqfWQ2tVMLUf23XYhIua94kJsQd4jSh71NVD0e7F4snAoqQMI98MzDYeLOkjlzKRs77r
/aMsPAKx6nMaOvRL7Cy0Pjp51i2qFkbGmX8ofnh2kerjTTvRJ/g22r1MV8RR1PktjMsNOsPf
MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQUFADBUMQswCQYDVQQGEwJVUzEfMB0GA1UE
ChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRYwFAYDVQQDEw1NSVRM
TCBSb290IENBMB4XDTA4MDkyMzEyMDAwMFoXDTI5MTIzMTIzNTk1OVowVDELMAkGA1UEBhMC
VVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTEWMBQG
A1UEAxMNTUlUTEwgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMVO
KRdYsiay+a2Kv1wQCoPd5AkwExuwcNDRhaRCdQN17K+lCCKvf9VSQToAsA6q1bACtZUcMv5Z
Kx8z5KG4jK9cM40NvEkf/bIOZAHJqzKgWG3N9NqrcAhimcXTXYQIdp1DgjtdADKVLAjXaYpD
2PbpE/JbAPnqKzOENa3Py9CegB0abTlOyLgwXWY/rXTW+4L/hipJ6+sI/ZtrFRmsKGhuwAKo
bFr0FDP6uIfx+RaWJcJ1QBIdgM4aohvW8JeriSSMyf/LlFpXTZFcM9SOX0f7wmsYi1yFuKFM
nQbkSkxvnpBKMRxrg+98seSbbEnIkvB0C9qBDPLb/lQAvmpW6oMCAwEAAaNgMF4wDwYDVR0T
AQH/BAUwAwEB/zAdBgNVHQ4EFgQUZ6p6z/QKprlytYqg0p3yEMND7SkwHwYDVR0jBBgwFoAU
Z6p6z/QKprlytYqg0p3yEMND7SkwCwYDVR0PBAQDAgGGMA0GCSqGSIb3DQEBBQUAA4IBAQA+
G20FYNB4eNhKWF+PyT5DUtzlABFkf2IM2VGNUBova0GeKX3I1Nf02qDU/GO2H9ETvnvTYhvf
gQ4UB/5EImTkKPa7/TVG/MQ7SgmAmne8xELVbGLFrrytly8PyYtZtngb6DgeEUv+SwFnzcLO
1vg1rdmss3kwsqy0q8e2VYAY8zTptEzyJG36aXcIMbqOxWS/LbPjNuPdgJfO3d1WrHr1Etaa
a0QRLqQoZj07dYY7Wo5EDqU+AUAMz9ZVRGK1s5b/jv5Wz/YroyqWFnH2KkNxRn9+2Ar7g3rn
rOMZvp6psq2jbDXiPBod1wyMKn8x5y4cuGPNFcqjfyY/HX90ivQAMIIE7TCCA9WgAwIBAgIK
KHB6MgAAAAAtBzANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlU
IExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0z
MB4XDTE1MDEyMzE3NDkyOVoXDTE2MDEyMzE3NDkyOVowYTELMAkGA1UEBhMCVVMxHzAdBgNV
BAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMX
Qmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDF+Rcs9hNO5hvlE0YeltqeXGUW1u3RVMG4/2ag6J2FgcsOJxOZy/m+7FeYfCo3XYrNqx6/
3IZmDSYln3JnxzPionDcbK2TJ9xAOoWlrUykAhgUl+PCO8ahDV5Yc0tmMzf5MXBrsub0nUyJ
eDkxOUY2Id58D1UVzzXh9Kvjc+ZCcBRFoViAgn7MznnuvK8Y5m7Lor1oLWSxNNUyp98gC4Ep
dHLnA8yP1WqmNr0x+YssjJgEiIfZFqx8Gvv2OqtHaFGHh7Y6+WOWIZULMaAc9JJEq8ctns9m
GIRldf2JMFcNsahQJDhgUspmP6c1Wz9OrUxsgwnGQ5feIq9c/4YZYEZ/AgMBAAGjggG1MIIB
sTAdBgNVHQ4EFgQUR0hebk4i6063YnpEEVXyQUyfSFMwDgYDVR0PAQH/BAQDAgUgMB8GA1Ud
IwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1UdHwQsMCowKKAmoCSGImh0dHA6Ly9j
cmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYBBQUHAQEEWjBYMC0GCCsGAQUFBzAC
hiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExDQTMwJwYIKwYBBQUHMAGGG2h0dHA6
Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiDg+Ud
h+ynZoathxWD6vBFhbahHx2F69Bwg+vtIAIBZAIBBDAlBgNVHSUEHjAcBgRVHSUABggrBgEF
BQcDBAYKKwYBBAGCNwoDBDAYBgNVHSAEETAPMA0GCyqGSIb3EgIBAwEIMBkGA1UdEQQSMBCB
DnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABMAFUAcwBlAHIARQBuAGMALQBT
AFcwDQYJKoZIhvcNAQELBQADggEBADim5zjTb/h3ea/66DNM6wSmi1Ti9F2f2/Are2a7a9E/
IPXfleh39lVG7uTaneEJMSHzDltkB5k6DYMv/t28ntQm2jLI9adMwccDlKSR2uIDsiA7jodi
TxbqL/aRi+WC4ybWWhXuzSbkMesayt5QAKpuKLAr7newfZaWx8zPnWU1nWZBbJR7cLKgUTaE
iQu/NlCWIFJIC9yRhze+KR41vIa+7niQnUANjoYCCu32Z8xgxhK4kQr5teUVUNDoCj02x781
GFfwCknxpsWEm95OWM1iaXKCGJ8ciioulEzksZUrIHdImISaQVV+Xdmbcd3OH6y8fNl1mZdX
n8sxNJc+/g0xggH1MIIB8QIBATBfMFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGlu
Y29sbiBMYWJvcmF0b3J5MQwwCgYDVQQLEwNQS0kxEzARBgNVBAMTCk1JVExMIENBLTMCCh9F
2aAAAAAAAc0wDQYJYIZIAWUDBAIBBQCgaTAvBgkqhkiG9w0BCQQxIgQglpW6Ja3R0R1Q/OXN
S5aCYESp3f5lKvaWfeRY/kDO9VYwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG
9w0BCQUxDxcNMTUwMTI4MjMzODQwWjANBgkqhkiG9w0BAQEFAASCAQBEz9Ehq7PHyTMKxCkY
sZj/Z1SV+Euu5zNUxNCt/ZFa/ZRwvSNEYj7yjNJC2BlgvewLAG17Y6RDmCPieuEqLP2qsy53
g4v0fduvejEGInaTU1NsQs8wPTlBJIxuYqoN9IAMj+8QQoa9Y5vEghE/D20rbV2rO7Prt3lP
pu7XBtuVXB8hMG6220F+fnlTEJQ4MflP7e9qONyHPmF+l0XNLn+coRUj9KxDNfstzBfD90+K
SXDlsg9QNoAXldwHeR6ukmK9g9ZclXCoohPLkTsvU5tRn2NaQL86PdCzAg6z47oU+ljr9yNn
nMleBge4gXaUFD3z/2HoapClyR/h89A5EdWN

--B_3505315120_1371522--


From nobody Wed Jan 28 16:38:07 2015
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 1C4C01A8927 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 16:38:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ekiyQaKodujp for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 16:38:02 -0800 (PST)
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 A21261A8915 for <cfrg@irtf.org>; Wed, 28 Jan 2015 16:38:01 -0800 (PST)
Received: by mail-lb0-f177.google.com with SMTP id p9so22814656lbv.8 for <cfrg@irtf.org>; Wed, 28 Jan 2015 16:37:59 -0800 (PST)
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=CBLf3a92m6Pu6PUWNOQGMbEVErohkuDrkV+/IIcs17I=; b=GbMHjsvgwrON5rDkT58FW0TB4PulH4p7EcJfV+2P3+UwXaN/zJeHx8Z8ap9T16zKvg Q178xAXmSyQH9J+ZtBoI4S7qDTRLCi6fyDRKpkXYBcQu3ZuFx4uh60fdbzi264pDr2Qv b1kwZ61a0tuL3aJ8eZ9nLKAWMSXykYgpL9NPOlxhTwGpYIQ71WNgbYMTpXIjsGKBSbk7 URqZaOeojkEHes1fZb95rJJ8R2f53JdWDFa1eNwNj6WFi5gaff2mYbIcksx/AGOeOjrr ukJFd6itU/nd1Tp0axO/LLhQQeR5eSx14+SqDNe+KnL0C+h4Bf48bn7ZOgdx/Kl42mc7 D2Cg==
MIME-Version: 1.0
X-Received: by 10.152.180.35 with SMTP id dl3mr11512771lac.24.1422491879740; Wed, 28 Jan 2015 16:37:59 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Wed, 28 Jan 2015 16:37:59 -0800 (PST)
In-Reply-To: <87r3ueedx7.fsf@alice.fifthhorseman.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net>
Date: Wed, 28 Jan 2015 19:37:59 -0500
X-Google-Sender-Auth: 4hAxfhCfUFB7KfAld_byOPZPGK8
Message-ID: <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Content-Type: multipart/alternative; boundary=001a11345a7a301cce050dbfb37e
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/WdGhK3FsBpX8hztx5F0H7jVaOTs>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 00:38:04 -0000

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

On Wed, Jan 28, 2015 at 5:30 PM, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
wrote:

> On Wed 2015-01-28 16:23:27 -0500, Dan Brown wrote:
> > For example, RFC 4492 allows curves to be specified in Weierstrass
> > form, not just as named form.  I don't know if any TLS implementations
> > support the specified curve option, but if they do, then it would be
> > nice if the new implementations could talk to them, using the new
> > curves.
>
> Over in the TLS WG, we're working on actively deprecating the custom
> curve selection mechanism and moving strictly toward pre-named curves
> (this is true for finite-field DH as well).  Custom curve and FFDHE
> group selection will be gone in TLS 1.3.
>

Right. The objective here is to dump all the existing code in the trash and
start again. Because we want the implementations to have constant time
implementations and to preclude the possibility of malicious point attacks
by choosing curves that allow us to easily compute y from an x, and only
sending the x.

What we want to avoid at all costs is patent encumbrances. Dumping
Weierstrass is a pretty good start because that was the favorite curve of
the folk who applied for most of the patents.


The only area where I did have concerns is that to be able to deploy crypto
on these platforms I have to be able to buy FIPS certified hardware or
equivalent. But I think we can probably put pressure on our vendors to
deliver in time. Before the new curves can be used in browsers for certs,
the browser providers are going to have to be satisfied.

In the near term, the application for this will be to make the use of an
ECDH ephemeral essentially cost free and the certified hardware issue is
not a show stopper. But I don't want to do that in a way that makes it
difficult to move to EC certificates in the future.

I don't accept that big endian is more error prone. The existing code for
X.509v3 crypto is all big endian. Changing that will introduce a new code
path and opportunity for error.





> oThe over-flexibility in EC group selection isn't widely used, and when
> it is used, there is no clear way for a receiving implementation to have
> confidence in the structure of the arbitrary curves provided (even
> simple primality-testing is probably too expensive for most to do at
> runtime), or to have a reasonable (efficient, constant-time)
> implementation.
>
> I don't think this is a particularly useful half-measure.  I'd rather
> see implementations pick up new, reasonably-vetted curves than try to
> muddle through supporting arbitrary curves provided by the peer.
>

I don't see how we can reasonably use custom groups in IETF protocols
because both sides have to agree to use the same group. And when one side
can propose the use of a malicious curve, the opportunity for perfidy is
created.


The Web PKI has never permitted the use of arbitrary curves in certs:

[https://cabforum.org/wp-content/uploads/BRv1.2.3.pdf]

CAs SHALL confirm that the RSA Public Key is at least 2048 bits or that one
of the following ECC curves is used: P-256, P-384, or P-521.


Now it should be quite easy to add the new curves to the list. I suspect
that unless the browser providers are feeling really generous, they will
expect us to end of life our existing ECC certs to get the new ones added.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 28, 2015 at 5:30 PM, Daniel Kahn Gillmor <span dir=3D"ltr">=
&lt;<a href=3D"mailto:dkg@fifthhorseman.net" target=3D"_blank">dkg@fifthhor=
seman.net</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(20=
4,204,204);border-left-style:solid;padding-left:1ex"><span class=3D"">On We=
d 2015-01-28 16:23:27 -0500, Dan Brown wrote:<br>
&gt; For example, RFC 4492 allows curves to be specified in Weierstrass<br>
&gt; form, not just as named form.=C2=A0 I don&#39;t know if any TLS implem=
entations<br>
&gt; support the specified curve option, but if they do, then it would be<b=
r>
&gt; nice if the new implementations could talk to them, using the new<br>
&gt; curves.<br>
<br>
</span>Over in the TLS WG, we&#39;re working on actively deprecating the cu=
stom<br>
curve selection mechanism and moving strictly toward pre-named curves<br>
(this is true for finite-field DH as well).=C2=A0 Custom curve and FFDHE<br=
>
group selection will be gone in TLS 1.3.<br></blockquote><div><br></div><di=
v>Right. The objective here is to dump all the existing code in the trash a=
nd start again. Because we want the implementations to have constant time i=
mplementations and to preclude the possibility of malicious point attacks b=
y choosing curves that allow us to easily compute y from an x, and only sen=
ding the x.</div><div><br></div><div>What we want to avoid at all costs is =
patent encumbrances. Dumping Weierstrass is a pretty good start because tha=
t was the favorite curve of the folk who applied for most of the patents.</=
div><div><br></div><div><br></div><div>The only area where I did have conce=
rns is that to be able to deploy crypto on these platforms I have to be abl=
e to buy FIPS certified hardware or equivalent. But I think we can probably=
 put pressure on our vendors to deliver in time. Before the new curves can =
be used in browsers for certs, the browser providers are going to have to b=
e satisfied.</div><div><br></div><div>In the near term, the application for=
 this will be to make the use of an ECDH ephemeral essentially cost free an=
d the certified hardware issue is not a show stopper. But I don&#39;t want =
to do that in a way that makes it difficult to move to EC certificates in t=
he future.</div><div><br></div><div>I don&#39;t accept that big endian is m=
ore error prone. The existing code for X.509v3 crypto is all big endian. Ch=
anging that will introduce a new code path and opportunity for error.</div>=
<div><br></div><div><br></div><div><br></div><div>=C2=A0</div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1p=
x;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1=
ex">
oThe over-flexibility in EC group selection isn&#39;t widely used, and when=
<br>
it is used, there is no clear way for a receiving implementation to have<br=
>
confidence in the structure of the arbitrary curves provided (even<br>
simple primality-testing is probably too expensive for most to do at<br>
runtime), or to have a reasonable (efficient, constant-time)<br>
implementation.<br>
<br>
I don&#39;t think this is a particularly useful half-measure.=C2=A0 I&#39;d=
 rather<br>
see implementations pick up new, reasonably-vetted curves than try to<br>
muddle through supporting arbitrary curves provided by the peer.<br></block=
quote><div><br></div><div>I don&#39;t see how we can reasonably use custom =
groups in IETF protocols=C2=A0</div><div>because both sides have to agree t=
o use the same group. And when one side=C2=A0</div><div>can propose the use=
 of a malicious curve, the opportunity for perfidy is</div><div>created.</d=
iv><div><br></div><div><br></div><div>The Web PKI has never permitted the u=
se of arbitrary curves in certs:</div><div><br></div><div>[<a href=3D"https=
://cabforum.org/wp-content/uploads/BRv1.2.3.pdf">https://cabforum.org/wp-co=
ntent/uploads/BRv1.2.3.pdf</a>]<br></div><div><br></div><div>CAs SHALL conf=
irm that the RSA Public Key is at least 2048 bits or that one of
the following ECC curves is used: P-256, P-384, or P-521.=C2=A0<br></div><d=
iv><br></div><div><br></div><div>Now it should be quite easy to add the new=
 curves to the list. I suspect that unless the browser providers are feelin=
g really generous, they will expect us to end of life our existing ECC cert=
s to get the new ones added.</div></div></div></div>

--001a11345a7a301cce050dbfb37e--


From nobody Wed Jan 28 22:38:14 2015
Return-Path: <n6ghost@yahoo.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 E7B3C1A8F42 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 22:38:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.61
X-Spam-Level: 
X-Spam-Status: No, score=-0.61 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=unavailable
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pjAc6RTNNKnC for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 22:38:08 -0800 (PST)
Received: from nm2-vm6.bullet.mail.gq1.yahoo.com (nm2-vm6.bullet.mail.gq1.yahoo.com [98.136.218.133]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10E351A0021 for <cfrg@irtf.org>; Wed, 28 Jan 2015 22:38:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1422513487; bh=XtQEFzNVZTvhD+SEMTc2HjYXVg9v9cEWzhWQLiufdG8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=KCf86FqQ3du5Z8OKwFtCMmBMmZxu8vk143IZOoKxBOMUR8ozNo5cC4dXbodkvE2nSl3l1HKCtBzvmr1EKNjBhp54GFDVTlN2znr1DRZ3QCSP5DVeE9OOrjN8mDNQxzHBK2nkO3COsL8Ttoe4JkG7eVcwXxMcN1A6dYxnYFk19hASKKo09uLZHBASoJN2By+VcTIP54K332mymgTPQcgbuZEubKUBruZY4lFYwvNqFh+BNv56rY+4NRMM2kK3/5YHPrTpHRo4ViRryZATuE2uo4PL2OwVLVpRy9ymIP1EVwRUbl2Uq98NuiDq/vk5QGwBh2Ipu7LmjJpGhPZ46mfasw==
Received: from [98.137.12.58] by nm2.bullet.mail.gq1.yahoo.com with NNFMP; 29 Jan 2015 06:38:07 -0000
Received: from [98.136.164.74] by tm3.bullet.mail.gq1.yahoo.com with NNFMP; 29 Jan 2015 06:38:07 -0000
Received: from [127.0.0.1] by smtp236.mail.gq1.yahoo.com with NNFMP; 29 Jan 2015 06:38:07 -0000
X-Yahoo-Newman-Id: 734105.77297.bm@smtp236.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: tjJXRqoVM1lenUA4Rnwj3tIKMVNPqxvWdO95p8BR8KUve5P Xz2kflu0PIQE5HF2Vv_NEjQsXJZCeg0pegC_.TLUtD3U9QQE3OcJDCAhYNn3 .iwnuXV8p3e.emFaidctb9oAa4j0NmlH1tLcHGhIfb8sVaKRrtv3.508FPDK eRwG0fPPLlwfKQmVes84tzv1Pt9__PNYfgYZ7XjVRAV49_SYZIaBKT2o0nL2 I0wAfnSIIZp6rFG3eVBay2YPV5MnGAL8CNPBx84PnXAqCKIu.5wEz1vl8P7T FLhY7ow3QS964eO4PzoWUYei7NmknTAwjUwykeOycHmrtst_6KOUNJYgPdm5 COEit4_h9MGz.P0.RenXEocpgRcsQKufADtE7EovtPTExPdmIoBhqZ_NoNMx uC06Hoo4XRh2ztg8ManBW2.PBWDUPF9BrkdtztNBjRobZg5k1gLvPqc71_XR jvFcrYU_OGZtPP9hp0jkjSMN4qlPRlklaHZp4O_kZn2M7kBhnH7CuD60axzz KUdHK6S.wzXB2IjyJ.Q_xpxMdDKwiMf9pZQ--
X-Yahoo-SMTP: wgdooiaswBDebjkzZfF3YfFOtEw-
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
Content-Type: multipart/signed; boundary="Apple-Mail=_D1A45340-026A-4486-9BCB-971E786EF32A"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail 2.5b4
From: Nex6|Bill <n6ghost@yahoo.com>
In-Reply-To: <20150101203734.GF24442@localhost>
Date: Wed, 28 Jan 2015 22:37:58 -0800
Message-Id: <493F162A-E924-49C9-A5B6-D169CFED7DD0@yahoo.com>
References: <CAMfhd9V4tnjQL-orjTjX3KS=-XZRn0snAPrVwmP6pZH_20Cfgg@mail.gmail.com> <1420033807.4638.16.camel@scientia.net> <CAMfhd9V5-Y60fGqCDfmCvk9+9bqm0zpm3kSHmR5_mzELZ2K+Dw@mail.gmail.com> <1420042774.10106.10.camel@scientia.net> <CACsn0c=jEXhbUQt7FqZ_KqYQqq0NJsdZow=TEZ2G0te2SUb0RA@mail.gmail.com> <20141231221420.GX24442@localhost> <EF65C8DD-840B-48AA-8B84-73E8FD809ECA@isode.com> <20150101203734.GF24442@localhost>
To: tls@ietf.org
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/q-mWu59gW_ZZniDOb5aadcbL_mo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>, ietf@ietf.org
Subject: Re: [Cfrg] Reconsider TLS/CFRG relationship (Re: should the CFRG really strive for consensus?)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 06:38:10 -0000

--Apple-Mail=_D1A45340-026A-4486-9BCB-971E786EF32A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Jan 1, 2015, at 12:37 PM, Nico Williams <nico@cryptonector.com> =
wrote:
>=20
> [Reply-To set to tls@ietf.org.]
>=20
> On Thu, Jan 01, 2015 at 05:52:55PM +0000, Alexey Melnikov wrote:
>>> On 31 Dec 2014, at 22:14, Nico Williams <nico@cryptonector.com> =
wrote:
>=20
> [Elided here is a sub-thread about how much trouble CFRG has had =
making
> decisions, and how unsuited they are to the task.  These were opinions
> stated by others.  My response was that if CFRG can't choose, that's
> fine, let CFRG do what it's good at (cryptology), and let the IETF do
> what it's good at (engineering).
>=20
> For the benefit of ietf@ietf.org readers, the context is that CFRG was
> tasked with producing recommendations for the TLS WG, but CFRG seems
> mired in debate about them.  =46rom my point of view the risk is that =
the
> logjam won't soon be broken.]
>=20
>>> Let the IRTF publish one or more documents describing various curves
>>> suitable for use in Internet protocols.  The IETF can pick from =
among
>>> those.
>>=20
>> That is not what TLS WG /SEC AD asked for. They would rather CFRG =
make
>> a choice that can be used in TLS and other places, instead of letting
>> each IETF WG make their own different choice.
>=20
> We may have to reconsider this then.
>=20
> If it is really true that CFRG is not adept at making choices, then =
let
> the cryptologists document algorithms (including their cryptographic
> attributes, pros, cons, cryptanalysis, general performance analysis,
> security considerations, and an overall assessment), and let the
> engineers pick from among them.  I.e., what we've always done at the
> IETF.
>=20
> This might require some process (a call for consensus in the TLS WG?),
> but once done CFRG will be freed to do what it's good at, and to do it
> more quickly because there will be no more lengthy arguments about =
what
> to choose.  Authors will publish I-Ds, reviewers will review them, and
> barring any serious problems, CFRG will progress those I-Ds.  The TLS
> (and other) WGs can then choose what they like.
>=20
> I don't mean to start a debate about this _now_.  Rather, now is the
> time point out that we may have to have this debate, possibly before =
the
> next time we ask the IRTF for recommendations.
>=20
> Nico
>=20

I have been following this list for awhile, but have not posted =
anything, but; I am not sure I agree with the above.
if the CFRG does not =E2=80=9Cpick=E2=80=9D or recommend, and instead =
just publish about said algorithms, and IETF then just picks
whatever they want, not sure how that would ensure the best algorithms =
get picked and put into standards.

would it not be better, to work on CFRG processess so it can produce a =
recommendation? is not good debate good?
why would it be better to have less debate?

I think in this day and age, we need to be careful and which algortithms =
get into standards.

-Nex6



--Apple-Mail=_D1A45340-026A-4486-9BCB-971E786EF32A
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJUydVMAAoJEBr/3kncCBhnR08QAJLJe5Yt1Md+cuFtCJZtKXYY
hj0QTb6BtwBNJ5Dcd+aJBAbVsmwJqBi7B5AqioAThZnvuypJ7p7gyFi4HbMcaT8Q
OA/zFwQTjMh/o1WcvLpin57Acda5ihaS7wZG/i97VKS+o45JBzSLk/tHrIZuzroR
BA5TvhP9/f9zAOiMvuOW+eJTpCpHPoxDS0hKSGzddIBVER2ingUvkdezwHnWA0R/
uu9uAHK/tZWNcqO4VUj9jAUNQDNkhvgKwVBv8OB0NnqpxLslEnzM32nczto5YTh3
iFOD0n0YMF3yal5GK0vXCP0+heK8lujL4nt6aTdU7Vr5fdxD5ULQaNzWR8on7rX3
1gYLMKw7G6JS5AIeZRHFwLPC7ujbuToPc+LRL0d1hq1DCovum9zK1fsUa/7ELvuE
N2ihnVjy0wxGEYqOjapct0rUAa69Cou41UKQfX68Uc70Ba/HMIL1M8DMmTUPvueW
YRKUlbDwTRel+zk41sywPVcY8r0NUqHKZSalrVLGRTBN4VYFltW44ptvgza9bnmw
c7lIQCwKtCtLi5xrx+ExLLyTJgUAXnYHNXXOBW+cF5C8crxyVTVxjs6kUhwq+dvS
rFDYjtI+JSpmoTnJUCkb92YxwgO84bJ93i4Lt148Pd0fxV/wGADf7LrkQKGgLvkB
QwgM7DS5X1DrqOPPrN1M
=K5HW
-----END PGP SIGNATURE-----

--Apple-Mail=_D1A45340-026A-4486-9BCB-971E786EF32A--


From nobody Wed Jan 28 23:13:28 2015
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 713B21A8AFA for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 23:13:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.502
X-Spam-Level: 
X-Spam-Status: No, score=-0.502 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 BXpVTtGJZsA0 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 23:13:18 -0800 (PST)
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 0F0F81A000C for <cfrg@irtf.org>; Wed, 28 Jan 2015 23:13:18 -0800 (PST)
Message-ID: <54C9DD8E.9040302@akr.io>
Date: Thu, 29 Jan 2015 07:13:18 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com>
In-Reply-To: <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/qBQRbWxfqCGPSrdpmFQFpua6d2U>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 07:13:22 -0000

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

On 29/01/2015 00:37, Phillip Hallam-Baker wrote:

> Right. The objective here is to dump all the existing code in the 
> trash and start again. Because we want the implementations to have 
> constant time implementations and to preclude the possibility of 
> malicious point attacks by choosing curves that allow us to easily 
> compute y from an x, and only sending the x.
> 
> What we want to avoid at all costs is patent encumbrances. Dumping 
> Weierstrass is a pretty good start because that was the favorite 
> curve of the folk who applied for most of the patents.

+1 to all of this.

> The only area where I did have concerns is that to be able to 
> deploy crypto on these platforms I have to be able to buy FIPS 
> certified hardware or equivalent.

It's probably going to have to be "equivalent", unless NIST surprise us
and come to like the curves and algorithms we do.

> Before the new curves can be used in browsers for certs, the 
> browser providers are going to have to be satisfied.

β¦and we're going to need a signature algorithm. Our draft doesn't have
one of those, and it seems what we're planning to do is do that in a
second phase, as you address.

> β¦ But I don't want to do that in a way that makes it difficult to 
> move to EC certificates in the future.

Agreed.

> I don't accept that big endian is more error prone. The existing 
> code for X.509v3 crypto is all big endian. Changing that will 
> introduce a new code path and opportunity for error.

Two points here.

1. There's a special circle of hell reserved for those who maintain
   X.509v3 code, where they debug ASN.1 parsers for all eternity! <g>

   Seriously though, if I want to dump some TLS code in the bin and
   rewrite it because it's too hairy, X.509 would be the first thing on
   the list.

2. I think that may well be an engineering decision, for the TLS WG or
   PKIX WG. What we've got here is the wire format of the raw function,
   and I continue to think that's the best approach to keep.

   TLS WG already discussed this and used that directly - little-endian
   and everything - for their Curve25519 key-exchange draft. I see no
   reason to second-guess that. They then also specified new curve
   point formats should be opaque octet strings to them, with no
   special treatment. Doesn't sound like they think endian-swapping for
   transport wire formats is worth it from an engineering perspective.

   It'd probably have to be PKIX WG who figure out how to put the wire
   format of whatever signature algorithm we - later - specify into
   whatever format they specify. If they want LE, or BE, or BCD, or
   ASCII base-10, or wrap it in ASN.1 with an OID and a ribbon on top,
   isn't that properly for them to decide? Either way, I don't think
   that's a big deal: if they really want to endian-swap, they can, but
   I'm not sure we should pre-empt them here.

> Now it should be quite easy to add the new curves to the list. I 
> suspect that unless the browser providers are feeling really 
> generous, they will expect us to end of life our existing ECC
> certs to get the new ones added.

I can't speak for them of course, but that's not the impression I get
from either them or CAs? We aren't _replacing_ NIST curves as far as I
know in a near-term timescale, but providing a better alternative for
the future. NIST seem to have much less sway with NGOs than previously.

There will probably be a steady transition to using them, but, say,
those who need FIPS (as above) may never be able to, unless NIST
shadow our recommendations - which would honestly surprise me, but who
knows?

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

iQIcBAEBCgAGBQJUyd2OAAoJEOyEjtkWi2t6yHwP/1zy2Bz6IvM9tdl+g3djxhii
yfxFtdSUBBtCTWqFpvr+sZFkDUT/pdTR8QvX1ttdKqleJp7mzJTh8rToc3vgguCy
ibM2tTOuk3tWcPzdzoiEMWdzKG/7Z1ecucMD9F7SeWiMiI8ebLA64i73tgiCAwZP
A7lvpJ74D2v9iAQMhmNObUzeGguqkJR800gYgYi9VHaBkYIYRrtxyuhfwOES6WNW
QVD66C168cyTsnOApqDuhVy7YRhYr11r/0d1pJC+hboP412O7+FYPJAZZDEaCTB4
3FzRgf+1x6PgPRu77BzoYAfrnm8mk42Yyo9BHHpPZtmmmULYakUj8IhVPZyeenYK
M1x7m4gx6WZpeEJrzvac0FlVrOH6Bg3slGgL/aib6edXE6HQ6alK7wEPTl1//VQp
R7bQC9bM16Ztcrc02FF76JNaZ46/ujdCYicJN8/HHGz3/QyCS8K0Fs8N5Jx/j1DX
LXy5fRNZ/GcS7JRwuFnaaYiEb2Ng42ZW36fdLcWti7n8eR/E9gNODDZov/5B0/V9
jjIsar+25s3sikTzEQVYIZS0W/fuJCLSx+ZtblimPtOJ+33WOsWSgjD3eBuxXO1P
DeTYGQLaEaEE5O4IcDao6xLt+CjoU5ZK3yZgNoihvzPReCqrGb2e//UfmSpv+D/5
So+7wv3rGDbnMwXLb+9/
=EfS3
-----END PGP SIGNATURE-----


From nobody Wed Jan 28 23:20:58 2015
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 171501A8FD2 for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 23:20:52 -0800 (PST)
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_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, J_CHICKENPOX_22=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kuOhvCyQDxMQ for <cfrg@ietfa.amsl.com>; Wed, 28 Jan 2015 23:20:49 -0800 (PST)
Received: from resqmta-po-03v.sys.comcast.net (resqmta-po-03v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:162]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D417D1A0063 for <cfrg@irtf.org>; Wed, 28 Jan 2015 23:20:48 -0800 (PST)
Received: from resomta-po-09v.sys.comcast.net ([96.114.154.233]) by resqmta-po-03v.sys.comcast.net with comcast id ljLo1p00152QWKC01jLoa6; Thu, 29 Jan 2015 07:20:48 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-po-09v.sys.comcast.net with comcast id ljLn1p0064uhcbK01jLnqs; Thu, 29 Jan 2015 07:20:48 +0000
Message-ID: <54C9DF4F.4010909@brainhub.org>
Date: Wed, 28 Jan 2015 23:20:47 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Watson Ladd <watsonbladd@gmail.com>
References: <54AA4AB9.70505@brainhub.org> <54B315CA.6040900@brainhub.org> <88805D27-3B08-421D-B62A-2FC61AC5851A@shiftleft.org> <CACsn0c=qxBXCkr7hCtzgY9U+5_N8hY=jShU7g=hUbqkrUMYxNw@mail.gmail.com> <3C94ED57-5089-4A6D-9CC6-2DCD452C7BCF@shiftleft.org> <CACsn0ck6q9nxioS7q66MkB6M+YmaGj=Nmqop1LQ-DuG0q78GaQ@mail.gmail.com> <54BCAE24.6020408@brainhub.org> <CACsn0ckb6t_bsAocYnBhiqRkaJ3HExF4QNDf83riQqc=uHdQ0A@mail.gmail.com> <54BF6B8C.2020707@brainhub.org> <CACsn0cn9vT8QnaKhZx5LQ1FSjRyagOzHDnW9Ub=xvV93E4EBJw@mail.gmail.com> <54C56190.2060407@brainhub.org> <CACsn0cnG=0N7nSAC4ZVbAAFA64pXeTw==pANT0xgud9g9uGV+w@mail.gmail.com>
In-Reply-To: <CACsn0cnG=0N7nSAC4ZVbAAFA64pXeTw==pANT0xgud9g9uGV+w@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1422516048; bh=sLextKb/T18tovUEEeuXVChmIhpUF4U5NAAHbJuuF24=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=dJ2Vl4I7mrUmvdid6ySTNmMarteVgN2UsX6ziZGbUw/h2OD8+ydwFyI0Etnt3MMXQ VNw/stZu3f4t2K4odiahVpAXa68/YbqKCgD+C8Sck87tP1F8e5qeOxoXQlhylqR9Mq QE6xA9S0FMyU1Iw5PakgscSjIw4pofGjZ3id4FJ4PUXmpRiLulvgzaYMSM9UvOuD6Y 5DMZykYY0cK8IAMxnYnGu9AhzFswiuZQvcHkBUKiTcH0ihypvzkk/uZIRMLtL9rKky 4MuU+CLkIc5ytY9BsOSJMOWBkWdfokKd3oXWz3a7TV9VKO32pAfLckrrDTTYM08cov pxgPsNHzC6RGA==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/NyfP1nVFEusNTzNm7GEwbTutfbY>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] On relative performance of Edwards v.s. Montgomery Curve25519, variable base
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 07:20:52 -0000

On 01/25/2015 08:16 PM, Watson Ladd wrote:
> On Sun, Jan 25, 2015 at 1:35 PM, Andrey Jivsov <crypto@brainhub.org> wrote:
>> On 01/21/2015 05:39 PM, Watson Ladd wrote:
>>>
>>> On Wed, Jan 21, 2015 at 1:04 AM, Andrey Jivsov <crypto@brainhub.org>
>>> wrote:
>>>>
>>>> On 01/19/2015 04:20 PM, Watson Ladd wrote:
>>>>>
>>>>> And once again, the Montgomery ladder is extremely small in codesize,
>>>>> one the field operations are implemented. Or is there some other
>>>>> benefit I don't understand you are thinking of?
>>>>
>>>>
>>>> The benefits of using extended twisted Edwards coordinates would be:
>>>>
>>>> * An order of magnitude faster key generation (this is a part of
>>>> signature
>>>> generation or ECDH ephemeral key generation)
>>>> * Ability to add points (needed for signatures and many other protocols)
>>>> * The same code can do what Montgomery ladder does (variable case
>>>> scalarmult) at the same speed.
>>>>
>>>> It plausible that a library that needs more then ECDH variable base
>>>> scalarmult would implement the above operations without the Montgomery
>>>> ladder.
>>>>
>>>> However, if there there is a penalty to recover 'y', that unified
>>>> implementation is less likely to happen.
>>>
>>> And the cost here is what? Note that your first bullet point is false:
>>> the comb method on twisted Edwards can deliver a point on a Montgomery
>>> curve, with minimal change in performance. I agree we would be using
>>> twisted Edwards for signatures and protocols that require addition
>>> (although Mike Hamburg has some ideas on safer point formats, based on
>>> Jacobi quartics). But that doesn't mean we should use the same method
>>> for ECDH: there are security advantages which your proposal doesn't
>>> have.
>>>
>>> Once again this got discussed extensively over the summer.
>>
>>
>> You are proposing to use a Montgomery ladder for second flight of ECDH
>> (variable base). There is a benefit of simplicity of code here and
>> protection against timing attacks for free, but not much of performance.
>> This makes sense.
>>
>> The first flight of ECDH (fixed-base) is too slow with same implementation
>> used for variable base (or any key generation), and so you propose to use a
>> discussed over the summer idea to have another type of Montgomery ladder
>> (which I couldn't locate). It won't be as simple as the first Montgomery
>> ladder and it will probably be more complex as a simple ~20 additions of
>> points from a pre-computed read-only table.
>
> Let's look at actual performance numbers, and consider what the
> algorithm actually is.
>
> First performance http://bench.cr.yp.to/results-dh.html The Curve25519
> implementation presented there outperforms a rather optimized P256
> implementation even if we just use the Montgomery ladder for fixed
> based exponentiation.

Yes, but P256 is not a subject this this thread.

( For P256 v.s. Curve25519+Montgomery I timed that in
https://www.ietf.org/mail-archive/web/cfrg/current/msg05211.html and 
http://www.ietf.org/mail-archive/web/cfrg/current/msg05251.html : up to 
65% faster )

> But we can do better via precomputation: what is the algorithm that
> lets us do this? Well, we can compute the multiplication in Edwards
> form and evaluate the isomorphism or isogeny to Montgomery form. This
> was already spelled out January 6th, in Mike Hamburg's email.

I think this will have a ~10% performance penalty due to y missing.

There was no free way to recover y noted. E.g., if we start with 
Montgomery Z!=1, as Mike Hamburg observed, it is cheaper to perform an 
inverse first than to use ( X, Z!=1 ) in the Montgomery ladder formula 
(because squaring is faster than multiplication), and so on.

>
> Ah, but what if I need more speed? Well, Edwards form isn't faster for
> variable time scalarmult. If you want the absolute fastest speed,
> Kummer surfaces of genus 2 or GLV/GLS curves are standing by to take
> your call.

I wonder if this will be worth the benefit (in a single thread).

>
>>
>> This, however, still doesn't solve the problem of digital signatures and
>> SPAKE, which need to add points.
>
> So we have a different point format for them: again this is what is
> being done in SSH right now. Why is this impossible?

There are benefits to have single implementation (that can add points).

However, regarding the wire format, it may be desirable for an 
encryption key to sign (think OpenPGP top-key only, proof of key 
possession, etc). Ignoring the "existing implementation practice", 
defining the Montgomery (x,y) as the point representation allows to do 
signatures, or encryption, and have single implementation, without 
performance penalty to recover y.

>
>>
>> For example, in https://tools.ietf.org/html/draft-ladd-spake2-01 each peer
>> does 1 fixed-base, 2 variable-base, 2 addition. I would do this with a
>> single implementation of a curve formula (e.g. using extended twisted
>> Edward).
>
> You seem to be conflating curves, coordinates, and computations, and
> then managed to ignore standard speedups Of course, the SPAKE2
> protocol needs to preserve the sign of points, and so cannot work with
> x-coordinate only Montgomery. But what is the actual cost of SPAKE2?
> Firstly, the additions are minimal cost. Secondly, xG+yP is best
> computed by an algorithm due to Strauss, and is much closer to 1.5
> variable-base multiplications.

Hm, 1.5 variable base multiplication doesn't seem appealing here, 
because xG is a factor of 10 faster than yP (for a reasonable 
precomputed table for ~256 bit F(p)) with EC formula that can add points).

>
> When using the comb method, the comb contains affine points, and the
> formulas for mixed addition are significantly faster than general
> addition. One could of course forgo this increased performance, but
> its not clear why one would. Similarly, double-base scalarmult
> requires a complete addition law, while for single base one can get by
> with an incomplete one that is potentially faster. All these
> optimizations are generally implemented and deployed today.
>
>>
>> IMO a library like OpenSSL that anticipates to implement most of these
>> algorithms *may* consider a single implementation that can add points with
>> no performance loss.
>
> But why is that implementation choice so valuable as to justify using
> something other than x-coordinate Montgomery? It's not codesize,
> except in the most constrained environments.

It's system simplicity. One then needs to implement, tune, and debug a 
single implementation.

(Single) Montgomery ladder is an excellent implementation strategy for 
many applications. If these applications' needs are served by the 
Montgomery ladder -- they should use a Montgomery ladder.


> Sincerely,
> Watson Ladd
>


From nobody Thu Jan 29 00:08:39 2015
Return-Path: <smyshsv@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 BA0121A8F4F for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 00:08:33 -0800 (PST)
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 frFf9pPRuOIa for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 00:08:30 -0800 (PST)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7BDA71A8F4D for <cfrg@irtf.org>; Thu, 29 Jan 2015 00:08:30 -0800 (PST)
Received: by mail-oi0-f49.google.com with SMTP id a3so24235396oib.8 for <cfrg@irtf.org>; Thu, 29 Jan 2015 00:08:29 -0800 (PST)
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=Y/YsfFFEY3INo6X3p5b8dv/yZOY2w1uooxgxAiuoShk=; b=SeAtMAO14HsKA9SBzgO4drDK/eLgvtsfh6GUyULeb0+zbNMsjx5m531K+p7MqFO6xp AViShwfwHbnb0wMC0mC4kVePuUpxoMUgp7hCbXuhM3shjJxz9JtqG3Cc5wxaE3GQ9soE HOEUOnptFYNsiVyeOzIwhieEBLGyjY/L1sQ7yAj53sF86p77Q2t6N1yNuKIpSPVoKH6N blhhyD7Gy2s9YhSwBkxedXRULkK2vklrFMUVnWqrXI0ino7GgB7xr46pF/qnQYfBKJLq yYIXx939dQ9u9iyDlwl1BdJV3IgZKhT257Bk9Fjb6JkR7GAJ0oNzeXEsIufzBlmpL6bP dteQ==
MIME-Version: 1.0
X-Received: by 10.202.212.66 with SMTP id l63mr4401224oig.117.1422518909757; Thu, 29 Jan 2015 00:08:29 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Thu, 29 Jan 2015 00:08:29 -0800 (PST)
In-Reply-To: <54C924AC.7060504@akr.io>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <54C924AC.7060504@akr.io>
Date: Thu, 29 Jan 2015 12:08:29 +0400
Message-ID: <CAMr0u6kC_DpZo8LVtp1Ljmqzvcz1wtB_yhajEW3-bZ7mbqBbyA@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: Alyssa Rowan <akr@akr.io>
Content-Type: multipart/alternative; boundary=001a113cf2884d6d3d050dc5feab
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/PDyblgC_34KFWhqxd86P7R34cxk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 08:08:34 -0000

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

I totally understand that a property that occurs with 2^{-18} (as Bernstein
did with BADA55 curves) can be forced to exist in the selected curve. The
example that I posted earlier is the specific curve that is standardized in
Russia, by a group of experts where the condition mentioned by Paul ("a
group where even if a single person is trusted") is satisfied ("trusted"
for us, not for the international community and CFRG, I suppose).

When we generated our curves and fixed base points, the main problem that
we addressed was to ensure that for all protocols that make use of elliptic
curves and require "provably unknown" logarithms of some points (for
example, password protected key establishment, PAKE, EKE, PACE, etc.) can
obtain such a property: x-coordinates of base points and constant points
for prototocols are chosen by hashing some random seeds =E2=80=93 we don't =
want
only a blind belief of randomness of such points (the most painful example
here is Dual EC DRBG, of course). We look at curve generation problem in a
similar way: we cannot be secure against the unknown bad properties of
curves that occur with probability of 2^{-18} =E2=80=93 even if the procedu=
re is
totally "rigid". But at least we can be sure that if some bad property of
our curves is found, we would know that this couldn't be a "backdoor" that
can be exploited only by developers of the curve, who know some logarithms,
preimages etc. (again, as with DUAL EC DRBG).

If to talk about new curves for CFRG document, the usage of deterministic
("rigid") procedure is quite reasonable, we agree here. We've posted our
curve because we think that it can be interesting for CFRG to look at one
of the curves that have been standardized for all Russian cryptographic
community. We'll post some specific comments to the current draft later
today.

=E2=80=8BBest regards,
Stanislav V. Smyshlyaev, Ph.D.,
Head of Information Security Department,
CryptoPro LLC

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

<div dir=3D"ltr">I totally understand that a property that occurs with 2^{-=
18} (as Bernstein did with BADA55 curves) can be forced to exist in the sel=
ected curve. The example that I posted earlier is the specific curve that i=
s standardized in Russia, by a group of experts where the condition mention=
ed by Paul (&quot;<span style=3D"color:rgb(0,0,0)">a group where even if a =
single person is trusted&quot;</span>) is satisfied (&quot;trusted&quot; fo=
r us, not for the international community and CFRG, I suppose).<div><br></d=
iv><div>When we generated our curves and fixed base points, the main proble=
m that we addressed was to ensure that for all protocols that make use of e=
lliptic curves and require &quot;provably unknown&quot; logarithms of some =
points (for example, password protected key establishment, PAKE, EKE, PACE,=
 etc.) can obtain such a property: x-coordinates of base points and constan=
t points for prototocols are chosen by hashing some random seeds =E2=80=93 =
we don&#39;t want only a blind belief of randomness of such points (the mos=
t painful example here is Dual EC DRBG, of course). We look at curve genera=
tion problem in a similar way: we cannot be secure against the unknown bad =
properties of curves that occur with probability of 2^{-18} =E2=80=93 even =
if the procedure is totally &quot;rigid&quot;. But at least we can be sure =
that if some bad property of our curves is found, we would know that this c=
ouldn&#39;t be a &quot;backdoor&quot; that can be exploited only by develop=
ers of the curve, who know some logarithms, preimages etc. (again, as with =
DUAL EC DRBG).</div><div><br></div><div>If to talk about new curves for CFR=
G document, the usage of deterministic (&quot;rigid&quot;) procedure is qui=
te reasonable, we agree here. We&#39;ve posted our curve because we think t=
hat it can be interesting for CFRG to look at one of the curves that have b=
een standardized for all Russian cryptographic community. We&#39;ll post so=
me specific comments to the current draft later today.</div><div><br></div>=
=E2=80=8BBest regards,<div>Stanislav V. Smyshlyaev, Ph.D.,</div><div>Head o=
f Information Security Department,</div><div>CryptoPro LLC</div><div><br></=
div></div>

--001a113cf2884d6d3d050dc5feab--


From nobody Thu Jan 29 02:04:11 2015
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 DDD891A007B for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 02:04:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NEiV4fVZiIy7 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 02:04:04 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 171371A0075 for <cfrg@irtf.org>; Thu, 29 Jan 2015 02:04:04 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 419E5BE35; Thu, 29 Jan 2015 10:04:35 +0000 (GMT)
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 gPBt6ha_BUAr; Thu, 29 Jan 2015 10:04:34 +0000 (GMT)
Received: from [10.87.48.73] (unknown [86.46.18.232]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 259B6BE47; Thu, 29 Jan 2015 10:04:34 +0000 (GMT)
Message-ID: <54CA0591.3070308@cs.tcd.ie>
Date: Thu, 29 Jan 2015 10:04:01 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Alyssa Rowan <akr@akr.io>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com> <54C9DD8E.9040302@akr.io>
In-Reply-To: <54C9DD8E.9040302@akr.io>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/uPL4xVYBy6K_qTuuWPIE9Vh2eYQ>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 10:04:07 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 29/01/15 07:13, Alyssa Rowan wrote:
> unless NIST surprise us and come to like the curves and algorithms
> we do.

Well, NIST are planning a workshop on the topic so you have
the opportunity to submit a position paper or comment to the
effect that they ought do exactly that. Sometimes they are
fairly reasonable after all (though perhaps that is not the
overall impression one gets of 140-1;-)

Cheers,
S.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUygWOAAoJEC88hzaAX42i+6sH/2GifXQ+TZLaN0drEHBJUpi8
psNDJHxUdilhiC5UhngE7a9nQztAMZCSD/5R60opAKNTYuXFgHx7A0uA3DIVKWH/
Tx2lXKObs+3gg/XMpp3x3ZSnO9VlyFchBtqUTVQyhDqyKqkVTNRuemizitvNUlQW
n07qh7TZmIoiWtTG5uFy/MHLL05oJa3LDMs0bC0h7g+8M9e6VEZzJ8QJvquR6LK6
9Q2l16LRVF6NLjgbUPM3ORSfUw6rJ8s94LIdKOtjdidacPdQFLKxvMozhDubdXXO
mmnJtzmrUiQIn/gbZNgTNOcMf6ftosFK5OrTcbq1JU2CxzrSYZWIUs2ju9AiP2Y=
=PD+x
-----END PGP SIGNATURE-----


From nobody Thu Jan 29 02:06:11 2015
Return-Path: <smyshsv@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 E9B741A0149 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 02:06:09 -0800 (PST)
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 DidoPCYCdgO2 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 02:06:07 -0800 (PST)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 718B71A010C for <cfrg@irtf.org>; Thu, 29 Jan 2015 02:06:07 -0800 (PST)
Received: by mail-oi0-f49.google.com with SMTP id a3so25043342oib.8 for <cfrg@irtf.org>; Thu, 29 Jan 2015 02:06:06 -0800 (PST)
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=+S4TU2cfYavuPUGjiUaz0kBdjGVHkhI0etXTXxQ8MP4=; b=uae+E3v/dytPhn/wq7Ak2JZqJWKOOkDbB7FdeFrhNdhWb8i5VcPApkfhewKBOJwQ4a UgNTsjwCg+1iKK5NfUaN2cx3dBFy5C++ocA5wJ07EK7mEhsaMiQulyDS1WYAXo+lKcTM hpOVhWX8hwbUodBsbUpkyOQl/fMIB8ZMFQo1kiLFM0LZe0f9q/rt7T3nOP2fPvMBnOmA 5VM2m3N1Kk+wtQu6hi9AEUrJL/rGRzacepxzq9v2PUxdsvugGYHdR5MU3/40YG43ShHM 94kHxVVgLZX0iiGBC/CNR887cDhLuqXHNmBpRECm8QZ33DEVnmznwvMvaDsWlagfJqxv moVg==
MIME-Version: 1.0
X-Received: by 10.60.133.20 with SMTP id oy20mr4286819oeb.55.1422525966734; Thu, 29 Jan 2015 02:06:06 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Thu, 29 Jan 2015 02:06:06 -0800 (PST)
In-Reply-To: <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <CAHOTMVK63wE1PNypoJ_Ems734UMD_vEOq-muYLzNvVPMWwv==g@mail.gmail.com>
Date: Thu, 29 Jan 2015 14:06:06 +0400
Message-ID: <CAMr0u6=L-OtiZtT0HnuBha55nv7vKApii4F2N4AoEMDjKs-daA@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: Tony Arcieri <bascule@gmail.com>
Content-Type: multipart/alternative; boundary=047d7b47204eee59e0050dc7a2b1
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Vn27bxPMQOFZkj1aJMyESahkm7s>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 10:06:10 -0000

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

Hello, Tony,

> I totally understand that a property that occurs with 2^{-18} (as
Bernstein did with BADA55 curves) can be forced to exist in the selected
curve. The example that I posted earlier is the specific curve that is
standardized in Russia, by a group of experts where the condition mentioned
by Paul ("a group where even if a single person is trusted") is satisfied
("trusted" for us, not for the international community and CFRG, I suppose)=
.

> When we generated our curves and fixed base points, the main problem that
we addressed was to ensure that for all protocols that make use of elliptic
curves and require "provably unknown" logarithms of some points (for
example, password protected key establishment, PAKE, EKE, PACE, etc.) can
obtain such a property: x-coordinates of base points and constant points
for prototocols are chosen by hashing some random seeds =E2=80=93 we don't =
want
only a blind belief of randomness of such points (the most painful example
here is Dual EC DRBG, of course). We look at curve generation problem in a
similar way: we cannot be secure against the unknown bad properties of
curves that occur with probability of 2^{-18} =E2=80=93 even if the procedu=
re is
totally "rigid". But at least we can be sure that if some bad property of
our curves is found, we would know that this couldn't be a "backdoor" that
can be exploited only by developers of the curve, who know some logarithms,
preimages etc. (again, as with DUAL EC DRBG).

> If to talk about new curves for CFRG document, the usage of deterministic
("rigid") procedure is quite reasonable, we agree here. We've posted our
curve because we think that it can be interesting for CFRG to look at one
of the urves that have been standardized for all Russian cryptographic
community. We'll post some specific comments to the current draft later
today.


We know about BADA55 curves, we tried to explain our position on them in my
reply to Alyssa; for now I don't have anything to add. Anyway, thanks for
taking part in the discussion. We'll try to formulate our comments and
suggestions for the current draft later today.

Kind regards,

Stanislav


2015-01-28 20:22 GMT+03:00 Tony Arcieri <bascule@gmail.com>:

> On Wed, Jan 28, 2015 at 6:14 AM, Stanislav V. Smyshlyaev <
> smyshsv@gmail.com> wrote:
>
>> As we believe (and as it has been mentioned earlier during discussion at
>> CFRG), the initital seed value doesn't have to be chosen explicitly in c=
ase
>> of trust in basic hash function properties =E2=80=93 to gain some "backd=
oor-type"
>> properties of the curve with d =3D hash(W), one has either to combine su=
ch
>> algebraic properties of a curve with properties of a hash function (for =
a
>> trivial example, to have an ability to obtain a hash preimage) or to cho=
ose
>> a very probable "backdoor-type" property of a curve (such that it is
>> possible to obtain by random choice of a curve).
>>
>
> Hi Stanislav,
>
> Dan Bernstein and Tanja Lange have already demonstrated that such
> "verifiably random" generation procedures can be used to surreptitiously
> tweak specific curve parameters:
>
> http://safecurves.cr.yp.to/bada55.html
>
> I for one would not feel particularly inclined to trust a curve generated
> with this method, and would personally prefer the sort of rigid curve
> generation approach that this committee and others have been working on t=
o
> any curve with large unexplained mystery constants.
>
> --
> Tony Arcieri
>

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

<div dir=3D"ltr">Hello, Tony,<div><br></div><div><span style=3D"font-size:1=
3px">&gt; I totally understand that a property that occurs with 2^{-18} (as=
 Bernstein did with BADA55 curves) can be forced to exist in the selected c=
urve. The example that I posted earlier is the specific curve that is stand=
ardized in Russia, by a group of experts where the condition mentioned by P=
aul (&quot;</span><span style=3D"font-size:13px;color:rgb(0,0,0)">a group w=
here even if a single person is trusted&quot;</span><span style=3D"font-siz=
e:13px">) is satisfied (&quot;trusted&quot; for us, not for the internation=
al community and CFRG, I suppose).</span><div style=3D"font-size:13px"><br>=
</div><div style=3D"font-size:13px">&gt; When we generated our curves and f=
ixed base points, the main problem that we addressed was to ensure that for=
 all protocols that make use of elliptic curves and require &quot;provably =
unknown&quot; logarithms of some points (for example, password protected ke=
y establishment, PAKE, EKE, PACE, etc.) can obtain such a property: x-coord=
inates of base points and constant points for prototocols are chosen by has=
hing some random seeds =E2=80=93 we don&#39;t want only a blind belief of r=
andomness of such points (the most painful example here is Dual EC DRBG, of=
 course). We look at curve generation problem in a similar way: we cannot b=
e secure against the unknown bad properties of curves that occur with proba=
bility of 2^{-18} =E2=80=93 even if the procedure is totally &quot;rigid&qu=
ot;. But at least we can be sure that if some bad property of our curves is=
 found, we would know that this couldn&#39;t be a &quot;backdoor&quot; that=
 can be exploited only by developers of the curve, who know some logarithms=
, preimages etc. (again, as with DUAL EC DRBG).</div><div style=3D"font-siz=
e:13px"><br></div><div style=3D"font-size:13px">&gt; If to talk about new c=
urves for CFRG document, the usage of deterministic (&quot;rigid&quot;) pro=
cedure is quite reasonable, we agree here. We&#39;ve posted our curve becau=
se we think that it can be interesting for CFRG to look at one of the urves=
 that have been standardized for all Russian cryptographic community. We&#3=
9;ll post some specific comments to the current draft later today.</div></d=
iv><div><br></div><div><br></div><div>We know about BADA55 curves, we tried=
 to explain our position on them in my reply to Alyssa; for now I don&#39;t=
 have anything to add. Anyway, thanks for taking part in the discussion. We=
&#39;ll try to formulate our comments and suggestions for the current draft=
 later today.</div><div><br></div><div><div class=3D"gmail_extra"><div><div=
 class=3D"gmail_signature"><div dir=3D"ltr"><p><font color=3D"#1f497d">Kind=
 regards,</font></p><p><font color=3D"#1f497d">Stanislav</font></p><div><br=
></div></div></div></div>
<br><div class=3D"gmail_quote">2015-01-28 20:22 GMT+03:00 Tony Arcieri <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:bascule@gmail.com" target=3D"_blank">ba=
scule@gmail.com</a>&gt;</span>:<br><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"><div dir=3D"ltr"><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><span class=3D"">On Wed, J=
an 28, 2015 at 6:14 AM, Stanislav V. Smyshlyaev <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:smyshsv@gmail.com" target=3D"_blank">smyshsv@gmail.com</a>&gt;=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-=
left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div>As we believe (and=
 as it has been mentioned earlier during discussion at CFRG), the initital =
seed value doesn&#39;t have to be chosen explicitly in case of trust in bas=
ic hash function properties =E2=80=93 to gain some &quot;backdoor-type&quot=
; properties of the curve with d =3D hash(W), one has either to combine suc=
h algebraic properties of a curve with properties of a hash function (for a=
 trivial example, to have an ability to obtain a hash preimage) or to choos=
e a very probable &quot;backdoor-type&quot; property of a curve (such that =
it is possible to obtain by random choice of a curve).</div></div></blockqu=
ote><div><br></div></span><div>Hi Stanislav,</div><div><br></div><div>Dan B=
ernstein and Tanja Lange have already demonstrated that such &quot;verifiab=
ly random&quot; generation procedures can be used to surreptitiously tweak =
specific curve parameters:</div><div><br></div><div><a href=3D"http://safec=
urves.cr.yp.to/bada55.html" target=3D"_blank">http://safecurves.cr.yp.to/ba=
da55.html</a></div><div><br></div><div>I for one would not feel particularl=
y inclined to trust a curve generated with this method, and would personall=
y prefer the sort of rigid curve generation approach that this committee an=
d others have been working on to any curve with large unexplained mystery c=
onstants.</div></div><span class=3D""><font color=3D"#888888"><div><br></di=
v>-- <br><div>Tony Arcieri<br></div>
</font></span></div></div>
</blockquote></div><br></div></div></div>

--047d7b47204eee59e0050dc7a2b1--


From nobody Thu Jan 29 05:21:29 2015
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 4C01D1A0397 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 05:21:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.622
X-Spam-Level: 
X-Spam-Status: No, score=0.622 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JalSf9pCfY6q for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 05:21:17 -0800 (PST)
Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C6DE1A038E for <cfrg@irtf.org>; Thu, 29 Jan 2015 05:21:17 -0800 (PST)
Received: by mail-lb0-f169.google.com with SMTP id f15so27961189lbj.0 for <cfrg@irtf.org>; Thu, 29 Jan 2015 05:21:15 -0800 (PST)
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=UrUnwPsKfnB91VQMGDymqgZUXJpH9DgOaipPVzJfecU=; b=jJK/qPo0DPE/Fvdi4QSj7YXZE8XjTaRa5jaQRMS5MbnVTD5P03baOeUMgS/n1a2/xQ bqod9dgK3eBQliDcCB6BVsw6Nj02jkDsrjdQeaAVuxaG9NW59fUbbPJ6xuqeddkbts2K Rr7X5BVRBBg09J7DU9P8tyiPwMEHOYVyWxz/PWkc8ydAplZOYvk73S4GAUm2+98xTU2D PkBhPHvsDZNVIC8CLZcyH5c/PGyYHBeT9TY+0QK6J6hCue+uRiQ9ErQdWKJj3rtV8G+X EH5Y71AUd8IIo7sgBvM//gInFBkOtlNKzJzZrNXGG6RvA2buk/Bfa60hoN2wqGH0/vpx Et/w==
MIME-Version: 1.0
X-Received: by 10.112.199.69 with SMTP id ji5mr577693lbc.45.1422537675582; Thu, 29 Jan 2015 05:21:15 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 05:21:15 -0800 (PST)
In-Reply-To: <54CA0591.3070308@cs.tcd.ie>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com> <54C9DD8E.9040302@akr.io> <54CA0591.3070308@cs.tcd.ie>
Date: Thu, 29 Jan 2015 08:21:15 -0500
X-Google-Sender-Auth: jrLPHQeSsAiNKluS8YTHjsMGUL0
Message-ID: <CAMm+Lwi5skMnsaPxSzdVmDtHTjjGPRJ54xpaF8GL84ihMHePrA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Content-Type: multipart/alternative; boundary=001a11c23908d5365f050dca5cc3
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/iZ9Ms_590X0ud4RrrClpRtKUWRo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 13:21:19 -0000

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

On Thu, Jan 29, 2015 at 5:04 AM, Stephen Farrell <stephen.farrell@cs.tcd.ie>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> On 29/01/15 07:13, Alyssa Rowan wrote:
> > unless NIST surprise us and come to like the curves and algorithms
> > we do.
>
> Well, NIST are planning a workshop on the topic so you have
> the opportunity to submit a position paper or comment to the
> effect that they ought do exactly that. Sometimes they are
> fairly reasonable after all (though perhaps that is not the
> overall impression one gets of 140-1;-)
>

Fortunately the decision making body relevant here isn't NIST, it is
CABForum which is the browser providers and CAs. And the issue there is
simply 'can we do this safely'.

So by FIPS-140 equivalent, what is meant is something that we can get a
group of experts to agree is equivalent and safe. It probably means that
the hardware is certified FIPS-140 but not necessarily for the particular
algorithm. This may or may not require wording changes but I don't expect
they would be controversial.

On the NIST side, I think that in the current circumstances it is very
likely we get a FIPS published on the new curves and algorithms. In the
medium term it is more or less certain. NIST exists to serve the needs of
commerce, not the other way round.

Snowden has changed the game in several ways. First, as in the Sony hack,
the real damage is done by revealing the trash talk inside the NSA. I have
my own theories about how the BULLRUN slides got made: Majors trying to
make Colonel by spinning their activities as meeting the director's fetish
for cyber-attack. Majors who don't make colonel become civilians so they
are likely to bend the truth. Only in the process they are essentially
saying that the NSA has been performing sabotage operations on other
government agencies. That type of behavior has consequences within a
bureaucracy, not just without.

The second, more important game change is that the NSA demonstrated that it
is unable to keep its own secrets, let alone advise the rest of government
on how to do it. And as BULLRUN demonstrates, it can't be trusted to do so
even if they were capable. Snowden has ended many military careers and
brought the survival of the NSA into question. I don't expect changes under
this president, but I think it very likely that the NSA loses
responsibility for information security assurance under the next and NIST
is the logical home.

So in these circumstances I expect NIST is very likely to be sanctioning
FIPS for the new curves, with or without NSA approval. The new curves are
technically superior and far more likely to appear in COTS products.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 5:04 AM, Stephen Farrell <span dir=3D"ltr">&lt;=
<a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=3D"_blank">stephen.farr=
ell@cs.tcd.ie</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----=
BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<span><br>
<br>
<br>
On 29/01/15 07:13, Alyssa Rowan wrote:<br>
&gt; unless NIST surprise us and come to like the curves and algorithms<br>
&gt; we do.<br>
<br>
</span>Well, NIST are planning a workshop on the topic so you have<br>
the opportunity to submit a position paper or comment to the<br>
effect that they ought do exactly that. Sometimes they are<br>
fairly reasonable after all (though perhaps that is not the<br>
overall impression one gets of 140-1;-)<br></blockquote><div><br></div><div=
>Fortunately the decision making body relevant here isn&#39;t NIST, it is C=
ABForum which is the browser providers and CAs. And the issue there is simp=
ly &#39;can we do this safely&#39;.=C2=A0</div><div><br></div><div>So by FI=
PS-140 equivalent, what is meant is something that we can get a group of ex=
perts to agree is equivalent and safe. It probably means that the hardware =
is certified FIPS-140 but not necessarily for the particular algorithm. Thi=
s may or may not require wording changes but I don&#39;t expect they would =
be controversial.</div><div><br></div><div>On the NIST side, I think that i=
n the current circumstances it is very likely we get a FIPS published on th=
e new curves and algorithms. In the medium term it is more or less certain.=
 NIST exists to serve the needs of commerce, not the other way round.=C2=A0=
</div><div><br></div><div>Snowden has changed the game in several ways. Fir=
st, as in the Sony hack, the real damage is done by revealing the trash tal=
k inside the NSA. I have my own theories about how the BULLRUN slides got m=
ade: Majors trying to make Colonel by spinning their activities as meeting =
the director&#39;s fetish for cyber-attack. Majors who don&#39;t make colon=
el become civilians so they are likely to bend the truth. Only in the proce=
ss they are essentially saying that the NSA has been performing sabotage op=
erations on other government agencies. That type of behavior has consequenc=
es within a bureaucracy, not just without.=C2=A0</div><div><br></div><div>T=
he second, more important game change is that the NSA demonstrated that it =
is unable to keep its own secrets, let alone advise the rest of government =
on how to do it. And as BULLRUN demonstrates, it can&#39;t be trusted to do=
 so even if they were capable. Snowden has ended many military careers and =
brought the survival of the NSA into question. I don&#39;t expect changes u=
nder this president, but I think it very likely that the NSA loses responsi=
bility for information security assurance under the next and NIST is the lo=
gical home.</div><div><br></div><div>So in these circumstances I expect NIS=
T is very likely to be sanctioning FIPS for the new curves, with or without=
 NSA approval. The new curves are technically superior and far more likely =
to appear in COTS products.</div></div></div></div>

--001a11c23908d5365f050dca5cc3--


From nobody Thu Jan 29 05:43:41 2015
Return-Path: <smyshsv@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 432151A0404 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 05:43:34 -0800 (PST)
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 SUmV3NeQN90Y for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 05:43:29 -0800 (PST)
Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com [IPv6:2607:f8b0:4003:c06::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E17CB1A03A3 for <cfrg@irtf.org>; Thu, 29 Jan 2015 05:43:28 -0800 (PST)
Received: by mail-oi0-f41.google.com with SMTP id z81so26694262oif.0 for <cfrg@irtf.org>; Thu, 29 Jan 2015 05:43:28 -0800 (PST)
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=M5jLUZ94SuWf3niohYyMjeDBGaHtwX0Y1lEEFF5VnLs=; b=PNoroaznuN+zy23WlTWa/sqW/6XEpHhYjGfFNwBKreC223n6IbMnuaAG8VpJX7SjUs Ud5JKsKgGbH8Z4y4cx3y6r+DmS8dgkfuYmidkrHBTzqK31nixCbW/CeyJyTsNistso1w CA1ASRHWtnlU/P+PIRws4YCaPB4Gy47rEPUhcfIvmN1SkX6k2Yc0jxBHQh3Gskhf351J kIsFUR39TrMBPNUN+RXS0M9OgM7SkKf9Zn0GJBB5u22tiBHBCtanl5iVOfSNrz2jal9A pVs74zIlKOe7TQhSaaV2CppzXsuQz/RHrMaS3nvBVxZPInHse/aIa9OLGuDl6wL3grJT Jt1g==
MIME-Version: 1.0
X-Received: by 10.202.185.198 with SMTP id j189mr390891oif.72.1422539008162; Thu, 29 Jan 2015 05:43:28 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Thu, 29 Jan 2015 05:43:28 -0800 (PST)
Date: Thu, 29 Jan 2015 17:43:28 +0400
Message-ID: <CAMr0u6n3px83ihg5Q=v3HkAV3ur_BT6b_WviQ-4+WfzCbWNLJw@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: agl@imperialviolet.org, "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=001a113ce80e42c1a7050dcaac8a
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ceZB5R3_LUBtmY08Sfn2IZJbl2k>
Subject: [Cfrg] Suggestions for draft-irtf-cfrg-curves-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: Thu, 29 Jan 2015 13:43:34 -0000

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

Dear colleagues,

We would like you to consider several proposals on the latest variant of
draft (draft-irtf-cfrg-curves-01).

1)      In our opinion, some important clarifications have to be done
explicitly in the document, though needed references are given.
  a) In Section 3.3 declare explicitly what "r=E2=80=9D denotes.
  b) In Section 5 mention explicitly Schoof=E2=80=93Elkies=E2=80=93Atkin al=
gorithm as an
algorithm used to calculate number of curve points or even fully cite it
there.
  c) Add explicit description of algorithms used to examine curve on MOV-,
CM- and twist-security as well as Frobenius trace calculation formula. Add
=E2=80=9Cperform checks=E2=80=9D step in algorithms proposed in sections 5.=
1 and 5.2.
2)      Select and add a higher security curve (512- or 521-bit).
3)      Add some explanations on parameter d of the selected 255-bit curve
(the current draft leaves the question whether it is the first d to be
returned by 5.2 algorithm and the reason of choice if it is not).
4)      Introduce a rigid base point generation algorithm (either the one
that was proposed in the previous version of the draft or one using
cryptographic hash function). We consider that important to ensure the
generated points could be safely used in applied protocols like
password-based key establishment protocols (PAKE, EKE, PACE etc.) and RNGs
like Dual EC DRBG.


Best regards,
Stanislav V. Smyshlyaev, Ph.D.,
Head of Information Security Department,
CryptoPro LLC

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

<div dir=3D"ltr"><div><div class=3D"gmail_signature"><div dir=3D"ltr"><div>=
<div><div>Dear colleagues,</div><div><br></div><div>We would like you to co=
nsider several proposals on the latest variant of draft (draft-irtf-cfrg-cu=
rves-01).</div><div><br></div><div>1) =C2=A0 =C2=A0 =C2=A0In our opinion, s=
ome important clarifications have to be done explicitly in the document, th=
ough needed references are given.</div><div>=C2=A0 a) In Section 3.3 declar=
e explicitly what &quot;r=E2=80=9D denotes.</div><div>=C2=A0 b) In Section =
5 mention explicitly Schoof=E2=80=93Elkies=E2=80=93Atkin algorithm as an al=
gorithm used to calculate number of curve points or even fully cite it ther=
e.</div><div>=C2=A0 c) Add explicit description of algorithms used to exami=
ne curve on MOV-, CM- and twist-security as well as Frobenius trace calcula=
tion formula. Add =E2=80=9Cperform checks=E2=80=9D step in algorithms propo=
sed in sections 5.1 and 5.2.</div><div>2) =C2=A0 =C2=A0 =C2=A0Select and ad=
d a higher security curve (512- or 521-bit).</div><div>3) =C2=A0 =C2=A0 =C2=
=A0Add some explanations on parameter d of the selected 255-bit curve (the =
current draft leaves the question whether it is the first d to be returned =
by 5.2 algorithm and the reason of choice if it is not).=C2=A0<br></div><di=
v>4) =C2=A0 =C2=A0 =C2=A0Introduce a rigid base point generation algorithm =
(either the one that was proposed in the previous version of the draft or o=
ne using cryptographic hash function). We consider that important to ensure=
 the generated points could be safely used in applied protocols like passwo=
rd-based key establishment protocols (PAKE, EKE, PACE etc.) and RNGs like D=
ual EC DRBG.</div></div><div><br></div><div><br></div><div>Best regards,</d=
iv><div>Stanislav V. Smyshlyaev, Ph.D.,</div><div>Head of Information Secur=
ity Department,</div><div>CryptoPro LLC</div></div><div><br></div></div></d=
iv></div>
</div>

--001a113ce80e42c1a7050dcaac8a--


From nobody Thu Jan 29 07:24:49 2015
Return-Path: <codesinchaos@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 727421A1A9C for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 07:24:47 -0800 (PST)
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 TuD3YFkJiG_3 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 07:24:42 -0800 (PST)
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 A56161A0092 for <cfrg@irtf.org>; Thu, 29 Jan 2015 07:24:42 -0800 (PST)
Received: by mail-yk0-f171.google.com with SMTP id 10so13782812ykt.2 for <cfrg@irtf.org>; Thu, 29 Jan 2015 07:24:42 -0800 (PST)
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=pKDCz4u+oEfIBD2UXUDH5JT8ejfBjUfCldPIZg1CC20=; b=X+ZxX8+azwxVhYhhsVkZo0LjxaF9wuQ2rhIEs2o6L6lrG5k6ijEzI5IuOytun7s3Df CnsHSkFmp9IbH3SEDXbHJHeATfqPnCRWI5BUFaxkP2uLONqaSWowEMm8PxZF/vR5hHAp R4jAZFCQpRuNRtDgYJ8SwvIvb5ptyulduQ5MX52T9FnMFDo0Qrr2zHsQW5Vods5VyBUh lYZ9ThV8Hu4XQh7ZwFEWM5nmNlKiBX1pJSXsFXKe/DdU/GcEjG4x5O+fIKVVVXQeQyHz R0PSn4lEmagEnxp6IxggXbM4KCbFCb2UCbi0/bkyo2NB69T1pMOxDLXvsgQdVxVcYJYw VFaw==
MIME-Version: 1.0
X-Received: by 10.170.117.16 with SMTP id j16mr791353ykb.15.1422545081933; Thu, 29 Jan 2015 07:24:41 -0800 (PST)
Received: by 10.170.146.139 with HTTP; Thu, 29 Jan 2015 07:24:41 -0800 (PST)
In-Reply-To: <CAMr0u6kC_DpZo8LVtp1Ljmqzvcz1wtB_yhajEW3-bZ7mbqBbyA@mail.gmail.com>
References: <CAMr0u6=prmjMv7e+S5UAGVw+uCQWPk-f86Koa04GVx8CZs4J4Q@mail.gmail.com> <C877C13D-0178-4BDD-BC58-4E7C417600D1@akr.io> <CAMr0u6=pgV8P19zoEbztCas20XX68V40wN-3qwrbqAxQeMpJQg@mail.gmail.com> <54C924AC.7060504@akr.io> <CAMr0u6kC_DpZo8LVtp1Ljmqzvcz1wtB_yhajEW3-bZ7mbqBbyA@mail.gmail.com>
Date: Thu, 29 Jan 2015 16:24:41 +0100
Message-ID: <CAK9dnSzHsNAsdmDVodsQhSDPB5NY7bT5CGW1_t2nURUXivpxBg@mail.gmail.com>
From: CodesInChaos <codesinchaos@gmail.com>
To: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/AT6H2GboGn9UDec-mAU26dy1QEo>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] 512-bit twisted Edwards curve and curve generation methods in Russian standardization
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 15:24:47 -0000

On Thu, Jan 29, 2015 at 9:08 AM, Stanislav V. Smyshlyaev
<smyshsv@gmail.com> wrote:
> by a group of experts where the condition mentioned by Paul ("a
> group where even if a single person is trusted") is satisfied

How did the generation process work?

When just hashing together input from trusted and untrusted sources,
the last source to pick their value can run a brute-force search, to
manipulate the output. Depending on the time and money restrictions on
that attacker, it should be possible to execute such an attack even if
weak curves were significantly rarer than 2^{18}. I'd guess somewhere
around 2^{-40} to 2^{-60} is in range for a powerful attacker.

If generation was done using a commitment followed by revealing the
inputs only after all participants commited, then this is indeed
random as long as at least one participant is honest.


From nobody Thu Jan 29 08:30:18 2015
Return-Path: <dkg@fifthhorseman.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 852FB1A6EF4 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 08:30:16 -0800 (PST)
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 HHL8kWu2mZAR for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 08:30:14 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id 829AB1A212D for <cfrg@irtf.org>; Thu, 29 Jan 2015 08:30:13 -0800 (PST)
Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 83666F984 for <cfrg@irtf.org>; Thu, 29 Jan 2015 11:30:11 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 2EBDC1FD43; Thu, 29 Jan 2015 11:30:10 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: cfrg@irtf.org
In-Reply-To: <D0EED79E.204B1%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
Date: Thu, 29 Jan 2015 11:30:10 -0500
Message-ID: <878ugleei5.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Op6yZt6kEnx6l4KQzmSkWiWssdY>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 16:30:16 -0000

On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL wrote:
> The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All of the
> above?

If this lengthy process we're involved in doesn't turn out to be
reasonable vetting by a multistakeholder group, i'll be sorely
disappointed.

> Attractiveness of the ability to select a custom curve is similar to that
> of PGP Web of Trust: you can make a choice for yourself, rather than being
> forced into what other experts (or βexpertsβ :) decide for you.

This is different from the PGP Web of Trust.  If i'm communicating with
a new peer using TLS, and they want to use MagicCurveX that i've never
seen before, my TLS client is not going to be able to evaluate it
properly, certainly not before the TLS handshake expires.

Anyone can of course decide what curves are worth using, and can apply
their own analysis with their peers to come to that decision.  But if
you're communicating with the arbitrary outside world, there needs to be
some broader consensus about which curves to commonly use.

The act of naming and identifying the curve doesn't mean it's good, of
course; We have named codepoints for curves insufficient for modern
cryptanalysis, like sect163k1.  But you're right, people should be able
to use curves internally that no one else has to weigh in on.
fortunately, we can already do that (at least in TLS); we have a range
of the codepoints set aside for private use (RFC 4492):

  Values 0xFE00 through 0xFEFF are reserved for private use.

At any rate, saying that being able to select your curve using the
parameterized curve space, but leaving the algorithms and structure
(e.g. ECDSA, short-weierstrass) fixed by "experts" doesn't get all the
way the autonomy you want.  Better to use the private-use range, where
you can establish not just a curve of your choice, but also the
algorithms, point formats, etc.

  --dkg


From nobody Thu Jan 29 08:40:36 2015
Return-Path: <hanno@hboeck.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 8F5231A7013 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 08:40:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.001
X-Spam-Level: 
X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MANGLED_BACK=2.3, MIME_8BIT_HEADER=0.3, 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 W-U_pWZNao9o for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 08:40:33 -0800 (PST)
Received: from zucker.schokokeks.org (zucker.schokokeks.org [178.63.68.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C999C1A00F9 for <cfrg@irtf.org>; Thu, 29 Jan 2015 08:40:32 -0800 (PST)
Received: from pc (ip5b40021b.dynamic.kabel-deutschland.de [::ffff:91.64.2.27]) (AUTH: LOGIN hanno-default@schokokeks.org, TLS: TLSv1/SSLv3, 128bits, ECDHE-RSA-AES128-GCM-SHA256) by zucker.schokokeks.org with ESMTPSA; Thu, 29 Jan 2015 17:40:31 +0100 id 0000000000000040.0000000054CA627F.00007C4D
Date: Thu, 29 Jan 2015 17:40:29 +0100
From: Hanno =?UTF-8?B?QsO2Y2s=?= <hanno@hboeck.de>
To: cfrg@irtf.org
Message-ID: <20150129174029.57a79494@pc>
In-Reply-To: <54C9DD8E.9040302@akr.io>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com> <54C9DD8E.9040302@akr.io>
X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="=_zucker.schokokeks.org-31821-1422549631-0001-2"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/vvYSKTu282Nb8_n56QtUwyo-gEY>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 16:40:34 -0000

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_zucker.schokokeks.org-31821-1422549631-0001-2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, 29 Jan 2015 07:13:18 +0000
Alyssa Rowan <akr@akr.io> wrote:

> It's probably going to have to be "equivalent", unless NIST surprise
> us and come to like the curves and algorithms we do.

I hope I'm not telling any state secrets about NISTs plans here, but in
a conversation at RWC John Kelsey said something like "if the rest of
the Internet agrees on a good curve then probably NIST will just agree
to that".

I certainly understood it in a way that if CFRG comes up with something
that gets widespread support NIST will adopt that as their new
standard, too.

--=20
Hanno B=C3=B6ck
http://hboeck.de/

mail/jabber: hanno@hboeck.de
GPG: BBB51E42

--=_zucker.schokokeks.org-31821-1422549631-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJUymJ9AAoJEKWIAHK7tR5CBd0QAKAq3Cyrcq3Xn3TjD9qzC6Hr
7WC/GWucqURBUQZn6FiyQbX2tp3Fq7FK3Qw2UKcp/ARm2D1Jx5/U8naE6UNqwpMe
dlK5dbVmytOScF7UtTKLHz3+FdY4NCOAh+syWpewprVd9tm0fP8LGINB7pX6rtQI
CKRH9CIjgwq/eywjnhYDE3ty0Y0RlzSetHnD+89B4VvMVc4IWojoqDVSwZHfXWux
lhXz9ITog+JiwNl6P7+X+Xw4hYvJ69VBwysDQBv9q3y8O8L4HB04TX2qGbwz1PWp
gdvD5ZeEKgNLp9dk16ha8dLQFb9KnQFulDxZIbX1gRPMxV/aTCFG/EMFCLQd00ac
sewQsy0eD042VXafc1eegI7DXXt9E1R9aEAYgcEZT0qgA38Wp6/OaKG2Tp3KS0Fk
+NegKbF90stSfjvgcLZ04B89brP/DmhdWz3qZPolyQDGLYz17H/y/Ab0YwQaTLFP
0kqZTptNsAzUed9LvzSicH2rcSbcMHVo0b9MnGuX+LJUbAHmDqZBHnqaoZuJpXS5
HXYGpvf1U2P52XfSzSctHH/54SXmGdW+EUSvzeFHcfdREsqEmKD5nWjfbVke+H41
0TLKkuYiUF1Sfp7EiPX+ADe0zksfVaQS7yrlGo+S4bashaXAVYMrR3n+kNg4ecjc
VMnfcUNcBv5Q5e6eEOBX
=CgUk
-----END PGP SIGNATURE-----

--=_zucker.schokokeks.org-31821-1422549631-0001-2--


From nobody Thu Jan 29 08:50:17 2015
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 F3FE01A1EF6 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 08:50:14 -0800 (PST)
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 ZROFD7oQLH7t for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 08:50:13 -0800 (PST)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id E4BD21A1A9B for <cfrg@irtf.org>; Thu, 29 Jan 2015 08:50:12 -0800 (PST)
Received: from xct101cnc.rim.net ([10.65.161.201]) by mhs215cnc.rim.net with ESMTP/TLS/AES128-SHA; 29 Jan 2015 11:50:05 -0500
Received: from XCT116CNC.rim.net (10.65.161.216) by XCT101CNC.rim.net (10.65.161.201) with Microsoft SMTP Server (TLS) id 14.3.210.2; Thu, 29 Jan 2015 11:50:04 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT116CNC.rim.net ([::1]) with mapi id 14.03.0210.002; Thu, 29 Jan 2015 11:50:04 -0500
From: Dan Brown <dbrown@certicom.com>
To: "'dkg@fifthhorseman.net'" <dkg@fifthhorseman.net>, "'cfrg@irtf.org'" <cfrg@irtf.org>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5D///TDAIAACxgA//+0JACAAW5uAIAAUxDQ
Date: Thu, 29 Jan 2015 16:50:04 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5D44DD8@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net>
In-Reply-To: <878ugleei5.fsf@alice.fifthhorseman.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_0071_01D03BB9.B84E1D60"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/UqVHZ12JQRGRJRXBBaWrkHIhaKs>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 16:50:15 -0000

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


> -----Original Message-----
> From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Daniel Kahn =
Gillmor
> Sent: Thursday, January 29, 2015 11:30 AM
> To: cfrg@irtf.org
> Subject: Re: [Cfrg] big-endian short-Weierstrass please
>=20
> On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL =
wrote:
> > The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All =
of
> > the above?
>=20
> If this lengthy process we're involved in doesn't turn out to be =
reasonable
> vetting by a multistakeholder group, i'll be sorely disappointed.
>=20
> > Attractiveness of the ability to select a custom curve is similar to
> > that of PGP Web of Trust: you can make a choice for yourself, rather
> > than being forced into what other experts (or =
=E2=80=9Cexperts=E2=80=9D :) decide for you.
>=20
> This is different from the PGP Web of Trust.  If i'm communicating =
with a new
> peer using TLS, and they want to use MagicCurveX that i've never seen =
before,
> my TLS client is not going to be able to evaluate it properly, =
certainly not before
> the TLS handshake expires.
>=20
> Anyone can of course decide what curves are worth using, and can apply =
their
> own analysis with their peers to come to that decision.  But if you're
> communicating with the arbitrary outside world, there needs to be some
> broader consensus about which curves to commonly use.

[DB] Isn't TLS 1.3 proposing a DH group negotiation mechanism, where =
peers could configure their supported set of (EC)DHE group, then at =
run-time find something in the intersection of their supported curves?  =
Having an option to fully specify a custom curve in this mix is not =
requiring any peers to support MagicCurveX. =20

>=20
> The act of naming and identifying the curve doesn't mean it's good, of =
course;
> We have named codepoints for curves insufficient for modern =
cryptanalysis, like
> sect163k1.  But you're right, people should be able to use curves =
internally that
> no one else has to weigh in on.
> fortunately, we can already do that (at least in TLS); we have a range =
of the
> codepoints set aside for private use (RFC 4492):
>=20
>   Values 0xFE00 through 0xFEFF are reserved for private use.

[DB] Wouldn't users of these private values have to then customize their =
software this?  Well, I guess TLS would work for that.  So, it seems =
that the advantage of specified curves, is that if a trustworthy =
WebSiteABC TLS server, elects to use MagicCurveX, then anonymous TLS =
clients could connect to WebSiteABC, relying on the current trust of the =
WebSiteABC, and their own software.





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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3duQHJpbS5uZXSB
E2Ricm93bkBjZXJ0aWNvbS5jb20wHQYDVR0OBBYEFFdFrujr5LyMGa3Hl1U4MTjlEtfvMB8GA1Ud
IwQYMBaAFObbryVSYEL0jYI1VF2A64ahrO/cMIIBMQYDVR0fBIIBKDCCASQwggEgoIIBHKCCARiG
gctsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1NQ0EwMllL
RixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmln
dXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFz
ZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIZIaHR0cDovL21jYTAyeWtmLnJpbS5u
ZXQvQ2VydEVucm9sbC9SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YuY3JsMIIBQQYI
KwYBBQUHAQEEggEzMIIBLzCBwgYIKwYBBQUHMAKGgbVsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGlu
YXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049
U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNh
dGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MGgGCCsGAQUFBzAChlxo
dHRwOi8vbWNhMDJ5a2YucmltLm5ldC9DZXJ0RW5yb2xsL01DQTAyWUtGLnJpbS5uZXRfUklNJTIw
U3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGKDQpLmNydDANBgkqhkiG9w0BAQUFAAOCAQEActBk
hryrMh5+C+8YiOrR8xi+G1NkUycfNLuz4fYdQzFNB9yWxyRs2K0ydl0X5PZXejhbIif0dFoyaxnh
g/D5hYfeGIhXfAOFG22EpMJWXVOavqYLxslnc2enihWAYcWkjPfE6tf3XMXkodFkMYvEd+qFj8eU
vxbbcR1dBqiBFNNDcKlAKn/oElp/iI/LjUGMEb+tJdHttsGExvQzSd1zwk1U6cOinYD82Y08zA5b
z38l5bE2+plmfX3EQ8vCKYA95psgGg3hsffn150smpY7HeEPGRZh9vglGfi2wnMqY/QgO+qs78dq
O/C1be3quQU3WHQ6YcZr3JP1Rc7yj76K7jCCBr8wggSnoAMCAQICEDIa85KxFFmUTU0vlRGze+Ew
DQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcwFQYKCZImiZPyLGQBGRYH
d2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcNMDYxMDEzMDEyNDU1WhcN
MTYxMDEzMDEzMDQxWjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxFzAVBgoJkiaJk/IsZAEZFgd3
aW5kb3dzMR0wGwYDVQQDExRSSU0gUm9vdCBDQSBNQ0EwMVlLRjCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAMbous78rVQBLT87+jYSuzmZ2osP40BMhFbJA3+cs3BZC0//uT87SG7/nhZi
9Qj9hYby7/HkGSQyheGL/lLIzxDdZV+AwxiirdDT6ck/acEMxWolLdK5xEYEmm6OxLaUuEvg7i/B
vXPpZlsA6m9FFrTzHVX2693w8IoMs9cofr1TAB3YYDnvZTwupz7YifSF02pu1eZiZg09Jjaav9Hy
aNyRGjbwyqFwTpCr+iHW7SsSszyJxulWGgnYCQgE95loK/ZMYhEBFCSq7yNn1yNM0WJ5S+uPILyv
OKXbE9sWSxba+DnWQJuEZCvFPnILq5Ugq+jVap326uv9zejBpsnPUgdgMoZNlUuuu+e1eJwc3mng
/rK6ZOCF1NzUzP/mIEdc1UuNV8L2WqvVH+fY9EyYTfcRlWTvO9XlVa9lXzca9MTqlKcHMYeSWWJF
nJlCRZWIkIdAjNj632g0U06kWUHeBd8VJXFxQFzhob2lyr4pHiOv7rZ1+rwpw8DFMZnp85b/HqTW
rcQ7LiIDljuKX6oBjMs1qNobnUPe/ucp1Kgy19+J61M7MxniBNyqKmLJLMTBd7aiIGnbfYTVl2j/
xJJ2aUQJmj9LNFeWb4Isl8PVK6p1sJkWy0JOx52HNIR0AY16AcikojsoYEkvci+mvuwANq4QT6bE
lSPS2AbNnDSpT7GXAgMBAAGjggGVMIIBkTATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMC
AUYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU1mmCZCQWwcwk2/EUfUcSfNzJTe4wggEpBgNV
HR8EggEgMIIBHDCCARigggEUoIIBEIaBxGxkYXA6Ly8vQ049UklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YsQ049TUNBMDFZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJl
dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGR2h0dHA6
Ly9tY2EwMXlrZi53aW5kb3dzLmxvY2FsL0NlcnRFbnJvbGwvUklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YuY3JsMBAGCSsGAQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4ICAQBDnlhbuDlU58ff
o2JPdog62tn9QXOY9VnrBBiDZeFQmPVicup9e2/4dnw5o4/SnyLaNyxNlno++5Uiar/y0ne8J300
FWVW9cAXtmbfi7jwKour1kgwEFTn3TjGFbuYps553/mTTC3bk6l2f2xUCk1rINqoQVsGomH8RGO5
1YN/mX0rasHPUd7/7Rx/m/ZF9xbii6FUOikq6lMgYn4SEY+e3jsOvyYzwPkiHf6dshGfsZgDUN9b
xNwRxUZttJGRx6gH3Qpk7dUuyw0ixwY9xmVyBVIHvWjyqswF3ntgwmEz92GHIKz/xWxRdkahkSIT
zPjHYya2jI3sfpzU/tigvxCFrG1PQ4BSCNMByqUcfK5STTfJJm/x/ahqnDWlvUP6cFE6V9W10nW8
72BbNzWOypmGIouENEUAhq/ejrw09P0uvyK51vr6mY5z1djF6hLskNC+R11Tpwou+vbhmHEZBKOc
cxCfxDL49O7wlpxu4fcpDYSxBDHMoFZgXVz/ajqqIHcjyQdAM8QGBqgkjE/Dq7NTP7K2Ul1An0nx
DR+YgXe28R+7l5he5GzhIIaJuwHHAtgpbeA1NLY/bBciFoOR+s8ujS3rZtv5M3Q95hmN7trVrYo1
Z3dglmNmLM2KNZWwwHxH4xi//bhaR+/WbfXpEUg+WW0p9Uja9Z443hqVd48MrjCCB0YwggUuoAMC
AQICChJuoPAAAAAAAiswDQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcw
FQYKCZImiZPyLGQBGRYHd2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcN
MTQwNDAyMDA1MTEyWhcNMTYwNDAyMDEwMTEyWjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYK
CZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZS0YwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzrn3UT996pLvUIVlnExxcXGmYftIOq1qMwitW
RCBe2j32VmDvzlJseIkfQuXDqjWnoqoE4sxQjxD5QNwhyBw9eXMCvLjHBW+HM4+HcmGIdan2w17E
4rR+RHVK6NzvkE1Gm4ziBTDr2jzSliZJpowLM+M/+cY2pyym074TQx+QCZQOKIqLnEgZ2uYw4kSj
nCcE7eJ+WmJFq9bX6Cv9SONQfgN5Z3O1N/36lgavm/G6Amt/ePNE0AhcJwxin7Fahkx6/SjRbf0r
Oa8uhCMxK8ebqTqD0+0VpViARFterasW5FTU2rcRFLHwwWV67yoFc2fbozkj5iseBXctM8NmqKt5
AgMBAAGjggMhMIIDHTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTm268lUmBC9I2CNVRdgOuG
oazv3DALBgNVHQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQQwIwYJKwYBBAGCNxUCBBYEFCLdxB/L
akuvuaYdTyqIgHmfibLUMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMB8GA1UdIwQYMBaAFNZp
gmQkFsHMJNvxFH1HEnzcyU3uMIIBKQYDVR0fBIIBIDCCARwwggEYoIIBFKCCARCGgcRsZGFwOi8v
L0NOPVJJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLENOPU1DQTAxWUtGLENOPUNEUCxDTj1QdWJs
aWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPXdpbmRv
d3MsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNS
TERpc3RyaWJ1dGlvblBvaW50hkdodHRwOi8vbWNhMDF5a2Yud2luZG93cy5sb2NhbC9DZXJ0RW5y
b2xsL1JJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLmNybDCCATwGCCsGAQUFBwEBBIIBLjCCASow
gbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1SSU0lMjBSb290JTIwQ0ElMjBNQ0EwMVlLRixDTj1B
SUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlv
bixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0
aWZpY2F0aW9uQXV0aG9yaXR5MGoGCCsGAQUFBzAChl5odHRwOi8vbWNhMDF5a2Yud2luZG93cy5s
b2NhbC9DZXJ0RW5yb2xsL01DQTAxWUtGLndpbmRvd3MubG9jYWxfUklNJTIwUm9vdCUyMENBJTIw
TUNBMDFZS0YuY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCUe8BMuuw2GW4AUAag80hqgwOQyezrSatL
SIadEDvzg3LgXMJcN7onC+1B7vHsMxVMbFz3V+85WSKtzCtaBe5rhUCXLBZEGbM+WPavYgYMnUsD
TpJwSXiDaM9Ym/ZLFsgfo3Qv7rfglydpqPCBfHUEQys2KeBVsDGd7HDK5Nk5fNaSmK0KgIBIvbXR
bJKzhTsuctYGlOf/2nFtuoxWcdhu7t6UR7DbSTerjug7rvCZH4bie5cphsu4lZDXdNRp2IKWVEF6
0VcEK8dXK1hZXEGgjuen7R03uaA+7VsSr7eUZSLiouG7XnvXWik11aNCgBiQcIGsHVRIccHphmfS
sFaZ0Bc+4/c/+K/v7X7RvdE29J9b1DqB2iV2SGZp58M0JLscohJ9uY0SJj8Hwl9YeuznijFBIC2y
Psb1V9CgoRtBl+Ek37tPp1Wm4XSS+as2kcdcsZwiM/LywbFvYDEBa71b0mquxjisPyPvmVccA0e6
WW6RDNYKUqBJsZDpjTbRZkQA7CmzrOK6YHip2F/92ZYmpqM84BsEkLuf6kzzk+r0OVsWaFP+plU3
MfqtAeKtBgJu6yd4SYbA9eFX9ePeIzBaCjTzIcd+CclwA8SeoAgP07Ut2WcB3QnD7fcU6CBegHSd
7504Ty34G+FymbG6ZBBUU0exF44VAplxv4rWFA7mPTGCAvMwggLvAgEBMF4wUDETMBEGCgmSJomT
8ixkARkWA25ldDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEyOTE2NTAwNFowIwYJKoZIhvcNAQkEMRYEFM5a
pbdvoDAtfS5MwfXwV3giBRbwMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYCnVgFdqCxntLjSbggtM/6+fcy/bRo9
W3OJKJT43ApVou0SGOi1v++y3s93IDx9+Y65SPR4xjCFEhFylqA0YCpNyaIwtSOE86VHjrZgITOs
lokWnotqSzh0hFPgzkfJBJhT5pgHnBNxnfW+hYhUMpcPWh3aemWgw90/HpRHAXeJ/AAAAAAAAA==

------=_NextPart_000_0071_01D03BB9.B84E1D60--


From nobody Thu Jan 29 09:17:00 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3CCAF1A8742 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:16:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.233
X-Spam-Level: 
X-Spam-Status: No, score=0.233 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O5P8P37ZZbBK for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:16:55 -0800 (PST)
Received: from homiemail-a104.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 2BF751A7023 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:16:55 -0800 (PST)
Received: from homiemail-a104.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a104.g.dreamhost.com (Postfix) with ESMTP id A55EC20046912; Thu, 29 Jan 2015 09:16:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to:content-transfer-encoding; s= cryptonector.com; bh=zZARoeNKWrTnvCWVQbzf2QTlYOk=; b=QnCYtUlNck1 JG5EEYgkuZ3R+OHBwwIah7XI5UN7QD92y70G+uefRN8Yhsg6tap4m2X+CMJsk7BR MYoOqGAZ7ViArdze/CRR1rPRwpQkaHD29kQHhT3CUZvbyQ0AuxrfiBOUtCwkQbMx yyT3FwiYwyllurJ2ENHxVUi8Wy01g8K0=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a104.g.dreamhost.com (Postfix) with ESMTPA id 4AC3B2008232B; Thu, 29 Jan 2015 09:16:54 -0800 (PST)
Date: Thu, 29 Jan 2015 11:16:53 -0600
From: Nico Williams <nico@cryptonector.com>
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
Message-ID: <20150129171649.GR3110@localhost>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <D0EED79E.204B1%uri@ll.mit.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/rLBehx5YTU3O6S-eQHWKV_a6-mQ>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 17:16:56 -0000

On Wed, Jan 28, 2015 at 11:38:49PM +0000, Blumenthal, Uri - 0558 - MITLL =
wrote:
> On 1/28/15, 18:10 , "Nico Williams" <nico@cryptonector.com> wrote:
> >On Wed, Jan 28, 2015 at 05:30:28PM -0500, Daniel Kahn Gillmor wrote:
> >> On Wed 2015-01-28 16:23:27 -0500, Dan Brown wrote:
> >> > For example, RFC 4492 allows curves to be specified in Weierstrass
> >> > form, not just as named form.  I don't know if any TLS implementat=
ions
> >> > support the specified curve option, but if they do, then it would =
be
> >> > nice if the new implementations could talk to them, using the new
> >> > curves.
> >>=20
> >> Over in the TLS WG, we're working on actively deprecating the custom
> >> curve selection mechanism and moving strictly toward pre-named curve=
s
> >> (this is true for finite-field DH as well).  Custom curve and FFDHE
> >> group selection will be gone in TLS 1.3.
> >>=20
> >>=E2=80=A6=E2=80=A6
> >>=20
> >> I don't think this is a particularly useful half-measure.  I'd rathe=
r
> >> see implementations pick up new, reasonably-vetted curves than try t=
o
> >> muddle through supporting arbitrary curves provided by the peer.
> >
> >+1
>=20
> The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All of =
the
> above?

Besides the answers given already, this question is kinda strange.  Why
say "by whom"?  It's implied in "vetted" that the entities doing the
vetting are acceptable to the user.  And anyways, the question is not
relevant to Daniel K. G.'s point, which was: negotiate from sets of
known curves rather than negotiate arbitrary curves whose parameters get
sent to you by your peer.  If we do this then each curve can have its
own point format on the wire, with whatever endianness it wants.

(Mind you, point format could be yet another set of parameters to
negotiate, but why bother with so much complexity?)

Generalization often is nice, but here it would mean having to engage in
an expensive effort to write a pile of code that we wouldn't otherwise
need only for the sake of generalization.  I don't see a win there.

Dan B. doesn't need us to use a generic point encoding for all curves in
order for his preferred curves to be usable.  There is no advantage to
be had in using a generic point encoding here, and plenty of
disavantages (among them: more code, instant obsolescence of existing
implementations of curves we might end up approving of).  Please no.

> Attractiveness of the ability to select a custom curve is similar to th=
at
> of PGP Web of Trust: you can make a choice for yourself, rather than be=
ing
> forced into what other experts (or =E2=80=9Cexperts=E2=80=9D :) decide =
for you.

Yes, you might trust your selection, but if your peers don't then you
lose.  The flip side is that if you want to talk to a peer that wants
you to use their curve, you might have to trust them, and how would you
know whether to trust them?  In a small network you could manage this,
and one generic point encoding will help you, but you could pick one
from a set of more than one.  And anyways, it'd be a small network --
why should the Internet community bend over backwards to make it easy
for you to pick your very own curves for use in your very own small
network?  There are still no advantages to be found in your proposition
for having one generic point format for all curves.

Outside your small network only pre-defined curves will work.  The
vetting is what we're doing now.  It doesn't have to happen only here,
and we needn't be the only vetters, but we don't need a single generic
point encoding to allow multiple vetters.

Nico
--=20


From nobody Thu Jan 29 09:26:18 2015
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 44F161A86EC for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:26:08 -0800 (PST)
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 s9BGYiUbXm3E for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:25:55 -0800 (PST)
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 E912F1A0126 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:25:54 -0800 (PST)
Received: by mail-yk0-f175.google.com with SMTP id 9so14395155ykp.6 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:25:54 -0800 (PST)
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=GKUsA1x2AbsPJWOTRsWlhdh7mxn5Tvk3n6V8DXKv83I=; b=PfS8PAaJP91rqdZcJnXF5GBJVwTivk+zvGV1E8UROqeSRjIb6D6TUjSJA9ntImjS/P pz2IdONcpD5cRYk1N55ELa08uvj//nTqlnagGugFdcZ/mB62JG/Uw91oDVgJ6DTUpPt7 fKjlzR5KqVnfN5OTosgtN74HyVExQJNtOL25Lv2V+IPJ5D3opAbrcY9wzPK9pG6jVG5W 9kkvyjVUg2HePtgmTkTsvD/Jw9VVktvE0XRj0B88w1AJP9zOHN2rBzX4smEH5cw4QSMF JtXwF3+XqN/PkbBRyhfkGXBH1WlWciwwSzD+YUhQm1Dhch6SKS9rve2gcgSz/khdR0qp 8K6w==
MIME-Version: 1.0
X-Received: by 10.170.112.215 with SMTP id e206mr1184261ykb.126.1422552354057;  Thu, 29 Jan 2015 09:25:54 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Thu, 29 Jan 2015 09:25:53 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Thu, 29 Jan 2015 09:25:53 -0800 (PST)
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D44DD8@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D44DD8@XMB116CNC.rim.net>
Date: Thu, 29 Jan 2015 09:25:53 -0800
Message-ID: <CACsn0cn23jC2q-_5q8oFuhw+_j45yZWZ9SL+mP+b=SMK7mQXUA@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Dan Brown <dbrown@certicom.com>
Content-Type: multipart/alternative; boundary=001a1137b118bcf258050dcdc72e
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/J4g7e8voPT-X9bxyGL3lg9zmpCI>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 17:26:08 -0000

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

On Jan 29, 2015 8:50 AM, "Dan Brown" <dbrown@certicom.com> wrote:
>
>
> > -----Original Message-----
> > From: Cfrg [mailto:cfrg-bounces@irtf.org] On Behalf Of Daniel Kahn
Gillmor
> > Sent: Thursday, January 29, 2015 11:30 AM
> > To:cfrg@irtf.org
> > Subject: Re: [Cfrg] big-endian short-Weierstrass please
> >
> > On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL wrote:
> > > The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All o=
f
> > > the above?
> >
> > If this lengthy process we're involved in doesn't turn out to be
reasonable
> > vetting by a multistakeholder group, i'll be sorely disappointed.
> >
> > > Attractiveness of the ability to select a custom curve is similar to
> > > that of PGP Web of Trust: you can make a choice for yourself, rather
> > > than being forced into what other experts (or =E2=80=9Cexperts=E2=80=
=9D :) decide for
you.
> >
> > This is different from the PGP Web of Trust.  If i'm communicating with
a new
> > peer using TLS, and they want to use MagicCurveX that i've never seen
before,
> > my TLS client is not going to be able to evaluate it properly,
certainly not before
> > the TLS handshake expires.
> >
> > Anyone can of course decide what curves are worth using, and can apply
their
> > own analysis with their peers to come to that decision.  But if you're
> > communicating with the arbitrary outside world, there needs to be some
> > broader consensus about which curves to commonly use.
>
> [DB] Isn't TLS 1.3 proposing a DH group negotiation mechanism, where
peers could configure their supported set of (EC)DHE group, then at
run-time find something in the intersection of their supported curves?
Having an option to fully specify a custom curve in this mix is not
requiring any peers to support MagicCurveX.
>
> >
> > The act of naming and identifying the curve doesn't mean it's good, of
course;
> > We have named codepoints for curves insufficient for modern
cryptanalysis, like
> > sect163k1.  But you're right, people should be able to use curves
internally that
> > no one else has to weigh in on.
> > fortunately, we can already do that (at least in TLS); we have a range
of the
> > codepoints set aside for private use (RFC 4492):
> >
> >   Values 0xFE00 through 0xFEFF are reserved for private use.
>
> [DB] Wouldn't users of these private values have to then customize their
software this?  Well, I guess TLS would work for that.  So, it seems that
the advantage of specified curves, is that if a trustworthy WebSiteABC TLS
server, elects to use MagicCurveX, then anonymous TLS clients could connect
to WebSiteABC, relying on the current trust of the WebSiteABC, and their
own software.

This is not how TLS negotiation works: the client offers and the server
picks. Due to vulnerabilities in all versions of TLS (still unfixed) one
always has to check the offered parameters for correctness.

That's on top of the fact that people don't want to use Curve25519 because
it's Curve25519. They want to use it because the design choices support
high speed secure implementations.

It's possible to get the existing extension to do this, but only if we have
a magic list of what to offer, and do all sorts of contortions in our
calculations. Much easier to negotiate an extension as the TLS WG
extensively discussed.

Sincerely,
Watson Ladd

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

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

<p dir=3D"ltr"><br>
On Jan 29, 2015 8:50 AM, &quot;Dan Brown&quot; &lt;<a href=3D"mailto:dbrown=
@certicom.com">dbrown@certicom.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: Cfrg [mailto:<a href=3D"mailto:cfrg-bounces@irtf.org">cfrg-=
bounces@irtf.org</a>] On Behalf Of Daniel Kahn Gillmor<br>
&gt; &gt; Sent: Thursday, January 29, 2015 11:30 AM<br>
&gt; &gt; To:<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a><br>
&gt; &gt; Subject: Re: [Cfrg] big-endian short-Weierstrass please<br>
&gt; &gt;<br>
&gt; &gt; On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL =
wrote:<br>
&gt; &gt; &gt; The problem is - reasonably-vetted by who? NIST? DJB? Yourse=
lf? All of<br>
&gt; &gt; &gt; the above?<br>
&gt; &gt;<br>
&gt; &gt; If this lengthy process we&#39;re involved in doesn&#39;t turn ou=
t to be reasonable<br>
&gt; &gt; vetting by a multistakeholder group, i&#39;ll be sorely disappoin=
ted.<br>
&gt; &gt;<br>
&gt; &gt; &gt; Attractiveness of the ability to select a custom curve is si=
milar to<br>
&gt; &gt; &gt; that of PGP Web of Trust: you can make a choice for yourself=
, rather<br>
&gt; &gt; &gt; than being forced into what other experts (or =E2=80=9Cexper=
ts=E2=80=9D :) decide for you.<br>
&gt; &gt;<br>
&gt; &gt; This is different from the PGP Web of Trust.=C2=A0 If i&#39;m com=
municating with a new<br>
&gt; &gt; peer using TLS, and they want to use MagicCurveX that i&#39;ve ne=
ver seen before,<br>
&gt; &gt; my TLS client is not going to be able to evaluate it properly, ce=
rtainly not before<br>
&gt; &gt; the TLS handshake expires.<br>
&gt; &gt;<br>
&gt; &gt; Anyone can of course decide what curves are worth using, and can =
apply their<br>
&gt; &gt; own analysis with their peers to come to that decision.=C2=A0 But=
 if you&#39;re<br>
&gt; &gt; communicating with the arbitrary outside world, there needs to be=
 some<br>
&gt; &gt; broader consensus about which curves to commonly use.<br>
&gt;<br>
&gt; [DB] Isn&#39;t TLS 1.3 proposing a DH group negotiation mechanism, whe=
re peers could configure their supported set of (EC)DHE group, then at run-=
time find something in the intersection of their supported curves?=C2=A0 Ha=
ving an option to fully specify a custom curve in this mix is not requiring=
 any peers to support MagicCurveX.<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; The act of naming and identifying the curve doesn&#39;t mean it&#=
39;s good, of course;<br>
&gt; &gt; We have named codepoints for curves insufficient for modern crypt=
analysis, like<br>
&gt; &gt; sect163k1.=C2=A0 But you&#39;re right, people should be able to u=
se curves internally that<br>
&gt; &gt; no one else has to weigh in on.<br>
&gt; &gt; fortunately, we can already do that (at least in TLS); we have a =
range of the<br>
&gt; &gt; codepoints set aside for private use (RFC 4492):<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 =C2=A0Values 0xFE00 through 0xFEFF are reserved for private=
 use.<br>
&gt;<br>
&gt; [DB] Wouldn&#39;t users of these private values have to then customize=
 their software this?=C2=A0 Well, I guess TLS would work for that.=C2=A0 So=
, it seems that the advantage of specified curves, is that if a trustworthy=
 WebSiteABC TLS server, elects to use MagicCurveX, then anonymous TLS clien=
ts could connect to WebSiteABC, relying on the current trust of the WebSite=
ABC, and their own software.</p>
<p dir=3D"ltr">This is not how TLS negotiation works: the client offers and=
 the server picks. Due to vulnerabilities in all versions of TLS (still unf=
ixed) one always has to check the offered parameters for correctness.</p>
<p dir=3D"ltr">That&#39;s on top of the fact that people don&#39;t want to =
use Curve25519 because it&#39;s Curve25519. They want to use it because the=
 design choices support high speed secure implementations. </p>
<p dir=3D"ltr">It&#39;s possible to get the existing extension to do this, =
but only if we have a magic list of what to offer, and do all sorts of cont=
ortions in our calculations. Much easier to negotiate an extension as the T=
LS WG extensively discussed.</p>
<p dir=3D"ltr">Sincerely, <br>
Watson Ladd</p>
<p dir=3D"ltr">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cfrg mailing list<br>
&gt;<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
&gt;<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg">http://www.irtf.o=
rg/mailman/listinfo/cfrg</a><br>
&gt;</p>

--001a1137b118bcf258050dcdc72e--


From nobody Thu Jan 29 09:36:39 2015
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 0FBA11A874B for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:36:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TJoKIomrK6d7 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:36:23 -0800 (PST)
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 CAA7A1A8768 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:36:16 -0800 (PST)
Received: by mail-lb0-f182.google.com with SMTP id l4so30663021lbv.13 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:36:15 -0800 (PST)
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=CwEmx0CiR+EEyf0vjvX1pQqIPxnkssizjzg1iml2dRc=; b=Kv0y+p+0iW6iIdc4Ho6cN2neOQ/6IhvhPhAqxUr5Ypa7uY+9jEJSd21oOrvsF5ZMVU fcPh2b4oFygXgiWjnz7jx+IBHnjof2X5ac6n5w4ba+a5KqIbjlorOkW+9mV54hV5Hpl7 jox82Ogejlrk0fopVhPPFFFoQLBxehkMnMVTbhpZvOTB+g01su7VfT5Fj1z+2HH7l7gq MgBip/krJFObdr8bTrWH0X0duzv/JTPFLWjjsOpu0ajPziN1Q/mATlKp5Y69sQ2OydOQ sNlnuqsNL1I8jbMwCpz6NKEpD2cW4CHNXchPWnmj6FTDXpVm5/bCGFW957HWVhSEqieR oazw==
MIME-Version: 1.0
X-Received: by 10.112.160.193 with SMTP id xm1mr2252538lbb.5.1422552975194; Thu, 29 Jan 2015 09:36:15 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 09:36:15 -0800 (PST)
In-Reply-To: <878ugleei5.fsf@alice.fifthhorseman.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net>
Date: Thu, 29 Jan 2015 12:36:15 -0500
X-Google-Sender-Auth: 1jvQR7-jxqo1GFuUfTzKENiTv9k
Message-ID: <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Content-Type: multipart/alternative; boundary=001a11c33818c2bf3c050dcdec51
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/-LTaE8l8Tup60b4evRPZhLIFINs>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 17:36:25 -0000

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

On Thu, Jan 29, 2015 at 11:30 AM, Daniel Kahn Gillmor <dkg@fifthhorseman.ne=
t
> wrote:

> On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL wrote:
> > The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All of
> the
> > above?
>
> If this lengthy process we're involved in doesn't turn out to be
> reasonable vetting by a multistakeholder group, i'll be sorely
> disappointed.
>
> > Attractiveness of the ability to select a custom curve is similar to th=
at
> > of PGP Web of Trust: you can make a choice for yourself, rather than
> being
> > forced into what other experts (or =E2=80=9Cexperts=E2=80=9D :) decide =
for you.
>
> This is different from the PGP Web of Trust.  If i'm communicating with
> a new peer using TLS, and they want to use MagicCurveX that i've never
> seen before, my TLS client is not going to be able to evaluate it
> properly, certainly not before the TLS handshake expires.
>

+1

Deploying and implementing cryptosystems requires an enormous amount of
expertise and they can fail in many different ways of which a flaw in the
cryptographic algorithm security is very very rare.

We are not using the web of trust model to develop code so why on earth try
to apply it to choice of algorithm?

The reason for applying web of trust is when there is no good alternative.
I have written papers recently where I show how we might make the web of
trust tractable and practical but that is because validating credentials
for six billion people is a very different problem.



> Anyone can of course decide what curves are worth using, and can apply
> their own analysis with their peers to come to that decision.  But if
> you're communicating with the arbitrary outside world, there needs to be
> some broader consensus about which curves to commonly use.
>

More importantly, I can't use your curves unless you can prove to me that
they are secure. And the fact we are having trouble doing that in this
group proves that it is not possible to achieve that in a protocol.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 11:30 AM, Daniel Kahn Gillmor <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:dkg@fifthhorseman.net" target=3D"_blank">dkg@fifthho=
rseman.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span cl=
ass=3D"">On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL w=
rote:<br>
&gt; The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All of=
 the<br>
&gt; above?<br>
<br>
</span>If this lengthy process we&#39;re involved in doesn&#39;t turn out t=
o be<br>
reasonable vetting by a multistakeholder group, i&#39;ll be sorely<br>
disappointed.<br>
<span class=3D""><br>
&gt; Attractiveness of the ability to select a custom curve is similar to t=
hat<br>
&gt; of PGP Web of Trust: you can make a choice for yourself, rather than b=
eing<br>
&gt; forced into what other experts (or =E2=80=9Cexperts=E2=80=9D :) decide=
 for you.<br>
<br>
</span>This is different from the PGP Web of Trust.=C2=A0 If i&#39;m commun=
icating with<br>
a new peer using TLS, and they want to use MagicCurveX that i&#39;ve never<=
br>
seen before, my TLS client is not going to be able to evaluate it<br>
properly, certainly not before the TLS handshake expires.<br></blockquote><=
div><br></div><div>+1=C2=A0</div><div><br></div><div>Deploying and implemen=
ting cryptosystems requires an enormous amount of expertise and they can fa=
il in many different ways of which a flaw in the cryptographic algorithm se=
curity is very very rare.=C2=A0</div><div><br></div><div>We are not using t=
he web of trust model to develop code so why on earth try to apply it to ch=
oice of algorithm?</div><div><br></div><div>The reason for applying web of =
trust is when there is no good alternative. I have written papers recently =
where I show how we might make the web of trust tractable and practical but=
 that is because validating credentials for six billion people is a very di=
fferent problem.</div><div><br></div><div>=C2=A0</div><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">
Anyone can of course decide what curves are worth using, and can apply<br>
their own analysis with their peers to come to that decision.=C2=A0 But if<=
br>
you&#39;re communicating with the arbitrary outside world, there needs to b=
e<br>
some broader consensus about which curves to commonly use.<br></blockquote>=
<div><br></div><div>More importantly, I can&#39;t use your curves unless yo=
u can prove to me that they are secure. And the fact we are having trouble =
doing that in this group proves that it is not possible to achieve that in =
a protocol.</div><div><br></div></div></div></div>

--001a11c33818c2bf3c050dcdec51--


From nobody Thu Jan 29 09:50:57 2015
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 B9AED1A1EF1 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:50:44 -0800 (PST)
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 RzU2hHjrcT8M for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:50:38 -0800 (PST)
Received: from mail-yk0-x22a.google.com (mail-yk0-x22a.google.com [IPv6:2607:f8b0:4002:c07::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A97A81A1BC8 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:50:38 -0800 (PST)
Received: by mail-yk0-f170.google.com with SMTP id q9so14533832ykb.1 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:50:38 -0800 (PST)
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=l+z8EPnUhKtUi/wYaqpM+fleyEaiqQu6QIlR44FMHMA=; b=OYbDyMTPzVOOh3366hXBFcH53nY1u+TQR4R+QQx99WSgFf5TOpe5KUloWx7RKa4hQQ 3KczrZ47dSHAdZxfFj9QxOaoVtjo4kOugkUems/Nx9V8oXVqNHd8Ggo03fQTeX6vI8cu T/0qaRbyLflovPqwkxEYn7YIqycIumvxowNIPrKQunxwwtXtC2w+UK5k7ydtek8TD6ZZ 7gTningq5vyfbBxNWHgsri+u1D5rzasgCzhBqinXQ1FsNzgqSljnKdW2D+vlxLpVSqxW x6rmBVTr+MABINk7T1gXAsCvtAXa/WVI+YxxJKbM7uSpiBfODF/KaubK70eEfcYo+4Is +Wfg==
MIME-Version: 1.0
X-Received: by 10.236.61.8 with SMTP id v8mr1110509yhc.44.1422553837880; Thu, 29 Jan 2015 09:50:37 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Thu, 29 Jan 2015 09:50:37 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Thu, 29 Jan 2015 09:50:37 -0800 (PST)
In-Reply-To: <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com>
Date: Thu, 29 Jan 2015 09:50:37 -0800
Message-ID: <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=089e0160a6d42e4c38050dce206d
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/mAxL6BvyOrlqAoHIvWb-2bR-UFU>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 17:50:44 -0000

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

On Jan 29, 2015 9:36 AM, "Phillip Hallam-Baker" <phill@hallambaker.com>
wrote:
>
>
>
> On Thu, Jan 29, 2015 at 11:30 AM, Daniel Kahn Gillmor <
dkg@fifthhorseman.net> wrote:
>>
>> On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL wrote:
>> > The problem is - reasonably-vetted by who? NIST? DJB? Yourself? All of
the
>> > above?
>>
>> If this lengthy process we're involved in doesn't turn out to be
>> reasonable vetting by a multistakeholder group, i'll be sorely
>> disappointed.
>>
>> > Attractiveness of the ability to select a custom curve is similar to
that
>> > of PGP Web of Trust: you can make a choice for yourself, rather than
being
>> > forced into what other experts (or =E2=80=9Cexperts=E2=80=9D :) decide=
 for you.
>>
>> This is different from the PGP Web of Trust.  If i'm communicating with
>> a new peer using TLS, and they want to use MagicCurveX that i've never
>> seen before, my TLS client is not going to be able to evaluate it
>> properly, certainly not before the TLS handshake expires.
>
>
> +1
>
> Deploying and implementing cryptosystems requires an enormous amount of
expertise and they can fail in many different ways of which a flaw in the
cryptographic algorithm security is very very rare.
>
> We are not using the web of trust model to develop code so why on earth
try to apply it to choice of algorithm?
>
> The reason for applying web of trust is when there is no good
alternative. I have written papers recently where I show how we might make
the web of trust tractable and practical but that is because validating
credentials for six billion people is a very different problem.
>
>
>>
>> Anyone can of course decide what curves are worth using, and can apply
>> their own analysis with their peers to come to that decision.  But if
>> you're communicating with the arbitrary outside world, there needs to be
>> some broader consensus about which curves to commonly use.
>
>
> More importantly, I can't use your curves unless you can prove to me that
they are secure. And the fact we are having trouble doing that in this
group proves that it is not possible to achieve that in a protocol.

We are not having trouble with that  in this group. Nobody disputes that
any of the proposed curves are secure, or the details of generation.

Instead, we're arguing about endiannes. I've tried to gather which primes
everyone wants in one list, crickets.  Tony Arceli posts about signatures,
5 messages. Big v. Little, 40.

Of course a malicious party can leak whatever you send them.

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

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

<p dir=3D"ltr"><br>
On Jan 29, 2015 9:36 AM, &quot;Phillip Hallam-Baker&quot; &lt;<a href=3D"ma=
ilto:phill@hallambaker.com">phill@hallambaker.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jan 29, 2015 at 11:30 AM, Daniel Kahn Gillmor &lt;<a href=3D"m=
ailto:dkg@fifthhorseman.net">dkg@fifthhorseman.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Wed 2015-01-28 18:38:49 -0500, Blumenthal, Uri - 0558 - MITLL w=
rote:<br>
&gt;&gt; &gt; The problem is - reasonably-vetted by who? NIST? DJB? Yoursel=
f? All of the<br>
&gt;&gt; &gt; above?<br>
&gt;&gt;<br>
&gt;&gt; If this lengthy process we&#39;re involved in doesn&#39;t turn out=
 to be<br>
&gt;&gt; reasonable vetting by a multistakeholder group, i&#39;ll be sorely=
<br>
&gt;&gt; disappointed.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Attractiveness of the ability to select a custom curve is sim=
ilar to that<br>
&gt;&gt; &gt; of PGP Web of Trust: you can make a choice for yourself, rath=
er than being<br>
&gt;&gt; &gt; forced into what other experts (or =E2=80=9Cexperts=E2=80=9D =
:) decide for you.<br>
&gt;&gt;<br>
&gt;&gt; This is different from the PGP Web of Trust.=C2=A0 If i&#39;m comm=
unicating with<br>
&gt;&gt; a new peer using TLS, and they want to use MagicCurveX that i&#39;=
ve never<br>
&gt;&gt; seen before, my TLS client is not going to be able to evaluate it<=
br>
&gt;&gt; properly, certainly not before the TLS handshake expires.<br>
&gt;<br>
&gt;<br>
&gt; +1=C2=A0<br>
&gt;<br>
&gt; Deploying and implementing cryptosystems requires an enormous amount o=
f expertise and they can fail in many different ways of which a flaw in the=
 cryptographic algorithm security is very very rare.=C2=A0<br>
&gt;<br>
&gt; We are not using the web of trust model to develop code so why on eart=
h try to apply it to choice of algorithm?<br>
&gt;<br>
&gt; The reason for applying web of trust is when there is no good alternat=
ive. I have written papers recently where I show how we might make the web =
of trust tractable and practical but that is because validating credentials=
 for six billion people is a very different problem.<br>
&gt;<br>
&gt; =C2=A0<br>
&gt;&gt;<br>
&gt;&gt; Anyone can of course decide what curves are worth using, and can a=
pply<br>
&gt;&gt; their own analysis with their peers to come to that decision.=C2=
=A0 But if<br>
&gt;&gt; you&#39;re communicating with the arbitrary outside world, there n=
eeds to be<br>
&gt;&gt; some broader consensus about which curves to commonly use.<br>
&gt;<br>
&gt;<br>
&gt; More importantly, I can&#39;t use your curves unless you can prove to =
me that they are secure. And the fact we are having trouble doing that in t=
his group proves that it is not possible to achieve that in a protocol.</p>
<p dir=3D"ltr">We are not having trouble with that=C2=A0 in this group. Nob=
ody disputes that any of the proposed curves are secure, or the details of =
generation.</p>
<p dir=3D"ltr">Instead, we&#39;re arguing about endiannes. I&#39;ve tried t=
o gather which primes everyone wants in one list, crickets.=C2=A0 Tony Arce=
li posts about signatures, 5 messages. Big v. Little, 40.</p>
<p dir=3D"ltr">Of course a malicious party can leak whatever you send them.=
</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;</p>

--089e0160a6d42e4c38050dce206d--


From nobody Thu Jan 29 09:58:21 2015
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 1CB6B1A1AD3 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:58:14 -0800 (PST)
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 oSnlMn9wRVxU for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 09:58:11 -0800 (PST)
Received: from smtp-p01.blackberry.com (smtp-p01.blackberry.com [208.65.78.88]) by ietfa.amsl.com (Postfix) with ESMTP id 56A5F1A0370 for <cfrg@irtf.org>; Thu, 29 Jan 2015 09:58:10 -0800 (PST)
Received: from xct108cnc.rim.net ([10.65.161.208]) by mhs211cnc.rim.net with ESMTP/TLS/AES128-SHA; 29 Jan 2015 12:58:04 -0500
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.0210.002; Thu, 29 Jan 2015 12:58:03 -0500
From: Dan Brown <dbrown@certicom.com>
To: "'watsonbladd@gmail.com'" <watsonbladd@gmail.com>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5D///TDAIAACxgA//+0JACAAW5uAIAAUxDQ//+8gYCAAFEYUA==
Date: Thu, 29 Jan 2015 17:58:03 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5D44EC6@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net>	<20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu>	<878ugleei5.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D44DD8@XMB116CNC.rim.net> <CACsn0cn23jC2q-_5q8oFuhw+_j45yZWZ9SL+mP+b=SMK7mQXUA@mail.gmail.com>
In-Reply-To: <CACsn0cn23jC2q-_5q8oFuhw+_j45yZWZ9SL+mP+b=SMK7mQXUA@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_0075_01D03BC3.379B23C0"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/iRBoCUvx256tx04G0aNdR8hWIbM>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 17:58:14 -0000

------=_NextPart_000_0075_01D03BC3.379B23C0
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: 7bit



>From: Watson Ladd [mailto:watsonbladd@gmail.com]
>On Jan 29, 2015 8:50 AM, "Dan Brown" <dbrown@certicom.com> wrote:
>
>> [DB] Wouldn't users of these private values have to then customize their 
>> software this?  Well, I guess TLS would work for that.  So, it seems that 
>> the advantage of specified curves, is that if a trustworthy WebSiteABC TLS 
>>  >>server, elects to use MagicCurveX, then anonymous TLS clients could 
>> connect to WebSiteABC, relying on the current trust of the WebSiteABC, and 
>> their own software.

>This is not how TLS negotiation works: the client offers and the server 
>picks. Due to vulnerabilities in all versions of TLS (still unfixed) one 
>always has to check the offered parameters for correctness.

[DB] Ah, too bad. I guess named curves (and FFDHE groups) is, among other 
things, one way to fix this problem with TLS.  (I vaguely recalled a proposal 
for the server being able to suggest alternatives outside the clients' list, I 
guess I misremembered.)

Anyway, to paraphrase others, a downside of TLS limiting curves to a small 
set, is this limitation can be spun sourly, albeit a tad unfairly, as 
pressuring users to use particular curves. That said, leaving in arbitrary 
curves, can also be spun badly, too, catch 22.

>That's on top of the fact that people don't want to use Curve25519 because 
>it's Curve25519. They want to use it because the design choices support high 
>speed secure implementations.

[DB] Right, but other users might want to use some other curves with high 
speed secure implementations, e.g., maybe a larger curve, but they disagree 
with CFRG advice about rigidity, etc.

>It's possible to get the existing extension to do this, but only if we have a 
>magic list of what to offer, and do all sorts of contortions in our 
>calculations. Much easier to negotiate an extension as the TLS WG extensively 
> >discussed.


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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3duQHJpbS5uZXSB
E2Ricm93bkBjZXJ0aWNvbS5jb20wHQYDVR0OBBYEFFdFrujr5LyMGa3Hl1U4MTjlEtfvMB8GA1Ud
IwQYMBaAFObbryVSYEL0jYI1VF2A64ahrO/cMIIBMQYDVR0fBIIBKDCCASQwggEgoIIBHKCCARiG
gctsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1NQ0EwMllL
RixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmln
dXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFz
ZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIZIaHR0cDovL21jYTAyeWtmLnJpbS5u
ZXQvQ2VydEVucm9sbC9SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YuY3JsMIIBQQYI
KwYBBQUHAQEEggEzMIIBLzCBwgYIKwYBBQUHMAKGgbVsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGlu
YXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049
U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNh
dGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MGgGCCsGAQUFBzAChlxo
dHRwOi8vbWNhMDJ5a2YucmltLm5ldC9DZXJ0RW5yb2xsL01DQTAyWUtGLnJpbS5uZXRfUklNJTIw
U3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGKDQpLmNydDANBgkqhkiG9w0BAQUFAAOCAQEActBk
hryrMh5+C+8YiOrR8xi+G1NkUycfNLuz4fYdQzFNB9yWxyRs2K0ydl0X5PZXejhbIif0dFoyaxnh
g/D5hYfeGIhXfAOFG22EpMJWXVOavqYLxslnc2enihWAYcWkjPfE6tf3XMXkodFkMYvEd+qFj8eU
vxbbcR1dBqiBFNNDcKlAKn/oElp/iI/LjUGMEb+tJdHttsGExvQzSd1zwk1U6cOinYD82Y08zA5b
z38l5bE2+plmfX3EQ8vCKYA95psgGg3hsffn150smpY7HeEPGRZh9vglGfi2wnMqY/QgO+qs78dq
O/C1be3quQU3WHQ6YcZr3JP1Rc7yj76K7jCCBr8wggSnoAMCAQICEDIa85KxFFmUTU0vlRGze+Ew
DQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcwFQYKCZImiZPyLGQBGRYH
d2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcNMDYxMDEzMDEyNDU1WhcN
MTYxMDEzMDEzMDQxWjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxFzAVBgoJkiaJk/IsZAEZFgd3
aW5kb3dzMR0wGwYDVQQDExRSSU0gUm9vdCBDQSBNQ0EwMVlLRjCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAMbous78rVQBLT87+jYSuzmZ2osP40BMhFbJA3+cs3BZC0//uT87SG7/nhZi
9Qj9hYby7/HkGSQyheGL/lLIzxDdZV+AwxiirdDT6ck/acEMxWolLdK5xEYEmm6OxLaUuEvg7i/B
vXPpZlsA6m9FFrTzHVX2693w8IoMs9cofr1TAB3YYDnvZTwupz7YifSF02pu1eZiZg09Jjaav9Hy
aNyRGjbwyqFwTpCr+iHW7SsSszyJxulWGgnYCQgE95loK/ZMYhEBFCSq7yNn1yNM0WJ5S+uPILyv
OKXbE9sWSxba+DnWQJuEZCvFPnILq5Ugq+jVap326uv9zejBpsnPUgdgMoZNlUuuu+e1eJwc3mng
/rK6ZOCF1NzUzP/mIEdc1UuNV8L2WqvVH+fY9EyYTfcRlWTvO9XlVa9lXzca9MTqlKcHMYeSWWJF
nJlCRZWIkIdAjNj632g0U06kWUHeBd8VJXFxQFzhob2lyr4pHiOv7rZ1+rwpw8DFMZnp85b/HqTW
rcQ7LiIDljuKX6oBjMs1qNobnUPe/ucp1Kgy19+J61M7MxniBNyqKmLJLMTBd7aiIGnbfYTVl2j/
xJJ2aUQJmj9LNFeWb4Isl8PVK6p1sJkWy0JOx52HNIR0AY16AcikojsoYEkvci+mvuwANq4QT6bE
lSPS2AbNnDSpT7GXAgMBAAGjggGVMIIBkTATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMC
AUYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU1mmCZCQWwcwk2/EUfUcSfNzJTe4wggEpBgNV
HR8EggEgMIIBHDCCARigggEUoIIBEIaBxGxkYXA6Ly8vQ049UklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YsQ049TUNBMDFZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJl
dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGR2h0dHA6
Ly9tY2EwMXlrZi53aW5kb3dzLmxvY2FsL0NlcnRFbnJvbGwvUklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YuY3JsMBAGCSsGAQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4ICAQBDnlhbuDlU58ff
o2JPdog62tn9QXOY9VnrBBiDZeFQmPVicup9e2/4dnw5o4/SnyLaNyxNlno++5Uiar/y0ne8J300
FWVW9cAXtmbfi7jwKour1kgwEFTn3TjGFbuYps553/mTTC3bk6l2f2xUCk1rINqoQVsGomH8RGO5
1YN/mX0rasHPUd7/7Rx/m/ZF9xbii6FUOikq6lMgYn4SEY+e3jsOvyYzwPkiHf6dshGfsZgDUN9b
xNwRxUZttJGRx6gH3Qpk7dUuyw0ixwY9xmVyBVIHvWjyqswF3ntgwmEz92GHIKz/xWxRdkahkSIT
zPjHYya2jI3sfpzU/tigvxCFrG1PQ4BSCNMByqUcfK5STTfJJm/x/ahqnDWlvUP6cFE6V9W10nW8
72BbNzWOypmGIouENEUAhq/ejrw09P0uvyK51vr6mY5z1djF6hLskNC+R11Tpwou+vbhmHEZBKOc
cxCfxDL49O7wlpxu4fcpDYSxBDHMoFZgXVz/ajqqIHcjyQdAM8QGBqgkjE/Dq7NTP7K2Ul1An0nx
DR+YgXe28R+7l5he5GzhIIaJuwHHAtgpbeA1NLY/bBciFoOR+s8ujS3rZtv5M3Q95hmN7trVrYo1
Z3dglmNmLM2KNZWwwHxH4xi//bhaR+/WbfXpEUg+WW0p9Uja9Z443hqVd48MrjCCB0YwggUuoAMC
AQICChJuoPAAAAAAAiswDQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcw
FQYKCZImiZPyLGQBGRYHd2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcN
MTQwNDAyMDA1MTEyWhcNMTYwNDAyMDEwMTEyWjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYK
CZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZS0YwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzrn3UT996pLvUIVlnExxcXGmYftIOq1qMwitW
RCBe2j32VmDvzlJseIkfQuXDqjWnoqoE4sxQjxD5QNwhyBw9eXMCvLjHBW+HM4+HcmGIdan2w17E
4rR+RHVK6NzvkE1Gm4ziBTDr2jzSliZJpowLM+M/+cY2pyym074TQx+QCZQOKIqLnEgZ2uYw4kSj
nCcE7eJ+WmJFq9bX6Cv9SONQfgN5Z3O1N/36lgavm/G6Amt/ePNE0AhcJwxin7Fahkx6/SjRbf0r
Oa8uhCMxK8ebqTqD0+0VpViARFterasW5FTU2rcRFLHwwWV67yoFc2fbozkj5iseBXctM8NmqKt5
AgMBAAGjggMhMIIDHTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTm268lUmBC9I2CNVRdgOuG
oazv3DALBgNVHQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQQwIwYJKwYBBAGCNxUCBBYEFCLdxB/L
akuvuaYdTyqIgHmfibLUMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMB8GA1UdIwQYMBaAFNZp
gmQkFsHMJNvxFH1HEnzcyU3uMIIBKQYDVR0fBIIBIDCCARwwggEYoIIBFKCCARCGgcRsZGFwOi8v
L0NOPVJJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLENOPU1DQTAxWUtGLENOPUNEUCxDTj1QdWJs
aWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPXdpbmRv
d3MsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNS
TERpc3RyaWJ1dGlvblBvaW50hkdodHRwOi8vbWNhMDF5a2Yud2luZG93cy5sb2NhbC9DZXJ0RW5y
b2xsL1JJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLmNybDCCATwGCCsGAQUFBwEBBIIBLjCCASow
gbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1SSU0lMjBSb290JTIwQ0ElMjBNQ0EwMVlLRixDTj1B
SUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlv
bixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0
aWZpY2F0aW9uQXV0aG9yaXR5MGoGCCsGAQUFBzAChl5odHRwOi8vbWNhMDF5a2Yud2luZG93cy5s
b2NhbC9DZXJ0RW5yb2xsL01DQTAxWUtGLndpbmRvd3MubG9jYWxfUklNJTIwUm9vdCUyMENBJTIw
TUNBMDFZS0YuY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCUe8BMuuw2GW4AUAag80hqgwOQyezrSatL
SIadEDvzg3LgXMJcN7onC+1B7vHsMxVMbFz3V+85WSKtzCtaBe5rhUCXLBZEGbM+WPavYgYMnUsD
TpJwSXiDaM9Ym/ZLFsgfo3Qv7rfglydpqPCBfHUEQys2KeBVsDGd7HDK5Nk5fNaSmK0KgIBIvbXR
bJKzhTsuctYGlOf/2nFtuoxWcdhu7t6UR7DbSTerjug7rvCZH4bie5cphsu4lZDXdNRp2IKWVEF6
0VcEK8dXK1hZXEGgjuen7R03uaA+7VsSr7eUZSLiouG7XnvXWik11aNCgBiQcIGsHVRIccHphmfS
sFaZ0Bc+4/c/+K/v7X7RvdE29J9b1DqB2iV2SGZp58M0JLscohJ9uY0SJj8Hwl9YeuznijFBIC2y
Psb1V9CgoRtBl+Ek37tPp1Wm4XSS+as2kcdcsZwiM/LywbFvYDEBa71b0mquxjisPyPvmVccA0e6
WW6RDNYKUqBJsZDpjTbRZkQA7CmzrOK6YHip2F/92ZYmpqM84BsEkLuf6kzzk+r0OVsWaFP+plU3
MfqtAeKtBgJu6yd4SYbA9eFX9ePeIzBaCjTzIcd+CclwA8SeoAgP07Ut2WcB3QnD7fcU6CBegHSd
7504Ty34G+FymbG6ZBBUU0exF44VAplxv4rWFA7mPTGCAvMwggLvAgEBMF4wUDETMBEGCgmSJomT
8ixkARkWA25ldDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEyOTE3NTgwM1owIwYJKoZIhvcNAQkEMRYEFJOy
bMXJr1g4KICXGYpAfihiEqe2MG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYBIxVx4zTMIucOWAVLup+jKQ/yypbh5
49/mck1O/14qIOYWAf2ko77x3IeyZrP6oknqcbb0jptTVNGx2zYrNe3FZnT+r0wPB2mr7X7j1PfD
HvdiUHLODT2h0I5IsKJK2Ds07/vXQATJK/10C0iVZK5AvqupCIWlnKSiioZKY7c2yQAAAAAAAA==

------=_NextPart_000_0075_01D03BC3.379B23C0--


From nobody Thu Jan 29 10:13:49 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0DDFF1A19F0 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 10:13:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23j-OTnmUWhH for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 10:13:46 -0800 (PST)
Received: from homiemail-a110.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id D21951A1A5A for <cfrg@irtf.org>; Thu, 29 Jan 2015 10:13:45 -0800 (PST)
Received: from homiemail-a110.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a110.g.dreamhost.com (Postfix) with ESMTP id 610BF2004EE9F; Thu, 29 Jan 2015 10:13:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=oLlZRbPkXW14wt zIsYBKdUOoVhM=; b=OUA0/tN0K/AQGF3117G8jd4WRPUUMHybjEO5mYU71vfVRh Aq5zAPM/2lkeKkBxu62LnOnm0qJ5zQ/pn//X1pvd9nKp/pZd0ecYExQW3TLUFotR LjNMtmLWQLKIH9XRf2wH+g6uvffEifHL2Zva9HdXH18FBi0vYXeNb7lJ146cw=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a110.g.dreamhost.com (Postfix) with ESMTPA id 0A64F2004EE8D; Thu, 29 Jan 2015 10:13:44 -0800 (PST)
Date: Thu, 29 Jan 2015 12:13:44 -0600
From: Nico Williams <nico@cryptonector.com>
To: Dan Brown <dbrown@certicom.com>
Message-ID: <20150129181339.GT3110@localhost>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D44DD8@XMB116CNC.rim.net> <CACsn0cn23jC2q-_5q8oFuhw+_j45yZWZ9SL+mP+b=SMK7mQXUA@mail.gmail.com> <810C31990B57ED40B2062BA10D43FBF5D44EC6@XMB116CNC.rim.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D44EC6@XMB116CNC.rim.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/3GKSX_7Sxjd9XikAQEg6b9GD7Go>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 18:13:47 -0000

On Thu, Jan 29, 2015 at 05:58:03PM +0000, Dan Brown wrote:
> >From: Watson Ladd [mailto:watsonbladd@gmail.com]
> >This is not how TLS negotiation works: the client offers and the server 
> >picks. Due to vulnerabilities in all versions of TLS (still unfixed) one 
> >always has to check the offered parameters for correctness.
> 
> [DB] Ah, too bad. I guess named curves (and FFDHE groups) is, among other 
> things, one way to fix this problem with TLS.  (I vaguely recalled a proposal 
> for the server being able to suggest alternatives outside the clients' list, I 
> guess I misremembered.)
> 
> Anyway, to paraphrase others, a downside of TLS limiting curves to a small 
> set, is this limitation can be spun sourly, albeit a tad unfairly, as 
> pressuring users to use particular curves. That said, leaving in arbitrary 
> curves, can also be spun badly, too, catch 22.

We can haz both even, though I don't see the value in it; known curves
FTW.  The key is to have a relatively open curve registry (open -> less
than IESG Protocol Action should be needed to register, probably Expert
review).

The same is true for traditional DH.  We've had known groups for a long
time.  Some protocols (e.g., SSHv2) allow negotiation of arbitrary
groups, but a) it takes a long time to generate them, b) it takes longer
to validate (then use) them than it would to just use an off-the-shelf
group.  I would say that arbitrary group negotiation is a failure in all
cases.

> >That's on top of the fact that people don't want to use Curve25519 because 
> >it's Curve25519. They want to use it because the design choices support high 
> >speed secure implementations.
> 
> [DB] Right, but other users might want to use some other curves with high 
> speed secure implementations, e.g., maybe a larger curve, but they disagree 
> with CFRG advice about rigidity, etc.

See point above about a curve registry.  For protocols like SSHv2 where
there's a large private-use namespace for curve names, a registry is not
even required, and the Internet can come to consensus by market
mechanisms.

A generic point format for all curves to use is simply not something we
need for anyone's favorite curves (or curve families) to be deployable.

Nico
-- 


From nobody Thu Jan 29 10:18:51 2015
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 B0E541A0368 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 10:18:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F4IydBGdOxtI for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 10:18:46 -0800 (PST)
Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F37F01A0019 for <cfrg@irtf.org>; Thu, 29 Jan 2015 10:18:45 -0800 (PST)
Received: by mail-lb0-f176.google.com with SMTP id z12so31088278lbi.7 for <cfrg@irtf.org>; Thu, 29 Jan 2015 10:18:44 -0800 (PST)
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=e8fEwQJpSS/qnnPG3P2iM4eVxso1rwSFlSdVkekQKX0=; b=M9yCN6bqkS4ujha3JsYcuOT7pj5U0AeQLQcQe4wVIAHNRYXQF2BgcmnTzsiHC1Eysc UyuLW1D7QH1ebZa1aNyuBZQKwJrRk8PO4qIofvymhC1jl4c77m3HutK2fEoapGSMwxWJ +xPLOfioEKHBDBD1z5ZqyTgNoIaIqoUHC/aOLOUg+0FC9SJaVCW49nhWXsxfvLG8W7Mv +aREFYjfimrwcv8UNoVDfiHxwp7gG3RX0BKAtTcrRWgHMJ26HmH2JfTY4b2IWUwV6LeY vKzQTfA5dRwgjfWaTPDL3XRKFiN40sy2qlSiTYoMqMzfvDBqAmnIj3RohbWWyYUUAyDh oF3Q==
MIME-Version: 1.0
X-Received: by 10.112.35.165 with SMTP id i5mr2382075lbj.49.1422555524487; Thu, 29 Jan 2015 10:18:44 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 10:18:44 -0800 (PST)
In-Reply-To: <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com>
Date: Thu, 29 Jan 2015 13:18:44 -0500
X-Google-Sender-Auth: t9fPJRQpEXUj8WA7RvjX1J45qfQ
Message-ID: <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Watson Ladd <watsonbladd@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c36c8cb5e127050dce8454
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/xdUztI1c6yUkdME01Ip1Dnx-b7Q>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 18:18:47 -0000

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

On Thu, Jan 29, 2015 at 12:50 PM, Watson Ladd <watsonbladd@gmail.com> wrote:
>
> > More importantly, I can't use your curves unless you can prove to me
> that they are secure. And the fact we are having trouble doing that in this
> group proves that it is not possible to achieve that in a protocol.
>
> We are not having trouble with that  in this group. Nobody disputes that
> any of the proposed curves are secure, or the details of generation.
>
> Instead, we're arguing about endiannes. I've tried to gather which primes
> everyone wants in one list, crickets.  Tony Arceli posts about signatures,
> 5 messages. Big v. Little, 40.
>
> Of course a malicious party can leak whatever you send them.
>
What I meant is that we had great difficulty in choosing curve parameters
that were not suspect so we developed objective criteria that effectively
removed the 'malicious curve' issue.

At this point I am pretty certain that I will not want to use my existing
crypto boxes for the new curves. I certainly don't want my keys for the
algorithms we chose for their constant time implementation friendliness
being implemented on legacy hardware.


I am not keeping score here, but my understanding is that we have a rough
consensus for P255 for the performance curve as it is as near as damnit 256
bits, very fast and has a lot of deployment support. Arguing over a single
bit seems illogical for a performance curve that is going to be used in TLS
for ephemeral encryption, particularly if we can fix the TLS key agreement
algorithm so that ephemeral agreed keys are always at least as random as
both the master key and the ephemeral inputs.

The ridiculously high assurance prime is a different matter. Perhaps what
CFRG should do is to choose both P512 curve and P448.


Curves are a different matter... I doubt that it really matters very much
and the differences in speed are likely to turn out to depend on whose
hardware is used.

Easiest to explain is probably the best criteria.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 12:50 PM, Watson Ladd <span dir=3D"ltr">&lt;<a =
href=3D"mailto:watsonbladd@gmail.com" target=3D"_blank">watsonbladd@gmail.c=
om</a>&gt;</span> wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"HOEnZb=
"><div class=3D"h5"><p dir=3D"ltr">
&gt; More importantly, I can&#39;t use your curves unless you can prove to =
me that they are secure. And the fact we are having trouble doing that in t=
his group proves that it is not possible to achieve that in a protocol.</p>
</div></div><p dir=3D"ltr">We are not having trouble with that=C2=A0 in thi=
s group. Nobody disputes that any of the proposed curves are secure, or the=
 details of generation.</p>
<p dir=3D"ltr">Instead, we&#39;re arguing about endiannes. I&#39;ve tried t=
o gather which primes everyone wants in one list, crickets.=C2=A0 Tony Arce=
li posts about signatures, 5 messages. Big v. Little, 40.</p>
<p dir=3D"ltr">Of course a malicious party can leak whatever you send them.=
</p></blockquote><div>What I meant is that we had great difficulty in choos=
ing curve parameters that were not suspect so we developed objective criter=
ia that effectively removed the &#39;malicious curve&#39; issue.</div><div>=
<br></div><div>At this point I am pretty certain that I will not want to us=
e my existing crypto boxes for the new curves. I certainly don&#39;t want m=
y keys for the algorithms we chose for their constant time implementation f=
riendliness being implemented on legacy hardware.<br></div></div><br></div>=
<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">I am not ke=
eping score here, but my understanding is that we have a rough consensus fo=
r P255 for the performance curve as it is as near as damnit 256 bits, very =
fast and has a lot of deployment support. Arguing over a single bit seems i=
llogical for a performance curve that is going to be used in TLS for epheme=
ral encryption, particularly if we can fix the TLS key agreement algorithm =
so that ephemeral agreed keys are always at least as random as both the mas=
ter key and the ephemeral inputs.</div><div class=3D"gmail_extra"><br></div=
><div class=3D"gmail_extra">The ridiculously high assurance prime is a diff=
erent matter. Perhaps what CFRG should do is to choose both P512 curve and =
P448.</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">=
<br></div><div class=3D"gmail_extra">Curves are a different matter... I dou=
bt that it really matters very much and the differences in speed are likely=
 to turn out to depend on whose hardware is used.=C2=A0</div><div class=3D"=
gmail_extra"><br></div><div class=3D"gmail_extra">Easiest to explain is pro=
bably the best criteria.=C2=A0</div><div class=3D"gmail_extra"><br></div></=
div>

--001a11c36c8cb5e127050dce8454--


From nobody Thu Jan 29 11:05:55 2015
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 CDA201A6F15 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 11:05:52 -0800 (PST)
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 XidYwGK8rje7 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 11:05:51 -0800 (PST)
Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 124F51A6EED for <cfrg@irtf.org>; Thu, 29 Jan 2015 11:05:51 -0800 (PST)
Received: by mail-wi0-f170.google.com with SMTP id bs8so14107199wib.1 for <cfrg@irtf.org>; Thu, 29 Jan 2015 11:05:49 -0800 (PST)
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=sR9jb6hY+t3/6q/R2aOGOzKwJCZE3JspiN9WFDs0u6Y=; b=FYFJSHA4qdjTBgTs8yw2SAAHfuul907MpOhHysieXcdVT36wan3jTuF+Y4X9KnOoqc s3hHDAgSc1rXDjjlj6+91cWwEXyO8hwJ83VuQIuDzfc6G2afJ8DQQvbA6p6+yZ4wyoR+ N5S0Lm/D0rE1G7XwEisEcGF3UN5KFE9+7GEMmsIWlZdo1WNCNXJWtxizdTFSWsCfjc6y 2tpppRGj07/1eisPhAl+0p7bkUuSGfuRR85WOULlIo4i+xpQA1EAh2tHD1v0Fo+5LBlF xwE/s2ph3/37WHReP3sPRivrjzeI2hUH43UHIXFoTQxkYPb3lOCimWU/NEl3+Wt61ZYu sD4A==
X-Received: by 10.180.211.169 with SMTP id nd9mr3040281wic.4.1422558349806; Thu, 29 Jan 2015 11:05:49 -0800 (PST)
Received: from [192.168.1.15] ([46.120.13.132]) by mx.google.com with ESMTPSA id cf12sm11616983wjb.10.2015.01.29.11.05.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 11:05:49 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_3B2DEE86-BE89-4E08-B844-BD97AA89C68B"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com>
Date: Thu, 29 Jan 2015 21:05:47 +0200
Message-Id: <969AA073-9E64-4695-8372-B4C342E703B5@gmail.com>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/gifwRLuXoMIC1VYbVbkE0hslN-w>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 19:05:53 -0000

--Apple-Mail=_3B2DEE86-BE89-4E08-B844-BD97AA89C68B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> We are not having trouble with that  in this group. Nobody disputes =
that any of the proposed curves are secure, or the details of =
generation.
>=20
> Instead, we're arguing about endiannes. I've tried to gather which =
primes everyone wants in one list, crickets.  Tony Arceli posts about =
signatures, 5 messages. Big v. Little, 40.
>=20
That's Parkinson=E2=80=99t law of triviality at work. Few understand why =
one prime is better than another. A few more understand about =
implementing signature algorithms, but we all understand endianness.

Although that would make the signature algorithms the bike shed, and the =
endianness coffee.

Regarding primes I think there were a bunch of people saying =E2=80=9Cyeah=
, let=E2=80=99s pick goldilocks" a while ago.  Hopefully we know enough =
about signatures to not make the bike shed of asbestos (in the book the =
argument is about the material for the bike shed, not the color)

Yoav



--Apple-Mail=_3B2DEE86-BE89-4E08-B844-BD97AA89C68B
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;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D""><p dir=3D"ltr" 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;" =
class=3D"">We are not having trouble with that&nbsp; in this group. =
Nobody disputes that any of the proposed curves are secure, or the =
details of generation.</p><p dir=3D"ltr" 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;" class=3D"">Instead, we're arguing about =
endiannes. I've tried to gather which primes everyone wants in one list, =
crickets.&nbsp; Tony Arceli posts about signatures, 5 messages. Big v. =
Little, 40.</p></div></blockquote>That's Parkinson=E2=80=99t law of =
triviality at work. Few understand why one prime is better than another. =
A few more understand about implementing signature algorithms, but we =
all understand endianness.</div><div><br class=3D""></div><div>Although =
that would make the signature algorithms the bike shed, and the =
endianness coffee.</div><div><br class=3D""></div><div>Regarding primes =
I think there were a bunch of people saying =E2=80=9Cyeah, let=E2=80=99s =
pick goldilocks" a while ago. &nbsp;Hopefully we know enough about =
signatures to not make the bike shed of asbestos (in the book the =
argument is about the material for the bike shed, not the =
color)</div><div><br class=3D""></div><div>Yoav</div><div><br =
class=3D""></div><br class=3D""></body></html>=

--Apple-Mail=_3B2DEE86-BE89-4E08-B844-BD97AA89C68B--


From nobody Thu Jan 29 11:49:23 2015
Return-Path: <prvs=9471f473ec=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 2A6F61A00FA for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 11:49:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.207
X-Spam-Level: 
X-Spam-Status: No, score=-4.207 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, 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 mnstgROhKZb9 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 11:49:18 -0800 (PST)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by ietfa.amsl.com (Postfix) with ESMTP id 8AA471A00C5 for <cfrg@irtf.org>; Thu, 29 Jan 2015 11:49:18 -0800 (PST)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id t0TJjtav019082; Thu, 29 Jan 2015 14:49:15 -0500
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Phillip Hallam-Baker <phill@hallambaker.com>, Watson Ladd <watsonbladd@gmail.com>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5D///TDAIAACxgA//+0JACAAW5uAP//wsgngABbjQD//8TFAA==
Date: Thu, 29 Jan 2015 19:46:49 +0000
Message-ID: <D0EFF650.2058C%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com>
In-Reply-To: <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3505387604_815432"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-29_06:2015-01-29,2015-01-29,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-1501290192
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Icjol4333372v4uF8j9iwdnmEqc>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 19:49:21 -0000

--B_3505387604_815432
Content-type: multipart/alternative;
	boundary="B_3505387604_816366"


--B_3505387604_816366
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

> On Thu, Jan 29, 2015 at 12:50 PM, Watson Ladd <watsonbladd@gmail.com> wro=
te:
>>> > More importantly, I can't use your curves unless you can prove to me =
that
>>> they are secure. And the fact we are having trouble doing that in this =
group
>>> proves that it is not possible to achieve that in a protocol.
>>=20
>> We are not having trouble with that  in this group. Nobody disputes that=
 any
>> of the proposed curves are secure, or the details of generation=E2=80=A6

No, in this group we don=E2=80=99t seem to be having trouble with that. But I=E2=80=99m=
 sure
NIST did not have any trouble with security of their selected curves.
Likewise, BRAINPOOL didn=E2=80=99t seem to worry about security of theirs (ask
Tanja, she was there :), DJB is certain of his curves, etc.

See my point? How would you convince others that BRAINPOOL might have had
something up their collective sleeve, but you don=E2=80=99t?
>> What I meant is that we had great difficulty in choosing curve parameter=
s
>> that were not suspect so we developed objective criteria that effectivel=
y
>> removed the 'malicious curve' issue.

Exactly.

> Curves are a different matter... I doubt that it really matters very much=
 and
> the differences in speed are likely to turn out to depend on whose hardwa=
re is
> used.=20
>=20
> Easiest to explain is probably the best criteria.
=20
Probably so.



--B_3505387604_816366
Content-type: text/html;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
 14px; font-family: Calibri, sans-serif;"><span id=3D"OLK_SRC_BODY_SECTION"><b=
lockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4d=
f 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmai=
l_extra"><div class=3D"gmail_quote">On Thu, Jan 29, 2015 at 12:50 PM, Watson L=
add <span dir=3D"ltr">
&lt;<a href=3D"mailto:watsonbladd@gmail.com" target=3D"_blank">watsonbladd@gmai=
l.com</a>&gt;</span> wrote:
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5"><p dir=3D"ltr">=
&gt; More importantly, I can't use your curves unless you can prove to me th=
at they are secure. And the fact we are having trouble doing that in this gr=
oup proves that it is not possible to achieve that in a protocol.</p></div><=
/div><p dir=3D"ltr">We are not having trouble with that&nbsp; <b>in this group=
</b>. Nobody disputes that any of the proposed curves are secure, or the det=
ails of generation&#8230;</p></blockquote></div></div></div></blockquote></s=
pan><div>No,&nbsp;<b>in this group</b>&nbsp;we don&#8217;t seem to be having=
 trouble with that. But I&#8217;m sure NIST did not have any trouble with se=
curity of their selected curves. Likewise, BRAINPOOL didn&#8217;t seem to wo=
rry about security of theirs (ask Tanja, she was there :), DJB is certain of=
 his curves, etc.</div><div><br></div><div>See my point? How would you convi=
nce others that BRAINPOOL might have had something up their collective sleev=
e, but you don&#8217;t?</div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D=
"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PA=
DDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_extra"><div=
 class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex"><p dir=3D"ltr">What I meant is =
that we had great difficulty in choosing curve parameters that were not susp=
ect so we developed objective criteria that effectively removed the 'malicio=
us curve' issue.</p></blockquote></div></div></div></blockquote></span><div>=
Exactly.</div><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D=
"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PA=
DDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_extra">Curv=
es are a different matter... I doubt that it really matters very much and th=
e differences in speed are likely to turn out to depend on whose hardware is=
 used.&nbsp;</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra=
">Easiest to explain is probably the best criteria.&nbsp;</div></div></block=
quote></span><div>&nbsp;</div><div>Probably so.</div></body></html>

--B_3505387604_816366--

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

MIIUVwYJKoZIhvcNAQcCoIIUSDCCFEQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghImMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7bYbBUuDpN25Lc86P9RaOiiICtyu
ZZP2P/2kkKYRAgMBAAGjggGyMIIBrjAdBgNVHQ4EFgQUEN9QHIi9GvlGjs9Th46jrfPir+Uw
DgYDVR0PAQH/BAQDAgbAMB8GA1UdIwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1Ud
HwQsMCowKKAmoCSGImh0dHA6Ly9jcmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYB
BQUHAQEEWjBYMC0GCCsGAQUFBzAChiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExD
QTMwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3
FQcEMDAuBiYrBgEEAYI3FQiDg+Udh+ynZoathxWD6vBFhbahHx2Fy94yh/+KcwIBZAIBBTAi
BgNVHSUBAf8EGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDDDAYBgNVHSAEETAPMA0GCyqGSIb3
EgIBAwEIMBkGA1UdEQQSMBCBDnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABM
AFUAcwBlAHIAUwBpAGcALQBTAFcwDQYJKoZIhvcNAQELBQADggEBAL2kCh9ovO8AbHgAVU6T
eH5qRmKnOrfTUfn9JnHzkspdWMQA1IdtftSpiZZ7C3lCmblSDCgPqbQl4zMZxXeTgxnQsB6m
1LA6uDHM/0G27RcOJH4OTN9sQ0/2CKb4JPIXXIps1z+s8XjSRzPJZuD8fPC8R8QWvOH3owL2
BLzZebZTOMa5yws3kohY02vP/Clv0KQXYVzUZUYXoYmhUSYmQ1UZZZSFJ2rNdgNn0z8fPrUQ
NIYlVaJV0kKQYjlHWTfomVapLEfIY7xRHZy9g997IjYReD0t9IZd6tTwcJES+2ijFM8l/fxk
u/cQ4WCYyI+58DaBaV9p68/AC147b0HhvLUwggS8MIIDpKADAgECAgEpMA0GCSqGSIb3DQEB
BQUAMFQxCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGluY29sbiBMYWJvcmF0b3J5MQww
CgYDVQQLEwNQS0kxFjAUBgNVBAMTDU1JVExMIFJvb3QgQ0EwHhcNMTMxMjE3MDAwMDAwWhcN
MjAxMjMxMjM1OTU5WjBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFi
b3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0zMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2jBSdW18tuW1tNxG6h8B0kqckFZQAAtoHCkvUpUEX6jF
vBd8mQI53GyLYRuAo4HWJpe7/izFXOfSJDs6UM5ovvCOfXg2bJgDYlBC9JDcLBFIn0nppOu9
RvpjWSixtC56crwJ5Us5QPdtxtKdek5LJXl2oKw3w8lihUixePbxWad1m7ZMKKagvm9zTybP
6FumKRxeYJjSpB2+cAYjoGGEbSVHyx8uzHm6xAoBMHxa8by+yDz8Jzk6sP9iilgP3iXSGoCA
mhyBzvlQQ5QNNWP+Emo9jz/ukKhYVB/VwdxtoquPAqn4ifDAIaM9dtb05cy1gXAFSP3Z/iUk
xyBZZUORfwIDAQABo4IBmjCCAZYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU12Bm
DntJjXVMDf3PRt7IxxKHyr8wHwYDVR0jBBgwFoAUZ6p6z/QKprlytYqg0p3yEMND7SkwDgYD
VR0PAQH/BAQDAgGGMGYGCCsGAQUFBwEBBFowWDAtBggrBgEFBQcwAoYhaHR0cDovL2NybC5s
bC5taXQuZWR1L2dldHRvP0xMUkNBMCcGCCsGAQUFBzABhhtodHRwOi8vb2NzcC5sbC5taXQu
ZWR1L29jc3AwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sbC5taXQuZWR1L2dldGNy
bD9MTFJDQTCBkgYDVR0gBIGKMIGHMA0GCyqGSIb3EgIBAwEGMA0GCyqGSIb3EgIBAwEIMA0G
CyqGSIb3EgIBAwEHMA0GCyqGSIb3EgIBAwEJMA0GCyqGSIb3EgIBAwEKMA0GCyqGSIb3EgIB
AwELMA0GCyqGSIb3EgIBAwEOMA0GCyqGSIb3EgIBAwEPMA0GCyqGSIb3EgIBAwEQMA0GCSqG
SIb3DQEBBQUAA4IBAQAsf9HBn72qU7UTgkxarjAc7iynhcDEgWwezYKtd/SLGSQ0DhtzIV/L
TCxqULjOd+H+HTqMJXB8+nHnzhyqQ43RsnGZOFT5RfzPh94db/ZJ3ql244DwlJI7yXBA2DkZ
cEEgOWC9bHcrElzU6NnigahSW5odVJrhmH/XhQAcMS77E5H62yyxK1WPPgcBipGVnu1xSHbT
iHe7DqfWQ2tVMLUf23XYhIua94kJsQd4jSh71NVD0e7F4snAoqQMI98MzDYeLOkjlzKRs77r
/aMsPAKx6nMaOvRL7Cy0Pjp51i2qFkbGmX8ofnh2kerjTTvRJ/g22r1MV8RR1PktjMsNOsPf
MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQUFADBUMQswCQYDVQQGEwJVUzEfMB0GA1UE
ChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRYwFAYDVQQDEw1NSVRM
TCBSb290IENBMB4XDTA4MDkyMzEyMDAwMFoXDTI5MTIzMTIzNTk1OVowVDELMAkGA1UEBhMC
VVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTEWMBQG
A1UEAxMNTUlUTEwgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMVO
KRdYsiay+a2Kv1wQCoPd5AkwExuwcNDRhaRCdQN17K+lCCKvf9VSQToAsA6q1bACtZUcMv5Z
Kx8z5KG4jK9cM40NvEkf/bIOZAHJqzKgWG3N9NqrcAhimcXTXYQIdp1DgjtdADKVLAjXaYpD
2PbpE/JbAPnqKzOENa3Py9CegB0abTlOyLgwXWY/rXTW+4L/hipJ6+sI/ZtrFRmsKGhuwAKo
bFr0FDP6uIfx+RaWJcJ1QBIdgM4aohvW8JeriSSMyf/LlFpXTZFcM9SOX0f7wmsYi1yFuKFM
nQbkSkxvnpBKMRxrg+98seSbbEnIkvB0C9qBDPLb/lQAvmpW6oMCAwEAAaNgMF4wDwYDVR0T
AQH/BAUwAwEB/zAdBgNVHQ4EFgQUZ6p6z/QKprlytYqg0p3yEMND7SkwHwYDVR0jBBgwFoAU
Z6p6z/QKprlytYqg0p3yEMND7SkwCwYDVR0PBAQDAgGGMA0GCSqGSIb3DQEBBQUAA4IBAQA+
G20FYNB4eNhKWF+PyT5DUtzlABFkf2IM2VGNUBova0GeKX3I1Nf02qDU/GO2H9ETvnvTYhvf
gQ4UB/5EImTkKPa7/TVG/MQ7SgmAmne8xELVbGLFrrytly8PyYtZtngb6DgeEUv+SwFnzcLO
1vg1rdmss3kwsqy0q8e2VYAY8zTptEzyJG36aXcIMbqOxWS/LbPjNuPdgJfO3d1WrHr1Etaa
a0QRLqQoZj07dYY7Wo5EDqU+AUAMz9ZVRGK1s5b/jv5Wz/YroyqWFnH2KkNxRn9+2Ar7g3rn
rOMZvp6psq2jbDXiPBod1wyMKn8x5y4cuGPNFcqjfyY/HX90ivQAMIIE7TCCA9WgAwIBAgIK
KHB6MgAAAAAtBzANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlU
IExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0z
MB4XDTE1MDEyMzE3NDkyOVoXDTE2MDEyMzE3NDkyOVowYTELMAkGA1UEBhMCVVMxHzAdBgNV
BAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMX
Qmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDF+Rcs9hNO5hvlE0YeltqeXGUW1u3RVMG4/2ag6J2FgcsOJxOZy/m+7FeYfCo3XYrNqx6/
3IZmDSYln3JnxzPionDcbK2TJ9xAOoWlrUykAhgUl+PCO8ahDV5Yc0tmMzf5MXBrsub0nUyJ
eDkxOUY2Id58D1UVzzXh9Kvjc+ZCcBRFoViAgn7MznnuvK8Y5m7Lor1oLWSxNNUyp98gC4Ep
dHLnA8yP1WqmNr0x+YssjJgEiIfZFqx8Gvv2OqtHaFGHh7Y6+WOWIZULMaAc9JJEq8ctns9m
GIRldf2JMFcNsahQJDhgUspmP6c1Wz9OrUxsgwnGQ5feIq9c/4YZYEZ/AgMBAAGjggG1MIIB
sTAdBgNVHQ4EFgQUR0hebk4i6063YnpEEVXyQUyfSFMwDgYDVR0PAQH/BAQDAgUgMB8GA1Ud
IwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1UdHwQsMCowKKAmoCSGImh0dHA6Ly9j
cmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYBBQUHAQEEWjBYMC0GCCsGAQUFBzAC
hiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExDQTMwJwYIKwYBBQUHMAGGG2h0dHA6
Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiDg+Ud
h+ynZoathxWD6vBFhbahHx2F69Bwg+vtIAIBZAIBBDAlBgNVHSUEHjAcBgRVHSUABggrBgEF
BQcDBAYKKwYBBAGCNwoDBDAYBgNVHSAEETAPMA0GCyqGSIb3EgIBAwEIMBkGA1UdEQQSMBCB
DnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABMAFUAcwBlAHIARQBuAGMALQBT
AFcwDQYJKoZIhvcNAQELBQADggEBADim5zjTb/h3ea/66DNM6wSmi1Ti9F2f2/Are2a7a9E/
IPXfleh39lVG7uTaneEJMSHzDltkB5k6DYMv/t28ntQm2jLI9adMwccDlKSR2uIDsiA7jodi
TxbqL/aRi+WC4ybWWhXuzSbkMesayt5QAKpuKLAr7newfZaWx8zPnWU1nWZBbJR7cLKgUTaE
iQu/NlCWIFJIC9yRhze+KR41vIa+7niQnUANjoYCCu32Z8xgxhK4kQr5teUVUNDoCj02x781
GFfwCknxpsWEm95OWM1iaXKCGJ8ciioulEzksZUrIHdImISaQVV+Xdmbcd3OH6y8fNl1mZdX
n8sxNJc+/g0xggH1MIIB8QIBATBfMFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGlu
Y29sbiBMYWJvcmF0b3J5MQwwCgYDVQQLEwNQS0kxEzARBgNVBAMTCk1JVExMIENBLTMCCh9F
2aAAAAAAAc0wDQYJYIZIAWUDBAIBBQCgaTAvBgkqhkiG9w0BCQQxIgQg2H6YxORQlO8ilebD
1WPQuJuaz3Ube+Q6J0PJBbtZ5u0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG
9w0BCQUxDxcNMTUwMTI5MTk0NjQ0WjANBgkqhkiG9w0BAQEFAASCAQBhDFlzpMla1twrgSK6
9rLJbzBCUCt74ArkG7mSUlnMq9GxNUVeZacbYz9j6IZ4gVYwJWXiGSixjFMNp9Zq/lFNk1zi
kREan2Si0fomYQkv9AHVdobIksZpl9YzwqdZMT+/2gyxDpLwXqn2QCQ1cbqs9PvW+RnCbZkD
Ki3ojkD2CEzMO5wj+94kY85gY827TXaZ6OkIpYw3yN/5F2A76Cx4y2dVq3M/8bZv0jCJ3E7e
GQBRCMBFNO7A98EkiKC8O1wVDGNFEqgJgIY+VC8jx4tkIM0b0GzF5gwvGeQqZXZbiC0QxgBw
/UEUEurT5H4GIK7urkDgCPCElsDfTRawpMzz

--B_3505387604_815432--


From nobody Thu Jan 29 11:59:24 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A4DF21A049A for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 11:59:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aRYhE6A9ihuo for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 11:59:20 -0800 (PST)
Received: from homiemail-a36.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 95BAC1A1AF2 for <cfrg@irtf.org>; Thu, 29 Jan 2015 11:59:20 -0800 (PST)
Received: from homiemail-a36.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a36.g.dreamhost.com (Postfix) with ESMTP id 37BB3778070; Thu, 29 Jan 2015 11:59:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to:content-transfer-encoding; s= cryptonector.com; bh=fvZuUl25s+bJTLI5mb9qlF8QNrc=; b=Mp+Ld16p6K6 tweratoS7a9TV3wXW024IGkI2vBBnBfRT6XpYX/XxmrSjf+xZ5Y+zr+W4j+GV+Uc 2irzqmmK0mZx/WAaX5f3S6Eo/5BSdV/71m6iMgPdypAyz5Wmj7htdQMmyMFD5dmz S/5pNZ9aDjinOisilrpexaGtUKgRxM6E=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a36.g.dreamhost.com (Postfix) with ESMTPA id AD96B77805F; Thu, 29 Jan 2015 11:59:19 -0800 (PST)
Date: Thu, 29 Jan 2015 13:59:19 -0600
From: Nico Williams <nico@cryptonector.com>
To: Yoav Nir <ynir.ietf@gmail.com>
Message-ID: <20150129195915.GX3110@localhost>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <969AA073-9E64-4695-8372-B4C342E703B5@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <969AA073-9E64-4695-8372-B4C342E703B5@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/DlxsX6ug3I1G0MCJuGlaLNBMv4E>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 19:59:22 -0000

On Thu, Jan 29, 2015 at 09:05:47PM +0200, Yoav Nir wrote:
> > We are not having trouble with that  in this group. Nobody disputes t=
hat any of the proposed curves are secure, or the details of generation.
> >=20
> > Instead, we're arguing about endiannes. I've tried to gather which pr=
imes everyone wants in one list, crickets.  Tony Arceli posts about signa=
tures, 5 messages. Big v. Little, 40.
> >=20
> That's Parkinson=E2=80=99t law of triviality at work. Few understand wh=
y one prime is better than another. A few more understand about implement=
ing signature algorithms, but we all understand endianness.

It's not.

I sent Watson a private response about that, but I guess we must have
this discussion on the list instead.

It seems consensus on curves is almost there.  The basepoint discussion
for Curve25519 could be restarted and it could draw lots of posts (I bet
it will), but otherwise I think it unsurprising that there's little
discussion.

Signature algorithms will be next up, but first things first.  Again, no
surprise about relative post numbers on this.

ECDH point representation on the wire, OTOH, may seem trivial in theory,
but it's not trivial in reality because there exists running code and
because there are patent issues.  It's utterly unsurprising that a
proposal that would instantly obsolete running, unencumbered code just
to generalize point representation so any arbitrary curve anyone can
think of can just be plugged in..., and which would also likely have the
side-effect of patent-encumbering new implementations.... would draw
many comments.

> Although that would make the signature algorithms the bike shed, and
> the endianness coffee.

We're past endianness.  Much of this thread has been about generic point
encoding (Dan Brown's proposal).

Some details really matter.  These aren't trivialities.

Nico
--=20


From nobody Thu Jan 29 12:02:23 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 129F11A710D for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 12:02:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ex6LbW__O0vr for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 12:02:15 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 EA32E1A702C for <cfrg@irtf.org>; Thu, 29 Jan 2015 12:02:10 -0800 (PST)
Received: from [10.20.30.90] (50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206]) (authenticated bits=0) by proper.com (8.15.1/8.14.9) with ESMTPSA id t0TK29o6091625 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Jan 2015 13:02:10 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206] claimed to be [10.20.30.90]
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
Content-Type: multipart/signed; boundary="Apple-Mail=_1A3713C5-F58D-4049-96C0-AB501FFF766D"; protocol="application/pgp-signature"; micalg=pgp-sha1
X-Pgp-Agent: GPGMail 2.5b4
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <D0EFF650.2058C%uri@ll.mit.edu>
Date: Thu, 29 Jan 2015 12:02:05 -0800
Message-Id: <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu>
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/B-YM_erhcQrEfbuE0sMQrF4occ8>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 20:02:18 -0000

--Apple-Mail=_1A3713C5-F58D-4049-96C0-AB501FFF766D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Jan 29, 2015, at 11:46 AM, Blumenthal, Uri - 0558 - MITLL =
<uri@ll.mit.edu> wrote:
>=20
>> On Thu, Jan 29, 2015 at 12:50 PM, Watson Ladd <watsonbladd@gmail.com> =
wrote:
>>> > More importantly, I can't use your curves unless you can prove to =
me that they are secure. And the fact we are having trouble doing that =
in this group proves that it is not possible to achieve that in a =
protocol.
>>> We are not having trouble with that  in this group. Nobody disputes =
that any of the proposed curves are secure, or the details of =
generation=E2=80=A6
> No, in this group we don=E2=80=99t seem to be having trouble with =
that. But I=E2=80=99m sure NIST did not have any trouble with security =
of their selected curves. Likewise, BRAINPOOL didn=E2=80=99t seem to =
worry about security of theirs (ask Tanja, she was there :), DJB is =
certain of his curves, etc.
>=20
> See my point?

No. Are you saying that you will only use curves that NIST says are =
secure? Or that somehow CFRG has to convince NIST?

> How would you convince others that BRAINPOOL might have had something =
up their collective sleeve, but you don=E2=80=99t?

That seems irrelevant. Some people will never be convinced of some =
things that most other people agree to.

--Paul Hoffman

--Apple-Mail=_1A3713C5-F58D-4049-96C0-AB501FFF766D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJUypHAAAoJEJz/fXByZmLZVtEH/RqutTYuucOkZhZRCfjw9iU/
WlTKOOeapEBktDOKQrKTenR7m02+KJxX8FlZZBoZiKt7QtkaRHiQfQ3CoZIonaRH
6PG5oB65rgMY5wDskfbbdOcsSdR8QFxuXwQofZfFXePFu1V9Er/ZhUrlpxOnWpfg
pDo1c3eAX7sglfuAIGLeQxD0TL3fqSXGRAzKUkC2EcBwr8SFFGy5ADMKQxv2tDFD
mXCMgZWGwK+awu2RZOn+26+Ajj4/F4IqHBynyVXclCb79NxJGlpsEeJd4BPg/N/M
eWOGSTav4GtKaINoykN6n6L13RlEmWyq4C57ETy/qmtHzo9y9/fH14M8wAbX4kQ=
=KnVC
-----END PGP SIGNATURE-----

--Apple-Mail=_1A3713C5-F58D-4049-96C0-AB501FFF766D--


From nobody Thu Jan 29 12:23:44 2015
Return-Path: <prvs=9471f473ec=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 226B61A01A8 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 12:23:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.208
X-Spam-Level: 
X-Spam-Status: No, score=-4.208 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, 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 CQaU9yGX8hnM for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 12:23:31 -0800 (PST)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by ietfa.amsl.com (Postfix) with ESMTP id B57F01A702B for <cfrg@irtf.org>; Thu, 29 Jan 2015 12:23:30 -0800 (PST)
Received: from LLE2K10-HUB01.mitll.ad.local (LLE2K10-HUB01.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id t0TKNSca012383; Thu, 29 Jan 2015 15:23:28 -0500
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5D///TDAIAACxgA//+0JACAAW5uAP//wsgngABbjQD//8TFAAALA4SAAAm/WIA=
Date: Thu, 29 Jan 2015 20:23:06 +0000
Message-ID: <D0F0008D.205A3%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu> <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org>
In-Reply-To: <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3505389779_919117"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-29_06:2015-01-29,2015-01-29,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-1501290196
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/WPss_tTwXZZK-LZbtNnL3tigJ0o>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 20:23:39 -0000

--B_3505389779_919117
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

>>No, in this group we don=E2=80=99t seem to be having trouble with that. But I=E2=80=
=99m
>>sure NIST did not have any trouble with security of their selected
>>curves. Likewise, BRAINPOOL didn=E2=80=99t seem to worry about security of
>>theirs (ask Tanja, she was there :), DJB is certain of his curves, etc.
>>=20
>> See my point?
>
>No. Are you saying that you will only use curves that NIST says are
>secure? Or that somehow CFRG has to convince NIST?

No. How about =E2=80=9CI trust neither NIST nor you, and probably you less than
NIST=E2=80=9D?=20


>>How would you convince others that BRAINPOOL might have had something up
>>their collective sleeve, but you don=E2=80=99t?
>
>That seems irrelevant.

???

>Some people will never be convinced of some things that most other people
>agree to.

:-)=20

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

MIIUVwYJKoZIhvcNAQcCoIIUSDCCFEQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghImMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7bYbBUuDpN25Lc86P9RaOiiICtyu
ZZP2P/2kkKYRAgMBAAGjggGyMIIBrjAdBgNVHQ4EFgQUEN9QHIi9GvlGjs9Th46jrfPir+Uw
DgYDVR0PAQH/BAQDAgbAMB8GA1UdIwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1Ud
HwQsMCowKKAmoCSGImh0dHA6Ly9jcmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYB
BQUHAQEEWjBYMC0GCCsGAQUFBzAChiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExD
QTMwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3
FQcEMDAuBiYrBgEEAYI3FQiDg+Udh+ynZoathxWD6vBFhbahHx2Fy94yh/+KcwIBZAIBBTAi
BgNVHSUBAf8EGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDDDAYBgNVHSAEETAPMA0GCyqGSIb3
EgIBAwEIMBkGA1UdEQQSMBCBDnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABM
AFUAcwBlAHIAUwBpAGcALQBTAFcwDQYJKoZIhvcNAQELBQADggEBAL2kCh9ovO8AbHgAVU6T
eH5qRmKnOrfTUfn9JnHzkspdWMQA1IdtftSpiZZ7C3lCmblSDCgPqbQl4zMZxXeTgxnQsB6m
1LA6uDHM/0G27RcOJH4OTN9sQ0/2CKb4JPIXXIps1z+s8XjSRzPJZuD8fPC8R8QWvOH3owL2
BLzZebZTOMa5yws3kohY02vP/Clv0KQXYVzUZUYXoYmhUSYmQ1UZZZSFJ2rNdgNn0z8fPrUQ
NIYlVaJV0kKQYjlHWTfomVapLEfIY7xRHZy9g997IjYReD0t9IZd6tTwcJES+2ijFM8l/fxk
u/cQ4WCYyI+58DaBaV9p68/AC147b0HhvLUwggS8MIIDpKADAgECAgEpMA0GCSqGSIb3DQEB
BQUAMFQxCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGluY29sbiBMYWJvcmF0b3J5MQww
CgYDVQQLEwNQS0kxFjAUBgNVBAMTDU1JVExMIFJvb3QgQ0EwHhcNMTMxMjE3MDAwMDAwWhcN
MjAxMjMxMjM1OTU5WjBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFi
b3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0zMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2jBSdW18tuW1tNxG6h8B0kqckFZQAAtoHCkvUpUEX6jF
vBd8mQI53GyLYRuAo4HWJpe7/izFXOfSJDs6UM5ovvCOfXg2bJgDYlBC9JDcLBFIn0nppOu9
RvpjWSixtC56crwJ5Us5QPdtxtKdek5LJXl2oKw3w8lihUixePbxWad1m7ZMKKagvm9zTybP
6FumKRxeYJjSpB2+cAYjoGGEbSVHyx8uzHm6xAoBMHxa8by+yDz8Jzk6sP9iilgP3iXSGoCA
mhyBzvlQQ5QNNWP+Emo9jz/ukKhYVB/VwdxtoquPAqn4ifDAIaM9dtb05cy1gXAFSP3Z/iUk
xyBZZUORfwIDAQABo4IBmjCCAZYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU12Bm
DntJjXVMDf3PRt7IxxKHyr8wHwYDVR0jBBgwFoAUZ6p6z/QKprlytYqg0p3yEMND7SkwDgYD
VR0PAQH/BAQDAgGGMGYGCCsGAQUFBwEBBFowWDAtBggrBgEFBQcwAoYhaHR0cDovL2NybC5s
bC5taXQuZWR1L2dldHRvP0xMUkNBMCcGCCsGAQUFBzABhhtodHRwOi8vb2NzcC5sbC5taXQu
ZWR1L29jc3AwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sbC5taXQuZWR1L2dldGNy
bD9MTFJDQTCBkgYDVR0gBIGKMIGHMA0GCyqGSIb3EgIBAwEGMA0GCyqGSIb3EgIBAwEIMA0G
CyqGSIb3EgIBAwEHMA0GCyqGSIb3EgIBAwEJMA0GCyqGSIb3EgIBAwEKMA0GCyqGSIb3EgIB
AwELMA0GCyqGSIb3EgIBAwEOMA0GCyqGSIb3EgIBAwEPMA0GCyqGSIb3EgIBAwEQMA0GCSqG
SIb3DQEBBQUAA4IBAQAsf9HBn72qU7UTgkxarjAc7iynhcDEgWwezYKtd/SLGSQ0DhtzIV/L
TCxqULjOd+H+HTqMJXB8+nHnzhyqQ43RsnGZOFT5RfzPh94db/ZJ3ql244DwlJI7yXBA2DkZ
cEEgOWC9bHcrElzU6NnigahSW5odVJrhmH/XhQAcMS77E5H62yyxK1WPPgcBipGVnu1xSHbT
iHe7DqfWQ2tVMLUf23XYhIua94kJsQd4jSh71NVD0e7F4snAoqQMI98MzDYeLOkjlzKRs77r
/aMsPAKx6nMaOvRL7Cy0Pjp51i2qFkbGmX8ofnh2kerjTTvRJ/g22r1MV8RR1PktjMsNOsPf
MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQUFADBUMQswCQYDVQQGEwJVUzEfMB0GA1UE
ChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRYwFAYDVQQDEw1NSVRM
TCBSb290IENBMB4XDTA4MDkyMzEyMDAwMFoXDTI5MTIzMTIzNTk1OVowVDELMAkGA1UEBhMC
VVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTEWMBQG
A1UEAxMNTUlUTEwgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMVO
KRdYsiay+a2Kv1wQCoPd5AkwExuwcNDRhaRCdQN17K+lCCKvf9VSQToAsA6q1bACtZUcMv5Z
Kx8z5KG4jK9cM40NvEkf/bIOZAHJqzKgWG3N9NqrcAhimcXTXYQIdp1DgjtdADKVLAjXaYpD
2PbpE/JbAPnqKzOENa3Py9CegB0abTlOyLgwXWY/rXTW+4L/hipJ6+sI/ZtrFRmsKGhuwAKo
bFr0FDP6uIfx+RaWJcJ1QBIdgM4aohvW8JeriSSMyf/LlFpXTZFcM9SOX0f7wmsYi1yFuKFM
nQbkSkxvnpBKMRxrg+98seSbbEnIkvB0C9qBDPLb/lQAvmpW6oMCAwEAAaNgMF4wDwYDVR0T
AQH/BAUwAwEB/zAdBgNVHQ4EFgQUZ6p6z/QKprlytYqg0p3yEMND7SkwHwYDVR0jBBgwFoAU
Z6p6z/QKprlytYqg0p3yEMND7SkwCwYDVR0PBAQDAgGGMA0GCSqGSIb3DQEBBQUAA4IBAQA+
G20FYNB4eNhKWF+PyT5DUtzlABFkf2IM2VGNUBova0GeKX3I1Nf02qDU/GO2H9ETvnvTYhvf
gQ4UB/5EImTkKPa7/TVG/MQ7SgmAmne8xELVbGLFrrytly8PyYtZtngb6DgeEUv+SwFnzcLO
1vg1rdmss3kwsqy0q8e2VYAY8zTptEzyJG36aXcIMbqOxWS/LbPjNuPdgJfO3d1WrHr1Etaa
a0QRLqQoZj07dYY7Wo5EDqU+AUAMz9ZVRGK1s5b/jv5Wz/YroyqWFnH2KkNxRn9+2Ar7g3rn
rOMZvp6psq2jbDXiPBod1wyMKn8x5y4cuGPNFcqjfyY/HX90ivQAMIIE7TCCA9WgAwIBAgIK
KHB6MgAAAAAtBzANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlU
IExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0z
MB4XDTE1MDEyMzE3NDkyOVoXDTE2MDEyMzE3NDkyOVowYTELMAkGA1UEBhMCVVMxHzAdBgNV
BAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMX
Qmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDF+Rcs9hNO5hvlE0YeltqeXGUW1u3RVMG4/2ag6J2FgcsOJxOZy/m+7FeYfCo3XYrNqx6/
3IZmDSYln3JnxzPionDcbK2TJ9xAOoWlrUykAhgUl+PCO8ahDV5Yc0tmMzf5MXBrsub0nUyJ
eDkxOUY2Id58D1UVzzXh9Kvjc+ZCcBRFoViAgn7MznnuvK8Y5m7Lor1oLWSxNNUyp98gC4Ep
dHLnA8yP1WqmNr0x+YssjJgEiIfZFqx8Gvv2OqtHaFGHh7Y6+WOWIZULMaAc9JJEq8ctns9m
GIRldf2JMFcNsahQJDhgUspmP6c1Wz9OrUxsgwnGQ5feIq9c/4YZYEZ/AgMBAAGjggG1MIIB
sTAdBgNVHQ4EFgQUR0hebk4i6063YnpEEVXyQUyfSFMwDgYDVR0PAQH/BAQDAgUgMB8GA1Ud
IwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1UdHwQsMCowKKAmoCSGImh0dHA6Ly9j
cmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYBBQUHAQEEWjBYMC0GCCsGAQUFBzAC
hiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExDQTMwJwYIKwYBBQUHMAGGG2h0dHA6
Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiDg+Ud
h+ynZoathxWD6vBFhbahHx2F69Bwg+vtIAIBZAIBBDAlBgNVHSUEHjAcBgRVHSUABggrBgEF
BQcDBAYKKwYBBAGCNwoDBDAYBgNVHSAEETAPMA0GCyqGSIb3EgIBAwEIMBkGA1UdEQQSMBCB
DnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABMAFUAcwBlAHIARQBuAGMALQBT
AFcwDQYJKoZIhvcNAQELBQADggEBADim5zjTb/h3ea/66DNM6wSmi1Ti9F2f2/Are2a7a9E/
IPXfleh39lVG7uTaneEJMSHzDltkB5k6DYMv/t28ntQm2jLI9adMwccDlKSR2uIDsiA7jodi
TxbqL/aRi+WC4ybWWhXuzSbkMesayt5QAKpuKLAr7newfZaWx8zPnWU1nWZBbJR7cLKgUTaE
iQu/NlCWIFJIC9yRhze+KR41vIa+7niQnUANjoYCCu32Z8xgxhK4kQr5teUVUNDoCj02x781
GFfwCknxpsWEm95OWM1iaXKCGJ8ciioulEzksZUrIHdImISaQVV+Xdmbcd3OH6y8fNl1mZdX
n8sxNJc+/g0xggH1MIIB8QIBATBfMFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGlu
Y29sbiBMYWJvcmF0b3J5MQwwCgYDVQQLEwNQS0kxEzARBgNVBAMTCk1JVExMIENBLTMCCh9F
2aAAAAAAAc0wDQYJYIZIAWUDBAIBBQCgaTAvBgkqhkiG9w0BCQQxIgQg75e7A7JRw4og0Rpw
0PR45lUtjqU3o+8x4aZmsj7pFRIwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG
9w0BCQUxDxcNMTUwMTI5MjAyMjU5WjANBgkqhkiG9w0BAQEFAASCAQClBLhttJGxozT7SFSj
EnJd7Nkd5xl1EBmCD3VWC4w4GeSVFSuUxX2bN1TdQwHLaz6BV/zb9m4RmNRa7Nhg+68iGMUD
azU6aV311L3eh18/hz6o7m5zZf93KQjRXkcKhnH30cUPLljel7/Qmoo1g6tgQrG+t991V4tR
dvIwLvV94A6Lp9zP8SwmtccD9nfcqfeWp6oZq03BSRC/v5v3TsE01DUIq9WzJkfjCrqEGbtw
v7n7PzAFbO2N92dGK7epaOS33+IscmRdK5tFUUaMm9MECoC6sqq3w5d6wVIZv6pzTBctPip+
VzUo7zga8ZfjYZ7W24AY3geynsnfJl9aZyqT

--B_3505389779_919117--


From nobody Thu Jan 29 12:51:14 2015
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 D59971A1AFF for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 12:51:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M6I6-haP_ae7 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 12:51:11 -0800 (PST)
Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68F7B1A1A59 for <cfrg@irtf.org>; Thu, 29 Jan 2015 12:51:10 -0800 (PST)
Received: by mail-lb0-f180.google.com with SMTP id b6so32493954lbj.11 for <cfrg@irtf.org>; Thu, 29 Jan 2015 12:51:08 -0800 (PST)
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=gGm+ck3MhftezE0tWGbLFqJoNWoLWUJNrDBQBwfPt18=; b=G7CIq7TQqo8piUbOjAkxzJIhGGDiKnEgbKQYGQVEGs8jF72F2acYIjs88uX+7d5AJ8 0HcyXq1EtKxKxqclHRCJUvu1ToOdUu2RX0BzSiEVxLd8L28KHxuzksFV9NsDvBecjSbX 98RuSq5+Kd7Do/ryGITUKn0+puPmCsxs3KWYmu0Df5NrYxK0ieey+2Wh12Hzrl4tv2ic phDVGdg3vKHSiZzXulvPrghiMYuSneag+blP4ujG6Egv4r2D+CjUkhsSKMVGCfEy9TZJ Zgu/S8Q9pHq531J5fzQ/bitLvvYpX7tfydQqed9RZOk7Lf3xVxKFSBmQHkqTXdOadL4t WdSg==
MIME-Version: 1.0
X-Received: by 10.152.6.101 with SMTP id z5mr3184576laz.19.1422564668736; Thu, 29 Jan 2015 12:51:08 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 12:51:08 -0800 (PST)
In-Reply-To: <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu> <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org>
Date: Thu, 29 Jan 2015 15:51:08 -0500
X-Google-Sender-Auth: yxpApA8r97Px3DZMcoDhMk7xyiw
Message-ID: <CAMm+Lwhek74JYC1WqKw2XmSGLMnH+XpYRs6j=xUD9B6pjto3tw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: multipart/alternative; boundary=089e01494332c00d69050dd0a5a5
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ewvn2QB0nMn9o-m67fu7VL6cp1U>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 20:51:13 -0000

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

On Thu, Jan 29, 2015 at 3:02 PM, Paul Hoffman <paul.hoffman@vpnc.org> wrote=
:

>
> > On Jan 29, 2015, at 11:46 AM, Blumenthal, Uri - 0558 - MITLL <
> uri@ll.mit.edu> wrote:
> >
> >> On Thu, Jan 29, 2015 at 12:50 PM, Watson Ladd <watsonbladd@gmail.com>
> wrote:
> >>> > More importantly, I can't use your curves unless you can prove to m=
e
> that they are secure. And the fact we are having trouble doing that in th=
is
> group proves that it is not possible to achieve that in a protocol.
> >>> We are not having trouble with that  in this group. Nobody disputes
> that any of the proposed curves are secure, or the details of generation=
=E2=80=A6
> > No, in this group we don=E2=80=99t seem to be having trouble with that.=
 But I=E2=80=99m
> sure NIST did not have any trouble with security of their selected curves=
.
> Likewise, BRAINPOOL didn=E2=80=99t seem to worry about security of theirs=
 (ask
> Tanja, she was there :), DJB is certain of his curves, etc.
> >
> > See my point?
>
> No. Are you saying that you will only use curves that NIST says are
> secure? Or that somehow CFRG has to convince NIST?
>
> > How would you convince others that BRAINPOOL might have had something u=
p
> their collective sleeve, but you don=E2=80=99t?
>
> That seems irrelevant. Some people will never be convinced of some things
> that most other people agree to.
>

What is being argued against here is making room for DIY curves.

My point is that the only way to come up with an informed decision to use
someone else's curves is to apply a vast amount of domain specific
expertise plus really trust the supplier to not have something up their
sleeves.

We are working on a scheme to reduce the amount of scope of 'up our
sleeves' to the absolute minimum or close to it and getting what is surely
the best available expertise from the field to comment.

So I think we can come up with a decision here but the process makes me
certain that there is no possibility that two random computers could
negotiate a secure set of curves on the Internet via a protocol. Unless
that is we assume some form of out-of-band trust relationship.


My view is that we should pick Curve 25519 because it is a decent balance
of expediency and security for the performance curve and P512 because it
removes virtually all possibility of 'up their sleevesies' argument for the
highest assurance curve.

While it is true that there are multiple forms in which the curves might be
expressed, these issues are really very much less of a concern because
first, all the curves we are discussing are isomorphic.

That said, I prefer the Edwards curves because I can explain them to other
folk without resorting to abstract math (now I have been given the link to
DJB's presentation at Chaos). The use of The Wierstrass forms are much less
friendly.

http://www.youtube.com/watch?v=3Dl6jTFxQaUJA

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 3:02 PM, Paul Hoffman <span dir=3D"ltr">&lt;<a =
href=3D"mailto:paul.hoffman@vpnc.org" target=3D"_blank">paul.hoffman@vpnc.o=
rg</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,20=
4);border-left-style:solid;padding-left:1ex"><span class=3D""><br>
&gt; On Jan 29, 2015, at 11:46 AM, Blumenthal, Uri - 0558 - MITLL &lt;<a hr=
ef=3D"mailto:uri@ll.mit.edu">uri@ll.mit.edu</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; On Thu, Jan 29, 2015 at 12:50 PM, Watson Ladd &lt;<a href=3D"mailt=
o:watsonbladd@gmail.com">watsonbladd@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; More importantly, I can&#39;t use your curves unless you =
can prove to me that they are secure. And the fact we are having trouble do=
ing that in this group proves that it is not possible to achieve that in a =
protocol.<br>
&gt;&gt;&gt; We are not having trouble with that=C2=A0 in this group. Nobod=
y disputes that any of the proposed curves are secure, or the details of ge=
neration=E2=80=A6<br>
&gt; No, in this group we don=E2=80=99t seem to be having trouble with that=
. But I=E2=80=99m sure NIST did not have any trouble with security of their=
 selected curves. Likewise, BRAINPOOL didn=E2=80=99t seem to worry about se=
curity of theirs (ask Tanja, she was there :), DJB is certain of his curves=
, etc.<br>
&gt;<br>
&gt; See my point?<br>
<br>
</span>No. Are you saying that you will only use curves that NIST says are =
secure? Or that somehow CFRG has to convince NIST?<br>
<span class=3D""><br>
&gt; How would you convince others that BRAINPOOL might have had something =
up their collective sleeve, but you don=E2=80=99t?<br>
<br>
</span>That seems irrelevant. Some people will never be convinced of some t=
hings that most other people agree to.<br></blockquote><div><br></div><div>=
What is being argued against here is making room for DIY curves.=C2=A0</div=
><div><br></div><div>My point is that the only way to come up with an infor=
med decision to use someone else&#39;s curves is to apply a vast amount of =
domain specific expertise plus really trust the supplier to not have someth=
ing up their sleeves.</div><div><br></div><div>We are working on a scheme t=
o reduce the amount of scope of &#39;up our sleeves&#39; to the absolute mi=
nimum or close to it and getting what is surely the best available expertis=
e from the field to comment.</div><div><br></div><div>So I think we can com=
e up with a decision here but the process makes me certain that there is no=
 possibility that two random computers could negotiate a secure set of curv=
es on the Internet via a protocol. Unless that is we assume some form of ou=
t-of-band trust relationship.</div><div><br></div><div><br></div><div>My vi=
ew is that we should pick Curve 25519 because it is a decent balance of exp=
ediency and security for the performance curve and P512 because it removes =
virtually all possibility of &#39;up their sleevesies&#39; argument for the=
 highest assurance curve.</div><div><br></div><div>While it is true that th=
ere are multiple forms in which the curves might be expressed, these issues=
 are really very much less of a concern because first, all the curves we ar=
e discussing are isomorphic.</div><div><br></div><div>That said, I prefer t=
he Edwards curves because I can explain them to other folk without resortin=
g to abstract math (now I have been given the link to DJB&#39;s presentatio=
n at Chaos). The use of The Wierstrass forms are much less friendly.</div><=
div><br></div><div><a href=3D"http://www.youtube.com/watch?v=3Dl6jTFxQaUJA"=
 target=3D"_blank" style=3D"font-size:12.8000001907349px">http://www.youtub=
e.com/watch?v=3Dl6jTFxQaUJA</a><br></div><div><br></div><div><br></div><div=
><br></div></div></div></div>

--089e01494332c00d69050dd0a5a5--


From nobody Thu Jan 29 13:39:29 2015
Return-Path: <prvs=9471f473ec=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 72A8A1A87CD for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:39:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.308
X-Spam-Level: 
X-Spam-Status: No, score=-2.308 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, 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 QhsWb2WB7IzY for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:39:24 -0800 (PST)
Received: from mx1.ll.mit.edu (MX1.LL.MIT.EDU [129.55.12.45]) by ietfa.amsl.com (Postfix) with ESMTP id 1476C1A87D4 for <cfrg@irtf.org>; Thu, 29 Jan 2015 13:39:23 -0800 (PST)
Received: from LLE2K10-HUB02.mitll.ad.local (LLE2K10-HUB02.mitll.ad.local) by mx1.ll.mit.edu (unknown) with ESMTP id t0TLd3dJ032119; Thu, 29 Jan 2015 16:39:20 -0500
From: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Thread-Topic: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA6QfeHnVWfJGNlTzek7rmrn4E15gBEvvUAAAkmA5D///TDAIAACxgA//+0JACAAW5uAP//wsgngABbjQD//8TFAAALA4SAAAG2iwAACSj+gA==
Date: Thu, 29 Jan 2015 21:28:57 +0000
Message-ID: <D0F00862.205B5%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu> <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org> <CAMm+Lwhek74JYC1WqKw2XmSGLMnH+XpYRs6j=xUD9B6pjto3tw@mail.gmail.com>
In-Reply-To: <CAMm+Lwhek74JYC1WqKw2XmSGLMnH+XpYRs6j=xUD9B6pjto3tw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.4.7.141117
x-originating-ip: [172.25.177.187]
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3505393731_1192590"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33,  0.0.0000 definitions=2015-01-29_07:2015-01-29,2015-01-29,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-1501290205
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/oKhP4fMQn5jrwEvFiaac7nhLk_I>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 21:39:27 -0000

--B_3505393731_1192590
Content-type: multipart/alternative;
	boundary="B_3505393731_1206198"


--B_3505393731_1206198
Content-type: text/plain;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

>> That seems irrelevant. Some people will never be convinced of some thing=
s
>> that most other people agree to.
>=20
> What is being argued against here is making room for DIY curves.
>=20
> My point is that the only way to come up with an informed decision to use
> someone else's curves is to apply a vast amount of domain specific expert=
ise
> plus really trust the supplier to not have something up their sleeves.

Unless that =E2=80=9Csomebody else=E2=80=9D is your boss, or somebody you have informed
reasons to trust.

Some people (and organizations :) tend to trust =E2=80=9Ctheir=E2=80=9D experts, and no=
t
trust =E2=80=9Cother=E2=80=9D experts as much. As an example =E2=80=93 why didn=E2=80=99t NSA adopt=
 Russian
GOST, and why didn=E2=80=99t Russians adopt AES? Probably not because they questi=
on
the competence of the other side? :-)

I=E2=80=99m arguing that there is a need for DIY curves, on both personal and
=E2=80=9Corganizational=E2=80=9D level.

> So I think we can come up with a decision here but the process makes me
> certain that there is no possibility that two random computers could nego=
tiate
> a secure set of curves on the Internet via a protocol. Unless that is we
> assume some form of out-of-band trust relationship.

There should be a set of =E2=80=9Cuniversally=E2=80=9D accepted curves, so that when yo=
u
want to talk to a complete stranger =E2=80=93 both of you would use what the
=E2=80=9Ccommunity=E2=80=9D considers cryptographically OK (which belongs to that small
commonly shared set). But that=E2=80=99s only half of use cases.

There should be an option to specify =E2=80=9Cmy own=E2=80=9D curves, so that when, e.g=
. one
=E2=80=9Cteam" member wants to talk to his peer =E2=80=93 their software will pick that
special curve that was for whatever reasons approved by their boss, or
refuse to connect. Because in that context ability to establish a connectio=
n
with a stranger is underisable.


> My view is that we should pick Curve 25519 because it is a decent balance=
 of
> expediency and security for the performance curve and P512 because it rem=
oves
> virtually all possibility of 'up their sleevesies' argument for the highe=
st
> assurance curve=E2=80=A6..
> That said, I prefer the Edwards curves because I can explain them to othe=
r
> folk without resorting to abstract math (now I have been given the link t=
o
> DJB's presentation at Chaos). The use of The Wierstrass forms are much le=
ss
> friendly.

I see your point.




--B_3505393731_1206198
Content-type: text/html;
	charset="UTF-8"
Content-transfer-encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
 14px; font-family: Calibri, sans-serif;"><span id=3D"OLK_SRC_BODY_SECTION"><b=
lockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4d=
f 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div><div dir=3D"ltr"><div c=
lass=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(=
204,204,204);border-left-style:solid;padding-left:1ex">That seems irrelevant=
. Some people will never be convinced of some things that most other people =
agree to.<br></blockquote><div><br></div><div>What is being argued against h=
ere is making room for DIY curves.&nbsp;</div><div><br></div><div>My point i=
s that the only way to come up with an informed decision to use someone else=
's curves is to apply a vast amount of domain specific expertise plus really=
 trust the supplier to not have something up their sleeves.</div></div></div=
></div></div></div></blockquote></span><div><br></div><div>Unless that &#822=
0;somebody else&#8221; is your boss, or somebody you have informed reasons t=
o trust.</div><div><br></div><div>Some people (<span style=3D"font-weight: bol=
d;">and organizations </span><b>:</b>) tend to trust &#8220;their&#8221; exp=
erts, and not trust &#8220;other&#8221; experts as much. As an example &#821=
1; why didn&#8217;t NSA adopt Russian GOST, and why didn&#8217;t Russians ad=
opt AES? Probably not because they question the competence of the other side=
? :-)</div><div><br></div><div>I&#8217;m arguing that there is a need for DI=
Y curves, on both personal and &#8220;organizational&#8221; level.</div><div=
><br></div><span id=3D"OLK_SRC_BODY_SECTION"><blockquote id=3D"MAC_OUTLOOK_ATTRI=
BUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MAR=
GIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quot=
e"><div>So I think we can come up with a decision here but the process makes=
 me certain that there is no possibility that two random computers could neg=
otiate a secure set of curves on the Internet via a protocol. Unless that is=
 we assume some form of out-of-band
 trust relationship.</div></div></div></div></blockquote></span><div><br></=
div><div>There should be a set of &#8220;universally&#8221; accepted curves,=
 so that when you want to talk to a complete stranger &#8211; both of you wo=
uld use what the &#8220;community&#8221; considers cryptographically OK (whi=
ch belongs to that small commonly shared set). But that&#8217;s only half of=
 use cases.</div><div><br></div><div>There should be an option to specify &#=
8220;my own&#8221; curves, so that when, e.g. one &#8220;team" member wants =
to talk to his peer &#8211; their software will pick that special curve that=
 was for whatever reasons approved by their boss, or refuse to connect. Beca=
use in that context ability to establish a connection with a stranger is und=
erisable.</div><div><br></div><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"=
><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT: #b5=
c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir=3D"ltr"><div class=3D"g=
mail_extra"><div class=3D"gmail_quote"><div>My view is that we should pick Cur=
ve 25519 because it is a decent balance of expediency and security for the p=
erformance curve and P512 because it removes virtually all possibility of 'u=
p their sleevesies' argument for the highest assurance curve&#8230;..</div><=
div>That said, I prefer the Edwards curves because I can explain them to oth=
er folk without resorting to abstract math (now I have been given the link t=
o DJB's presentation at Chaos). The use of The Wierstrass forms are much les=
s friendly.</div></div></div></div></blockquote></span><div><br></div><div>I=
 see your point.</div><span id=3D"OLK_SRC_BODY_SECTION"><div dir=3D"ltr"><div cl=
ass=3D"gmail_extra"><div class=3D"gmail_quote"><br></div></div></div></span></bo=
dy></html>

--B_3505393731_1206198--

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

MIIUVwYJKoZIhvcNAQcCoIIUSDCCFEQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B
BwGgghImMIIE6jCCA9KgAwIBAgIKH0XZoAAAAAABzTANBgkqhkiG9w0BAQsFADBRMQswCQYD
VQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJ
MRMwEQYDVQQDEwpNSVRMTCBDQS0zMB4XDTE0MDQxNjIxNTMwMloXDTE1MDQxNjIxNTMwMlow
YTELMAkGA1UEBhMCVVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNV
BAsTBlBlb3BsZTEgMB4GA1UEAxMXQmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx/gK75UYos2g8JavX0BVfe3TCGsmjQY34z9ZVeucP
8dGtqRA8T5i1OKdf++Jd81a0/qQA6mIGyzTW6lOtY+77qKUJtEeLM5URd+iv2EejAwxsa2B5
pMq9L9qWuVokR1rTEfEcuUeKR1Kko6xmRE/y6AzBnUhTvHx2X9F6JSVdR36Lx3R62CNeQqFi
ZDeHuTI8AhRY4UdPkri1FTDxV6gLYaLKxsGIurrL/6EzdlkX8ImTcxKzEmxX1VjTPy9ZRNYj
akDGcJF9clCfcwbq3DI3gAUkVxXf+UbHEjzOCVNQcoga7bYbBUuDpN25Lc86P9RaOiiICtyu
ZZP2P/2kkKYRAgMBAAGjggGyMIIBrjAdBgNVHQ4EFgQUEN9QHIi9GvlGjs9Th46jrfPir+Uw
DgYDVR0PAQH/BAQDAgbAMB8GA1UdIwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1Ud
HwQsMCowKKAmoCSGImh0dHA6Ly9jcmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYB
BQUHAQEEWjBYMC0GCCsGAQUFBzAChiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExD
QTMwJwYIKwYBBQUHMAGGG2h0dHA6Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3
FQcEMDAuBiYrBgEEAYI3FQiDg+Udh+ynZoathxWD6vBFhbahHx2Fy94yh/+KcwIBZAIBBTAi
BgNVHSUBAf8EGDAWBggrBgEFBQcDBAYKKwYBBAGCNwoDDDAYBgNVHSAEETAPMA0GCyqGSIb3
EgIBAwEIMBkGA1UdEQQSMBCBDnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABM
AFUAcwBlAHIAUwBpAGcALQBTAFcwDQYJKoZIhvcNAQELBQADggEBAL2kCh9ovO8AbHgAVU6T
eH5qRmKnOrfTUfn9JnHzkspdWMQA1IdtftSpiZZ7C3lCmblSDCgPqbQl4zMZxXeTgxnQsB6m
1LA6uDHM/0G27RcOJH4OTN9sQ0/2CKb4JPIXXIps1z+s8XjSRzPJZuD8fPC8R8QWvOH3owL2
BLzZebZTOMa5yws3kohY02vP/Clv0KQXYVzUZUYXoYmhUSYmQ1UZZZSFJ2rNdgNn0z8fPrUQ
NIYlVaJV0kKQYjlHWTfomVapLEfIY7xRHZy9g997IjYReD0t9IZd6tTwcJES+2ijFM8l/fxk
u/cQ4WCYyI+58DaBaV9p68/AC147b0HhvLUwggS8MIIDpKADAgECAgEpMA0GCSqGSIb3DQEB
BQUAMFQxCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGluY29sbiBMYWJvcmF0b3J5MQww
CgYDVQQLEwNQS0kxFjAUBgNVBAMTDU1JVExMIFJvb3QgQ0EwHhcNMTMxMjE3MDAwMDAwWhcN
MjAxMjMxMjM1OTU5WjBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlUIExpbmNvbG4gTGFi
b3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0zMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2jBSdW18tuW1tNxG6h8B0kqckFZQAAtoHCkvUpUEX6jF
vBd8mQI53GyLYRuAo4HWJpe7/izFXOfSJDs6UM5ovvCOfXg2bJgDYlBC9JDcLBFIn0nppOu9
RvpjWSixtC56crwJ5Us5QPdtxtKdek5LJXl2oKw3w8lihUixePbxWad1m7ZMKKagvm9zTybP
6FumKRxeYJjSpB2+cAYjoGGEbSVHyx8uzHm6xAoBMHxa8by+yDz8Jzk6sP9iilgP3iXSGoCA
mhyBzvlQQ5QNNWP+Emo9jz/ukKhYVB/VwdxtoquPAqn4ifDAIaM9dtb05cy1gXAFSP3Z/iUk
xyBZZUORfwIDAQABo4IBmjCCAZYwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQU12Bm
DntJjXVMDf3PRt7IxxKHyr8wHwYDVR0jBBgwFoAUZ6p6z/QKprlytYqg0p3yEMND7SkwDgYD
VR0PAQH/BAQDAgGGMGYGCCsGAQUFBwEBBFowWDAtBggrBgEFBQcwAoYhaHR0cDovL2NybC5s
bC5taXQuZWR1L2dldHRvP0xMUkNBMCcGCCsGAQUFBzABhhtodHRwOi8vb2NzcC5sbC5taXQu
ZWR1L29jc3AwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sbC5taXQuZWR1L2dldGNy
bD9MTFJDQTCBkgYDVR0gBIGKMIGHMA0GCyqGSIb3EgIBAwEGMA0GCyqGSIb3EgIBAwEIMA0G
CyqGSIb3EgIBAwEHMA0GCyqGSIb3EgIBAwEJMA0GCyqGSIb3EgIBAwEKMA0GCyqGSIb3EgIB
AwELMA0GCyqGSIb3EgIBAwEOMA0GCyqGSIb3EgIBAwEPMA0GCyqGSIb3EgIBAwEQMA0GCSqG
SIb3DQEBBQUAA4IBAQAsf9HBn72qU7UTgkxarjAc7iynhcDEgWwezYKtd/SLGSQ0DhtzIV/L
TCxqULjOd+H+HTqMJXB8+nHnzhyqQ43RsnGZOFT5RfzPh94db/ZJ3ql244DwlJI7yXBA2DkZ
cEEgOWC9bHcrElzU6NnigahSW5odVJrhmH/XhQAcMS77E5H62yyxK1WPPgcBipGVnu1xSHbT
iHe7DqfWQ2tVMLUf23XYhIua94kJsQd4jSh71NVD0e7F4snAoqQMI98MzDYeLOkjlzKRs77r
/aMsPAKx6nMaOvRL7Cy0Pjp51i2qFkbGmX8ofnh2kerjTTvRJ/g22r1MV8RR1PktjMsNOsPf
MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQUFADBUMQswCQYDVQQGEwJVUzEfMB0GA1UE
ChMWTUlUIExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRYwFAYDVQQDEw1NSVRM
TCBSb290IENBMB4XDTA4MDkyMzEyMDAwMFoXDTI5MTIzMTIzNTk1OVowVDELMAkGA1UEBhMC
VVMxHzAdBgNVBAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDDAKBgNVBAsTA1BLSTEWMBQG
A1UEAxMNTUlUTEwgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMVO
KRdYsiay+a2Kv1wQCoPd5AkwExuwcNDRhaRCdQN17K+lCCKvf9VSQToAsA6q1bACtZUcMv5Z
Kx8z5KG4jK9cM40NvEkf/bIOZAHJqzKgWG3N9NqrcAhimcXTXYQIdp1DgjtdADKVLAjXaYpD
2PbpE/JbAPnqKzOENa3Py9CegB0abTlOyLgwXWY/rXTW+4L/hipJ6+sI/ZtrFRmsKGhuwAKo
bFr0FDP6uIfx+RaWJcJ1QBIdgM4aohvW8JeriSSMyf/LlFpXTZFcM9SOX0f7wmsYi1yFuKFM
nQbkSkxvnpBKMRxrg+98seSbbEnIkvB0C9qBDPLb/lQAvmpW6oMCAwEAAaNgMF4wDwYDVR0T
AQH/BAUwAwEB/zAdBgNVHQ4EFgQUZ6p6z/QKprlytYqg0p3yEMND7SkwHwYDVR0jBBgwFoAU
Z6p6z/QKprlytYqg0p3yEMND7SkwCwYDVR0PBAQDAgGGMA0GCSqGSIb3DQEBBQUAA4IBAQA+
G20FYNB4eNhKWF+PyT5DUtzlABFkf2IM2VGNUBova0GeKX3I1Nf02qDU/GO2H9ETvnvTYhvf
gQ4UB/5EImTkKPa7/TVG/MQ7SgmAmne8xELVbGLFrrytly8PyYtZtngb6DgeEUv+SwFnzcLO
1vg1rdmss3kwsqy0q8e2VYAY8zTptEzyJG36aXcIMbqOxWS/LbPjNuPdgJfO3d1WrHr1Etaa
a0QRLqQoZj07dYY7Wo5EDqU+AUAMz9ZVRGK1s5b/jv5Wz/YroyqWFnH2KkNxRn9+2Ar7g3rn
rOMZvp6psq2jbDXiPBod1wyMKn8x5y4cuGPNFcqjfyY/HX90ivQAMIIE7TCCA9WgAwIBAgIK
KHB6MgAAAAAtBzANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJVUzEfMB0GA1UEChMWTUlU
IExpbmNvbG4gTGFib3JhdG9yeTEMMAoGA1UECxMDUEtJMRMwEQYDVQQDEwpNSVRMTCBDQS0z
MB4XDTE1MDEyMzE3NDkyOVoXDTE2MDEyMzE3NDkyOVowYTELMAkGA1UEBhMCVVMxHzAdBgNV
BAoTFk1JVCBMaW5jb2xuIExhYm9yYXRvcnkxDzANBgNVBAsTBlBlb3BsZTEgMB4GA1UEAxMX
Qmx1bWVudGhhbC5VcmkuNTAwMTA1ODQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDF+Rcs9hNO5hvlE0YeltqeXGUW1u3RVMG4/2ag6J2FgcsOJxOZy/m+7FeYfCo3XYrNqx6/
3IZmDSYln3JnxzPionDcbK2TJ9xAOoWlrUykAhgUl+PCO8ahDV5Yc0tmMzf5MXBrsub0nUyJ
eDkxOUY2Id58D1UVzzXh9Kvjc+ZCcBRFoViAgn7MznnuvK8Y5m7Lor1oLWSxNNUyp98gC4Ep
dHLnA8yP1WqmNr0x+YssjJgEiIfZFqx8Gvv2OqtHaFGHh7Y6+WOWIZULMaAc9JJEq8ctns9m
GIRldf2JMFcNsahQJDhgUspmP6c1Wz9OrUxsgwnGQ5feIq9c/4YZYEZ/AgMBAAGjggG1MIIB
sTAdBgNVHQ4EFgQUR0hebk4i6063YnpEEVXyQUyfSFMwDgYDVR0PAQH/BAQDAgUgMB8GA1Ud
IwQYMBaAFNdgZg57SY11TA39z0beyMcSh8q/MDMGA1UdHwQsMCowKKAmoCSGImh0dHA6Ly9j
cmwubGwubWl0LmVkdS9nZXRjcmwvTExDQTMwZgYIKwYBBQUHAQEEWjBYMC0GCCsGAQUFBzAC
hiFodHRwOi8vY3JsLmxsLm1pdC5lZHUvZ2V0dG8vTExDQTMwJwYIKwYBBQUHMAGGG2h0dHA6
Ly9vY3NwLmxsLm1pdC5lZHUvb2NzcDA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiDg+Ud
h+ynZoathxWD6vBFhbahHx2F69Bwg+vtIAIBZAIBBDAlBgNVHSUEHjAcBgRVHSUABggrBgEF
BQcDBAYKKwYBBAGCNwoDBDAYBgNVHSAEETAPMA0GCyqGSIb3EgIBAwEIMBkGA1UdEQQSMBCB
DnVyaUBsbC5taXQuZWR1MCcGCSsGAQQBgjcUAgQaHhgATABMAFUAcwBlAHIARQBuAGMALQBT
AFcwDQYJKoZIhvcNAQELBQADggEBADim5zjTb/h3ea/66DNM6wSmi1Ti9F2f2/Are2a7a9E/
IPXfleh39lVG7uTaneEJMSHzDltkB5k6DYMv/t28ntQm2jLI9adMwccDlKSR2uIDsiA7jodi
TxbqL/aRi+WC4ybWWhXuzSbkMesayt5QAKpuKLAr7newfZaWx8zPnWU1nWZBbJR7cLKgUTaE
iQu/NlCWIFJIC9yRhze+KR41vIa+7niQnUANjoYCCu32Z8xgxhK4kQr5teUVUNDoCj02x781
GFfwCknxpsWEm95OWM1iaXKCGJ8ciioulEzksZUrIHdImISaQVV+Xdmbcd3OH6y8fNl1mZdX
n8sxNJc+/g0xggH1MIIB8QIBATBfMFExCzAJBgNVBAYTAlVTMR8wHQYDVQQKExZNSVQgTGlu
Y29sbiBMYWJvcmF0b3J5MQwwCgYDVQQLEwNQS0kxEzARBgNVBAMTCk1JVExMIENBLTMCCh9F
2aAAAAAAAc0wDQYJYIZIAWUDBAIBBQCgaTAvBgkqhkiG9w0BCQQxIgQgBUnqmKA3gH3qTsG2
a0qKCo9mtnbeFHDB1qAhCscmiWMwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG
9w0BCQUxDxcNMTUwMTI5MjEyODUxWjANBgkqhkiG9w0BAQEFAASCAQAsfM7YvutB6Q1lTca9
agmPDJ7HhFmchmjNyPeNf8PJpguIYaMY7kFnw5r209cKOnYRMhnuKudw6J0ymtDXgMrVA8Hz
qAsH13HRx7GuWBvWWliguU2a7n9x3ZFkjTRxD209cf7HDl6ipsQTmg5AoDwynMKXg9bR+FKe
UBI4w3r56vBJjufwaDIWUNZyP3FsfXi15ji1Ogc2u0jd4vE4zaeIrhdlNTybHSb1kImaf7jn
V6cai41W2d8f11AQcXcQDTBSZfNclbWe50PTZzeiimSoaOYDwbyacqhcfpAWk9lt7SfFqKVy
uvbHCWGeOD09t2IuG8F7KaO6g9F7CuVHhkjG

--B_3505393731_1192590--


From nobody Thu Jan 29 13:51:47 2015
Return-Path: <dkg@fifthhorseman.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5F4621A8847 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:51:46 -0800 (PST)
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 pBWnpAPQ4SUx for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:51:45 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id 1C08C1A8848 for <cfrg@irtf.org>; Thu, 29 Jan 2015 13:51:45 -0800 (PST)
Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 1B0C3F984; Thu, 29 Jan 2015 16:51:42 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 1E8B2201D1; Thu, 29 Jan 2015 16:51:51 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: "Blumenthal\, Uri - 0558 - MITLL" <uri@ll.mit.edu>, Phillip Hallam-Baker <phill@hallambaker.com>
In-Reply-To: <D0F00862.205B5%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu> <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org> <CAMm+Lwhek74JYC1WqKw2XmSGLMnH+XpYRs6j=xUD9B6pjto3tw@mail.gmail.com> <D0F00862.205B5%uri@ll.mit.edu>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
Date: Thu, 29 Jan 2015 16:51:51 -0500
Message-ID: <874mr9cl1k.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/H2N8xwFr0Y6P9DzkDnrGFSdOkRw>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 21:51:46 -0000

On Thu 2015-01-29 16:28:57 -0500, Blumenthal, Uri - 0558 - MITLL wrote:
> There should be an option to specify βmy ownβ curves, so that when, e.g. one
> βteam" member wants to talk to his peer β their software will pick that
> special curve that was for whatever reasons approved by their boss, or
> refuse to connect. Because in that context ability to establish a connection
> with a stranger is underisable.

This is what having a private use range in a labelled registry is for.

For TLS, we have that already (0xfe00 - 0xfeff).

If you can agree out-of-band on a curve already, because your boss says
you should use it, fine, use the private range.  If you can't agree
out-of-band on a curve, having custom curves doesn't help you.

     --dkg


From nobody Thu Jan 29 13:54:43 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6208F1A884F for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:54:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D-EzV-N8Dc2L for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:54:30 -0800 (PST)
Received: from homiemail-a106.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 781141A8856 for <cfrg@irtf.org>; Thu, 29 Jan 2015 13:54:24 -0800 (PST)
Received: from homiemail-a106.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a106.g.dreamhost.com (Postfix) with ESMTP id 030342005D005; Thu, 29 Jan 2015 13:54:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to:content-transfer-encoding; s= cryptonector.com; bh=13Q8hoRvp+eP5k3Br1aenVYWMR0=; b=RD/ZEzq2cwg /LSPHc61G8ZncLwP9G1zuMNmkRpCUhg91LMK8TGOmhAvv+7H+Gr20YdTsVd0DRDH Tz2gAF1o3u9/QjSPi5UAWgHcmMKA/akQL0m3mosT022qGqyFcU3kD1PiROrD7rKS X7Isp+WVUHA2BKuc99X35+Y3FO3CiIA0=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a106.g.dreamhost.com (Postfix) with ESMTPA id 9AF4E2005D004; Thu, 29 Jan 2015 13:54:23 -0800 (PST)
Date: Thu, 29 Jan 2015 15:54:23 -0600
From: Nico Williams <nico@cryptonector.com>
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
Message-ID: <20150129215419.GD3110@localhost>
References: <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu> <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org> <CAMm+Lwhek74JYC1WqKw2XmSGLMnH+XpYRs6j=xUD9B6pjto3tw@mail.gmail.com> <D0F00862.205B5%uri@ll.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <D0F00862.205B5%uri@ll.mit.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/-SlYj4AtWnA936Ms-xscWd8abCk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 21:54:31 -0000

On Thu, Jan 29, 2015 at 09:28:57PM +0000, Blumenthal, Uri - 0558 - MITLL =
wrote:
> I=E2=80=99m arguing that there is a need for DIY curves, on both person=
al and
> =E2=80=9Corganizational=E2=80=9D level.

That's not really what is causing debate.  The associated proposal for a
one-size-fits-all point representation is.  DIY curve negotiation could
include point representation negotiation, though the cost in terms of
generic code would be non-trivial, but then, so is the cost of DIY
curves in general, thus I don't mind that cost.

Drop the one-size-fits-all point representation proposal and this thread
goes quiet and we can expend effort on those remaining issues that
matter the most right now (amongst which DIY-curves isn't, not for me
anyways).

> > So I think we can come up with a decision here but the process makes =
me
> > certain that there is no possibility that two random computers could =
negotiate
> > a secure set of curves on the Internet via a protocol. Unless that is=
 we
> > assume some form of out-of-band trust relationship.
>=20
> There should be a set of =E2=80=9Cuniversally=E2=80=9D accepted curves,=
 so that when you
> want to talk to a complete stranger =E2=80=93 both of you would use wha=
t the
> =E2=80=9Ccommunity=E2=80=9D considers cryptographically OK (which belon=
gs to that small
> commonly shared set). But that=E2=80=99s only half of use cases.

If a community can agree a priori on a set of specific curves, then
there's no need for DIY curves, just a registry of DIY curves.

OTOH, if the two strangers meeting by chance don't have a common
community yet still want to pick one of their DIY curves, then we need
DIY curve support in the protocol, and one has to wonder: why would the
other stranger trust the first as to choice of DIY curve?!  Which
thought leads me to conclude that we don't need DIY curves, just a
registry that is open enough to represent a superset of communities (the
two strangers still need to agree as to a common subset of that, of
course).

> There should be an option to specify =E2=80=9Cmy own=E2=80=9D curves, s=
o that when, e.g. one
> =E2=80=9Cteam" member wants to talk to his peer =E2=80=93 their softwar=
e will pick that
> special curve that was for whatever reasons approved by their boss, or
> refuse to connect. Because in that context ability to establish a conne=
ction
> with a stranger is underisable.

How do you not get this with a registry?

> > That said, I prefer the Edwards curves because I can explain them to =
other
> > folk without resorting to abstract math (now I have been given the li=
nk to
> > DJB's presentation at Chaos). The use of The Wierstrass forms are muc=
h less
> > friendly.
>=20
> I see your point.

There is that too.


From nobody Thu Jan 29 13:55:38 2015
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 7D3991A884F for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:55:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.798
X-Spam-Level: 
X-Spam-Status: No, score=0.798 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 VVSfqqdrtAjq for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 13:55:34 -0800 (PST)
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 E0F5E1A884E for <cfrg@irtf.org>; Thu, 29 Jan 2015 13:55:33 -0800 (PST)
Message-ID: <54CAAC57.2040504@akr.io>
Date: Thu, 29 Jan 2015 21:55:35 +0000
From: Alyssa Rowan <akr@akr.io>
MIME-Version: 1.0
To: "cfrg@irtf.org" <cfrg@irtf.org>
References: <CACsn0c=a90vhRNg8Dj2otqp4HfjSdA5Cj8oU2XgKcYYMXS+znA@mail.gmail.com>
In-Reply-To: <CACsn0c=a90vhRNg8Dj2otqp4HfjSdA5Cj8oU2XgKcYYMXS+znA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ZrOm0k6ECtjWe0f51EZ4OFoe73o>
Subject: Re: [Cfrg] Primes (last time hopefully!)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 21:55:36 -0000

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

On 28/01/2015 15:53, Watson Ladd wrote:
> The following have been suggested for primes at sizes between 
> 2^255-19 and 2^521-1.

I think what would inform my preference most is performance data, so,
tabulating Mike Hamburg's dataΒΉ:

βββββββββββββββββ³ββββββββ³ββββββββ³ββββββββ
β Prime         β   Ο   β  mul  β  sqr  β
β‘ββββββββββββββββββββββββββββββββββββββββ©
β 2^521-1       β 260.3 β 145.5 β 110.7 β
β 2^512-569     β 255.8 β 199.9 β 140.6 β
β 2^448-2^224-1 β 222.8 β 118.0 β  88.9 β
β 2^414-17      β 205.3 β       β       β
β 2^389-21      β       β 112.5 β  75.5 β
β 2^384-317     β 191.8 β 117.5 β  89.8 β
β 2^379-19      β       β       β       β
βββββββββββββββββ΄ββββββββ΄ββββββββ΄ββββββββ

  Ο = approx cost (in bits) of pollard-rho (higher is better)
  mul = cycles per multiply (lower is faster)
  sqr = cycles per square (lower is faster)

  (Please feel free to fill in the blanks with more data.)

I'm guessing Ο for 2^389-21 and 2^379-19 would be around 188-192ish
(but I haven't actually generated the curves to count β).

Not sure I find 379 tempting, unless it turns out significantly faster.

Goldilocks looks promising. I'm missing data on 41417, which also
deserves a fair crack of the whip.

I think E-521 can also go a bit faster than this, but I don't have too
many details. It's rigid enough several groups have generated it
independently. But maybe too slow.

Remembering that if we do choose a 'big' curve, CAs will use it, and
that means frequent verification for even mobile clients.

Enough already I think to rule 512 and 384 out now: they're slower
than stronger curves (even if the MSR ECCLib comb gave them an advantage).

Those who really think performance doesn't matter are free to use
2^1024-105 if they like. ;-)

___
1. <https://www.ietf.org/mail-archive/web/cfrg/current/msg05733.html>

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

iQIcBAEBCgAGBQJUyqxXAAoJEOyEjtkWi2t6kn8QALQ+ArkbKfTyJ8DFhwYaFj91
jiU2yJJbQCZeZ7pro+8fXrhD21lTDtWw+D8gbRlggR4HBsOnfNYrrekpBtV13MEC
yoKIdBFaOdl9ZVRHrPyipS8NU6fMt2VDIUMXDzyZKExL0imwqiSbT6SiUKxy4b3c
os+KrGlkuW5lr1nc1p2opQF2Xfcv39kE5AKb//rYz0vlqIMNrVYAsti/tPtfas7Z
mxDihbaEf5Pw7ravkSsJkHLDotUOvAaf3QLOzIMnbJaNdRTdPlwxd+CMA832lxvO
r1zas7YUJg0HqO19UDY5Kv34G6Nt5TfuNPjsLI0Zz5D7l4jCedTQQYHSfdozIMtO
OQ734xxTyUa4aERTdrMwyE7izUPz0Eh0t79YlaFnMM0lh7DhcI+Fw0Tw/IOrZCrN
id8HgtLS/rXr9hj30MqX35WR+29EbOqLuyvCsQhkW18Z9bbR0/Xl2aviRrZTm7CZ
ZixzRZLb9cMtk1rXae8OKe9bf6GeZAWV7btD2+ju/3KD96YG7ZB6qJMCUIn5hT2c
ToOoLibvxGQTAhG/yDudd685ZMGnJy1kOvm4zoPZyGZ1Zo1U/prWCG/PuIqUjqiH
7aEgkFxsFUYs0eo89eX5dJHrxIsL6L6Pl6jEYVyvhjeATaenz6eP8CHBRnlej+yi
yFmsKUUiWIZempHK+R25
=1f7h
-----END PGP SIGNATURE-----


From nobody Thu Jan 29 14:10:01 2015
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 596671A8878 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 14:09:37 -0800 (PST)
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 lafNcYHFAZ8m for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 14:09:27 -0800 (PST)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) by ietfa.amsl.com (Postfix) with ESMTP id 7E09A1A8876 for <cfrg@irtf.org>; Thu, 29 Jan 2015 14:09:26 -0800 (PST)
Received: from xct105cnc.rim.net ([10.65.161.205]) by mhs214cnc.rim.net with ESMTP/TLS/AES128-SHA; 29 Jan 2015 17:09:20 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT105CNC.rim.net ([fe80::d13d:b7a2:ae5e:db06%16]) with mapi id 14.03.0210.002; Thu, 29 Jan 2015 17:09:19 -0500
From: Dan Brown <dbrown@certicom.com>
To: "'nico@cryptonector.com'" <nico@cryptonector.com>, "'ynir.ietf@gmail.com'" <ynir.ietf@gmail.com>
Thread-Topic: generic curves ... RE: [Cfrg] big-endian short-Weierstrass please
Thread-Index: AdA8AesG7iT5/NihS7+0fk6r2j3zuw==
Date: Thu, 29 Jan 2015 22:09:18 +0000
Message-ID: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-originating-ip: [10.65.160.252]
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0082_01D03BE6.512EE8D0"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Odf8RvMu0c2vxD96sCN0xZESRMg>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: [Cfrg] generic curves ... RE: big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 22:09:38 -0000

------=_NextPart_000_0082_01D03BE6.512EE8D0
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: 7bit

New thread name ... should have done so earlier.

When TLS asked CFRG for new curves, I didn't interpret that to mean that 
generic curves would be banned. Banishing generic curves adds slightly more 
weight to the TLS request, because users cannot easily opt out of the chosen 
few elite curves.

Upon further reflection, I think CFRG already spent enough time to find an 
answer that weightier question, and in particular, I'll keep my vote the same.

The current set of TLS named curves includes NIST (and some SECG?) and 
Brainpool curves, right?  Is there some of these current curves that TLS plans 
to disallow?

I'd suggest that TLS and IETF protocols only keep (EC)DH groups with at least 
2^256 - S elements (for small S), but grandfathering in Curve25519, P256, (and 
maybe secp256k1, if there ???).  In other words, smaller curves, 163 bits, 192 
bits, and so on, could be removed.  Actually, this should be redundant, as 
long protocols match symmetric key sizes ...

By the sounds of it, TLS doesn't yet have a good way to negotiate curves on 
the fly (even CA / server pre-validated curves?), yet.

My proposal for generic curves presumes that the generic elliptic curve domain 
parameters are authenticated, i.e. Alice and Bob are not duped into using a 
curve that they don't agree upon, and validated, perhaps in advance. 
Actually, the old standards, SEC1, X9, etc., pretty much make this a 
requirement before doing ECC.  Having tried to maintain a couple of these old 
standards, I sometimes take such things for granted.  Anyway, if TLS is unable 
to only achieve this authentication by using vetted and named curves, then my 
generic curve proposal would not apply to TLS.

Best regards,

Dan

PS While we're tracking thread discussions, I remember suggesting to one the 
lists last year that TLS add for support generic curves, but I was mistakenly 
confusing TLS and PKIX: it was PKIX that had restricted named-curves only.  I 
don't recall this much discussion in response, other a couple people 
correcting my mistake.  If it was pointed out at that time that TLS was unable 
to securely support generic curves, then I apologize for forgetting.

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUoDCCBo8w
ggV3oAMCAQICCm2p3UcABAAABWowDQYJKoZIhvcNAQEFBQAwUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGMB4XDTE0MDUxNDE0MzYzOFoXDTE1MDUxNDE0MzYzOFowgaQxEzARBgoJkiaJk/IsZAEZFgNu
ZXQxEzARBgoJkiaJk/IsZAEZFgNyaW0xDTALBgNVBAsTBEFNRVIxCzAJBgNVBAsTAkNBMRQwEgYD
VQQLEwtNaXNzaXNzYXVnYTEOMAwGA1UECxMFVXNlcnMxEjAQBgNVBAMTCURhbiBCcm93bjEiMCAG
CSqGSIb3DQEJARYTZGJyb3duQGNlcnRpY29tLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEA54YaBOai2UDS89LoHMbDcC4+c8dEl5TpkJWz0muqjnXP6xpSYqBzotsw9SpPD3/0wF8Dz77Z
hkYN8BDSF0RAdtmfXKXe40tQkHoplN4pos9jnBZW5e8HuTZUkEVC/q7bf399cskpxMt9MA934gvB
rSk1QNbR3D7Hq34t4bOHXSUCAwEAAaOCA5gwggOUMAsGA1UdDwQEAwIFoDBEBgkqhkiG9w0BCQ8E
NzA1MA4GCCqGSIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw
FwYJKwYBBAGCNxQCBAoeCABVAHMAZQByMCkGA1UdJQQiMCAGCisGAQQBgjcKAwQGCCsGAQUFBwME
BggrBgEFBQcDAjBBBgNVHREEOjA4oCEGCisGAQQBgjcUAgOgEwwRZGFuaWJyb3duQHJpbS5uZXSB
E2Ricm93bkBjZXJ0aWNvbS5jb20wHQYDVR0OBBYEFFdFrujr5LyMGa3Hl1U4MTjlEtfvMB8GA1Ud
IwQYMBaAFObbryVSYEL0jYI1VF2A64ahrO/cMIIBMQYDVR0fBIIBKDCCASQwggEgoIIBHKCCARiG
gctsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGluYXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1NQ0EwMllL
RixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmln
dXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NlcnRpZmljYXRlUmV2b2NhdGlvbkxpc3Q/YmFz
ZT9vYmplY3RDbGFzcz1jUkxEaXN0cmlidXRpb25Qb2ludIZIaHR0cDovL21jYTAyeWtmLnJpbS5u
ZXQvQ2VydEVucm9sbC9SSU0lMjBTdWJvcmRpbmF0ZSUyMENBJTIwTUNBMDJZS0YuY3JsMIIBQQYI
KwYBBQUHAQEEggEzMIIBLzCBwgYIKwYBBQUHMAKGgbVsZGFwOi8vL0NOPVJJTSUyMFN1Ym9yZGlu
YXRlJTIwQ0ElMjBNQ0EwMllLRixDTj1BSUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049
U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNh
dGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MGgGCCsGAQUFBzAChlxo
dHRwOi8vbWNhMDJ5a2YucmltLm5ldC9DZXJ0RW5yb2xsL01DQTAyWUtGLnJpbS5uZXRfUklNJTIw
U3Vib3JkaW5hdGUlMjBDQSUyME1DQTAyWUtGKDQpLmNydDANBgkqhkiG9w0BAQUFAAOCAQEActBk
hryrMh5+C+8YiOrR8xi+G1NkUycfNLuz4fYdQzFNB9yWxyRs2K0ydl0X5PZXejhbIif0dFoyaxnh
g/D5hYfeGIhXfAOFG22EpMJWXVOavqYLxslnc2enihWAYcWkjPfE6tf3XMXkodFkMYvEd+qFj8eU
vxbbcR1dBqiBFNNDcKlAKn/oElp/iI/LjUGMEb+tJdHttsGExvQzSd1zwk1U6cOinYD82Y08zA5b
z38l5bE2+plmfX3EQ8vCKYA95psgGg3hsffn150smpY7HeEPGRZh9vglGfi2wnMqY/QgO+qs78dq
O/C1be3quQU3WHQ6YcZr3JP1Rc7yj76K7jCCBr8wggSnoAMCAQICEDIa85KxFFmUTU0vlRGze+Ew
DQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcwFQYKCZImiZPyLGQBGRYH
d2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcNMDYxMDEzMDEyNDU1WhcN
MTYxMDEzMDEzMDQxWjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxFzAVBgoJkiaJk/IsZAEZFgd3
aW5kb3dzMR0wGwYDVQQDExRSSU0gUm9vdCBDQSBNQ0EwMVlLRjCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAMbous78rVQBLT87+jYSuzmZ2osP40BMhFbJA3+cs3BZC0//uT87SG7/nhZi
9Qj9hYby7/HkGSQyheGL/lLIzxDdZV+AwxiirdDT6ck/acEMxWolLdK5xEYEmm6OxLaUuEvg7i/B
vXPpZlsA6m9FFrTzHVX2693w8IoMs9cofr1TAB3YYDnvZTwupz7YifSF02pu1eZiZg09Jjaav9Hy
aNyRGjbwyqFwTpCr+iHW7SsSszyJxulWGgnYCQgE95loK/ZMYhEBFCSq7yNn1yNM0WJ5S+uPILyv
OKXbE9sWSxba+DnWQJuEZCvFPnILq5Ugq+jVap326uv9zejBpsnPUgdgMoZNlUuuu+e1eJwc3mng
/rK6ZOCF1NzUzP/mIEdc1UuNV8L2WqvVH+fY9EyYTfcRlWTvO9XlVa9lXzca9MTqlKcHMYeSWWJF
nJlCRZWIkIdAjNj632g0U06kWUHeBd8VJXFxQFzhob2lyr4pHiOv7rZ1+rwpw8DFMZnp85b/HqTW
rcQ7LiIDljuKX6oBjMs1qNobnUPe/ucp1Kgy19+J61M7MxniBNyqKmLJLMTBd7aiIGnbfYTVl2j/
xJJ2aUQJmj9LNFeWb4Isl8PVK6p1sJkWy0JOx52HNIR0AY16AcikojsoYEkvci+mvuwANq4QT6bE
lSPS2AbNnDSpT7GXAgMBAAGjggGVMIIBkTATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMC
AUYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU1mmCZCQWwcwk2/EUfUcSfNzJTe4wggEpBgNV
HR8EggEgMIIBHDCCARigggEUoIIBEIaBxGxkYXA6Ly8vQ049UklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YsQ049TUNBMDFZS0YsQ049Q0RQLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNl
cnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9d2luZG93cyxEQz1sb2NhbD9jZXJ0aWZpY2F0ZVJl
dm9jYXRpb25MaXN0P2Jhc2U/b2JqZWN0Q2xhc3M9Y1JMRGlzdHJpYnV0aW9uUG9pbnSGR2h0dHA6
Ly9tY2EwMXlrZi53aW5kb3dzLmxvY2FsL0NlcnRFbnJvbGwvUklNJTIwUm9vdCUyMENBJTIwTUNB
MDFZS0YuY3JsMBAGCSsGAQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4ICAQBDnlhbuDlU58ff
o2JPdog62tn9QXOY9VnrBBiDZeFQmPVicup9e2/4dnw5o4/SnyLaNyxNlno++5Uiar/y0ne8J300
FWVW9cAXtmbfi7jwKour1kgwEFTn3TjGFbuYps553/mTTC3bk6l2f2xUCk1rINqoQVsGomH8RGO5
1YN/mX0rasHPUd7/7Rx/m/ZF9xbii6FUOikq6lMgYn4SEY+e3jsOvyYzwPkiHf6dshGfsZgDUN9b
xNwRxUZttJGRx6gH3Qpk7dUuyw0ixwY9xmVyBVIHvWjyqswF3ntgwmEz92GHIKz/xWxRdkahkSIT
zPjHYya2jI3sfpzU/tigvxCFrG1PQ4BSCNMByqUcfK5STTfJJm/x/ahqnDWlvUP6cFE6V9W10nW8
72BbNzWOypmGIouENEUAhq/ejrw09P0uvyK51vr6mY5z1djF6hLskNC+R11Tpwou+vbhmHEZBKOc
cxCfxDL49O7wlpxu4fcpDYSxBDHMoFZgXVz/ajqqIHcjyQdAM8QGBqgkjE/Dq7NTP7K2Ul1An0nx
DR+YgXe28R+7l5he5GzhIIaJuwHHAtgpbeA1NLY/bBciFoOR+s8ujS3rZtv5M3Q95hmN7trVrYo1
Z3dglmNmLM2KNZWwwHxH4xi//bhaR+/WbfXpEUg+WW0p9Uja9Z443hqVd48MrjCCB0YwggUuoAMC
AQICChJuoPAAAAAAAiswDQYJKoZIhvcNAQEFBQAwTzEVMBMGCgmSJomT8ixkARkWBWxvY2FsMRcw
FQYKCZImiZPyLGQBGRYHd2luZG93czEdMBsGA1UEAxMUUklNIFJvb3QgQ0EgTUNBMDFZS0YwHhcN
MTQwNDAyMDA1MTEyWhcNMTYwNDAyMDEwMTEyWjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRMwEQYK
CZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZS0YwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzrn3UT996pLvUIVlnExxcXGmYftIOq1qMwitW
RCBe2j32VmDvzlJseIkfQuXDqjWnoqoE4sxQjxD5QNwhyBw9eXMCvLjHBW+HM4+HcmGIdan2w17E
4rR+RHVK6NzvkE1Gm4ziBTDr2jzSliZJpowLM+M/+cY2pyym074TQx+QCZQOKIqLnEgZ2uYw4kSj
nCcE7eJ+WmJFq9bX6Cv9SONQfgN5Z3O1N/36lgavm/G6Amt/ePNE0AhcJwxin7Fahkx6/SjRbf0r
Oa8uhCMxK8ebqTqD0+0VpViARFterasW5FTU2rcRFLHwwWV67yoFc2fbozkj5iseBXctM8NmqKt5
AgMBAAGjggMhMIIDHTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTm268lUmBC9I2CNVRdgOuG
oazv3DALBgNVHQ8EBAMCAYYwEAYJKwYBBAGCNxUBBAMCAQQwIwYJKwYBBAGCNxUCBBYEFCLdxB/L
akuvuaYdTyqIgHmfibLUMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMB8GA1UdIwQYMBaAFNZp
gmQkFsHMJNvxFH1HEnzcyU3uMIIBKQYDVR0fBIIBIDCCARwwggEYoIIBFKCCARCGgcRsZGFwOi8v
L0NOPVJJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLENOPU1DQTAxWUtGLENOPUNEUCxDTj1QdWJs
aWMlMjBLZXklMjBTZXJ2aWNlcyxDTj1TZXJ2aWNlcyxDTj1Db25maWd1cmF0aW9uLERDPXdpbmRv
d3MsREM9bG9jYWw/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNS
TERpc3RyaWJ1dGlvblBvaW50hkdodHRwOi8vbWNhMDF5a2Yud2luZG93cy5sb2NhbC9DZXJ0RW5y
b2xsL1JJTSUyMFJvb3QlMjBDQSUyME1DQTAxWUtGLmNybDCCATwGCCsGAQUFBwEBBIIBLjCCASow
gbsGCCsGAQUFBzAChoGubGRhcDovLy9DTj1SSU0lMjBSb290JTIwQ0ElMjBNQ0EwMVlLRixDTj1B
SUEsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlv
bixEQz13aW5kb3dzLERDPWxvY2FsP2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0
aWZpY2F0aW9uQXV0aG9yaXR5MGoGCCsGAQUFBzAChl5odHRwOi8vbWNhMDF5a2Yud2luZG93cy5s
b2NhbC9DZXJ0RW5yb2xsL01DQTAxWUtGLndpbmRvd3MubG9jYWxfUklNJTIwUm9vdCUyMENBJTIw
TUNBMDFZS0YuY3J0MA0GCSqGSIb3DQEBBQUAA4ICAQCUe8BMuuw2GW4AUAag80hqgwOQyezrSatL
SIadEDvzg3LgXMJcN7onC+1B7vHsMxVMbFz3V+85WSKtzCtaBe5rhUCXLBZEGbM+WPavYgYMnUsD
TpJwSXiDaM9Ym/ZLFsgfo3Qv7rfglydpqPCBfHUEQys2KeBVsDGd7HDK5Nk5fNaSmK0KgIBIvbXR
bJKzhTsuctYGlOf/2nFtuoxWcdhu7t6UR7DbSTerjug7rvCZH4bie5cphsu4lZDXdNRp2IKWVEF6
0VcEK8dXK1hZXEGgjuen7R03uaA+7VsSr7eUZSLiouG7XnvXWik11aNCgBiQcIGsHVRIccHphmfS
sFaZ0Bc+4/c/+K/v7X7RvdE29J9b1DqB2iV2SGZp58M0JLscohJ9uY0SJj8Hwl9YeuznijFBIC2y
Psb1V9CgoRtBl+Ek37tPp1Wm4XSS+as2kcdcsZwiM/LywbFvYDEBa71b0mquxjisPyPvmVccA0e6
WW6RDNYKUqBJsZDpjTbRZkQA7CmzrOK6YHip2F/92ZYmpqM84BsEkLuf6kzzk+r0OVsWaFP+plU3
MfqtAeKtBgJu6yd4SYbA9eFX9ePeIzBaCjTzIcd+CclwA8SeoAgP07Ut2WcB3QnD7fcU6CBegHSd
7504Ty34G+FymbG6ZBBUU0exF44VAplxv4rWFA7mPTGCAvMwggLvAgEBMF4wUDETMBEGCgmSJomT
8ixkARkWA25ldDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRl
IENBIE1DQTAyWUtGAgptqd1HAAQAAAVqMAkGBSsOAwIaBQCgggHrMBgGCSqGSIb3DQEJAzELBgkq
hkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE1MDEyOTIyMDkxOFowIwYJKoZIhvcNAQkEMRYEFCxY
cl3HbAvC8sYNwQIgEQ2b5LWDMG0GCSsGAQQBgjcQBDFgMF4wUDETMBEGCgmSJomT8ixkARkWA25l
dDETMBEGCgmSJomT8ixkARkWA3JpbTEkMCIGA1UEAxMbUklNIFN1Ym9yZGluYXRlIENBIE1DQTAy
WUtGAgptqd1HAAQAAAVqMG8GCyqGSIb3DQEJEAILMWCgXjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0
MRMwEQYKCZImiZPyLGQBGRYDcmltMSQwIgYDVQQDExtSSU0gU3Vib3JkaW5hdGUgQ0EgTUNBMDJZ
S0YCCm2p3UcABAAABWowgasGCSqGSIb3DQEJDzGBnTCBmjALBglghkgBZQMEASowCwYJYIZIAWUD
BAEWMAoGCCqGSIb3DQMHMAsGCWCGSAFlAwQBAjAOBggqhkiG9w0DAgICAIAwBwYFKw4DAgcwDQYI
KoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwBwYFKw4DAhowCwYJYIZIAWUDBAIDMAsGCWCGSAFl
AwQCAjALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEgYDK+CzaBF/ecdRMIeORWLpvJYV5ZfBu
5rz1AltW4USlVPyuHqNksb6/RCxHy4isJbA8RXiXr4UOd+ciQwhSm7vq4niMEMWB6fA/T8GVYJVP
FNYnUjbofv0igZ8WVNUBU+zX7hMBn15u+HneY6qnY9TrF4QJUaHZXL1UHNvhj8x6yQAAAAAAAA==

------=_NextPart_000_0082_01D03BE6.512EE8D0--


From nobody Thu Jan 29 15:30:06 2015
Return-Path: <dkg@fifthhorseman.net>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BF5801A1B7B for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 15:30:04 -0800 (PST)
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 G9lbb3THS4No for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 15:30:02 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id 3CDCC1A88AF for <cfrg@irtf.org>; Thu, 29 Jan 2015 15:30:02 -0800 (PST)
Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 3B6EAF984; Thu, 29 Jan 2015 18:29:59 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 17F67201F8; Thu, 29 Jan 2015 18:30:08 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Dan Brown <dbrown@certicom.com>, "'nico\@cryptonector.com'" <nico@cryptonector.com>, "'ynir.ietf\@gmail.com'" <ynir.ietf@gmail.com>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
References: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
Date: Thu, 29 Jan 2015 18:30:08 -0500
Message-ID: <87h9v9b1xb.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/KvumFHeRcXgxCjCSStGynJlY2QU>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] generic curves ... RE: big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 23:30:05 -0000

On Thu 2015-01-29 17:09:18 -0500, Dan Brown wrote:

> The current set of TLS named curves includes NIST (and some SECG?) and 
> Brainpool curves, right?  Is there some of these current curves that TLS plans 
> to disallow?

There is already a plan in TLS to deprecate the use of the smaller
curves, similar to the cutoff you describe below.

> I'd suggest that TLS and IETF protocols only keep (EC)DH groups with at least 
> 2^256 - S elements (for small S), but grandfathering in Curve25519, P256, (and 
> maybe secp256k1, if there ???).  In other words, smaller curves, 163 bits, 192 
> bits, and so on, could be removed.  Actually, this should be redundant, as 
> long protocols match symmetric key sizes ...
>
> By the sounds of it, TLS doesn't yet have a good way to negotiate curves on 
> the fly (even CA / server pre-validated curves?), yet.

As i've already said on-list today, If both peers already know about
some custom curve they want to use, they should take advantage of TLS's
"private use range" and negotiate their preferred custom curve there.
This requires no external vetting of curves or point formats or
anything; just pre-agreement between peers about what they want the
codepoints within the private-use range to mean.

I have yet to hear a reason why this isn't acceptable for anyone who
needs custom curves between pre-arranged peers, so i'll stop repeating
it.  If it doesn't work for you, please explain why.

     --dkg


From nobody Thu Jan 29 15:33:36 2015
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 727A71A8893 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 15:33:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e05Rl06_YHSU for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 15:33:30 -0800 (PST)
Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 552F71A1B18 for <cfrg@irtf.org>; Thu, 29 Jan 2015 15:33:30 -0800 (PST)
Received: by mail-la0-f48.google.com with SMTP id pv20so20842523lab.7 for <cfrg@irtf.org>; Thu, 29 Jan 2015 15:33:28 -0800 (PST)
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=qJ2NmXwsDk9F2ZwqXFOOo2FO2NVDZfh/SJPhdNfUvJ8=; b=GU0WcsjhLdYmHckiNCg5KHxYMAgZq7RRO8atpDzF9h8cN+x0Pw/HYCBT258SVa9qGh 9+mPWwGKXrzk56Y1ZvjRCwOeHZ9m+DePcduNGHWfjXGD0qobqfT5nwH+Nq8uMkvrt2SF vPes6IsqCpwKty8Adlmcu8PmvUMs8R/kLvNsBlCLiMT4RGbFQSslUP/GsFwwVBLCFiga PB4COH/rTPtMCEJ/o2X2Dk62IxNzCaG7UDxgqcVGqrXiYtSqIlwbFTitkleY3PT5eYei KfK6QNdQF3MBPvGVeP1ydNs6DSu3St4ekvR4064s6t5/3C/VFxAYW6UHhJspn9QGw5fi CtnA==
MIME-Version: 1.0
X-Received: by 10.112.162.226 with SMTP id yd2mr3771009lbb.1.1422574408742; Thu, 29 Jan 2015 15:33:28 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 15:33:28 -0800 (PST)
In-Reply-To: <D0F00862.205B5%uri@ll.mit.edu>
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <20150128231006.GJ3110@localhost> <D0EED79E.204B1%uri@ll.mit.edu> <878ugleei5.fsf@alice.fifthhorseman.net> <CAMm+LwhD8ZmuO7_OsGYX_VARYT=gDJSkZVavxXkTOvfFLJ-Usg@mail.gmail.com> <CACsn0ckb4xW7gTP4m9BHkQe-Y00Y306wOcuEoSQ25XLeXX14UQ@mail.gmail.com> <CAMm+LwixbMKC+JYRJv2chgBG=dkgqxTNyDY4WZYbKQNzk6isaw@mail.gmail.com> <D0EFF650.2058C%uri@ll.mit.edu> <DA764660-62CE-47C8-B903-78B5B75CD6DB@vpnc.org> <CAMm+Lwhek74JYC1WqKw2XmSGLMnH+XpYRs6j=xUD9B6pjto3tw@mail.gmail.com> <D0F00862.205B5%uri@ll.mit.edu>
Date: Thu, 29 Jan 2015 18:33:28 -0500
X-Google-Sender-Auth: g75Zekt-aT_o5qnEP-FymoNlzyY
Message-ID: <CAMm+LwgtsFoWnpACZn4HRdV2efcMEVYWFAdGXo3_BEOuH-j=mg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "Blumenthal, Uri - 0558 - MITLL" <uri@ll.mit.edu>
Content-Type: multipart/alternative; boundary=089e0112c86c4cbec6050dd2eaf7
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Wq5SMyUDkU0QyKlVxBx2_jwArGA>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 23:33:32 -0000

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

On Thu, Jan 29, 2015 at 4:28 PM, Blumenthal, Uri - 0558 - MITLL <
uri@ll.mit.edu> wrote:

> That seems irrelevant. Some people will never be convinced of some things
>> that most other people agree to.
>>
>
> What is being argued against here is making room for DIY curves.
>
> My point is that the only way to come up with an informed decision to use
> someone else's curves is to apply a vast amount of domain specific
> expertise plus really trust the supplier to not have something up their
> sleeves.
>
>
> Unless that =E2=80=9Csomebody else=E2=80=9D is your boss, or somebody you=
 have informed
> reasons to trust.
>
> Some people (and organizations *:*) tend to trust =E2=80=9Ctheir=E2=80=9D=
 experts, and
> not trust =E2=80=9Cother=E2=80=9D experts as much. As an example =E2=80=
=93 why didn=E2=80=99t NSA adopt
> Russian GOST, and why didn=E2=80=99t Russians adopt AES? Probably not bec=
ause they
> question the competence of the other side? :-)
>

And such people are more than welcome to make use of the existing extension
features in TLS 1.x.

If you think you have the ability to do this for yourselfs then do it.


However I should point out that for TLS 2 I think a very different approach
should be taken.

* Exactly one preferred (MUST) and one backup algorithm (SHOULD) defined in
the protocol with an algorithm numbering scheme that allows only 255 values
for each. The objective being to keep algorithm changes to once a decade.
This would require us to rev the TLS major version at least once every
other millennia.

* All other crypto to be identified by ASN.1 OID on a 'its your funeral'
basis.


The rationale for this is that the IETF currently has three types of
algorithm.

1) Those that we have vetted and trust.
2) Those that we have assigned numbers to
3) Those that we have not

The problem in my view is that people seem to think that algorithms of type
2 are somehow different than type 3 and this is really not the case. We do
not have the bandwidth to validate vanity crypto and algorithms like GOST
are mandated by governments who murder their citizens on the streets of
London with polonium laced teapots. So I really don't feel like giving any
accreditation to such folk.

So lets just have two types of crypto algorithm: Those we are really
confident of and those we make no comment on.



> There should be a set of =E2=80=9Cuniversally=E2=80=9D accepted curves, s=
o that when you
> want to talk to a complete stranger =E2=80=93 both of you would use what =
the
> =E2=80=9Ccommunity=E2=80=9D considers cryptographically OK (which belongs=
 to that small
> commonly shared set). But that=E2=80=99s only half of use cases.
>

No, actually that is 100% of the uses for the Internet. All other cases are
'network' security and that is not our problem.

One of the problems with IP everywhere is that we have ended up in a
situation where it is assumed that we have a duty to solve every type of
networking problem.

I think providing security advice to people who don't want to follow our
security advice is the first thing to stop trying to do.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 4:28 PM, Blumenthal, Uri - 0558 - MITLL <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:uri@ll.mit.edu" target=3D"_blank">uri@ll.m=
it.edu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=
=3D"word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibr=
i,sans-serif"><span><span><blockquote style=3D"BORDER-LEFT:#b5c4df 5 solid;=
PADDING:0 0 0 5;MARGIN:0 0 0 5"><div><div><div dir=3D"ltr"><div class=3D"gm=
ail_extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(=
204,204,204);border-left-style:solid;padding-left:1ex">That seems irrelevan=
t. Some people will never be convinced of some things that most other peopl=
e agree to.<br></blockquote><div><br></div><div>What is being argued agains=
t here is making room for DIY curves.=C2=A0</div><div><br></div><div>My poi=
nt is that the only way to come up with an informed decision to use someone=
 else&#39;s curves is to apply a vast amount of domain specific expertise p=
lus really trust the supplier to not have something up their sleeves.</div>=
</div></div></div></div></div></blockquote></span><div><br></div></span><di=
v>Unless that =E2=80=9Csomebody else=E2=80=9D is your boss, or somebody you=
 have informed reasons to trust.</div><div><br></div><div>Some people (<spa=
n style=3D"font-weight:bold">and organizations </span><b>:</b>) tend to tru=
st =E2=80=9Ctheir=E2=80=9D experts, and not trust =E2=80=9Cother=E2=80=9D e=
xperts as much. As an example =E2=80=93 why didn=E2=80=99t NSA adopt Russia=
n GOST, and why didn=E2=80=99t Russians adopt AES? Probably not because the=
y question the competence of the other side? :-)</div></div></blockquote><d=
iv><br></div><div>And such people are more than welcome to make use of the =
existing extension features in TLS 1.x.</div><div><br></div><div>If you thi=
nk you have the ability to do this for yourselfs then do it.</div><div><br>=
</div><div><br></div><div>However I should point out that for TLS 2 I think=
 a very different approach should be taken.</div><div><br></div><div>* Exac=
tly one preferred (MUST) and one backup algorithm (SHOULD) defined in the p=
rotocol with an algorithm numbering scheme that allows only 255 values for =
each. The objective being to keep algorithm changes to once a decade. This =
would require us to rev the TLS major version at least once every other mil=
lennia.</div><div><br></div><div>* All other crypto to be identified by ASN=
.1 OID on a &#39;its your funeral&#39; basis.</div><div><br></div><div><br>=
</div><div>The rationale for this is that the IETF currently has three type=
s of algorithm.</div><div><br></div><div>1) Those that we have vetted and t=
rust.</div><div>2) Those that we have assigned numbers to</div><div>3) Thos=
e that we have not</div><div><br></div><div>The problem in my view is that =
people seem to think that algorithms of type 2 are somehow different than t=
ype 3 and this is really not the case. We do not have the bandwidth to vali=
date vanity crypto and algorithms like GOST are mandated by governments who=
 murder their citizens on the streets of London with polonium laced teapots=
. So I really don&#39;t feel like giving any accreditation to such folk.</d=
iv><div><br></div><div>So lets just have two types of crypto algorithm: Tho=
se we are really confident of and those we make no comment on.</div><div><b=
r></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-=
wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-se=
rif"><div>There should be a set of =E2=80=9Cuniversally=E2=80=9D accepted c=
urves, so that when you want to talk to a complete stranger =E2=80=93 both =
of you would use what the =E2=80=9Ccommunity=E2=80=9D considers cryptograph=
ically OK (which belongs to that small commonly shared set). But that=E2=80=
=99s only half of use cases.</div></div></blockquote><div><br></div><div>No=
, actually that is 100% of the uses for the Internet. All other cases are &=
#39;network&#39; security and that is not our problem.=C2=A0</div><div><br>=
</div><div>One of the problems with IP everywhere is that we have ended up =
in a situation where it is assumed that we have a duty to solve every type =
of networking problem.</div><div><br></div><div>I think providing security =
advice to people who don&#39;t want to follow our security advice is the fi=
rst thing to stop trying to do.</div></div></div></div>

--089e0112c86c4cbec6050dd2eaf7--


From nobody Thu Jan 29 15:40:59 2015
Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D07C01A8893 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 15:40:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level: 
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6482yQQu-GZa for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 15:40:56 -0800 (PST)
Received: from proper.com (Opus1.Proper.COM [207.182.41.91]) (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 97B101A1B18 for <cfrg@irtf.org>; Thu, 29 Jan 2015 15:40:56 -0800 (PST)
Received: from [10.20.30.90] (50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206]) (authenticated bits=0) by proper.com (8.15.1/8.14.9) with ESMTPSA id t0TNemDT099562 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Jan 2015 16:40:49 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: proper.com: Host 50-1-51-206.dsl.dynamic.fusionbroadband.com [50.1.51.206] claimed to be [10.20.30.90]
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
Date: Thu, 29 Jan 2015 15:40:48 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <9019E617-944B-4212-8066-C30C8885055D@vpnc.org>
References: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
To: Dan Brown <dbrown@certicom.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/ur-n7Axkn7B-Hk9k-5NgAkRvrrY>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] generic curves ... RE: big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 29 Jan 2015 23:40:58 -0000

If you want to debate the wisdom of what the TLS WG is doing, it is best =
done in the TLS WG, not here. Of course, you should read the threads on =
the list where the WG had strong consensus to remove generic curves. If =
you want to change their minds on that topic, doing so on the CFRG =
mailing list is probably not effective, and gets in the way of us making =
progress on what the TLS WG asked us to do.

--Paul Hoffman=


From nobody Thu Jan 29 19:45:19 2015
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 D36C61A1B62 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 19:45:18 -0800 (PST)
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=[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 Zyzd7sBgU1fE for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 19:45:17 -0800 (PST)
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 A16121A1A9B for <cfrg@irtf.org>; Thu, 29 Jan 2015 19:45:17 -0800 (PST)
Received: by mail-yk0-f177.google.com with SMTP id 19so16214411ykq.8 for <cfrg@irtf.org>; Thu, 29 Jan 2015 19:45:16 -0800 (PST)
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=kZV1XiW1kZ9kW5KWZKO7jP1nDVVIF+saihhBhMZymE8=; b=lUm3+aK0F4p3srGuOefsI2fVK5nJGzgb4LmJJhJpp+sp1cJ9MCQGl55iD2ceSPtJbK yZVyrcVKWzb4g3FOO85AfwVSoqaI9kOhP6EyeBn3DeQNslBhfv68/JtAuetXFE1RzhHH 8iCib/bXQKv9+V4DscKkQ/Z0jRzUxcc1aNnUtqJ7TLamY6hsXS8R2Vgo8UqfSz0Dh54k VP6rLHZdX2BJ42FarxUSC+kyF8K984bfZKCLEx1QIuW92vU6YKpZhNdsy5v8NqSCas2I TvSfPfh24opvQeHtXGXiK/UInI7xw4YD3cCYDKaeJ1WtE/GChQc/Fp3JkTT7j8Fp02lK KBuQ==
MIME-Version: 1.0
X-Received: by 10.236.7.70 with SMTP id 46mr1765224yho.138.1422589516794; Thu, 29 Jan 2015 19:45:16 -0800 (PST)
Received: by 10.170.115.77 with HTTP; Thu, 29 Jan 2015 19:45:16 -0800 (PST)
In-Reply-To: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com>
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com>
Date: Thu, 29 Jan 2015 19:45:16 -0800
Message-ID: <CACsn0c=xhuTg+1gx5ZNWbR-sRzuAsz+Nxoos555HwQQqf_xxJw@mail.gmail.com>
From: Watson Ladd <watsonbladd@gmail.com>
To: Tony Arcieri <bascule@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/Fj-qlppk1uNbk6EPvhfLzUlp6Hk>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 03:45:19 -0000

On Tue, Jan 27, 2015 at 1:33 PM, Tony Arcieri <bascule@gmail.com> wrote:
> I would like to hear the opinions of the chairs and other CFRG participants
> on the following:
>
> - Ed25519 and EdDSA
> - FrankenECDSA (ECDSA in Edwards)
> - ECDSA with Edwards keys on the wire (converted to Weierstrass to do ECDSA)
> - Other interesting thoughts on digital signatures

Batch verification is potentially a real win for performance in common
uses of X509.3. This isn't possible with ECDSA. Of course, it requires
issuing the root, intermediate, and end-party cert with the same exact
curve. I can imagine where we use a short-lived (1 year or so)
intermediate with Ed25519, and cache it to enable batch verification
without the concerns with roots with Ed25519.

On the other hand the security issues of existing software are less
significant for signing.

I think we will need to parameterize over hash functions, potentially
with output smaller than liked.
Sincerely,
Watson Ladd

>
>
> --
> Tony Arcieri
>
>
> _______________________________________________
> 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 Jan 29 21:27:55 2015
Return-Path: <djm@mindrot.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 A7CB71A8961 for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 21:27:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.597
X-Spam-Level: 
X-Spam-Status: No, score=-1.597 tagged_above=-999 required=5 tests=[HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, 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 PB6UrR5NUBlL for <cfrg@ietfa.amsl.com>; Thu, 29 Jan 2015 21:27:35 -0800 (PST)
Received: from newmailhub.uq.edu.au (mailhub1.soe.uq.edu.au [130.102.132.208]) by ietfa.amsl.com (Postfix) with ESMTP id C96B61A00F1 for <cfrg@irtf.org>; Thu, 29 Jan 2015 21:27:34 -0800 (PST)
Received: from smtp2.soe.uq.edu.au (smtp2.soe.uq.edu.au [10.138.113.41]) by newmailhub.uq.edu.au (8.14.5/8.14.5) with ESMTP id t0U5RSrF006593; Fri, 30 Jan 2015 15:27:28 +1000
Received: from mailhub.eait.uq.edu.au (baccata.eait.uq.edu.au [130.102.79.57]) by smtp2.soe.uq.edu.au (8.14.5/8.14.5) with ESMTP id t0U5RSUc025891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Jan 2015 15:27:28 +1000
Received: from natsu.mindrot.org (natsu.mindrot.org [130.102.96.2]) by mailhub.eait.uq.edu.au (8.14.6/8.14.6) with ESMTP id t0U5RSFF001702; Fri, 30 Jan 2015 15:27:28 +1000 (EST)
Received: by natsu.mindrot.org (Postfix, from userid 1000) id 214EDA4F33; Fri, 30 Jan 2015 16:27:28 +1100 (AEDT)
Received: from localhost (localhost [127.0.0.1]) by natsu.mindrot.org (Postfix) with ESMTP id 20D64A4F30; Fri, 30 Jan 2015 16:27:28 +1100 (AEDT)
Date: Fri, 30 Jan 2015 16:27:28 +1100 (AEDT)
From: Damien Miller <djm@mindrot.org>
To: Tony Arcieri <bascule@gmail.com>
In-Reply-To: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com>
Message-ID: <alpine.BSO.2.11.1501301447010.29958@natsu.mindrot.org>
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com>
User-Agent: Alpine 2.11 (BSO 23 2013-08-11)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.73 on UQ Mailhub
X-Scanned-By: MIMEDefang 2.73 on 130.102.79.57
X-UQ-FilterTime: 1422595649
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/hvPcbrZN_P3COP0mvZqKwaSASVc>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 05:27:39 -0000

On Tue, 27 Jan 2015, Tony Arcieri wrote:

> I would like to hear the opinions of the chairs and other CFRG participants
> on the following:
> - Ed25519 and EdDSA
> - FrankenECDSA (ECDSA in Edwards)
> - ECDSA with Edwards keys on the wire (converted to Weierstrass to do ECDSA)
> - Other interesting thoughts on digital signatures

As you probably already know OpenSSH is already using Ed25519 for
user and host authentication. We chose it because:

1) It's secure; well-reviewed and based on good "bones" (e.g. Schnorr sigs)
1a) It avoids the terrible failure modes of DSA/ECDSA
1b) It's hard for implementors to get wrong
2) It's fast
3) There are excellent reference implementations available

We're not interested in adding more DSA/ECDSA variants unless there is some
compelling reason (and I don't see any). EdDSA just seems a better algorithm.

We're not super-interested in WF >2^128 EdDSA either, but would possibly
consider EdDSA at ~WF 2^256 if our users start asking for it.

We aren't likely to benefit from batch signing/verification.

-d



From nobody Fri Jan 30 01:07:44 2015
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 277F01A8A68 for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 01:07:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.167
X-Spam-Level: 
X-Spam-Status: No, score=-1.167 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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 g0Fe-ti6OH7D for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 01:07:41 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 1A28C1A8A65 for <cfrg@irtf.org>; Fri, 30 Jan 2015 01:07:41 -0800 (PST)
Received: from www.trepanning.net (localhost [127.0.0.1]) by colo.trepanning.net (Postfix) with ESMTP id 2A49F10224008; Fri, 30 Jan 2015 01:07:40 -0800 (PST)
Received: from 104.36.248.10 (SquirrelMail authenticated user dharkins@lounge.org) by www.trepanning.net with HTTP; Fri, 30 Jan 2015 01:07:40 -0800 (PST)
Message-ID: <166608257cc9c754c14c4d97af2e89c4.squirrel@www.trepanning.net>
In-Reply-To: <9019E617-944B-4212-8066-C30C8885055D@vpnc.org>
References: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net> <9019E617-944B-4212-8066-C30C8885055D@vpnc.org>
Date: Fri, 30 Jan 2015 01:07:40 -0800 (PST)
From: "Dan Harkins" <dharkins@lounge.org>
To: "Paul Hoffman" <paul.hoffman@vpnc.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/Vo11lpLf3L4sKn1N9Ur-9UnvaNY>
Cc: Dan Brown <dbrown@certicom.com>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] generic curves ... RE: big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 09:07:42 -0000

On Thu, January 29, 2015 3:40 pm, Paul Hoffman wrote:
> If you want to debate the wisdom of what the TLS WG is doing, it is best
> done in the TLS WG, not here. Of course, you should read the threads on
> the list where the WG had strong consensus to remove generic curves. If
> you want to change their minds on that topic, doing so on the CFRG mailing
> list is probably not effective, and gets in the way of us making progress
> on what the TLS WG asked us to do.

  You are neither the chairman of this group nor the parliamentarian;
stop telling people what to do.

  Dan.



From nobody Fri Jan 30 08:32:06 2015
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 3EA121A6EEC for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 08:32:05 -0800 (PST)
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_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_16=0.6, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id agfq3NU-LySl for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 08:32:03 -0800 (PST)
Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8850F1A1B53 for <cfrg@irtf.org>; Fri, 30 Jan 2015 08:32:03 -0800 (PST)
Received: by mail-yh0-f50.google.com with SMTP id t59so11330449yho.9 for <cfrg@irtf.org>; Fri, 30 Jan 2015 08:32:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=xVqXa7FZ9Vut3Ds/+uevXTFXlqxffpBYX0Hdor3Ohyo=; b=z0gdKzipBkwtjaV7ByEy7N82zeendNpO4iENGAE5/7oe7b5osLmsLlbm2LvlmRbwYi LcElpwsFMKG8uafC3UMHdnbFBH7pHaSJHr7uphu/TlqaHpR6+WQMQZnfqG+0KfacC3yH BOB/Zi1QC+hfwC0zhxuiwL3bAMxYIyJ9fDTI320y/v0qsDPaKuTfLIwX6MJtIYZxsOhW qFlkWBKxPCN5GT0Otb84zTNTNokU1nMmIH/cuhvDoF3kYc04hTNp/0XrlBW0un+i1cSU TEZUwj6PNiTIzRmt4TwzNe84ADqqaDoWtIZqqIAUV0zbtAiaLLSiNw0FQKioyqR8O5mo F8bQ==
X-Received: by 10.170.59.129 with SMTP id b123mr4024278ykb.38.1422635522750; Fri, 30 Jan 2015 08:32:02 -0800 (PST)
MIME-Version: 1.0
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com> <alpine.BSO.2.11.1501301447010.29958@natsu.mindrot.org>
From: David Leon Gil <coruus@gmail.com>
Date: Fri, 30 Jan 2015 16:32:01 +0000
Message-ID: <CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com>
To: Damien Miller <djm@mindrot.org>, Tony Arcieri <bascule@gmail.com>
Content-Type: multipart/alternative; boundary=001a113bb760fa813f050de124be
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/9MXHdXoBydJkkuVK9lOWAof23d0>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 16:32:05 -0000

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

Some brief notes:

1. Hash functions. I'd really like to see a better hash function for any
options besides Ed25519. Two options for Ed25519:

1. Same point format. Keep the hash the same. Don't break compatibility.

2. New point format. Replace SHA2 with Blake2 or Prefix-MAC(SHAKE128).

For higher security strength curves, the EC-Schnorr security proofs suggest
2s hashing. Only SHAKE256 seems to work for that.

I mildly prefer EC-Schnorr to ECDSA, Franken- or not.

--

2. Signature schemes with coupons and tight reductions to CDH. Hashing to
an EC group is really easy with a variable-output-length keyed PRF. (Does
this have to be done in constant time?)

Pointcheval(?) has an interesting scheme involving 'coupons', in which all
scalar muls can be done *before* signing a message. The scheme has a tight
reduction to CDH.

This strikes me as potentially much more efficient than even Schnorr-EC for
signers: The scalarmuls are no longer in the critical path. So you get
asymmetric signatures for (very slightly more than) the latency of
computing a MAC[*]

[*] Note that this means you can compute coupons at periods of low
computational demand, which may be a substantial cost savings.

David Leon Gil
Senior Paranoid
Yahoo!

PS. Sending via Gmail because the CFRG mailing list software attempts to
forge @yahoo-inc.com FROM addresses. And Yahoo sets a DMARC p=reject. Could
a list admin please configure the IRTF listserv to not blatantly violate
the IETF DMARC standard?
On Thu, Jan 29, 2015 at 9:27 PM Damien Miller <djm@mindrot.org> wrote:

> On Tue, 27 Jan 2015, Tony Arcieri wrote:
>
> > I would like to hear the opinions of the chairs and other CFRG
> participants
> > on the following:
> > - Ed25519 and EdDSA
> > - FrankenECDSA (ECDSA in Edwards)
> > - ECDSA with Edwards keys on the wire (converted to Weierstrass to do
> ECDSA)
> > - Other interesting thoughts on digital signatures
>
> As you probably already know OpenSSH is already using Ed25519 for
> user and host authentication. We chose it because:
>
> 1) It's secure; well-reviewed and based on good "bones" (e.g. Schnorr sigs)
> 1a) It avoids the terrible failure modes of DSA/ECDSA
> 1b) It's hard for implementors to get wrong
> 2) It's fast
> 3) There are excellent reference implementations available
>
> We're not interested in adding more DSA/ECDSA variants unless there is some
> compelling reason (and I don't see any). EdDSA just seems a better
> algorithm.
>
> We're not super-interested in WF >2^128 EdDSA either, but would possibly
> consider EdDSA at ~WF 2^256 if our users start asking for it.
>
> We aren't likely to benefit from batch signing/verification.
>
> -d
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg
>

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

Some brief notes:<br><br>1. Hash functions. I&#39;d really like to see a be=
tter hash function for any options besides Ed25519. Two options for Ed25519=
:<br><br>1. Same point format. Keep the hash the same. Don&#39;t break comp=
atibility. <br><br>2. New point format. Replace SHA2 with Blake2 or Prefix-=
MAC(SHAKE128). <br><br>For higher security strength curves, the EC-Schnorr =
security proofs suggest 2s hashing. Only SHAKE256 seems to work for that. <=
br><br>I mildly prefer EC-Schnorr to ECDSA, Franken- or not. <br><br>--<br>=
<br>2. Signature schemes with coupons and tight reductions to CDH. Hashing =
to an EC group is really easy with a variable-output-length keyed PRF. (Doe=
s this have to be done in constant time?)<br><br>Pointcheval(?) has an inte=
resting scheme involving &#39;coupons&#39;, in which all scalar muls can be=
 done *before* signing a message. The scheme has a tight reduction to CDH. =
<br><br>This strikes me as potentially much more efficient than even Schnor=
r-EC for signers: The scalarmuls are no longer in the critical path. So you=
 get asymmetric signatures for (very slightly more than) the latency of com=
puting a MAC[*]<br><br>[*] Note that this means you can compute coupons at =
periods of low computational demand, which may be a substantial cost saving=
s.<br><br>David Leon Gil<br>Senior Paranoid<br>Yahoo!<br><br>PS. Sending vi=
a Gmail because the CFRG mailing list software attempts to forge @<a href=
=3D"http://yahoo-inc.com">yahoo-inc.com</a> FROM addresses. And Yahoo sets =
a DMARC p=3Dreject. Could a list admin please configure the IRTF listserv t=
o not blatantly violate the IETF DMARC standard?<br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 9:27 PM Damien Miller &lt;<a href=3D"mailto:djm=
@mindrot.org">djm@mindrot.org</a>&gt; wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">On Tue, 27 Jan 2015, Tony Arcieri wrote:<br>
<br>
&gt; I would like to hear the opinions of the chairs and other CFRG partici=
pants<br>
&gt; on the following:<br>
&gt; - Ed25519 and EdDSA<br>
&gt; - FrankenECDSA (ECDSA in Edwards)<br>
&gt; - ECDSA with Edwards keys on the wire (converted to Weierstrass to do =
ECDSA)<br>
&gt; - Other interesting thoughts on digital signatures<br>
<br>
As you probably already know OpenSSH is already using Ed25519 for<br>
user and host authentication. We chose it because:<br>
<br>
1) It&#39;s secure; well-reviewed and based on good &quot;bones&quot; (e.g.=
 Schnorr sigs)<br>
1a) It avoids the terrible failure modes of DSA/ECDSA<br>
1b) It&#39;s hard for implementors to get wrong<br>
2) It&#39;s fast<br>
3) There are excellent reference implementations available<br>
<br>
We&#39;re not interested in adding more DSA/ECDSA variants unless there is =
some<br>
compelling reason (and I don&#39;t see any). EdDSA just seems a better algo=
rithm.<br>
<br>
We&#39;re not super-interested in WF &gt;2^128 EdDSA either, but would poss=
ibly<br>
consider EdDSA at ~WF 2^256 if our users start asking for it.<br>
<br>
We aren&#39;t likely to benefit from batch signing/verification.<br>
<br>
-d<br>
<br>
<br>
______________________________<u></u>_________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org" target=3D"_blank">Cfrg@irtf.org</a><br>
<a href=3D"http://www.irtf.org/mailman/listinfo/cfrg" target=3D"_blank">htt=
p://www.irtf.org/mailman/<u></u>listinfo/cfrg</a><br>
</blockquote></div>

--001a113bb760fa813f050de124be--


From nobody Fri Jan 30 08:42:05 2015
Return-Path: <smyshsv@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 4A0301A86FC for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 08:42:03 -0800 (PST)
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 yzqi2hlhcXsy for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 08:41:58 -0800 (PST)
Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7D621A90F2 for <cfrg@irtf.org>; Fri, 30 Jan 2015 08:41:53 -0800 (PST)
Received: by mail-ob0-f170.google.com with SMTP id wp4so24680439obc.1 for <cfrg@irtf.org>; Fri, 30 Jan 2015 08:41:53 -0800 (PST)
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=uwm/jqhLmFmylFTU9ZMsPMLkfYIpu8f5r4jfrgYPIpw=; b=I/QQHqn9/ljUOdsmXYCAdSk0luA3rh/54g+3YNlIv/NBAtQ3Y+Sq2RsPvCRJNwjFB4 SXfF27gSwMS7bAlz2IRl+pmzmLjYZoksUbBxe1mfeHgHfLkXuH2YPfNFZR7lX2hfU5+D 1jfNxe6uPKa45aNh1lcY51EPP92GX9iAE+siqme0IU8UnitaPwacn8RQ5TjudjG4lQaW w29R5UPan/bj31SdUL8KxSGukVFF/LPqsoXq5pd8UynVlFE2dj3IgOROb6Fps78nUi1q 4Ohnx3jWEXxrV1LM+q8Ft+EcomNt5K/PVt9+56PmxBPeOv1YjcabINA0a1Y9/rdUTxD7 ALbw==
MIME-Version: 1.0
X-Received: by 10.60.118.39 with SMTP id kj7mr4223661oeb.53.1422636113080; Fri, 30 Jan 2015 08:41:53 -0800 (PST)
Received: by 10.182.5.103 with HTTP; Fri, 30 Jan 2015 08:41:53 -0800 (PST)
Date: Fri, 30 Jan 2015 20:41:53 +0400
Message-ID: <CAMr0u6mvq_L1V8SOY5Hhtg-wCybu3r8+UKz3s6HaYFP0xw-34Q@mail.gmail.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Content-Type: multipart/alternative; boundary=047d7b3a9a842a3b9f050de148ed
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/vcNoOpoUKDceBEtgbwPFwjpGT8w>
Subject: [Cfrg] For your information: all curve parameters standardized in Russia
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 16:42:03 -0000

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

Recommendations on elliptic curve parameteres used in Russian national
cryptographic standards

This document describes elliptic curve parameters used in standards like
Russian national digital signature standard GOST R 34.10-2012 ([GOST]) or
VKO key exchange ([VKO]). These parameter sets include two 512-bit
Weierstrass curves, one 512-bit twisted Edwads curve and one 256-bit
Edwards curve. These curves were generated by CryptoPro LLC (
http://www.cryptopro.ru/en) and were in 2013 and 2014 adopted by Technical
Commitee for Standardization "Cryptography and security mechanisms" (TC 26,
http://tc26.ru/en/).

All curves are built on field GF(p), p is prime. Weierstrass curves are
given by equation y^2 =3D x^3 + ax + b. Twisted Edwards curves are given by
equation eu^2 + v^2 =3D 1 + du^2v^2, while the birationally equivalent
Weierstrass curve has form y^2 =3D x^3 + ax + b. We denote base point as P,
x(P), y(P), u(P) and v(P) are corresponding affine Weierstrass and affine
Edwards coordinates of the base point. We denote all curve points number as
m and order of base point as q.

Both proposed Weierstrass curves have cofactor 1, while both twisted
Edwards curves have cofactor 4.

All curves are supported with test vectors set. For a random number k
coordinates for point kP and kP + P are provided.

All the numbers are given in big-endian notation.




id-tc26-gost-3410-12-512-paramSetA

Object identifier: 1.2.643.7.1.2.1.2.1

Type: Weierstrass

p (decimal): 2^512 - 569

p (hexadecimal):
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFDC7

a (decimal): -3 =3D 2^512 - 572

a (hexadecimal):
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFDC4

b (decimal):
12190580024266230156 18942475834009407551 48440647362312522087
72337825397464478540 42341898107432271889 94270390889972216099
47354520590448683948 135300824418144

b (hexadecimal):
E8C2505DEDFC86DD C1BD0B2B6667F1DA 34B82574761CB0E8 79BD081CFD0B6265
EE3CB090F30D2761 4CB4574010DA90DD 862EF9D4EBEE4761 503190785A71C760

q (decimal):
13407807929942597099 57402499820584612747 93658205923933777235
61443721764030073449 23231829058581763649 80496286125565968995
00625279906416653993 875474742293109

q (hexadecimal):
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
27E69532F48D8911 6FF22B8D4E056060 9B4B38ABFAD2B85D CACDB1411F10B275x(P)
(decimal): 3

x(P) (hexadecimal): 3

y(P) (decimal):
61285671321593683755 50676650534153371826 70880790635313229604
95468664645454726071 19134529221703336921 51640510736902860619
10977477383675719244 66694236795556

y(P) (hexadecimal):
7503CFE87A836AE3 A61B8816E25450E6 CE5E1C93ACF1ABC1 778064FDCBEFA921
DF1626BE4FD036E9 3D75E6A50E3A41E9 8028FE5FC235F5B8 89A589CB5215F2A4



Test samples:

k  (hexadecimal):
F48968530762F881 A2DFA6A41FC8C43A F746739D504A2BBF A4789CBA873FB221
F0F6F73AC8BFA2DC E1E8A38E35F53879 4B8502C2013DD9F3 0ACB8EAFD5C8E3EA

x(kP) (hexadecimal):
3A3E79CC832142D3 8C6E9785E5410A07 6053F82AEA5F202B E34A253A728C48E1
3E54D76C270240A6 AB65BAE9CE5E7EBE 026C3F7F6F1DC5CE 25180EB803560354

y(kP)  (hexadecimal):
2D570573C44AE8B7 86997455F425FC7D 98E6B647E010C946 39AA8CD19ACDF338
5A07E9351444B9BB 68C8B1D57C254AAB 1A718964C07E3720 546E87D3E67F8B17

x(kP + P)  (hexadecimal):
1A873259EE8B3197 5D8A97ED58D443E9 840C07E5953C26D6 9A86F97749BCECA2
5975355365252A65 023E7AEDD2859042 62DFB730EA19073C 65BA6B1E6A824516

y(kP + P)  (hexadecimal):
C0DA167DB2B76856 D7C6B568D9564555 752DD7E66CA98306 DCD289960D295E1E
2051B347658B13F2 38E0C26D43CC1F28 159CCB5897CFD4E2 2875ACC05CEF8FFF



id-tc26-gost-3410-12-512-paramSetB

Object identifier: 1.2.643.7.1.2.1.2.2

Type: Weierstrass

p (decimal): 2^511 + 111

p (hexadecimal)
8000000000000000 0000000000000000 0000000000000000 0000000000000000
0000000000000000 0000000000000000 0000000000000000 000000000000006F

a (decimal): -3 =3D 2^511+108

a (hexadecimal):
8000000000000000 0000000000000000 0000000000000000 0000000000000000
0000000000000000 0000000000000000 0000000000000000 000000000000006C

b (decimal):
5472517130514047254760 4330712816572741710343 8955376977974794160312
5796549693907036696237 2739527026378575800712 9325424094507949648437
3854264998452887027990

b (hexadecimal):
687D1B459DC84145 7E3E06CF6F5E2517 B97C7D614AF138BC BF85DC806C4B289F
3E965D2DB1416D21 7F8B276FAD1AB69C 50F78BEE1FA3106E FB8CCBC7C5140116

q (decimal):
67039039649712985497 87012499102923063739 68291029619668886178
07218608820150369225 85419853748190383615 06291094774340556751
01483988207171002828 56877776119229

q (hexadecimal):
8000000000000000 0000000000000000 0000000000000000 0000000000000001
49A1EC142565A545 ACFDB77BD9D40CFA 8B996712101BEA0E C6346C54374F25BD

x(P) (decimal):  2

x(P) (hexadecimal):  2

y(P) (decimal):
13910877977955572587 11735874750463328666 72929764755386079434
04349820727624912779 63324668489993185089 36570303349420418056
81819055489680110759 10357787492797
y(P) (hexadecimal):

1A8F7EDA389B094C 2C071E3647A8940F 3C123B697578C213 BE6DD9E6C8EC7335
DCB228FD1EDF4A39 152CBCAAF8C03988 28041055F94CEEEC 7E21340780FE41BD



Test samples:

k (hexadecimal):
FB532A3D6533878D 737A3B17000A8F88 286AF463112218EA 166B3FCE2337B5A1
5BE26FF1BD4F8148 B4549133D2963A2A 0DEB6BC73A73D1A5 5AE84C92BE886A0D

x(kP) (hexadecimal):
68515EB05BBD6280 BBBB0830C640E0B7 911828814A0A190D 3F5E79F75FB52457
6D2FBF6F83234F62 C79795A05EFCC885 49F69A8838183478 3FDF06F186B7FB44

y(kP) (hexadecimal):
53CC3DD4505C59CF 358CE66CA83427A5 622017F5F4CB7213 DC9AC7F770C40354
F735DC8CAB5DED76 4790FE7865823934 04583B13395AC532 F008186846D557AC

x(kP + P) (hexadecimal):
38AA9D504DDF3D4C 10CA3C0061A68D7F 454F802B1AE4ABF5 7B9E9BEB734CE836
BA096CED804CD996 A1A82E048C247C08 2AD368097D95768B D9E2859F8A436CCD

y(kP + P) (hexadecimal):
0E11E1EF44C16FB3 6EC251DEA6E2DF21 6054B2FED5567195 645880F3D6BB81CF
F86867F544C267C2 7F19EA9A3901469A 097ABD90F844B4CB A1FA93B8BB1EE4C8





id-tc26-gost-3410-12-512-paramSetC

Object identifier: 1.2.643.7.1.2.1.2.3

Type: Twisted Edwards

p (decimal): 2^512-569

p (hexadecimal):
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFDC7

a (decimal):
11552207741726624081 38485443175427045341 99909581585365474536
30472753284279856029 01303342173019597777 29124849705609770548
97563749457966985165 428182284278739

a (hexadecimal):
DC9203E514A72187 5485A529D2C722FB 187BC8980EB86664 4DE41C68E1430645
46E861C0E2C9EDD9 2ADE71F46FCF50FF 2AD97F951FDA9F2A 2EB6546F39689BD3

b (decimal):
94676543149742393648 49779893497935997616 54668089364237723598
18687410512156510324 46828994750528267630 60430610161071152105
59552901485771591251 87794668181473

b (hexadecimal):
B4C4EE28CEBC6C2C 8AC12952CF37F16A C7EFB6A9F69F4B57 FFDA2E4F0DE5ADE0
38CBC2FFF719D2C1 8DE0284B8BFEF3B5 2B8CC7A5F5BF0A3C 8D2319A5312557E1

e (decimal): 1

e (hexadecimal): 1

d (decimal):
82913685825403917599 56325599449696250171 73783865124128958599
79405570587036826119 83276933821315724273 2624569794907836022
84025399599007870613 061010570769744

d (hexadecimal):
9E4F5D8C017D8D9F 13A5CF3CDF5BFE4D AB402D54198E31EB DE28A0621050439C
A6B39E0A515C06B3 04E2CE43E79E369E 91A0CFC2BC2A22B4 CA302DBB33EE7550

m (decimal):
13407807929942597099 57402499820584612747 93658205923933777235
61443721764030073448 46347320033739688509 76753928234033665820
58868465127637383742 173859717091252

m (hexadecimal):
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
26336E91941AAC01 30CEA7FD451D40B3 23B6A79E9DA6849A 5188F3BD1FC08FB4

q (decimal):
33519519824856492748 93506249551461531869 84145514809834443089
03609304410075183621 15868300084349221274 41884820585084164551
47171162819093459355 43464929272813

q (hexadecimal):
3FFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
C98CDBA46506AB00 4C33A9FF5147502C C8EDA9E7A769A126 94623CEF47F023ED

x(P) (decimal):
11883046340949417535 95925361103163743848 61219893577482479635
85015455167053565085 94216113087093762259 67478314599795902458
49590330315393322885 186213222089032

x(P) (hexadecimal):
E2E31EDFC23DE7BD EBE241CE593EF5DE 2295B7A9CBAEF021 D385F7074CEA043A
A27272A7AE602BF2 A7B9033DB9ED3610 C6FB85487EAE97AA C5BC7928C1950148

y(P) (decimal):
12873887912291418762 16321917489924902778 89093549642795610447
04584079894283286935 68863958710113734676 52642378309337858972
90140286858111689735 138773336704015

y(P) (hexadecimal):
F5CE40D95B5EB899 ABBCCFF5911CB857 7939804D6527378B 8C108C3D2090FF9B
E18E2D33E3021ED2 EF32D85822423B63 04F726AA854BAE07 D0396E9A9ADDC40F

u(P) (decimal): 18

u(P) (hexadecimal): 12

v(P) (decimal):
36979017503500364661 95501370680965130892 92544552879410651570
06855305279130383310 15106382234398842797 31477426406170232846
97262362763698985268 28850803907133

v(P) (hexadecimal):
469AF79D1FB1F5E1 6B99592B77A01E2A 0FDFB0D01794368D 9A56117F7B386695
22DD4B650CF789EE BF068C5D139732F0 905622C04B2BAAE7 600303EE73001A3D



Test samples:

k (hexadecimal):
EA83DDED988F108F BA24F34233D6557B 2F969D4817E8CB04 7FB41FDB524806E9
B92AE502D8C52E5F F07115237E493F7E 1B383216D8058713 6339573578FA3DE3

u(kP) (hexadecimal):
9C3EAA7B005837BF 483C76196C98B055 1ECE3165FF185E7D 0D6EB4A7E51210D9
61382150D95B8472 D502CE33A4A5237D 1D670BA840114ADE 3AF6ED0DEA30B412

v(kP) (hexadecimal):
BE5ECA44686520DA D5BD5A211933D143 A3F0D406D3A1B041 0086AB426743BBBF
F116371A1E79EF07 7522667A896C145A AE1D51C9928E39AC 00C75E770772A388

x(kP) (hexadecimal):
5A09D774217E7921 95B13EC2FFCD193B 90D20A8D7089B06E 7D7BCE87F4A98818
D1B0CBAFA30DB19A 143A90D09779DE24 092A0108D1E0C980 97995593E9671664

y(kP)  (hexadecimal):
55FEBCD4B6395EF0 086D358626A85050 8004FB6B0A3AD782 D7B3E40E471B86A2
083FD98CA51F3DC1 F933AEA1D1DDBB18 96A46ED3513297F5 5358785FCB45AB02

u(kP + P) (hexadecimal):
C088D94C6F04AAF7 08ABCFB270186A91 1E551F1A4FC62DFB 55C7A937F6D83DE1
A980ED6F9014E9C0 043023FF973B11D1 4A1653832ED090FA 1141EF25A5C8A8BC

v(kP + P) (hexadecimal):
3CE14FD4D0748C13 C5882EAE9F792DDB 1076A5C1C87461BA 384563A3CD2100C5
3C4073278C68F80D F61E7EDB72EC47D1 637AD937916626E3 1D4BE25A80143D78

x(kP + P) (hexadecimal):
4AFE05204164ABF7 BF5DADE905140098 E50F90750BD6E662 45733BBF15D8AE42
A6C5B59500C6EF2A 57E9ECB6931973C6 4A3D40F7E77D916C BB785532A9131BFC

y(kP + P)  (hexadecimal):
67BD7F91DCB50101 43FDCE932EF40C77 E329CCA0BF9DF48C BA152D05809DF4CC
EF5C1BFF6AE1CDF4 645D7C1912801342 082113E2EC613621 905767764A89A4EB



id-tc26-gost-3410-2012-256-paramSetA

Object identifier: 1.2.643.7.1.2.1.1.1

Type: Twisted Edwards

p (decimal): 2^256-617

p (hexadecimal):
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFD97

a (decimal):
87789765485885808793 36975129440684117161 45899251934569098559
62166505018127157

a (hexadecimal):
C2173F1513981673 AF4892C23035A27C E25E2013BF95AA33 B22C656F277E7335

b (decimal):
18713751737015403763 89050345731859656045 98677961698302791625
11461744901002515

b (hexadecimal):
295F9BAE7428ED9C CC20E7C359A9D41A 22FCCD9108E17BF7 BA9337A6F8AE9513

e (decimal): 1

e (hexadecimal): 1

d (decimal):
27244141104746059318 34268501164757645998 72687847307680943260
4223414351675387

d (hexadecimal):
0605F6B7C183FA81 578BC39CFAD51813 2B9DF62897009AF7 E522C32D6DC7BFFB

m (decimal):
11579208923731619542 35709850086879078533 54241192369013770048
613635142121435548

m (hexadecimal):
0000000000000001 0000000000000000 0000000000000000 3F63377F21ED98D7
0456BD55B0D8319C

q (decimal):
28948022309329048855 89274625217197696333 85602980922534425121
53408785530358887

q (hexadecimal):
4000000000000000 0000000000000000 0FD8CDDFC87B6635 C115AF556C360C67

x(P) (decimal):
65987350182584560790 30864061958683471210 55451262697593654067
68962453298326056

x(P) (hexadecimal):
91E38443A5E82C0D 880923425712B2BB 658B9196932E02C7 8B2582FE742DAA28

y(P) (decimal):
22855189202984962870 42140250411039929315 22353829081057417499
87405721320435292

y(P) (hexadecimal):
32879423AB1A0375 895786C4BB46E956 5FDE0B5344766740 AF268ADB32322E5C

u(P) (decimal): 13

u(P) (hexadecimal): D

v(P) (decimal):
43779144989398987843 42877916609043640693 41958219151835744542
24403186176950503

v(P) (hexadecimal):
60CA1E32AA475B34 8488C38FAB07649C E7EF8DBE87F22E81 F92B2592DBA300E7



Test samples:

k (hexadecimal):
0439094A02C4E91D AAF8BF692CEB2EC8 E1EA5EEAEB51E48C 901B766FE548EAA7

u(kP) (hexadecimal):
7ABDDE365872ABE2 47A62AC93BBFE343 DDCD97B49BE630D0 3C5E74E34D25E193

v(kP) (hexadecimal):
6E0611FA08751D46 E5FD2A1464A8497A 15F9D67F47CCD3FE 359DA2D5066CF4FC

x(kP) (hexadecimal):
3A1B0D99E0CB1C73 34CF634EC4AB0E65 208D08167289AE09 1AF8B189CA3BEEE2

y(kP)  (hexadecimal):
22EEE1B8BB719560 811642D2ECEED788 FE1789044B3F1A8E B23B325195D8F49D

u(kP + P) (hexadecimal):
07EF9B50A2E069FF 65167925F1BB2F76 BCC1CF7E5F54A202 D67C5BD4586CD50D

v(kP + P) (hexadecimal):
FEC197EDE4FBC845 4E2428FC91F3ECEE 9CA1FDA59DB16A11 35AF8EF8D94E314F

x(kP + P) (hexadecimal):
B245CB80E81BAAB4 D174553FE2C25BF9 19E4228B95A127C5 61B0CF2569718998

y(kP + P)  (hexadecimal):
6CE88393F5EAF62A D6F47A02A05DF44B 12461E3ECD1FDD7A 4C1E4C2FBE31168A




References

[GOST]
GOST R 34.10=E2=80=932012 "Information technology. Cryptographic data secur=
ity.
Signature and verification processes of [electronic] digital signature"
Approved and introduced by Decree \#215 of the Federal Agency on Technical
Regulating and Metrology on 07.08.2012
Please, consider also RFC 7091

[VKO]
Using of cryptographic algorithms, implementing standards GOST R 34.10-2012
and GOST R 34.11-2012 (In Russian)
http://tc26.ru/methods/recommendation/=D0=A2=D0=9A26=D0=90=D0=9B=D0=93.pdf


Best regards,
Stanislav V. Smyshlyaev, Ph.D.,
Head of Information Security Department,
CryptoPro LLC

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

<div dir=3D"ltr"><div>Recommendations on elliptic curve parameteres used in=
 Russian national cryptographic standards</div><div><br></div><div>This doc=
ument describes elliptic curve parameters used in standards like Russian na=
tional digital signature standard GOST R 34.10-2012 ([GOST]) or VKO key exc=
hange ([VKO]). These parameter sets include two 512-bit Weierstrass curves,=
 one 512-bit twisted Edwads curve and one 256-bit Edwards curve. These curv=
es were generated by CryptoPro LLC (<a href=3D"http://www.cryptopro.ru/en">=
http://www.cryptopro.ru/en</a>) and were in 2013 and 2014 adopted by Techni=
cal Commitee for Standardization &quot;Cryptography and security mechanisms=
&quot; (TC 26, <a href=3D"http://tc26.ru/en/">http://tc26.ru/en/</a>).</div=
><div><br></div><div>All curves are built on field GF(p), p is prime. Weier=
strass curves are given by equation y^2 =3D x^3 + ax + b. Twisted Edwards c=
urves are given by equation eu^2 + v^2 =3D 1 + du^2v^2, while the birationa=
lly equivalent Weierstrass curve has form y^2 =3D x^3 + ax + b. We denote b=
ase point as P, x(P), y(P), u(P) and v(P) are corresponding affine Weierstr=
ass and affine Edwards coordinates of the base point. We denote all curve p=
oints number as m and order of base point as q.</div><div><br></div><div>Bo=
th proposed Weierstrass curves have cofactor 1, while both twisted Edwards =
curves have cofactor 4.=C2=A0</div><div><br></div><div>All curves are suppo=
rted with test vectors set. For a random number k coordinates for point kP =
and kP + P are provided.</div><div><br></div><div>All the numbers are given=
 in big-endian notation.</div><div><br></div><div><br></div><div><br></div>=
<div><br></div><div>id-tc26-gost-3410-12-512-paramSetA</div><div><br></div>=
<div>Object identifier: 1.2.643.7.1.2.1.2.1</div><div><br></div><div>Type: =
Weierstrass</div><div><br></div><div>p (decimal): 2^512 - 569</div><div><br=
></div><div>p (hexadecimal):</div><div>FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FF=
FFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFF=
FFFFFFF FFFFFFFFFFFFFDC7</div><div><br></div><div>a (decimal): -3 =3D 2^512=
 - 572</div><div><br></div><div>a (hexadecimal):</div><div>FFFFFFFFFFFFFFFF=
 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF =C2=A0FFFFFFFFFFFFFFFF =
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFDC4</div><div><br></div><div=
>b (decimal): =C2=A0</div><div>12190580024266230156 18942475834009407551 48=
440647362312522087 72337825397464478540 42341898107432271889 94270390889972=
216099 47354520590448683948 135300824418144</div><div><br></div><div>b (hex=
adecimal):</div><div>E8C2505DEDFC86DD C1BD0B2B6667F1DA 34B82574761CB0E8 79B=
D081CFD0B6265 EE3CB090F30D2761 4CB4574010DA90DD 862EF9D4EBEE4761 503190785A=
71C760</div><div><br></div><div>q (decimal):</div><div>13407807929942597099=
 57402499820584612747 93658205923933777235 61443721764030073449 23231829058=
581763649 80496286125565968995 00625279906416653993 875474742293109</div><d=
iv><br></div><div>q (hexadecimal):</div><div>FFFFFFFFFFFFFFFF FFFFFFFFFFFFF=
FFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 27E69532F48D8911 6FF22B8D4E056060 9B4=
B38ABFAD2B85D CACDB1411F10B275x(P) (decimal): 3</div><div><br></div><div>x(=
P) (hexadecimal): 3</div><div><br></div><div>y(P) (decimal):</div><div>6128=
5671321593683755 50676650534153371826 70880790635313229604 9546866464545472=
6071 19134529221703336921 51640510736902860619 10977477383675719244 6669423=
6795556</div><div><br></div><div>y(P) (hexadecimal):</div><div>7503CFE87A83=
6AE3 A61B8816E25450E6 CE5E1C93ACF1ABC1 778064FDCBEFA921 DF1626BE4FD036E9 3D=
75E6A50E3A41E9 8028FE5FC235F5B8 89A589CB5215F2A4</div><div><br></div><div><=
br></div><div><br></div><div>Test samples:</div><div><br></div><div>k =C2=
=A0(hexadecimal):</div><div>F48968530762F881 A2DFA6A41FC8C43A F746739D504A2=
BBF A4789CBA873FB221 F0F6F73AC8BFA2DC E1E8A38E35F53879 4B8502C2013DD9F3 0AC=
B8EAFD5C8E3EA=C2=A0</div><div><br></div><div>x(kP) (hexadecimal):</div><div=
>3A3E79CC832142D3 8C6E9785E5410A07 6053F82AEA5F202B E34A253A728C48E1 3E54D7=
6C270240A6 AB65BAE9CE5E7EBE 026C3F7F6F1DC5CE 25180EB803560354=C2=A0</div><d=
iv><br></div><div>y(kP) =C2=A0(hexadecimal):</div><div>2D570573C44AE8B7 869=
97455F425FC7D 98E6B647E010C946 39AA8CD19ACDF338 5A07E9351444B9BB 68C8B1D57C=
254AAB 1A718964C07E3720 546E87D3E67F8B17=C2=A0</div><div><br></div><div>x(k=
P + P) =C2=A0(hexadecimal):</div><div>1A873259EE8B3197 5D8A97ED58D443E9 840=
C07E5953C26D6 9A86F97749BCECA2 5975355365252A65 023E7AEDD2859042 62DFB730EA=
19073C 65BA6B1E6A824516=C2=A0</div><div><br></div><div>y(kP + P) =C2=A0(hex=
adecimal):</div><div>C0DA167DB2B76856 D7C6B568D9564555 752DD7E66CA98306 DCD=
289960D295E1E 2051B347658B13F2 38E0C26D43CC1F28 159CCB5897CFD4E2 2875ACC05C=
EF8FFF=C2=A0</div><div><br></div><div><br></div><div><br></div><div>id-tc26=
-gost-3410-12-512-paramSetB</div><div><br></div><div>Object identifier: 1.2=
.643.7.1.2.1.2.2</div><div><br></div><div>Type: Weierstrass</div><div><br><=
/div><div>p (decimal): 2^511 + 111</div><div><br></div><div>p (hexadecimal)=
</div><div>8000000000000000 0000000000000000 0000000000000000 0000000000000=
000 0000000000000000 0000000000000000 0000000000000000 000000000000006F</di=
v><div><br></div><div>a (decimal): -3 =3D 2^511+108</div><div><br></div><di=
v>a (hexadecimal):=C2=A0</div><div>8000000000000000 0000000000000000 000000=
0000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000=
000 000000000000006C</div><div><br></div><div>b (decimal):</div><div>547251=
7130514047254760 4330712816572741710343 8955376977974794160312 579654969390=
7036696237 2739527026378575800712 9325424094507949648437 385426499845288702=
7990</div><div><br></div><div>b (hexadecimal): =C2=A0</div><div>687D1B459DC=
84145 7E3E06CF6F5E2517 B97C7D614AF138BC BF85DC806C4B289F 3E965D2DB1416D21 7=
F8B276FAD1AB69C 50F78BEE1FA3106E FB8CCBC7C5140116</div><div><br></div><div>=
q (decimal):</div><div>67039039649712985497 87012499102923063739 6829102961=
9668886178 07218608820150369225 85419853748190383615 06291094774340556751 0=
1483988207171002828 56877776119229</div><div><br></div><div>q (hexadecimal)=
:=C2=A0</div><div>8000000000000000 0000000000000000 0000000000000000 000000=
0000000001 49A1EC142565A545 ACFDB77BD9D40CFA 8B996712101BEA0E C6346C54374F2=
5BD</div><div><br></div><div>x(P) (decimal): =C2=A02</div><div><br></div><d=
iv>x(P) (hexadecimal): =C2=A02</div><div><br></div><div>y(P) (decimal):</di=
v><div>13910877977955572587 11735874750463328666 72929764755386079434 04349=
820727624912779 63324668489993185089 36570303349420418056 81819055489680110=
759 10357787492797</div><div>y(P) (hexadecimal):=C2=A0</div><div><br></div>=
<div>1A8F7EDA389B094C 2C071E3647A8940F 3C123B697578C213 BE6DD9E6C8EC7335 DC=
B228FD1EDF4A39 152CBCAAF8C03988 28041055F94CEEEC 7E21340780FE41BD</div><div=
><br></div><div><br></div><div><br></div><div>Test samples:</div><div><br><=
/div><div>k (hexadecimal):=C2=A0</div><div>FB532A3D6533878D 737A3B17000A8F8=
8 286AF463112218EA 166B3FCE2337B5A1 5BE26FF1BD4F8148 B4549133D2963A2A 0DEB6=
BC73A73D1A5 5AE84C92BE886A0D=C2=A0</div><div><br></div><div>x(kP) (hexadeci=
mal):=C2=A0</div><div>68515EB05BBD6280 BBBB0830C640E0B7 911828814A0A190D 3F=
5E79F75FB52457 6D2FBF6F83234F62 C79795A05EFCC885 49F69A8838183478 3FDF06F18=
6B7FB44</div><div><br></div><div>y(kP) (hexadecimal):=C2=A0</div><div>53CC3=
DD4505C59CF 358CE66CA83427A5 622017F5F4CB7213 DC9AC7F770C40354 F735DC8CAB5D=
ED76 4790FE7865823934 04583B13395AC532 F008186846D557AC =C2=A0</div><div><b=
r></div><div>x(kP + P) (hexadecimal):=C2=A0</div><div>38AA9D504DDF3D4C 10CA=
3C0061A68D7F 454F802B1AE4ABF5 7B9E9BEB734CE836 BA096CED804CD996 A1A82E048C2=
47C08 2AD368097D95768B D9E2859F8A436CCD=C2=A0</div><div><br></div><div>y(kP=
 + P) (hexadecimal):=C2=A0</div><div>0E11E1EF44C16FB3 6EC251DEA6E2DF21 6054=
B2FED5567195 645880F3D6BB81CF F86867F544C267C2 7F19EA9A3901469A 097ABD90F84=
4B4CB A1FA93B8BB1EE4C8</div><div><br></div><div><br></div><div><br></div><d=
iv><br></div><div><br></div><div>id-tc26-gost-3410-12-512-paramSetC</div><d=
iv><br></div><div>Object identifier: 1.2.643.7.1.2.1.2.3</div><div><br></di=
v><div>Type: Twisted Edwards</div><div><br></div><div>p (decimal): 2^512-56=
9</div><div><br></div><div>p (hexadecimal):</div><div>FFFFFFFFFFFFFFFF FFFF=
FFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFF=
FFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFDC7</div><div><br></div><div>a (decimal=
):=C2=A0</div><div>11552207741726624081 38485443175427045341 99909581585365=
474536 30472753284279856029 01303342173019597777 29124849705609770548 97563=
749457966985165 428182284278739</div><div><br></div><div>a (hexadecimal):=
=C2=A0</div><div>DC9203E514A72187 5485A529D2C722FB 187BC8980EB86664 4DE41C6=
8E1430645 46E861C0E2C9EDD9 2ADE71F46FCF50FF 2AD97F951FDA9F2A 2EB6546F39689B=
D3</div><div><br></div><div>b (decimal):</div><div>94676543149742393648 497=
79893497935997616 54668089364237723598 18687410512156510324 468289947505282=
67630 60430610161071152105 59552901485771591251 87794668181473</div><div><b=
r></div><div>b (hexadecimal): =C2=A0</div><div>B4C4EE28CEBC6C2C 8AC12952CF3=
7F16A C7EFB6A9F69F4B57 FFDA2E4F0DE5ADE0 38CBC2FFF719D2C1 8DE0284B8BFEF3B5 2=
B8CC7A5F5BF0A3C 8D2319A5312557E1</div><div><br></div><div>e (decimal): 1</d=
iv><div><br></div><div>e (hexadecimal): 1</div><div><br></div><div>d (decim=
al):=C2=A0</div><div>82913685825403917599 56325599449696250171 737838651241=
28958599 79405570587036826119 83276933821315724273 2624569794907836022 8402=
5399599007870613 061010570769744</div><div><br></div><div>d (hexadecimal):<=
/div><div>9E4F5D8C017D8D9F 13A5CF3CDF5BFE4D AB402D54198E31EB DE28A062105043=
9C A6B39E0A515C06B3 04E2CE43E79E369E 91A0CFC2BC2A22B4 CA302DBB33EE7550</div=
><div><br></div><div>m (decimal):=C2=A0</div><div>13407807929942597099 5740=
2499820584612747 93658205923933777235 61443721764030073448 4634732003373968=
8509 76753928234033665820 58868465127637383742 173859717091252</div><div><b=
r></div><div>m (hexadecimal):</div><div>FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF F=
FFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 26336E91941AAC01 30CEA7FD451D40B3 23B6A79E=
9DA6849A 5188F3BD1FC08FB4</div><div><br></div><div>q (decimal):</div><div>3=
3519519824856492748 93506249551461531869 84145514809834443089 0360930441007=
5183621 15868300084349221274 41884820585084164551 47171162819093459355 4346=
4929272813</div><div><br></div><div>q (hexadecimal):=C2=A0</div><div>3FFFFF=
FFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF C98CDBA46506A=
B00 4C33A9FF5147502C C8EDA9E7A769A126 94623CEF47F023ED</div><div><br></div>=
<div>x(P) (decimal):</div><div>11883046340949417535 95925361103163743848 61=
219893577482479635 85015455167053565085 94216113087093762259 67478314599795=
902458 49590330315393322885 186213222089032</div><div><br></div><div>x(P) (=
hexadecimal):</div><div>E2E31EDFC23DE7BD EBE241CE593EF5DE 2295B7A9CBAEF021 =
D385F7074CEA043A A27272A7AE602BF2 A7B9033DB9ED3610 C6FB85487EAE97AA C5BC792=
8C1950148</div><div><br></div><div>y(P) (decimal):</div><div>12873887912291=
418762 16321917489924902778 89093549642795610447 04584079894283286935 68863=
958710113734676 52642378309337858972 90140286858111689735 138773336704015</=
div><div><br></div><div>y(P) (hexadecimal):=C2=A0</div><div>F5CE40D95B5EB89=
9 ABBCCFF5911CB857 7939804D6527378B 8C108C3D2090FF9B E18E2D33E3021ED2 EF32D=
85822423B63 04F726AA854BAE07 D0396E9A9ADDC40F</div><div><br></div><div>u(P)=
 (decimal): 18</div><div><br></div><div>u(P) (hexadecimal): 12</div><div><b=
r></div><div>v(P) (decimal):</div><div>36979017503500364661 955013706809651=
30892 92544552879410651570 06855305279130383310 15106382234398842797 314774=
26406170232846 97262362763698985268 28850803907133</div><div><br></div><div=
>v(P) (hexadecimal):</div><div>469AF79D1FB1F5E1 6B99592B77A01E2A 0FDFB0D017=
94368D 9A56117F7B386695 22DD4B650CF789EE BF068C5D139732F0 905622C04B2BAAE7 =
600303EE73001A3D</div><div><br></div><div><br></div><div><br></div><div>Tes=
t samples:</div><div><br></div><div>k (hexadecimal):</div><div>EA83DDED988F=
108F BA24F34233D6557B 2F969D4817E8CB04 7FB41FDB524806E9 B92AE502D8C52E5F F0=
7115237E493F7E 1B383216D8058713 6339573578FA3DE3</div><div><br></div><div>u=
(kP) (hexadecimal):</div><div>9C3EAA7B005837BF 483C76196C98B055 1ECE3165FF1=
85E7D 0D6EB4A7E51210D9 61382150D95B8472 D502CE33A4A5237D 1D670BA840114ADE 3=
AF6ED0DEA30B412 =C2=A0</div><div><br></div><div>v(kP) (hexadecimal):</div><=
div>BE5ECA44686520DA D5BD5A211933D143 A3F0D406D3A1B041 0086AB426743BBBF F11=
6371A1E79EF07 7522667A896C145A AE1D51C9928E39AC 00C75E770772A388</div><div>=
<br></div><div>x(kP) (hexadecimal):</div><div>5A09D774217E7921 95B13EC2FFCD=
193B 90D20A8D7089B06E 7D7BCE87F4A98818 D1B0CBAFA30DB19A 143A90D09779DE24 09=
2A0108D1E0C980 97995593E9671664</div><div><br></div><div>y(kP) =C2=A0(hexad=
ecimal):</div><div>55FEBCD4B6395EF0 086D358626A85050 8004FB6B0A3AD782 D7B3E=
40E471B86A2 083FD98CA51F3DC1 F933AEA1D1DDBB18 96A46ED3513297F5 5358785FCB45=
AB02 =C2=A0=C2=A0</div><div><br></div><div>u(kP + P) (hexadecimal):</div><d=
iv>C088D94C6F04AAF7 08ABCFB270186A91 1E551F1A4FC62DFB 55C7A937F6D83DE1 A980=
ED6F9014E9C0 043023FF973B11D1 4A1653832ED090FA 1141EF25A5C8A8BC</div><div><=
br></div><div>v(kP + P) (hexadecimal):</div><div>3CE14FD4D0748C13 C5882EAE9=
F792DDB 1076A5C1C87461BA 384563A3CD2100C5 3C4073278C68F80D F61E7EDB72EC47D1=
 637AD937916626E3 1D4BE25A80143D78</div><div><br></div><div>x(kP + P) (hexa=
decimal):</div><div>4AFE05204164ABF7 BF5DADE905140098 E50F90750BD6E662 4573=
3BBF15D8AE42 A6C5B59500C6EF2A 57E9ECB6931973C6 4A3D40F7E77D916C BB785532A91=
31BFC=C2=A0</div><div><br></div><div>y(kP + P) =C2=A0(hexadecimal):</div><d=
iv>67BD7F91DCB50101 43FDCE932EF40C77 E329CCA0BF9DF48C BA152D05809DF4CC EF5C=
1BFF6AE1CDF4 645D7C1912801342 082113E2EC613621 905767764A89A4EB</div><div><=
br></div><div><br></div><div><br></div><div>id-tc26-gost-3410-2012-256-para=
mSetA</div><div><br></div><div>Object identifier: 1.2.643.7.1.2.1.1.1</div>=
<div><br></div><div>Type: Twisted Edwards</div><div><br></div><div>p (decim=
al): 2^256-617</div><div><br></div><div>p (hexadecimal):</div><div>FFFFFFFF=
FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFD97</div><div><br><=
/div><div>a (decimal):=C2=A0</div><div>87789765485885808793 369751294406841=
17161 45899251934569098559 62166505018127157</div><div><br></div><div>a (he=
xadecimal):=C2=A0</div><div>C2173F1513981673 AF4892C23035A27C E25E2013BF95A=
A33 B22C656F277E7335</div><div><br></div><div>b (decimal):</div><div>187137=
51737015403763 89050345731859656045 98677961698302791625 11461744901002515<=
/div><div><br></div><div>b (hexadecimal): =C2=A0</div><div>295F9BAE7428ED9C=
 CC20E7C359A9D41A 22FCCD9108E17BF7 BA9337A6F8AE9513</div><div><br></div><di=
v>e (decimal): 1</div><div><br></div><div>e (hexadecimal): 1</div><div><br>=
</div><div>d (decimal):=C2=A0</div><div>27244141104746059318 34268501164757=
645998 72687847307680943260 4223414351675387</div><div><br></div><div>d (he=
xadecimal):</div><div>0605F6B7C183FA81 578BC39CFAD51813 2B9DF62897009AF7 E5=
22C32D6DC7BFFB</div><div><br></div><div>m (decimal):=C2=A0</div><div>115792=
08923731619542 35709850086879078533 54241192369013770048 613635142121435548=
</div><div><br></div><div>m (hexadecimal):</div><div>0000000000000001 00000=
00000000000 0000000000000000 3F63377F21ED98D7 0456BD55B0D8319C</div><div><b=
r></div><div>q (decimal):</div><div>28948022309329048855 892746252171976963=
33 85602980922534425121 53408785530358887</div><div><br></div><div>q (hexad=
ecimal):=C2=A0</div><div>4000000000000000 0000000000000000 0FD8CDDFC87B6635=
 C115AF556C360C67</div><div><br></div><div>x(P) (decimal):</div><div>659873=
50182584560790 30864061958683471210 55451262697593654067 68962453298326056<=
/div><div><br></div><div>x(P) (hexadecimal):</div><div>91E38443A5E82C0D 880=
923425712B2BB 658B9196932E02C7 8B2582FE742DAA28</div><div><br></div><div>y(=
P) (decimal):</div><div>22855189202984962870 42140250411039929315 223538290=
81057417499 87405721320435292</div><div><br></div><div>y(P) (hexadecimal):=
=C2=A0</div><div>32879423AB1A0375 895786C4BB46E956 5FDE0B5344766740 AF268AD=
B32322E5C</div><div><br></div><div>u(P) (decimal): 13</div><div><br></div><=
div>u(P) (hexadecimal): D</div><div><br></div><div>v(P) (decimal):</div><di=
v>43779144989398987843 42877916609043640693 41958219151835744542 2440318617=
6950503</div><div><br></div><div>v(P) (hexadecimal):</div><div>60CA1E32AA47=
5B34 8488C38FAB07649C E7EF8DBE87F22E81 F92B2592DBA300E7</div><div><br></div=
><div><br></div><div><br></div><div>Test samples:</div><div><br></div><div>=
k (hexadecimal):</div><div>0439094A02C4E91D AAF8BF692CEB2EC8 E1EA5EEAEB51E4=
8C 901B766FE548EAA7=C2=A0</div><div><br></div><div>u(kP) (hexadecimal):</di=
v><div>7ABDDE365872ABE2 47A62AC93BBFE343 DDCD97B49BE630D0 3C5E74E34D25E193 =
=C2=A0</div><div><br></div><div>v(kP) (hexadecimal):</div><div>6E0611FA0875=
1D46 E5FD2A1464A8497A 15F9D67F47CCD3FE 359DA2D5066CF4FC</div><div><br></div=
><div>x(kP) (hexadecimal):</div><div>3A1B0D99E0CB1C73 34CF634EC4AB0E65 208D=
08167289AE09 1AF8B189CA3BEEE2=C2=A0</div><div><br></div><div>y(kP) =C2=A0(h=
exadecimal):</div><div>22EEE1B8BB719560 811642D2ECEED788 FE1789044B3F1A8E B=
23B325195D8F49D=C2=A0</div><div><br></div><div>u(kP + P) (hexadecimal):</di=
v><div>07EF9B50A2E069FF 65167925F1BB2F76 BCC1CF7E5F54A202 D67C5BD4586CD50D=
=C2=A0</div><div><br></div><div>v(kP + P) (hexadecimal):</div><div>FEC197ED=
E4FBC845 4E2428FC91F3ECEE 9CA1FDA59DB16A11 35AF8EF8D94E314F</div><div><br><=
/div><div>x(kP + P) (hexadecimal):</div><div>B245CB80E81BAAB4 D174553FE2C25=
BF9 19E4228B95A127C5 61B0CF2569718998</div><div><br></div><div>y(kP + P) =
=C2=A0(hexadecimal):</div><div>6CE88393F5EAF62A D6F47A02A05DF44B 12461E3ECD=
1FDD7A 4C1E4C2FBE31168A=C2=A0</div><div><br></div><div><br></div><div><br><=
/div><div><br></div><div>References</div><div><br></div><div>[GOST]</div><d=
iv>GOST R 34.10=E2=80=932012 &quot;Information technology. Cryptographic da=
ta security. Signature and verification processes of [electronic] digital s=
ignature&quot;</div><div>Approved and introduced by Decree \#215 of the Fed=
eral Agency on Technical Regulating and Metrology on 07.08.2012</div><div>P=
lease, consider also RFC 7091</div><div><br></div><div>[VKO]</div><div>Usin=
g of cryptographic algorithms, implementing standards GOST R 34.10-2012 and=
 GOST R 34.11-2012 (In Russian)</div><div><a href=3D"http://tc26.ru/methods=
/recommendation/">http://tc26.ru/methods/recommendation/</a>=D0=A2=D0=9A26=
=D0=90=D0=9B=D0=93.pdf</div><div><br></div><div><div class=3D"gmail_signatu=
re"><div dir=3D"ltr"><p><br></p><div><div>Best regards,</div><div>Stanislav=
 V. Smyshlyaev, Ph.D.,</div><div>Head of Information Security Department,</=
div><div>CryptoPro LLC</div></div><div><br></div></div></div></div>
</div>

--047d7b3a9a842a3b9f050de148ed--


From nobody Fri Jan 30 09:29:43 2015
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 938A51A9103 for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 09:29:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.856
X-Spam-Level: ****
X-Spam-Status: No, score=4.856 tagged_above=-999 required=5 tests=[BAYES_50=0.8, 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_16=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 k3PFGcOMx6pj for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 09:29:31 -0800 (PST)
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 38F251A88E0 for <cfrg@irtf.org>; Fri, 30 Jan 2015 09:29:31 -0800 (PST)
Received: from [192.168.1.102] (unknown [192.168.1.1]) by aspartame.shiftleft.org (Postfix) with ESMTPSA id 6B3BC3AA26; Fri, 30 Jan 2015 09:29:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shiftleft.org; s=sldo; t=1422638959; bh=3/2Jd4eSpLERgvZrYmNPStLOK946jMyQfgXImTQjlTI=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=Bp51B+yFUeeoVoY5JAmB1+jpo1J755ayleiDqd+Hu99roRwcpINvSbfdGjp2rkoHa FdougNtZc41lCdlLeYikQVQklxb/dzaDTdNwSJYJ6PEfxmsLFZb1Zkd6JtGy0pReLN qrQ8K/TaNcAPTcMF2EbCvRKoRSJuotbqiSz3qkBw=
Message-ID: <54CBBF77.6000107@shiftleft.org>
Date: Fri, 30 Jan 2015 09:29:27 -0800
From: Mike Hamburg <mike@shiftleft.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: David Leon Gil <coruus@gmail.com>, Damien Miller <djm@mindrot.org>,  Tony Arcieri <bascule@gmail.com>
References: <CAHOTMVLZ3Hu2iAzAduu2A9kRgu36uVmMhYnEvAm786QyyUQigQ@mail.gmail.com> <alpine.BSO.2.11.1501301447010.29958@natsu.mindrot.org> <CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com>
In-Reply-To: <CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------070909020406030201030505"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/onokHOGwQTOMUoGB37bEBlW54ls>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Signatures: curves, algorithms, etc
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 17:29:33 -0000

This is a multi-part message in MIME format.
--------------070909020406030201030505
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit


On 01/30/2015 08:32 AM, David Leon Gil wrote:
> Some brief notes:
>
> 1. Hash functions. I'd really like to see a better hash function for 
> any options besides Ed25519. Two options for Ed25519:
>
> 1. Same point format. Keep the hash the same. Don't break compatibility.
>
> 2. New point format. Replace SHA2 with Blake2 or Prefix-MAC(SHAKE128).
>
> For higher security strength curves, the EC-Schnorr security proofs 
> suggest 2s hashing. Only SHAKE256 seems to work for that.
Which hashing step, the nonce derivation or the challenge?  And what's s?

The nonce needs to be close to uniform, but if the curve's order is 2^n 
+ ~2^(n/2) then even n bits would be enough.  Otherwise 1.5n bits are 
enough.

Is there a strong bound on the challenge?
> I mildly prefer EC-Schnorr to ECDSA, Franken- or not.
I also prefer EC-Schnorr, though I don't have a strong preference 
between Bernstein's formulation (kP, s) and Schnorr's (r,s).

I also think some users will be annoyed if we specify a Schnorr variant 
which precludes a streaming API.
> --
>
> 2. Signature schemes with coupons and tight reductions to CDH. Hashing 
> to an EC group is really easy with a variable-output-length keyed PRF. 
> (Does this have to be done in constant time?)
Not for signatures, though it leaks information about the (hash of) the 
message to be signed.  But you'd want to implement it in constant time 
so that SPEKE, SPAKE2 EE, Dragonfly and possibly EKE EE can use the same 
function.

By the way, usually for schemes where you hash to the curve, the hash 
doesn't need to be uniform or onto, just kinda-almost-onto and 
not-too-nonuniform.  (It's where the discrete log challenge is injected 
through the ROM, but ECDLP is randomly self-reducible so the challenger 
can easily rejection sample.)  As a result, a single call to either SWU 
or Elligator (1 or 2) is good enough.  This is pretty easy to do in 
constant time, with a single exp, and with only a field element's worth 
of hash output.

If you need a uniform hash, the BCIMRT solution is to hash twice and add.

See for example:
http://sourceforge.net/p/ed448goldilocks/code/ci/decaf/tree/src/decaf.c
http://sourceforge.net/p/ed448goldilocks/code/ci/decaf/tree/include/decaf.h
"decaf_point_from_hash_[non]uniform".
> Pointcheval(?) has an interesting scheme involving 'coupons', in which 
> all scalar muls can be done *before* signing a message. The scheme has 
> a tight reduction to CDH.
Link?  I'm most familiar with 
https://www.cs.umd.edu/~jkatz/papers/dh-sigs-full.pdf, but it's not by 
Pointcheval and its couponized sigs are only reducible to DDH.
> This strikes me as potentially much more efficient than even 
> Schnorr-EC for signers: The scalarmuls are no longer in the critical 
> path. So you get asymmetric signatures for (very slightly more than) 
> the latency of computing a MAC[*]
>
> [*] Note that this means you can compute coupons at periods of low 
> computational demand, which may be a substantial cost savings.
You can use coupons with Schnorr or even with ECDSA.  I've suggested its 
use in my company's products to reduce latency.  Though a tight 
reduction to CDH would be nice.

Cheers,
-- Mike
> David Leon Gil
> Senior Paranoid
> Yahoo!
>
> PS. Sending via Gmail because the CFRG mailing list software attempts 
> to forge @yahoo-inc.com <http://yahoo-inc.com> FROM addresses. And 
> Yahoo sets a DMARC p=reject. Could a list admin please configure the 
> IRTF listserv to not blatantly violate the IETF DMARC standard?
> On Thu, Jan 29, 2015 at 9:27 PM Damien Miller <djm@mindrot.org 
> <mailto:djm@mindrot.org>> wrote:
>
>     On Tue, 27 Jan 2015, Tony Arcieri wrote:
>
>     > I would like to hear the opinions of the chairs and other CFRG
>     participants
>     > on the following:
>     > - Ed25519 and EdDSA
>     > - FrankenECDSA (ECDSA in Edwards)
>     > - ECDSA with Edwards keys on the wire (converted to Weierstrass
>     to do ECDSA)
>     > - Other interesting thoughts on digital signatures
>
>     As you probably already know OpenSSH is already using Ed25519 for
>     user and host authentication. We chose it because:
>
>     1) It's secure; well-reviewed and based on good "bones" (e.g.
>     Schnorr sigs)
>     1a) It avoids the terrible failure modes of DSA/ECDSA
>     1b) It's hard for implementors to get wrong
>     2) It's fast
>     3) There are excellent reference implementations available
>
>     We're not interested in adding more DSA/ECDSA variants unless
>     there is some
>     compelling reason (and I don't see any). EdDSA just seems a better
>     algorithm.
>
>     We're not super-interested in WF >2^128 EdDSA either, but would
>     possibly
>     consider EdDSA at ~WF 2^256 if our users start asking for it.
>
>     We aren't likely to benefit from batch signing/verification.
>
>     -d
>
>
>     _______________________________________________
>     Cfrg mailing list
>     Cfrg@irtf.org <mailto:Cfrg@irtf.org>
>     http://www.irtf.org/mailman/listinfo/cfrg
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> http://www.irtf.org/mailman/listinfo/cfrg


--------------070909020406030201030505
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 01/30/2015 08:32 AM, David Leon Gil
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com"
      type="cite">Some brief notes:<br>
      <br>
      1. Hash functions. I'd really like to see a better hash function
      for any options besides Ed25519. Two options for Ed25519:<br>
      <br>
      1. Same point format. Keep the hash the same. Don't break
      compatibility. <br>
      <br>
      2. New point format. Replace SHA2 with Blake2 or
      Prefix-MAC(SHAKE128). <br>
      <br>
      For higher security strength curves, the EC-Schnorr security
      proofs suggest 2s hashing. Only SHAKE256 seems to work for that. <br>
    </blockquote>
    Which hashing step, the nonce derivation or the challenge?  And
    what's s?<br>
    <br>
    The nonce needs to be close to uniform, but if the curve's order is
    2^n + ~2^(n/2) then even n bits would be enough.  Otherwise 1.5n
    bits are enough.<br>
    <br>
    Is there a strong bound on the challenge?<br>
    <blockquote
cite="mid:CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com"
      type="cite">I mildly prefer EC-Schnorr to ECDSA, Franken- or not.
      <br>
    </blockquote>
    I also prefer EC-Schnorr, though I don't have a strong preference
    between Bernstein's formulation (kP, s) and Schnorr's (r,s).<br>
    <br>
    I also think some users will be annoyed if we specify a Schnorr
    variant which precludes a streaming API.<br>
    <blockquote
cite="mid:CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com"
      type="cite">--<br>
      <br>
      2. Signature schemes with coupons and tight reductions to CDH.
      Hashing to an EC group is really easy with a
      variable-output-length keyed PRF. (Does this have to be done in
      constant time?)<br>
    </blockquote>
    Not for signatures, though it leaks information about the (hash of)
    the message to be signed.  But you'd want to implement it in
    constant time so that SPEKE, SPAKE2 EE, Dragonfly and possibly EKE
    EE can use the same function.<br>
    <br>
    By the way, usually for schemes where you hash to the curve, the
    hash doesn't need to be uniform or onto, just kinda-almost-onto and
    not-too-nonuniform.  (It's where the discrete log challenge is
    injected through the ROM, but ECDLP is randomly self-reducible so
    the challenger can easily rejection sample.)  As a result, a single
    call to either SWU or Elligator (1 or 2) is good enough.  This is
    pretty easy to do in constant time, with a single exp, and with only
    a field element's worth of hash output.<br>
    <br>
    If you need a uniform hash, the BCIMRT solution is to hash twice and
    add.<br>
    <br>
    See for example:<br>
<a class="moz-txt-link-freetext" href="http://sourceforge.net/p/ed448goldilocks/code/ci/decaf/tree/src/decaf.c">http://sourceforge.net/p/ed448goldilocks/code/ci/decaf/tree/src/decaf.c</a><br>
<a class="moz-txt-link-freetext" href="http://sourceforge.net/p/ed448goldilocks/code/ci/decaf/tree/include/decaf.h">http://sourceforge.net/p/ed448goldilocks/code/ci/decaf/tree/include/decaf.h</a><br>
    "decaf_point_from_hash_[non]uniform".<br>
    <blockquote
cite="mid:CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com"
      type="cite">Pointcheval(?) has an interesting scheme involving
      'coupons', in which all scalar muls can be done *before* signing a
      message. The scheme has a tight reduction to CDH.<br>
    </blockquote>
    Link?  I'm most familiar with
    <a class="moz-txt-link-freetext" href="https://www.cs.umd.edu/~jkatz/papers/dh-sigs-full.pdf">https://www.cs.umd.edu/~jkatz/papers/dh-sigs-full.pdf</a>, but it's not
    by Pointcheval and its couponized sigs are only reducible to DDH.<br>
    <blockquote
cite="mid:CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com"
      type="cite">This strikes me as potentially much more efficient
      than even Schnorr-EC for signers: The scalarmuls are no longer in
      the critical path. So you get asymmetric signatures for (very
      slightly more than) the latency of computing a MAC[*]<br>
      <br>
      [*] Note that this means you can compute coupons at periods of low
      computational demand, which may be a substantial cost savings.<br>
    </blockquote>
    You can use coupons with Schnorr or even with ECDSA.  I've suggested
    its use in my company's products to reduce latency.  Though a tight
    reduction to CDH would be nice.<br>
    <br>
    Cheers,<br>
    -- Mike<br>
    <blockquote
cite="mid:CAA7UWsX-Lg_HiKVH9gYXf=gBEtbaN6Y759rjpB528y6qknZkoA@mail.gmail.com"
      type="cite">David Leon Gil<br>
      Senior Paranoid<br>
      Yahoo!<br>
      <br>
      PS. Sending via Gmail because the CFRG mailing list software
      attempts to forge @<a moz-do-not-send="true"
        href="http://yahoo-inc.com">yahoo-inc.com</a> FROM addresses.
      And Yahoo sets a DMARC p=reject. Could a list admin please
      configure the IRTF listserv to not blatantly violate the IETF
      DMARC standard?<br>
      <div class="gmail_quote">On Thu, Jan 29, 2015 at 9:27 PM Damien
        Miller &lt;<a moz-do-not-send="true"
          href="mailto:djm@mindrot.org">djm@mindrot.org</a>&gt; wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 27
          Jan 2015, Tony Arcieri wrote:<br>
          <br>
          &gt; I would like to hear the opinions of the chairs and other
          CFRG participants<br>
          &gt; on the following:<br>
          &gt; - Ed25519 and EdDSA<br>
          &gt; - FrankenECDSA (ECDSA in Edwards)<br>
          &gt; - ECDSA with Edwards keys on the wire (converted to
          Weierstrass to do ECDSA)<br>
          &gt; - Other interesting thoughts on digital signatures<br>
          <br>
          As you probably already know OpenSSH is already using Ed25519
          for<br>
          user and host authentication. We chose it because:<br>
          <br>
          1) It's secure; well-reviewed and based on good "bones" (e.g.
          Schnorr sigs)<br>
          1a) It avoids the terrible failure modes of DSA/ECDSA<br>
          1b) It's hard for implementors to get wrong<br>
          2) It's fast<br>
          3) There are excellent reference implementations available<br>
          <br>
          We're not interested in adding more DSA/ECDSA variants unless
          there is some<br>
          compelling reason (and I don't see any). EdDSA just seems a
          better algorithm.<br>
          <br>
          We're not super-interested in WF &gt;2^128 EdDSA either, but
          would possibly<br>
          consider EdDSA at ~WF 2^256 if our users start asking for it.<br>
          <br>
          We aren't likely to benefit from batch signing/verification.<br>
          <br>
          -d<br>
          <br>
          <br>
          _______________________________________________<br>
          Cfrg mailing list<br>
          <a moz-do-not-send="true" href="mailto:Cfrg@irtf.org"
            target="_blank">Cfrg@irtf.org</a><br>
          <a moz-do-not-send="true"
            href="http://www.irtf.org/mailman/listinfo/cfrg"
            target="_blank">http://www.irtf.org/mailman/listinfo/cfrg</a><br>
        </blockquote>
      </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>

--------------070909020406030201030505--


From nobody Fri Jan 30 11:12:06 2015
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 761621A00A3 for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 11:11:51 -0800 (PST)
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 k_dUfBP1igPx for <cfrg@ietfa.amsl.com>; Fri, 30 Jan 2015 11:11:42 -0800 (PST)
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 1C42B1A006F for <cfrg@irtf.org>; Fri, 30 Jan 2015 11:11:42 -0800 (PST)
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 73D2481843; Fri, 30 Jan 2015 21:11:38 +0200 (EET)
Date: Fri, 30 Jan 2015 21:11:38 +0200
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Alyssa Rowan <akr@akr.io>
Message-ID: <20150130191138.GA6338@LK-Perkele-VII>
References: <CACsn0c=a90vhRNg8Dj2otqp4HfjSdA5Cj8oU2XgKcYYMXS+znA@mail.gmail.com> <54CAAC57.2040504@akr.io>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <54CAAC57.2040504@akr.io>
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/bcQO6RxsvQC9VkeN89aQv2W4d1Y>
Cc: "cfrg@irtf.org" <cfrg@irtf.org>
Subject: Re: [Cfrg] Primes (last time hopefully!)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 30 Jan 2015 19:11:51 -0000

On Thu, Jan 29, 2015 at 09:55:35PM +0000, Alyssa Rowan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> On 28/01/2015 15:53, Watson Ladd wrote:
> > The following have been suggested for primes at sizes between 
> > 2^255-19 and 2^521-1.
> 
> I think what would inform my preference most is performance data, so,
> tabulating Mike Hamburg's dataΒΉ:
> 
> βββββββββββββββββ³ββββββββ³ββββββββ³ββββββββ
> β Prime         β   Ο   β  mul  β  sqr  β
> β‘ββββββββββββββββββββββββββββββββββββββββ©
> β 2^521-1       β 260.3 β 145.5 β 110.7 β
> β 2^512-569     β 255.8 β 199.9 β 140.6 β
> β 2^448-2^224-1 β 222.8 β 118.0 β  88.9 β
> β 2^414-17      β 205.3 β       β       β
> β 2^389-21      β       β 112.5 β  75.5 β
> β 2^384-317     β 191.8 β 117.5 β  89.8 β
> β 2^379-19      β       β       β       β
> βββββββββββββββββ΄ββββββββ΄ββββββββ΄ββββββββ
> 
>   Ο = approx cost (in bits) of pollard-rho (higher is better)
>   mul = cycles per multiply (lower is faster)
>   sqr = cycles per square (lower is faster)
> 
>   (Please feel free to fill in the blanks with more data.)
> 
> I'm guessing Ο for 2^389-21 and 2^379-19 would be around 188-192ish
> (but I haven't actually generated the curves to count β).

One can use the approximation l~p/h for calcuating rho (error
is at most a few times sqrt(p)).

The exact point counts (hexadecimal) are:
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF753D798B1D68B9D18A3275D50226FC291D59B7A56D87475
8000000000000000000000000000000000000000000000000F015C9EE5991796231BCD44844D798E8CD39734D450782F5

(the first is 379-bit curve [a=-1,d=143305,p=2^379-19], the
latter is 389-bit [d=-5423,p=2^389-21]).

>From this one gets rho of 187.8 and 193.3.

Regarding speeds, one needs to take number of scalar bits into
account.

Taking that into account (multiply by bitcount) and wildly picking
60/40 mul/sqr weighting, one gets:

2^521-1:	68553
2^512-569:	90204
2^480-2^240-1:	51052	(fares very badly on 32-bit)
2^448-2^224-1:	47649
2^416-2^208-1:	44245
2^414-17:	N/A
2^389-21:	38005
2^384-317:	40865
2^379-19:	N/A

This ignores additions, but usually those are fairly minor part.

> Not sure I find 379 tempting, unless it turns out significantly faster.

Depends on hardware. On decent hardware (Intel x86, modern ARM),
virtually a tie.

Having implemented both (pretty badly speedwise), I would say that
389 is nicer to implement (due to rational base working nicely).

> Goldilocks looks promising. I'm missing data on 41417, which also
> deserves a fair crack of the whip.

There's also Goldilocks-like curve on 416-bit level
(d=-44875, p=2^416-2^208-1). One can assume Goldilocks mul/sqr times
for it (I included it in above table).

On curve41417, the algorithm doesn't generate that if given p=2^414-17,
but curve with d=-142113 (which is h=4). Speedwise those two curves
over the same field are tied on CPUs (on dedicated hardware there
might be differece due to d being much larger).

Which has faster multiplication is unknown.

> I think E-521 can also go a bit faster than this, but I don't have too
> many details. It's rigid enough several groups have generated it
> independently. But maybe too slow.

IIRC, there were recent speedups on it, but the figures probably
include those already.
 
> Remembering that if we do choose a 'big' curve, CAs will use it, and
> that means frequent verification for even mobile clients.

For CA certificates or end-entity?

There are so few CA certificates (hundreds) that caching those is
likely feasible. End-entity certs are another matter.

Also, with ECC, signing is faster than verification (by factor of
about 3 or so).


-Ilari


From nobody Sat Jan 31 06:50:13 2015
Return-Path: <azet@azet.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 3D4A21A0373 for <cfrg@ietfa.amsl.com>; Sat, 31 Jan 2015 06:50:12 -0800 (PST)
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_50=0.8,  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 Jtob5Nw1hlA1 for <cfrg@ietfa.amsl.com>; Sat, 31 Jan 2015 06:50:10 -0800 (PST)
Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D07F1A0154 for <cfrg@irtf.org>; Sat, 31 Jan 2015 06:50:10 -0800 (PST)
Received: by mail-la0-f41.google.com with SMTP id gm9so29315742lab.0 for <cfrg@irtf.org>; Sat, 31 Jan 2015 06:50:08 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=Eryg9C9sDum1JWzeiKflO7SG8tyi2/e43cUh+0y9BfM=; b=hvUkoaabsAweNKtewaOIODriE8Bffgw0hcGdpDsYqJa5uPfRxHakJ50j2SRuteq0e2 uOw4einBu/+azTL3/wrtedzBciDKaaBg+fEGyPlZbdCvDyKzV31nbUXk6QaSi8hkWEV1 AVxdEYn3Uu+D80zAYnOPkAXCyJ4KBi7GhUxBEHpwP1KmRLHC8plprpk9l+vHHubhNU7g 8d7F4sPWWZwV7KI6AZ0dryZbgaBP0EBVwpSQrT2LbWjckOoWPVX/HnBSWQ34JrBFhXQD KhXWcNcgfITPS4TFf8VClKpmvuBcFAXESf7RsjbkKqszt3M67OA9oBD5qTf+SKzgWzb4 Km4Q==
X-Gm-Message-State: ALoCoQkm3EOxbJiU4Rk6VMgbrb5Vu2sYd9nb3oceJRZPTEKYehGZO3AyA2gULXiFep3ZkfnWoFu1
X-Received: by 10.152.10.4 with SMTP id e4mr11382618lab.62.1422715808667; Sat, 31 Jan 2015 06:50:08 -0800 (PST)
Received: from ?IPv6:2001:67c:1810:f055:c8d0:700b:d1a9:5303? ([2001:67c:1810:f055:c8d0:700b:d1a9:5303]) by mx.google.com with ESMTPSA id x1sm3319362lby.26.2015.01.31.06.50.06 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 31 Jan 2015 06:50:07 -0800 (PST)
Message-ID: <54CCEB9B.8020100@azet.org>
Date: Sat, 31 Jan 2015 15:50:03 +0100
From: Aaron Zauner <azet@azet.org>
User-Agent: Postbox 3.0.11 (Macintosh/20140602)
MIME-Version: 1.0
To: Dan Brown <dbrown@certicom.com>
References: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
In-Reply-To: <810C31990B57ED40B2062BA10D43FBF5D45067@XMB116CNC.rim.net>
X-Enigmail-Version: 1.2.3
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig2808E605D0733B0889DE9F37"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/vLO1ZHLTPj9eaduXjDVZvwE2l_o>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] generic curves ... RE: big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 31 Jan 2015 14:50:12 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2808E605D0733B0889DE9F37
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



Dan Brown wrote:
> New thread name ... should have done so earlier.
>=20
> When TLS asked CFRG for new curves, I didn't interpret that to mean tha=
t=20
> generic curves would be banned. Banishing generic curves adds slightly =
more=20
> weight to the TLS request, because users cannot easily opt out of the c=
hosen=20
> few elite curves.
>=20
> Upon further reflection, I think CFRG already spent enough time to find=
 an=20
> answer that weightier question, and in particular, I'll keep my vote th=
e same.
>=20
> The current set of TLS named curves includes NIST (and some SECG?) and =

> Brainpool curves, right?  Is there some of these current curves that TL=
S plans=20
> to disallow?
>=20
> I'd suggest that TLS and IETF protocols only keep (EC)DH groups with at=
 least=20
> 2^256 - S elements (for small S), but grandfathering in Curve25519, P25=
6, (and=20
> maybe secp256k1, if there ???).  In other words, smaller curves, 163 bi=
ts, 192=20
> bits, and so on, could be removed.  Actually, this should be redundant,=
 as=20
> long protocols match symmetric key sizes ...
>=20
> By the sounds of it, TLS doesn't yet have a good way to negotiate curve=
s on=20
> the fly (even CA / server pre-validated curves?), yet.
>=20
> My proposal for generic curves presumes that the generic elliptic curve=
 domain=20
> parameters are authenticated, i.e. Alice and Bob are not duped into usi=
ng a=20
> curve that they don't agree upon, and validated, perhaps in advance.=20
> Actually, the old standards, SEC1, X9, etc., pretty much make this a=20
> requirement before doing ECC.  Having tried to maintain a couple of the=
se old=20
> standards, I sometimes take such things for granted.  Anyway, if TLS is=
 unable=20
> to only achieve this authentication by using vetted and named curves, t=
hen my=20
> generic curve proposal would not apply to TLS.
>=20
> Best regards,
>=20
> Dan
>=20
> PS While we're tracking thread discussions, I remember suggesting to on=
e the=20
> lists last year that TLS add for support generic curves, but I was mist=
akenly=20
> confusing TLS and PKIX: it was PKIX that had restricted named-curves on=
ly.  I=20
> don't recall this much discussion in response, other a couple people=20
> correcting my mistake.  If it was pointed out at that time that TLS was=
 unable=20
> to securely support generic curves, then I apologize for forgetting.
>=20

=2E..

I read this as: we have this custom patented curves that we want to push
and want to use in TLS. Can we please? Use dkg's suggested private range.=


Aaron


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

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJUzOucAAoJEOTbZJL9ubXV+gMP/1cbWCM7dBFgZ2FPpK7gO+Tw
JsFi1DN9ci/fBpRW8PJobd3Fg/7tNkjc288diZ12ZCAZId3UFruhUEiN3gcj+fmJ
5kCClh4LeoR4Hn7sc4EkpK4uS5lOA5m2Qu3jj+HdNGy2Bixw5VCHdCpY2/wGp/3J
0I94i29ySNENPEuB/XWxbYVed+5Y2Qgkw8UZXGIS4u4OaixuX28Y3oPxN4cCV7Ko
1JtN9efW4RzhgSjGPk/ckFMCKY8d4CxBgVXOI/0d7MvrRi3YTZ513WdvnkPbvX+B
B6PjOWNO+mB59U91L/fZqevk3NLWBXXmhe2wlBso2+eWhsbg/Ysu7IVTDmj+XPcX
UNZbtiGa3LYFPJvYCeGwqYgNlNX8edaTeJWUYkmJxTBMbVEdfXjhnoIwybqs4yP0
vJv4mvvj7hWl1X2B2MvGbCyqcpZklu1aL3s5WgQpHqdmJkEjMbtPNEmPwoGd93Eo
mqF7eWSnod4XOneRObiLYJXBULu5ctU/yTJtqry1yybj51FflQN1Hkf2haG/Of3j
Y2wo7UpMWfYh1Tj5xAhioB2l1swIzSOvVZbBw6k2jdShvjSDXyGheW/ooTlDDZ4/
IaSNt3vs3u8eksFC3NRL9GhIpRAee8b4bIWcsk9XoxGFG9fNOuO6tiOFKF4BOKrn
YTlO8rI0b0m3NALnvi+g
=zkc+
-----END PGP SIGNATURE-----

--------------enig2808E605D0733B0889DE9F37--


From nobody Sat Jan 31 23:32:24 2015
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 95ABB1A874D for <cfrg@ietfa.amsl.com>; Sat, 31 Jan 2015 23:32:22 -0800 (PST)
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 Vzmze5s_V6OJ for <cfrg@ietfa.amsl.com>; Sat, 31 Jan 2015 23:32:20 -0800 (PST)
Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:163]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B05381A8749 for <cfrg@irtf.org>; Sat, 31 Jan 2015 23:32:20 -0800 (PST)
Received: from resomta-po-03v.sys.comcast.net ([96.114.154.227]) by resqmta-po-04v.sys.comcast.net with comcast id mvYK1p0014ueUHc01vYKDp; Sun, 01 Feb 2015 07:32:19 +0000
Received: from [192.168.1.2] ([71.202.164.227]) by resomta-po-03v.sys.comcast.net with comcast id mvYJ1p0074uhcbK01vYJcq; Sun, 01 Feb 2015 07:32:19 +0000
Message-ID: <54CDD682.9050503@brainhub.org>
Date: Sat, 31 Jan 2015 23:32:18 -0800
From: Andrey Jivsov <crypto@brainhub.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cfrg@irtf.org
References: <810C31990B57ED40B2062BA10D43FBF5D42BDA@XMB116CNC.rim.net> <87386ug2r7.fsf@alice.fifthhorseman.net> <810C31990B57ED40B2062BA10D43FBF5D4413B@XMB116CNC.rim.net> <87r3ueedx7.fsf@alice.fifthhorseman.net> <CAMm+Lwj6eG_KAhb-r5QrDeui7w8AoSN=71X8ywEyn9jj0rALQg@mail.gmail.com> <54C9DD8E.9040302@akr.io> <54CA0591.3070308@cs.tcd.ie> <CAMm+Lwi5skMnsaPxSzdVmDtHTjjGPRJ54xpaF8GL84ihMHePrA@mail.gmail.com>
In-Reply-To: <CAMm+Lwi5skMnsaPxSzdVmDtHTjjGPRJ54xpaF8GL84ihMHePrA@mail.gmail.com>
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=1422775939; bh=WSfttU+3VnuRHvv0SAxGA3eZaow1a+e2PoFzzt4bJWs=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=VlaxZfvHB+TMkAdNa1ftk5e22WZCnzI97DlhQvx9joTYYSl4nsdZY/m1+n0Mu3y3k mxbrANfEMXuARx2sIv1Rwdt0k/3SgqZGCe55w+nyloVIIe2hxM7hH7hWQdPwkjvG2o i5oam0VzWYQ8SLWUqHERIE4O32Q3PlXzedjdMQpAYXo8MYQ8BmqqgOESpjH1LDGFRj P2OJSHUWeYtG3XFBmsBDVDRaHCwBEVvJQrd1R8VAVvP78xVemH2uDDhNrsUwVOU1dx dn1xN1hPhjzuSVeNXwvKbPkI+vuhZwaVpI/v4rqstfg+DPr9/73c8IVA5sRlT6XAg6 lqG7oNWNn+GxQ==
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/AypgF-bvE7fNVLawdebaap249Z8>
Subject: Re: [Cfrg] big-endian short-Weierstrass please
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@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, 01 Feb 2015 07:32:22 -0000

On 01/29/2015 05:21 AM, Phillip Hallam-Baker wrote:
> So by FIPS-140 equivalent, what is meant is something that we can get a
> group of experts to agree is equivalent and safe. It probably means that
> the hardware is certified FIPS-140 but not necessarily for the
> particular algorithm. This may or may not require wording changes but I
> don't expect they would be controversial.

Unless the new curve is accepted along the lines of P-256 by NIST, it 
will be treated no much differently than CAMELIA (or DES).

Without this change, the new curve is a Non-Approved security function 
and it can only be used in non-Approved modes of operation. Crypto 
module documentation will need to make this clear, per FIPS 140-2.

It's a known trick to certify only AES and then somehow make an 
impression that other algorithms are covered by the same module. NIST 
put multiple notes to make this harder. Thus, NIST will need to 
explicitly bless the new curve. A precedent for this is the TLS KDF.






