fix for https://github.com/libtom/libtomcrypt/issues/90
Karel Miko
8 years ago
133 | 133 | bitbufB = tB[0]; |
134 | 134 | |
135 | 135 | /* for every byte of the multiplicands */ |
136 | for (x = -1;; ) { | |
136 | for (x = 0;; ) { | |
137 | 137 | /* grab a nibble */ |
138 | 138 | if (++nibble == 4) { |
139 | ++x; if (x == len) break; | |
139 | if (x == len) break; | |
140 | 140 | bitbufA = tA[x]; |
141 | 141 | bitbufB = tB[x]; |
142 | 142 | nibble = 0; |
143 | ++x; | |
143 | 144 | } |
144 | 145 | |
145 | 146 | /* extract two bits from both, shift/update */ |