From 16f5679853e3c770d7ae05ed3848749698a3fff0 Mon Sep 17 00:00:00 2001 From: Michael Hamburg Date: Tue, 26 May 2015 13:47:10 -0700 Subject: [PATCH] remove change which was used to work around test code limitations --- src/decaf_fast.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/decaf_fast.c b/src/decaf_fast.c index c3e2a2a..50ecaea 100644 --- a/src/decaf_fast.c +++ b/src/decaf_fast.c @@ -1373,9 +1373,7 @@ decaf_bool_t API_NS(direct_scalarmul) ( int j; decaf_bool_t pflip = 0; - for (j=SCALAR_BITS+1; j>=0; j--) { - /* FIXME: -1, but the test cases use too many bits */ - + for (j=SCALAR_BITS-1; j>=0; j--) { /* Augmented Montgomery ladder */ decaf_bool_t flip = -((scalar->limb[j/WBITS]>>(j%WBITS))&1);