Lines Matching refs:scalar
609 const BIGNUM **scalar, in ecp_nistz256_windowed_mul() argument
640 if ((BN_num_bits(scalar[i]) > 256) || BN_is_negative(scalar[i])) { in ecp_nistz256_windowed_mul()
645 if (!BN_nnmod(mod, scalar[i], group->order, ctx)) { in ecp_nistz256_windowed_mul()
651 scalars[i] = scalar[i]; in ecp_nistz256_windowed_mul()
941 const BIGNUM *scalar, in ecp_nistz256_points_mul() argument
971 if (scalar) { in ecp_nistz256_points_mul()
1016 if ((BN_num_bits(scalar) > 256) in ecp_nistz256_points_mul()
1017 || BN_is_negative(scalar)) { in ecp_nistz256_points_mul()
1021 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ecp_nistz256_points_mul()
1025 scalar = tmp_scalar; in ecp_nistz256_points_mul()
1028 for (i = 0; i < bn_get_top(scalar) * BN_BYTES; i += BN_BYTES) { in ecp_nistz256_points_mul()
1029 BN_ULONG d = bn_get_words(scalar)[i / BN_BYTES]; in ecp_nistz256_points_mul()
1121 new_scalars[num] = scalar; in ecp_nistz256_points_mul()