Lines Matching defs:digit
109 int digit, bit, next, sign, wbits, window;
134 digit = 0;
137 * If window is odd, the i-th wNAF digit is window (mods 2^w),
139 * the digit from window, so window is 0 or next, and add the
140 * digit to the wNAF digits.
143 digit = window;
145 digit = window - next;
146 window -= digit;
149 digits[i] = sign * digit;
305 ec_wnaf_multiple(struct ec_wnaf *wnaf, signed char digit)
307 if (digit < 0)
309 if (digit >= 2 * wnaf->num_multiples)
312 return wnaf->multiples[digit >> 1];
359 * of m and n, starting at the most significant digit. Double r and for
360 * each wNAF digit of m add the digit times the generator, and for each
361 * wNAF digit of n add the digit times the point, adjusting the signs
374 signed char digit;
377 if ((digit = ec_wnaf_digit(wnaf[i], k)) == 0)
380 if (digit < 0) {
382 digit = -digit;
391 if ((multiple = ec_wnaf_multiple(wnaf[i], digit)) == NULL)