Home
last modified time | relevance | path

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

/external/openssl/crypto/ec/
Dectest.c653 const BIGNUM *scalars[4]; in prime_field_tests() local
665 scalars[0] = y; /* (group order + 1)/2, so y*Q + y*Q = Q */ in prime_field_tests()
666 scalars[1] = y; in prime_field_tests()
672 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT; in prime_field_tests()
673 if (!EC_POINTs_mul(group, R, z, 2, points, scalars, ctx)) ABORT; in prime_field_tests()
683 scalars[0] = y; in prime_field_tests()
684 scalars[1] = z; /* z = -(order + y) */ in prime_field_tests()
686 if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT; in prime_field_tests()
695 scalars[0] = x; in prime_field_tests()
696 scalars[1] = y; in prime_field_tests()
[all …]
Dec2_mult.c316 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) in ec_GF2m_simple_mul() argument
336 ret = ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx); in ec_GF2m_simple_mul()
354 if (!ec_GF2m_montgomery_point_multiply(group, p, scalars[i], points[i], ctx)) goto err; in ec_GF2m_simple_mul()
355 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 *);
287 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
391 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()
/external/sqlite/dist/
Dsqlite3.c110859 } scalars[] = {
110881 for(i=0; rc==SQLITE_OK && i<(sizeof(scalars)/sizeof(struct IcuScalar)); i++){
110882 struct IcuScalar *p = &scalars[i];
Dsqlite3.c.orig110819 } scalars[] = {
110841 for(i=0; rc==SQLITE_OK && i<(sizeof(scalars)/sizeof(struct IcuScalar)); i++){
110842 struct IcuScalar *p = &scalars[i];