Searched refs:scalars (Results 1 - 16 of 16) sorted by relevance

/freebsd-11-stable/crypto/openssl/crypto/ec/
H A Dectest.c133 fprintf(stdout, "%d-bit scalars ", (int)BN_num_bits(s));
208 /* test multiplication with group order, long and negative scalars */
239 const BIGNUM *scalars[6]; local
293 scalars[0] = n1;
295 scalars[1] = n2;
297 scalars[2] = n1;
299 scalars[3] = n2;
301 scalars[4] = n1;
303 scalars[5] = n2;
305 if (!EC_POINTs_mul(group, P, NULL, 6, points, scalars, ct
939 const BIGNUM *scalars[4]; local
1468 const BIGNUM *scalars[3]; local
[all...]
H A Dec_lcl.h176 size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
318 size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
457 const EC_POINT *points[], const BIGNUM *scalars[],
474 const EC_POINT *points[], const BIGNUM *scalars[],
479 const BIGNUM *scalars[], BN_CTX *ctx);
494 const EC_POINT *points[], const BIGNUM *scalars[],
499 const BIGNUM *scalars[], BN_CTX *ctx);
514 const EC_POINT *points[], const BIGNUM *scalars[],
519 const BIGNUM *scalars[], BN_CTX *ctx);
H A Dec2_mult.c373 * scalar*group->generator + scalars[0]*points[0] + ... + scalars[num-1]*points[num-1]
378 const EC_POINT *points[], const BIGNUM *scalars[],
401 ret = ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
426 (group, p, scalars[i], points[i], ctx))
428 if (BN_is_negative(scalars[i]))
376 ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
H A Decp_nistz256.c610 const BIGNUM **scalars = NULL; local
618 || (scalars = OPENSSL_malloc(num * sizeof(BIGNUM *))) == NULL) {
638 scalars[i] = mod;
640 scalars[i] = scalar[i];
642 for (j = 0; j < scalars[i]->top * BN_BYTES; j += BN_BYTES) {
643 BN_ULONG d = scalars[i]->d[j / BN_BYTES];
743 if (scalars)
744 OPENSSL_free(scalars);
1151 /* r = scalar*G + sum(scalars[i]*points[i]) */
1157 const BIGNUM *scalars[], BN_CT
1152 ecp_nistz256_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
[all...]
H A Dec_lib.c1167 const BIGNUM *scalars[], BN_CTX *ctx)
1171 return ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
1173 return group->meth->mul(group, r, scalar, num, points, scalars, ctx);
1182 const BIGNUM *scalars[1]; local
1185 scalars[0] = p_scalar;
1189 && p_scalar != NULL), points, scalars, ctx);
1165 EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
H A Decp_nistp224.c82 * scalars for point multiplication.
490 * Multiply a field element by a scalar: out = out * scalar The scalars we
503 * scalars we actually use are small, so results fit without overflow
1117 * small point multiples 0*P, 1*P, ..., 16*P are in pre_comp[], the scalars
1118 * in scalars[]. If g_scalar is non-NULL, we also add this multiple of the
1123 const felem_bytearray scalars[],
1139 * Loop over all scalars msb-to-lsb, interleaving additions of multiples
1183 /* loop over all scalars */
1185 bits = get_bit(scalars[num], i + 4) << 5;
1186 bits |= get_bit(scalars[nu
1122 batch_mul(felem x_out, felem y_out, felem z_out, const felem_bytearray scalars[], const unsigned num_points, const u8 *g_scalar, const int mixed, const felem pre_comp[][17][3], const felem g_pre_comp[2][16][3]) argument
1401 ec_GFp_nistp224_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
[all...]
H A Dec_mult.c547 * \sum scalars[i]*points[i],
553 size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
577 * treated like other scalars, i.e.
614 return ec_mul_consttime(group, r, scalars[0], points[0], ctx);
673 * 'scalars' */
702 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar);
707 compute_wNAF((i < num ? scalars[i] : scalar), wsize[i],
552 ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
H A Decp_nistp256.c1645 * small point multiples 0*P, 1*P, ..., 17*P are in pre_comp[], the scalars
1646 * in scalars[]. If g_scalar is non-NULL, we also add this multiple of the
1651 const felem_bytearray scalars[],
1667 * Loop over all scalars msb-to-lsb, interleaving additions of multiples
1713 /* loop over all scalars */
1715 bits = get_bit(scalars[num], i + 4) << 5;
1716 bits |= get_bit(scalars[num], i + 3) << 4;
1717 bits |= get_bit(scalars[num], i + 2) << 3;
1718 bits |= get_bit(scalars[num], i + 1) << 2;
1719 bits |= get_bit(scalars[nu
1650 batch_mul(felem x_out, felem y_out, felem z_out, const felem_bytearray scalars[], const unsigned num_points, const u8 *g_scalar, const int mixed, const smallfelem pre_comp[][17][3], const smallfelem g_pre_comp[2][16][3]) argument
1990 ec_GFp_nistp256_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
[all...]
H A Decp_nistp521.c1474 * small point multiples 0*P, 1*P, ..., 16*P are in pre_comp[], the scalars
1475 * in scalars[]. If g_scalar is non-NULL, we also add this multiple of the
1480 const felem_bytearray scalars[],
1495 * Loop over all scalars msb-to-lsb, interleaving additions of multiples
1528 /* loop over all scalars */
1530 bits = get_bit(scalars[num], i + 4) << 5;
1531 bits |= get_bit(scalars[num], i + 3) << 4;
1532 bits |= get_bit(scalars[num], i + 2) << 3;
1533 bits |= get_bit(scalars[num], i + 1) << 2;
1534 bits |= get_bit(scalars[nu
1479 batch_mul(felem x_out, felem y_out, felem z_out, const felem_bytearray scalars[], const unsigned num_points, const u8 *g_scalar, const int mixed, const felem pre_comp[][17][3], const felem g_pre_comp[16][3]) argument
1802 ec_GFp_nistp521_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
[all...]
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/
H A DMakefile59 scalars \
/freebsd-11-stable/sys/dev/drm/
H A Dradeon_state.c2637 int sz = header.scalars.count;
2638 int start = header.scalars.offset;
2639 int stride = header.scalars.stride;
2659 int sz = header.scalars.count;
2660 int start = ((unsigned int)header.scalars.offset) + 0x100;
2661 int stride = header.scalars.stride;
H A Dradeon_drm.h195 } scalars; member in union:__anon9798
/freebsd-11-stable/sys/dev/drm2/radeon/
H A Dradeon_drm.h197 } scalars; member in union:__anon9943
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.cpp752 bool shouldPassIndirectlyForSwift(ArrayRef<llvm::Type*> scalars,
754 return occupiesMoreThan(CGT, scalars, /*total*/ 4);
1095 bool shouldPassIndirectlyForSwift(ArrayRef<llvm::Type*> scalars,
1101 return occupiesMoreThan(CGT, scalars, /*total*/ 3);
2226 bool shouldPassIndirectlyForSwift(ArrayRef<llvm::Type*> scalars,
2228 return occupiesMoreThan(CGT, scalars, /*total*/ 4);
2258 bool shouldPassIndirectlyForSwift(ArrayRef<llvm::Type *> scalars,
2260 return occupiesMoreThan(CGT, scalars, /*total*/ 4);
4528 bool shouldPassIndirectlyForSwift(ArrayRef<llvm::Type*> scalars,
4530 return occupiesMoreThan(CGT, scalars, /*tota
[all...]
/freebsd-11-stable/targets/pseudo/tests/
H A DMakefile.depend92 cddl/usr.sbin/dtrace/tests/common/scalars \
/freebsd-11-stable/crypto/heimdal/lib/sqlite/
H A Dsqlite3.c130768 } scalars[] = { local
[all...]

Completed in 509 milliseconds