Skip to content

Commit

Permalink
fix the sign conversion issue of #90 resp #105
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed Jan 19, 2016
1 parent 6905e41 commit abc54df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pk/ecc/ltc_ecc_mul2add.c
Expand Up @@ -134,13 +134,14 @@ int ltc_ecc_mul2add(ecc_point *A, void *kA,
bitbufB = tB[0];

/* for every byte of the multiplicands */
for (x = -1;; ) {
for (x = 0;; ) {
/* grab a nibble */
if (++nibble == 4) {
++x; if (x == len) break;
if (x == len) break;
bitbufA = tA[x];
bitbufB = tB[x];
nibble = 0;
++x;
}

/* extract two bits from both, shift/update */
Expand Down

0 comments on commit abc54df

Please sign in to comment.