/external/boringssl/src/third_party/fiat/ |
D | p256.c | 740 const uint8_t *p_scalar, const uint8_t *g_scalar, in batch_mul() argument 760 if (g_scalar != NULL && i <= 31) { in batch_mul() 762 bits = get_bit(g_scalar, i + 224) << 3; in batch_mul() 763 bits |= get_bit(g_scalar, i + 160) << 2; in batch_mul() 764 bits |= get_bit(g_scalar, i + 96) << 1; in batch_mul() 765 bits |= get_bit(g_scalar, i + 32); in batch_mul() 780 bits = get_bit(g_scalar, i + 192) << 3; in batch_mul() 781 bits |= get_bit(g_scalar, i + 128) << 2; in batch_mul() 782 bits |= get_bit(g_scalar, i + 64) << 1; in batch_mul() 783 bits |= get_bit(g_scalar, i); in batch_mul() [all …]
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
D | simple_mul.c | 83 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, in ec_GFp_mont_mul() argument 85 assert(g_scalar != NULL || p_scalar != NULL); in ec_GFp_mont_mul() 87 ec_GFp_mont_mul_single(group, r, &group->generator->raw, g_scalar); in ec_GFp_mont_mul() 88 } else if (g_scalar == NULL) { in ec_GFp_mont_mul() 94 ec_GFp_mont_mul_single(group, r, &group->generator->raw, g_scalar); in ec_GFp_mont_mul()
|
D | internal.h | 148 void (*mul)(const EC_GROUP *group, EC_RAW_POINT *r, const EC_SCALAR *g_scalar, 154 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, 333 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, 341 const EC_SCALAR *g_scalar, 373 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, 388 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p,
|
D | p224-64.c | 880 const uint8_t *p_scalar, const uint8_t *g_scalar, in p224_batch_mul() argument 901 if (g_scalar != NULL && i <= 27) { in p224_batch_mul() 903 bits = p224_get_bit(g_scalar, i + 196) << 3; in p224_batch_mul() 904 bits |= p224_get_bit(g_scalar, i + 140) << 2; in p224_batch_mul() 905 bits |= p224_get_bit(g_scalar, i + 84) << 1; in p224_batch_mul() 906 bits |= p224_get_bit(g_scalar, i + 28); in p224_batch_mul() 919 bits = p224_get_bit(g_scalar, i + 168) << 3; in p224_batch_mul() 920 bits |= p224_get_bit(g_scalar, i + 112) << 2; in p224_batch_mul() 921 bits |= p224_get_bit(g_scalar, i + 56) << 1; in p224_batch_mul() 922 bits |= p224_get_bit(g_scalar, i); in p224_batch_mul() [all …]
|
D | p256-x86_64.c | 320 const EC_SCALAR *g_scalar, in mul_p_add_and_store() argument 324 const int p_is_infinity = g_scalar == NULL; in mul_p_add_and_store() 344 const EC_SCALAR *g_scalar, in ecp_nistz256_points_mul() argument 351 if (g_scalar != NULL) { in ecp_nistz256_points_mul() 353 OPENSSL_memcpy(p_str, g_scalar->bytes, 32); in ecp_nistz256_points_mul() 386 mul_p_add_and_store(group, r, g_scalar, p_, p_scalar, &t, &p); in ecp_nistz256_points_mul() 391 const EC_SCALAR *g_scalar, in ecp_nistz256_points_mul_public() argument 394 assert(p_ != NULL && p_scalar != NULL && g_scalar != NULL); in ecp_nistz256_points_mul_public() 398 OPENSSL_memcpy(p_str, g_scalar->bytes, 32); in ecp_nistz256_points_mul_public() 441 mul_p_add_and_store(group, r, g_scalar, p_, p_scalar, &t, &p); in ecp_nistz256_points_mul_public()
|
D | ec.c | 877 int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, in EC_POINT_mul() argument 882 if ((g_scalar == NULL && p_scalar == NULL) || in EC_POINT_mul() 906 if (g_scalar != NULL) { in EC_POINT_mul() 907 if (!arbitrary_bignum_to_scalar(group, &g_scalar_storage, g_scalar, ctx)) { in EC_POINT_mul() 931 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, in ec_point_mul_scalar_public() argument 933 if ((g_scalar == NULL && p_scalar == NULL) || in ec_point_mul_scalar_public() 939 group->meth->mul_public(group, r, g_scalar, p, p_scalar); in ec_point_mul_scalar_public() 944 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, in ec_point_mul_scalar() argument 946 if ((g_scalar == NULL && p_scalar == NULL) || in ec_point_mul_scalar() 952 group->meth->mul(group, r, g_scalar, p, p_scalar); in ec_point_mul_scalar()
|
D | wnaf.c | 178 const EC_SCALAR *g_scalar, const EC_RAW_POINT *p, in ec_GFp_mont_mul_public() argument 187 ec_compute_wNAF(group, g_wNAF, g_scalar, bits, EC_WNAF_WINDOW_BITS); in ec_GFp_mont_mul_public()
|