Mercurial > dropbear
comparison libtomcrypt/src/pk/ecc/ltc_ecc_mulmod_timing.c @ 1092:0e1465709336
Fix unused but set variable warnings [-Werror=unused-but-set-variable]
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 12:18:22 +0200 |
parents | 0cbe8f6dbf9e |
children | f849a5ca2efc |
comparison
equal
deleted
inserted
replaced
1091:eef377591301 | 1092:0e1465709336 |
---|---|
38 { | 38 { |
39 ecc_point *tG, *M[3]; | 39 ecc_point *tG, *M[3]; |
40 int i, j, err; | 40 int i, j, err; |
41 void *mu, *mp; | 41 void *mu, *mp; |
42 unsigned long buf; | 42 unsigned long buf; |
43 int first, bitbuf, bitcpy, bitcnt, mode, digidx; | 43 int bitcnt, mode, digidx; |
44 | 44 |
45 LTC_ARGCHK(k != NULL); | 45 LTC_ARGCHK(k != NULL); |
46 LTC_ARGCHK(G != NULL); | 46 LTC_ARGCHK(G != NULL); |
47 LTC_ARGCHK(R != NULL); | 47 LTC_ARGCHK(R != NULL); |
48 LTC_ARGCHK(modulus != NULL); | 48 LTC_ARGCHK(modulus != NULL); |
96 /* setup sliding window */ | 96 /* setup sliding window */ |
97 mode = 0; | 97 mode = 0; |
98 bitcnt = 1; | 98 bitcnt = 1; |
99 buf = 0; | 99 buf = 0; |
100 digidx = mp_get_digit_count(k) - 1; | 100 digidx = mp_get_digit_count(k) - 1; |
101 bitcpy = bitbuf = 0; | |
102 first = 1; | |
103 | 101 |
104 /* perform ops */ | 102 /* perform ops */ |
105 for (;;) { | 103 for (;;) { |
106 /* grab next digit as required */ | 104 /* grab next digit as required */ |
107 if (--bitcnt == 0) { | 105 if (--bitcnt == 0) { |