Lines Matching defs:scalar
71 /* Determine the width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'.
74 * scalar = \sum_j r[j]*2^j
77 static signed char *compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len, BN_CTX *ctx)
99 if (!BN_copy(c, scalar)) goto err;
189 * scalar*generator
190 * in the addition if scalar != NULL
192 int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
219 if ((scalar == NULL) && (num == 0))
224 if (scalar != NULL)
243 totalnum = num + (scalar != NULL);
260 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar);
329 wNAF[i] = compute_wNAF((i < num ? scalars[i] : scalar), wsize[i], &wNAF_len[i], ctx);