Lines Matching refs:p

110 	struct ecc_point *p = kmalloc(sizeof(*p), GFP_KERNEL);  in ecc_alloc_point()  local
112 if (!p) in ecc_alloc_point()
115 p->x = ecc_alloc_digits_space(ndigits); in ecc_alloc_point()
116 if (!p->x) in ecc_alloc_point()
119 p->y = ecc_alloc_digits_space(ndigits); in ecc_alloc_point()
120 if (!p->y) in ecc_alloc_point()
123 p->ndigits = ndigits; in ecc_alloc_point()
125 return p; in ecc_alloc_point()
128 ecc_free_digits_space(p->x); in ecc_alloc_point()
130 kfree(p); in ecc_alloc_point()
135 void ecc_free_point(struct ecc_point *p) in ecc_free_point() argument
137 if (!p) in ecc_free_point()
140 kfree_sensitive(p->x); in ecc_free_point()
141 kfree_sensitive(p->y); in ecc_free_point()
142 kfree_sensitive(p); in ecc_free_point()
960 const u64 *curve_prime = curve->p; in vli_mmod_fast()
1135 const u64 *curve_prime = curve->p; in ecc_point_double_jacobian()
1236 const u64 *curve_prime = curve->p; in xycz_add()
1281 const u64 *curve_prime = curve->p; in xycz_add_c()
1339 u64 *curve_prime = curve->p; in ecc_point_mult()
1393 const struct ecc_point *p, const struct ecc_point *q, in ecc_point_add() argument
1403 vli_mod_sub(z, result->x, p->x, curve->p, ndigits); in ecc_point_add()
1404 vli_set(px, p->x, ndigits); in ecc_point_add()
1405 vli_set(py, p->y, ndigits); in ecc_point_add()
1407 vli_mod_inv(z, z, curve->p, ndigits); in ecc_point_add()
1415 const u64 *u1, const struct ecc_point *p, in ecc_point_mult_shamir() argument
1431 ecc_point_add(&sum, p, q, curve); in ecc_point_mult_shamir()
1433 points[1] = p; in ecc_point_mult_shamir()
1461 vli_mod_sub(tz, rx, tx, curve->p, ndigits); in ecc_point_mult_shamir()
1466 vli_mod_inv(z, z, curve->p, ndigits); in ecc_point_mult_shamir()
1616 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in ecc_is_pubkey_valid_partial()
1618 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in ecc_is_pubkey_valid_partial()
1626 vli_mod_add(w, w, curve->b, curve->p, pk->ndigits); /* a·x + b */ in ecc_is_pubkey_valid_partial()
1627 vli_mod_add(w, w, xxx, curve->p, pk->ndigits); /* x^3 + a·x + b */ in ecc_is_pubkey_valid_partial()