Searched refs:p_scalar (Results 1 – 5 of 5) sorted by relevance
/openssl/crypto/ec/ |
H A D | ecp_nistp224.c | 1427 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp224_points_mul() local 1495 p_scalar = scalar; in ossl_ec_GFp_nistp224_points_mul() 1499 p_scalar = scalars[i]; in ossl_ec_GFp_nistp224_points_mul() 1501 if ((p_scalar != NULL) && (p != NULL)) { in ossl_ec_GFp_nistp224_points_mul() 1503 if ((BN_num_bits(p_scalar) > 224) in ossl_ec_GFp_nistp224_points_mul() 1504 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp224_points_mul() 1509 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp224_points_mul() 1516 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp224_points_mul()
|
H A D | ecp_nistp384.c | 1721 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp384_points_mul() local 1792 p_scalar = scalar; in ossl_ec_GFp_nistp384_points_mul() 1796 p_scalar = scalars[i]; in ossl_ec_GFp_nistp384_points_mul() 1798 if (p_scalar != NULL && p != NULL) { in ossl_ec_GFp_nistp384_points_mul() 1800 if ((BN_num_bits(p_scalar) > 384) in ossl_ec_GFp_nistp384_points_mul() 1801 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp384_points_mul() 1806 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp384_points_mul() 1813 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp384_points_mul()
|
H A D | ecp_nistp521.c | 1930 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp521_points_mul() local 2001 p_scalar = scalar; in ossl_ec_GFp_nistp521_points_mul() 2005 p_scalar = scalars[i]; in ossl_ec_GFp_nistp521_points_mul() 2007 if ((p_scalar != NULL) && (p != NULL)) { in ossl_ec_GFp_nistp521_points_mul() 2009 if ((BN_num_bits(p_scalar) > 521) in ossl_ec_GFp_nistp521_points_mul() 2010 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp521_points_mul() 2015 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp521_points_mul() 2022 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp521_points_mul()
|
H A D | ecp_nistp256.c | 2041 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp256_points_mul() local 2113 p_scalar = scalar; in ossl_ec_GFp_nistp256_points_mul() 2117 p_scalar = scalars[i]; in ossl_ec_GFp_nistp256_points_mul() 2119 if ((p_scalar != NULL) && (p != NULL)) { in ossl_ec_GFp_nistp256_points_mul() 2121 if ((BN_num_bits(p_scalar) > 256) in ossl_ec_GFp_nistp256_points_mul() 2122 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp256_points_mul() 2127 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp256_points_mul() 2134 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp256_points_mul()
|
H A D | ec_lib.c | 1118 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx) in EC_POINT_mul() argument 1132 if (g_scalar == NULL && p_scalar == NULL) in EC_POINT_mul() 1144 num = (point != NULL && p_scalar != NULL) ? 1 : 0; in EC_POINT_mul() 1146 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul() 1149 ret = ossl_ec_wNAF_mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
|
Completed in 38 milliseconds