Home
last modified time | relevance | path

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

/openssl/crypto/ec/
H A Decp_s390x_nistp.c50 const BIGNUM *scalars[], in ec_GFp_s390x_nistp_mul() argument
81 || (scalar == NULL && num == 1 && BN_is_negative(scalars[0]) == 0)) { in ec_GFp_s390x_nistp_mul()
88 scalar_ptr = scalars[0]; in ec_GFp_s390x_nistp_mul()
118 rc = ossl_ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx); in ec_GFp_s390x_nistp_mul()
291 const BIGNUM *scalars[], \
295 scalars, ctx, \
H A Dec_local.h136 size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
354 const BIGNUM *scalars[], BN_CTX *);
526 const EC_POINT *points[], const BIGNUM *scalars[],
531 const BIGNUM *scalars[], BN_CTX *ctx);
546 const EC_POINT *points[], const BIGNUM *scalars[],
551 const BIGNUM *scalars[], BN_CTX *ctx);
566 const EC_POINT *points[], const BIGNUM *scalars[],
571 const BIGNUM *scalars[], BN_CTX *ctx);
H A Decp_nistz256.c630 const BIGNUM **scalars = NULL; in ecp_nistz256_windowed_mul() local
639 || (scalars = OPENSSL_malloc(num * sizeof(BIGNUM *))) == NULL) { in ecp_nistz256_windowed_mul()
660 scalars[i] = mod; in ecp_nistz256_windowed_mul()
662 scalars[i] = scalar[i]; in ecp_nistz256_windowed_mul()
664 for (j = 0; j < bn_get_top(scalars[i]) * BN_BYTES; j += BN_BYTES) { in ecp_nistz256_windowed_mul()
665 BN_ULONG d = bn_get_words(scalars[i])[j / BN_BYTES]; in ecp_nistz256_windowed_mul()
785 OPENSSL_free(scalars); in ecp_nistz256_windowed_mul()
957 const BIGNUM *scalars[], BN_CTX *ctx) in ecp_nistz256_points_mul() argument
1137 memcpy(new_scalars, scalars, num * sizeof(BIGNUM *)); in ecp_nistz256_points_mul()
1142 scalars = new_scalars; in ecp_nistz256_points_mul()
[all …]
H A Decp_nistp224.c1140 const felem_bytearray scalars[], in batch_mul() argument
1202 bits = get_bit(scalars[num], i + 4) << 5; in batch_mul()
1203 bits |= get_bit(scalars[num], i + 3) << 4; in batch_mul()
1204 bits |= get_bit(scalars[num], i + 2) << 3; in batch_mul()
1205 bits |= get_bit(scalars[num], i + 1) << 2; in batch_mul()
1206 bits |= get_bit(scalars[num], i) << 1; in batch_mul()
1207 bits |= get_bit(scalars[num], i - 1); in batch_mul()
1414 const BIGNUM *scalars[], BN_CTX *ctx) in ossl_ec_GFp_nistp224_points_mul() argument
1507 p_scalar = scalars[i]; in ossl_ec_GFp_nistp224_points_mul()
H A Dec_mult.c412 const BIGNUM *scalars[], BN_CTX *ctx) in ossl_ec_wNAF_mul() argument
455 if ((scalar == NULL) && (num == 1) && (scalars[0] != group->order)) { in ossl_ec_wNAF_mul()
463 return ossl_ec_scalar_mul_ladder(group, r, scalars[0], points[0], in ossl_ec_wNAF_mul()
536 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar); in ossl_ec_wNAF_mul()
541 bn_compute_wNAF((i < num ? scalars[i] : scalar), wsize[i], in ossl_ec_wNAF_mul()
H A Decp_nistp521.c1583 const felem_bytearray scalars[], in batch_mul() argument
1633 bits = get_bit(scalars[num], i + 4) << 5; in batch_mul()
1634 bits |= get_bit(scalars[num], i + 3) << 4; in batch_mul()
1635 bits |= get_bit(scalars[num], i + 2) << 3; in batch_mul()
1636 bits |= get_bit(scalars[num], i + 1) << 2; in batch_mul()
1637 bits |= get_bit(scalars[num], i) << 1; in batch_mul()
1638 bits |= get_bit(scalars[num], i - 1); in batch_mul()
1919 const BIGNUM *scalars[], BN_CTX *ctx) in ossl_ec_GFp_nistp521_points_mul() argument
2015 p_scalar = scalars[i]; in ossl_ec_GFp_nistp521_points_mul()
H A Decp_nistp256.c1673 const felem_bytearray scalars[], in batch_mul() argument
1737 bits = get_bit(scalars[num], i + 4) << 5; in batch_mul()
1738 bits |= get_bit(scalars[num], i + 3) << 4; in batch_mul()
1739 bits |= get_bit(scalars[num], i + 2) << 3; in batch_mul()
1740 bits |= get_bit(scalars[num], i + 1) << 2; in batch_mul()
1741 bits |= get_bit(scalars[num], i) << 1; in batch_mul()
1742 bits |= get_bit(scalars[num], i - 1); in batch_mul()
2026 const BIGNUM *scalars[], BN_CTX *ctx) in ossl_ec_GFp_nistp256_points_mul() argument
2124 p_scalar = scalars[i]; in ossl_ec_GFp_nistp256_points_mul()
H A Dec2_smpl.c871 const BIGNUM *scalars[], in ec_GF2m_simple_points_mul() argument
892 return ossl_ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx); in ec_GF2m_simple_points_mul()
900 return ossl_ec_scalar_mul_ladder(group, r, scalars[0], points[0], ctx); in ec_GF2m_simple_points_mul()
913 || !ossl_ec_scalar_mul_ladder(group, r, scalars[0], points[0], ctx) in ec_GF2m_simple_points_mul()
H A Dec_lib.c1069 const BIGNUM *scalars[], BN_CTX *ctx) in EC_POINTs_mul() argument
1102 ret = group->meth->mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
1105 ret = ossl_ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx); in EC_POINTs_mul()
/openssl/test/
H A Dectest.c117 scalars[0] = scalars[1] = BN_value_one(); in group_order_tests()
125 scalars[0] = n1; in group_order_tests()
127 scalars[1] = n2; in group_order_tests()
129 scalars[2] = n1; in group_order_tests()
131 scalars[3] = n2; in group_order_tests()
133 scalars[4] = n1; in group_order_tests()
135 scalars[5] = n2; in group_order_tests()
555 scalars[1] = y; in prime_field_tests()
566 scalars[0] = y; in prime_field_tests()
575 scalars[0] = x; in prime_field_tests()
[all …]
/openssl/
H A DCHANGES.md2599 in OpenSSL are mostly used with secret scalars in keygen, sign,
10233 * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0
13165 \sum scalars[i]*points[i],
13167 scalar*generator + \sum scalars[i]*points[i].

Completed in 101 milliseconds