Home
last modified time | relevance | path

Searched refs:g_scalar (Results 1 – 6 of 6) sorted by relevance

/external/boringssl/src/crypto/ec/
Dp224-64.c939 const unsigned num_points, const u8 *g_scalar, in batch_mul() argument
943 unsigned gen_mul = (g_scalar != NULL); in batch_mul()
964 bits = get_bit(g_scalar, i + 196) << 3; in batch_mul()
965 bits |= get_bit(g_scalar, i + 140) << 2; in batch_mul()
966 bits |= get_bit(g_scalar, i + 84) << 1; in batch_mul()
967 bits |= get_bit(g_scalar, i + 28); in batch_mul()
980 bits = get_bit(g_scalar, i + 168) << 3; in batch_mul()
981 bits |= get_bit(g_scalar, i + 112) << 2; in batch_mul()
982 bits |= get_bit(g_scalar, i + 56) << 1; in batch_mul()
983 bits |= get_bit(g_scalar, i); in batch_mul()
[all …]
Dp256-x86_64.c386 const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, in ecp_nistz256_points_mul() argument
413 if (g_scalar != NULL) { in ecp_nistz256_points_mul()
414 if (BN_num_bits(g_scalar) > 256 || BN_is_negative(g_scalar)) { in ecp_nistz256_points_mul()
429 if (!BN_nnmod(tmp_scalar, g_scalar, &group->order, ctx)) { in ecp_nistz256_points_mul()
433 g_scalar = tmp_scalar; in ecp_nistz256_points_mul()
438 for (i = 0; i < g_scalar->top * BN_BYTES; i += BN_BYTES) { in ecp_nistz256_points_mul()
439 BN_ULONG d = g_scalar->d[i / BN_BYTES]; in ecp_nistz256_points_mul()
490 const int p_is_infinity = g_scalar == NULL; in ecp_nistz256_points_mul()
Dp256-64.c1507 const unsigned num_points, const u8 *g_scalar, in batch_mul() argument
1510 unsigned num, gen_mul = (g_scalar != NULL); in batch_mul()
1534 bits = get_bit(g_scalar, i + 224) << 3; in batch_mul()
1535 bits |= get_bit(g_scalar, i + 160) << 2; in batch_mul()
1536 bits |= get_bit(g_scalar, i + 96) << 1; in batch_mul()
1537 bits |= get_bit(g_scalar, i + 32); in batch_mul()
1553 bits = get_bit(g_scalar, i + 192) << 3; in batch_mul()
1554 bits |= get_bit(g_scalar, i + 128) << 2; in batch_mul()
1555 bits |= get_bit(g_scalar, i + 64) << 1; in batch_mul()
1556 bits |= get_bit(g_scalar, i); in batch_mul()
[all …]
Dwnaf.c227 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, in ec_wNAF_mul() argument
263 if (g_scalar != NULL) { in ec_wNAF_mul()
296 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(g_scalar); in ec_wNAF_mul()
301 compute_wNAF((i < num ? scalars[i] : g_scalar), wsize[i], &wNAF_len[i]); in ec_wNAF_mul()
Dinternal.h103 int (*mul)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
177 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
Dec.c843 int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, in EC_POINT_mul() argument
848 if ((g_scalar == NULL && p_scalar == NULL) || in EC_POINT_mul()
860 return group->meth->mul(group, r, g_scalar, p, p_scalar, ctx); in EC_POINT_mul()