Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Tue, 29 July 2014 20:41 UTC
Return-Path: <ilari.liusvaara@elisanet.fi>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 64D501A0AF0 for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:41:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7tEJIuca4riw for <cfrg@ietfa.amsl.com>; Tue, 29 Jul 2014 13:41:41 -0700 (PDT)
Received: from emh07.mail.saunalahti.fi (emh07.mail.saunalahti.fi [62.142.5.117]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6942B1A0AE6 for <cfrg@irtf.org>; Tue, 29 Jul 2014 13:41:41 -0700 (PDT)
Received: from LK-Perkele-VII (a88-112-44-140.elisa-laajakaista.fi [88.112.44.140]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id DBF373FDF; Tue, 29 Jul 2014 23:41:38 +0300 (EEST)
Date: Tue, 29 Jul 2014 23:41:38 +0300
From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: Sean Turner <TurnerS@ieca.com>
Message-ID: <20140729204138.GA20282@LK-Perkele-VII>
References: <20140729195926.2156.45746.idtracker@ietfa.amsl.com> <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
In-Reply-To: <0D69E8E1-336C-4884-A87F-7656432AEB15@ieca.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Archived-At: http://mailarchive.ietf.org/arch/msg/cfrg/lSyVNJmeRoENfc1VsN0oULb9AEQ
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve25519function-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Jul 2014 20:41:43 -0000
On Tue, Jul 29, 2014 at 04:05:04PM -0400, Sean Turner wrote: > > Please review and provide comments if needed. > > > Filename : draft-turner-thecurve25519function-00.txt To compute the conditional swap in constant time (independent of s_t) use dummy = s_t*(x_2-x_3) x_2 = x_2 - dummy x_3 = x_3 + dummy where s_t is 1 or 0, or dummy = s_t & (x_2 XOR x_3) x_2 = x_2 XOR x_3 x_3 = x_3 XOR x_2 where s_t is regarded as the all-1 word of 255 bits. The latter version is more efficient on most architectures. The latter formulas: Where is the dummy used? And s_t can also be 0 (no swap)? Should those formulas be: dummy = s_t & (x_2 XOR x_3) x_2 <- x_2 XOR dummy x_3 <- x_3 XOR dummy ? And that paragraph could perhaps use some reformatting. -Ilari
- [Cfrg] Fwd: I-D Action: draft-turner-thecurve2551… Sean Turner
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Ilari Liusvaara
- Re: [Cfrg] I-D Action: draft-turner-thecurve25519… Sean Turner
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Randy Bush
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Phillip Hallam-Baker
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Salz, Rich
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Benjamin Black
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Robert Ransom
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Paul Lambert
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Randy Bush
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Salz, Rich
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Tanja Lange
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… James Cloos
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Stephen Farrell
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Watson Ladd
- Re: [Cfrg] Fwd: I-D Action: draft-turner-thecurve… Randy Bush