Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/ec/
Dsimple_mul.c84 const EC_SCALAR *p_scalar) { in ec_GFp_mont_mul() argument
85 assert(g_scalar != NULL || p_scalar != NULL); in ec_GFp_mont_mul()
86 if (p_scalar == NULL) { in ec_GFp_mont_mul()
89 ec_GFp_mont_mul_single(group, r, p, p_scalar); in ec_GFp_mont_mul()
96 ec_GFp_mont_mul_single(group, &tmp, p, p_scalar); in ec_GFp_mont_mul()
Dp256-x86_64.c204 const EC_SCALAR *p_scalar) { in ecp_nistz256_windowed_mul() argument
206 assert(p_scalar != NULL); in ecp_nistz256_windowed_mul()
217 OPENSSL_memcpy(p_str, p_scalar->bytes, 32); in ecp_nistz256_windowed_mul()
322 const EC_SCALAR *p_scalar, in mul_p_add_and_store() argument
325 if (p_scalar != NULL) { in mul_p_add_and_store()
331 ecp_nistz256_windowed_mul(group, out, p_, p_scalar); in mul_p_add_and_store()
346 const EC_SCALAR *p_scalar) { in ecp_nistz256_points_mul() argument
347 assert((p_ != NULL) == (p_scalar != NULL)); 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()
393 const EC_SCALAR *p_scalar) { in ecp_nistz256_points_mul_public() argument
[all …]
Dinternal.h149 const EC_RAW_POINT *p, const EC_SCALAR *p_scalar);
155 const EC_SCALAR *p_scalar);
334 const EC_SCALAR *p_scalar);
343 const EC_SCALAR *p_scalar);
374 const EC_SCALAR *p_scalar);
389 const EC_SCALAR *p_scalar);
Dec.c878 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx) { in EC_POINT_mul() argument
882 if ((g_scalar == NULL && p_scalar == NULL) || in EC_POINT_mul()
883 (p == NULL) != (p_scalar == NULL)) { in EC_POINT_mul()
913 if (p_scalar != NULL) { in EC_POINT_mul()
914 if (!arbitrary_bignum_to_scalar(group, &p_scalar_storage, p_scalar, ctx)) { in EC_POINT_mul()
932 const EC_SCALAR *p_scalar) { in ec_point_mul_scalar_public() argument
933 if ((g_scalar == NULL && p_scalar == NULL) || in ec_point_mul_scalar_public()
934 (p == 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()
945 const EC_SCALAR *p_scalar) { in ec_point_mul_scalar() argument
[all …]
Dp224-64.c880 const uint8_t *p_scalar, const uint8_t *g_scalar, in p224_batch_mul() argument
893 size_t i = p_scalar != NULL ? 220 : 27; in p224_batch_mul()
930 if (p_scalar != NULL && i % 5 == 0) { in p224_batch_mul()
931 bits = p224_get_bit(p_scalar, i + 4) << 5; in p224_batch_mul()
932 bits |= p224_get_bit(p_scalar, i + 3) << 4; in p224_batch_mul()
933 bits |= p224_get_bit(p_scalar, i + 2) << 3; in p224_batch_mul()
934 bits |= p224_get_bit(p_scalar, i + 1) << 2; in p224_batch_mul()
935 bits |= p224_get_bit(p_scalar, i) << 1; in p224_batch_mul()
936 bits |= p224_get_bit(p_scalar, i - 1); in p224_batch_mul()
1033 const EC_SCALAR *p_scalar) { in ec_GFp_nistp224_points_mul() argument
[all …]
Dwnaf.c179 const EC_SCALAR *p_scalar) { in ec_GFp_mont_mul_public() argument
193 ec_compute_wNAF(group, p_wNAF, p_scalar, bits, EC_WNAF_WINDOW_BITS); in ec_GFp_mont_mul_public()
/external/boringssl/src/third_party/fiat/
Dp256.c740 const uint8_t *p_scalar, const uint8_t *g_scalar, in batch_mul() argument
752 size_t i = p_scalar != NULL ? 255 : 31; in batch_mul()
791 if (p_scalar != NULL && i % 5 == 0) { in batch_mul()
792 bits = get_bit(p_scalar, i + 4) << 5; in batch_mul()
793 bits |= get_bit(p_scalar, i + 3) << 4; in batch_mul()
794 bits |= get_bit(p_scalar, i + 2) << 3; in batch_mul()
795 bits |= get_bit(p_scalar, i + 1) << 2; in batch_mul()
796 bits |= get_bit(p_scalar, i) << 1; in batch_mul()
797 bits |= get_bit(p_scalar, i - 1); in batch_mul()
896 const EC_SCALAR *p_scalar) { in ec_GFp_nistp256_points_mul() argument
[all …]