Home
last modified time | relevance | path

Searched refs:scalars (Results 1 – 5 of 5) sorted by relevance

/external/openssl/crypto/ec/
Dectest.c663 const BIGNUM *scalars[4]; in prime_field_tests() local
675 scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */ in prime_field_tests()
676 scalars[1] = y; in prime_field_tests()
682 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT; in prime_field_tests()
683 if (!EC_POINTs_mul(group, R, z, 2, points, scalars, ctx)) ABORT; in prime_field_tests()
693 scalars[0] = y; in prime_field_tests()
694 scalars[1] = z; /* z = -(order + y) */ in prime_field_tests()
696 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT; in prime_field_tests()
705 scalars[0] = x; in prime_field_tests()
706 scalars[1] = y; in prime_field_tests()
[all …]
Dec2_mult.c315 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) in ec_GF2m_simple_mul() argument
335 ret = ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx); in ec_GF2m_simple_mul()
353 if (!ec_GF2m_montgomery_point_multiply(group, p, scalars[i], points[i], ctx)) goto err; in ec_GF2m_simple_mul()
354 if (BN_is_negative(scalars[i])) in ec_GF2m_simple_mul()
Dec_lib.c1119 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) in EC_POINTs_mul() argument
1123 return ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
1125 return group->meth->mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
1134 const BIGNUM *scalars[1]; in EC_POINT_mul() local
1137 scalars[0] = p_scalar; in EC_POINT_mul()
1139 …return EC_POINTs_mul(group, r, g_scalar, (point != NULL && p_scalar != NULL), points, scalars, ctx… in EC_POINT_mul()
Dec_lcl.h157 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
284 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
388 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
Dec_mult.c345 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) in ec_wNAF_mul() argument
462 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar); in ec_wNAF_mul()
466 wNAF[i] = compute_wNAF((i < num ? scalars[i] : scalar), wsize[i], &wNAF_len[i]); in ec_wNAF_mul()