Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/ec/
Dp256-x86_64.c237 const EC_POINT *p, const BIGNUM *p_scalar, in ecp_nistz256_windowed_mul() argument
240 assert(p_scalar != NULL); in ecp_nistz256_windowed_mul()
256 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ecp_nistz256_windowed_mul()
272 if (!BN_nnmod(mod, p_scalar, &group->order, ctx)) { in ecp_nistz256_windowed_mul()
276 p_scalar = mod; in ecp_nistz256_windowed_mul()
280 for (j = 0; j < p_scalar->top * BN_BYTES; j += BN_BYTES) { in ecp_nistz256_windowed_mul()
281 BN_ULONG d = p_scalar->d[j / BN_BYTES]; in ecp_nistz256_windowed_mul()
387 const EC_POINT *p_, const BIGNUM *p_scalar, BN_CTX *ctx) { in ecp_nistz256_points_mul() argument
388 assert((p_ != NULL) == (p_scalar != NULL)); in ecp_nistz256_points_mul()
491 if (p_scalar != NULL) { in ecp_nistz256_points_mul()
[all …]
Dp224-64.c1149 const BIGNUM *p_scalar = NULL; in ec_GFp_nistp224_points_mul() local
1193 p_scalar = g_scalar; in ec_GFp_nistp224_points_mul()
1197 p_scalar = scalars[i]; in ec_GFp_nistp224_points_mul()
1200 if (p_scalar != NULL && p != NULL) { in ec_GFp_nistp224_points_mul()
1202 if (BN_num_bits(p_scalar) > 224 || BN_is_negative(p_scalar)) { in ec_GFp_nistp224_points_mul()
1205 if (!BN_nnmod(tmp_scalar, p_scalar, &group->order, ctx)) { in ec_GFp_nistp224_points_mul()
1211 num_bytes = BN_bn2bin(p_scalar, tmp); in ec_GFp_nistp224_points_mul()
Dinternal.h104 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx);
178 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx);
Dec.c850 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx) { in EC_POINT_mul() argument
854 if ((g_scalar == NULL && p_scalar == NULL) || in EC_POINT_mul()
855 ((p == NULL) != (p_scalar == NULL))) { in EC_POINT_mul()
866 return group->meth->mul(group, r, g_scalar, p, p_scalar, ctx); in EC_POINT_mul()
Dwnaf.c228 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx) { in ec_wNAF_mul() argument
259 const BIGNUM **scalars = p != NULL ? &p_scalar : NULL; in ec_wNAF_mul()
Dp256-64.c1729 const BIGNUM *p_scalar = NULL; in ec_GFp_nistp256_points_mul() local
1772 p_scalar = g_scalar; in ec_GFp_nistp256_points_mul()
1776 p_scalar = scalars[i]; in ec_GFp_nistp256_points_mul()
1778 if (p_scalar != NULL && p != NULL) { in ec_GFp_nistp256_points_mul()
1780 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ec_GFp_nistp256_points_mul()
1783 if (!BN_nnmod(tmp_scalar, p_scalar, &group->order, ctx)) { in ec_GFp_nistp256_points_mul()
1789 num_bytes = BN_bn2bin(p_scalar, tmp); in ec_GFp_nistp256_points_mul()