Lines Matching refs:scalar
247 static void felem_scalar(felem out, const felem in, limb scalar) in felem_scalar() argument
249 out[0] = in[0] * scalar; in felem_scalar()
250 out[1] = in[1] * scalar; in felem_scalar()
251 out[2] = in[2] * scalar; in felem_scalar()
252 out[3] = in[3] * scalar; in felem_scalar()
253 out[4] = in[4] * scalar; in felem_scalar()
254 out[5] = in[5] * scalar; in felem_scalar()
255 out[6] = in[6] * scalar; in felem_scalar()
256 out[7] = in[7] * scalar; in felem_scalar()
257 out[8] = in[8] * scalar; in felem_scalar()
261 static void felem_scalar64(felem out, limb scalar) in felem_scalar64() argument
263 out[0] *= scalar; in felem_scalar64()
264 out[1] *= scalar; in felem_scalar64()
265 out[2] *= scalar; in felem_scalar64()
266 out[3] *= scalar; in felem_scalar64()
267 out[4] *= scalar; in felem_scalar64()
268 out[5] *= scalar; in felem_scalar64()
269 out[6] *= scalar; in felem_scalar64()
270 out[7] *= scalar; in felem_scalar64()
271 out[8] *= scalar; in felem_scalar64()
275 static void felem_scalar128(largefelem out, limb scalar) in felem_scalar128() argument
277 out[0] *= scalar; in felem_scalar128()
278 out[1] *= scalar; in felem_scalar128()
279 out[2] *= scalar; in felem_scalar128()
280 out[3] *= scalar; in felem_scalar128()
281 out[4] *= scalar; in felem_scalar128()
282 out[5] *= scalar; in felem_scalar128()
283 out[6] *= scalar; in felem_scalar128()
284 out[7] *= scalar; in felem_scalar128()
285 out[8] *= scalar; in felem_scalar128()
1909 const BIGNUM *scalar, size_t num, in ossl_ec_GFp_nistp521_points_mul() argument
1940 if (scalar != NULL) { in ossl_ec_GFp_nistp521_points_mul()
2001 p_scalar = scalar; in ossl_ec_GFp_nistp521_points_mul()
2059 if ((scalar != NULL) && (have_pre_comp)) { in ossl_ec_GFp_nistp521_points_mul()
2062 if ((BN_num_bits(scalar) > 521) || (BN_is_negative(scalar))) { in ossl_ec_GFp_nistp521_points_mul()
2067 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ossl_ec_GFp_nistp521_points_mul()
2073 num_bytes = BN_bn2lebinpad(scalar, g_secret, sizeof(g_secret)); in ossl_ec_GFp_nistp521_points_mul()