Re: [Cfrg] I-D Action: draft-turner-thecurve25519function-00.txt

Sean Turner <TurnerS@ieca.com> Wed, 30 July 2014 17:32 UTC

Return-Path: <TurnerS@ieca.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 75E401A029C for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:32:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.567
X-Spam-Level:
X-Spam-Status: No, score=-1.567 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 874dYx00nS5T for <cfrg@ietfa.amsl.com>; Wed, 30 Jul 2014 10:32:30 -0700 (PDT)
Received: from gateway01.websitewelcome.com (gateway01.websitewelcome.com [69.56.142.19]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37D301A0299 for <cfrg@irtf.org>; Wed, 30 Jul 2014 10:32:30 -0700 (PDT)
Received: by gateway01.websitewelcome.com (Postfix, from userid 5007) id 61647EC3F608D; Wed, 30 Jul 2014 12:32:29 -0500 (CDT)
Received: from gator3286.hostgator.com (gator3286.hostgator.com [198.57.247.250]) by gateway01.websitewelcome.com (Postfix) with ESMTP id 5D7B1EC3F471D for <cfrg@irtf.org>; Wed, 30 Jul 2014 12:32:23 -0500 (CDT)
Received: from [96.231.227.95] (port=50066 helo=[192.168.1.18]) by gator3286.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from <TurnerS@ieca.com>) id 1XCXhf-0000cV-Cu; Wed, 30 Jul 2014 12:30:15 -0500
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Sean Turner <TurnerS@ieca.com>
In-Reply-To: <20140729204138.GA20282@LK-Perkele-VII>
Date: Wed, 30 Jul 2014 13:30:11 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <9F4CE885-8A90-4326-8D7B-7B101DF7EEAE@ieca.com>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com> <20140729204138.GA20282@LK-Perkele-VII>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
X-Mailer: Apple Mail (2.1878.6)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - gator3286.hostgator.com
X-AntiAbuse: Original Domain - irtf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ieca.com
X-BWhitelist: no
X-Source-IP: 96.231.227.95
X-Exim-ID: 1XCXhf-0000cV-Cu
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: ([192.168.1.18]) [96.231.227.95]:50066
X-Source-Auth: sean.turner@ieca.com
X-Email-Count: 1
X-Source-Cap: ZG9tbWdyNDg7ZG9tbWdyNDg7Z2F0b3IzMjg2Lmhvc3RnYXRvci5jb20=
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/eNSwWJTHFQ9pz-SONGgY_UDbfqQ
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] I-D Action: draft-turner-thecurve25519function-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 Jul 2014 17:32:31 -0000

On Jul 29, 2014, at 16:41, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:

> On Tue, Jul 29, 2014 at 04:05:04PM -0400, Sean Turner wrote:
>> 
>> Please review and provide comments if needed.
>> 
>>> 	Filename        : draft-turner-thecurve25519function-00.txt
> 
>  To compute the conditional swap in constant time (independent of s_t)
>  use dummy = s_t*(x_2-x_3) x_2 = x_2 - dummy x_3 = x_3 + dummy where
>  s_t is 1 or 0, or dummy = s_t & (x_2 XOR x_3) x_2 = x_2 XOR x_3 x_3 =
>  x_3 XOR x_2 where s_t is regarded as the all-1 word of 255 bits.  The
>  latter version is more efficient on most architectures.
> 
> The latter formulas: Where is the dummy used? And s_t can also be 0
> (no swap)?
> 
> Should those formulas be:
> dummy = s_t & (x_2 XOR x_3)
> x_2 <- x_2 XOR dummy
> x_3 <- x_3 XOR dummy
> 
> ?
> 
> And that paragraph could perhaps use some reformatting.
> 
> -Ilari

Let me fix up the formatting first and then see if it’s clearer.

spt