Lines Matching refs:p
1270 const struct crypto_bignum *p) in crypto_bignum_legendre() argument
1283 ret = mp_sub_d((mp_int *) p, 1, &t); in crypto_bignum_legendre()
1287 ret = mp_exptmod((mp_int *) a, &t, (mp_int *) p, &t); in crypto_bignum_legendre()
1452 void crypto_ec_point_deinit(struct crypto_ec_point *p, int clear) in crypto_ec_point_deinit() argument
1454 ecc_point *point = (ecc_point *) p; in crypto_ec_point_deinit()
1456 if (!p) in crypto_ec_point_deinit()
1468 int crypto_ec_point_x(struct crypto_ec *e, const struct crypto_ec_point *p, in crypto_ec_point_x() argument
1471 return mp_copy(((ecc_point *) p)->x, (mp_int *) x) == MP_OKAY ? 0 : -1; in crypto_ec_point_x()
1478 ecc_point *p = (ecc_point *) point; in crypto_ec_point_to_bin() local
1483 if (!mp_isone(p->z)) { in crypto_ec_point_to_bin()
1484 if (ecc_map(p, &e->prime, e->mont_b) != MP_OKAY) in crypto_ec_point_to_bin()
1489 if (crypto_bignum_to_bin((struct crypto_bignum *)p->x, x, in crypto_ec_point_to_bin()
1496 if (crypto_bignum_to_bin((struct crypto_bignum *) p->y, y, in crypto_ec_point_to_bin()
1604 int crypto_ec_point_mul(struct crypto_ec *e, const struct crypto_ec_point *p, in crypto_ec_point_mul() argument
1613 ret = wc_ecc_mulmod((mp_int *) b, (ecc_point *) p, (ecc_point *) res, in crypto_ec_point_mul()
1619 int crypto_ec_point_invert(struct crypto_ec *e, struct crypto_ec_point *p) in crypto_ec_point_invert() argument
1621 ecc_point *point = (ecc_point *) p; in crypto_ec_point_invert()
1673 const struct crypto_ec_point *p) in crypto_ec_point_is_at_infinity() argument
1675 return wc_ecc_point_is_at_infinity((ecc_point *) p); in crypto_ec_point_is_at_infinity()
1680 const struct crypto_ec_point *p) in crypto_ec_point_is_on_curve() argument
1682 return wc_ecc_is_point((ecc_point *) p, &e->a, &e->b, &e->prime) == in crypto_ec_point_is_on_curve()