Lines Matching refs:digit
248 int digit = 0; in compute_wNAF() local
258 digit = window_val - next_bit; /* -2^w < digit < 0 */ in compute_wNAF()
268 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in compute_wNAF()
274 digit = window_val; /* 0 < digit < 2^w */ in compute_wNAF()
277 if (digit <= -bit || digit >= bit || !(digit & 1)) in compute_wNAF()
283 window_val -= digit; in compute_wNAF()
295 r[j++] = sign * digit; in compute_wNAF()
666 int digit = wNAF[i][k]; in ec_wNAF_mul() local
669 if (digit) in ec_wNAF_mul()
671 is_neg = digit < 0; in ec_wNAF_mul()
674 digit = -digit; in ec_wNAF_mul()
689 if (!EC_POINT_copy(r, val_sub[i][digit >> 1])) goto err; in ec_wNAF_mul()
694 if (!EC_POINT_add(group, r, r, val_sub[i][digit >> 1], ctx)) goto err; in ec_wNAF_mul()