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