Home | History | Annotate | Download | only in ec

Lines Matching full:scalar

209 /* Computes scalar*point and stores the result in r.
215 static int ec_GF2m_montgomery_point_multiply(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
229 if ((scalar == NULL) || BN_is_zero(scalar) || (point == NULL) ||
254 i = scalar->top - 1; j = BN_BITS2 - 1;
256 while (!(scalar->d[i] & mask)) { mask >>= 1; j--; }
269 if (scalar->d[i] & mask)
311 * scalar*group->generator + scalars[0]*points[0] + ... + scalars[num-1]*points[num-1]
312 * gracefully ignoring NULL scalar values.
314 int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
333 if ((scalar && (num > 1)) || (num > 2) || (num == 0 && EC_GROUP_have_precompute_mult(group)))
335 ret = ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
343 if (scalar)
345 if (!ec_GF2m_montgomery_point_multiply(group, p, scalar, group->generator, ctx)) goto err;
346 if (BN_is_negative(scalar))