Home
last modified time | relevance | path

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

/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ec/
H A Decp_nistp224.c1427 const BIGNUM *p_scalar = NULL;
1497 p_scalar = scalar;
1501 p_scalar = scalars[i];
1503 if ((p_scalar != NULL) && (p != NULL)) {
1505 if ((BN_num_bits(p_scalar) > 224)
1506 || (BN_is_negative(p_scalar))) {
1511 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
1518 num_bytes = BN_bn2lebinpad(p_scalar,
H A Decp_nistp521.c1883 const BIGNUM *p_scalar = NULL;
1956 p_scalar = scalar;
1960 p_scalar = scalars[i];
1962 if ((p_scalar != NULL) && (p != NULL)) {
1964 if ((BN_num_bits(p_scalar) > 521)
1965 || (BN_is_negative(p_scalar))) {
1970 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
1977 num_bytes = BN_bn2lebinpad(p_scalar,
H A Decp_nistp256.c2043 const BIGNUM *p_scalar = NULL;
2117 p_scalar = scalar;
2121 p_scalar = scalars[i];
2123 if ((p_scalar != NULL) && (p != NULL)) {
2125 if ((BN_num_bits(p_scalar) > 256)
2126 || (BN_is_negative(p_scalar))) {
2131 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
2138 num_bytes = BN_bn2lebinpad(p_scalar,
H A Dec_lib.c1042 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx) in EC_POINT_mul() argument
1050 scalars[0] = p_scalar; in EC_POINT_mul()
1054 && p_scalar != NULL), points, scalars, ctx); in EC_POINT_mul()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ec/
H A Decp_nistp224.c1433 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp224_points_mul() local
1503 p_scalar = scalar; in ossl_ec_GFp_nistp224_points_mul()
1507 p_scalar = scalars[i]; in ossl_ec_GFp_nistp224_points_mul()
1509 if ((p_scalar != NULL) && (p != NULL)) { in ossl_ec_GFp_nistp224_points_mul()
1511 if ((BN_num_bits(p_scalar) > 224) in ossl_ec_GFp_nistp224_points_mul()
1512 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp224_points_mul()
1517 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp224_points_mul()
1524 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp224_points_mul()
H A Decp_nistp521.c1938 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp521_points_mul() local
2011 p_scalar = scalar; in ossl_ec_GFp_nistp521_points_mul()
2015 p_scalar = scalars[i]; in ossl_ec_GFp_nistp521_points_mul()
2017 if ((p_scalar != NULL) && (p != NULL)) { in ossl_ec_GFp_nistp521_points_mul()
2019 if ((BN_num_bits(p_scalar) > 521) in ossl_ec_GFp_nistp521_points_mul()
2020 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp521_points_mul()
2025 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp521_points_mul()
2032 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp521_points_mul()
H A Decp_nistp256.c2046 const BIGNUM *p_scalar = NULL; in ossl_ec_GFp_nistp256_points_mul() local
2120 p_scalar = scalar; in ossl_ec_GFp_nistp256_points_mul()
2124 p_scalar = scalars[i]; in ossl_ec_GFp_nistp256_points_mul()
2126 if ((p_scalar != NULL) && (p != NULL)) { in ossl_ec_GFp_nistp256_points_mul()
2128 if ((BN_num_bits(p_scalar) > 256) in ossl_ec_GFp_nistp256_points_mul()
2129 || (BN_is_negative(p_scalar))) { in ossl_ec_GFp_nistp256_points_mul()
2134 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp256_points_mul()
2141 num_bytes = BN_bn2lebinpad(p_scalar, in ossl_ec_GFp_nistp256_points_mul()
H A Dec_lib.c1115 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx) in EC_POINT_mul() argument
1129 if (g_scalar == NULL && p_scalar == NULL) in EC_POINT_mul()
1141 num = (point != NULL && p_scalar != NULL) ? 1 : 0; in EC_POINT_mul()
1143 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()
1146 ret = ossl_ec_wNAF_mul(group, r, g_scalar, num, &point, &p_scalar, ctx); in EC_POINT_mul()