Lines Matching full:curve
1265 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); in hpre_ecdh_fill_curve() local
1268 if (unlikely(!curve)) in hpre_ecdh_fill_curve()
1275 fill_curve_param(p, curve->p, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1276 fill_curve_param(a, curve->a, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1277 fill_curve_param(b, curve->b, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1278 fill_curve_param(x, curve->g.x, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1279 fill_curve_param(y, curve->g.y, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1280 fill_curve_param(n, curve->n, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1653 const struct ecc_curve *curve; in hpre_curve25519_fill_curve() local
1661 * the same as the software curve-25519 that exists in crypto. in hpre_curve25519_fill_curve()
1669 curve = ecc_get_curve25519(); in hpre_curve25519_fill_curve()
1671 /* fill curve parameters */ in hpre_curve25519_fill_curve()
1672 fill_curve_param(p, curve->p, len, curve->g.ndigits); in hpre_curve25519_fill_curve()
1673 fill_curve_param(p + sz, curve->a, len, curve->g.ndigits); in hpre_curve25519_fill_curve()
1675 fill_curve_param(p + shift + sz, curve->g.x, len, curve->g.ndigits); in hpre_curve25519_fill_curve()
1833 const struct ecc_curve *curve; in hpre_curve25519_src_init() local
1861 curve = ecc_get_curve25519(); in hpre_curve25519_src_init()
1863 fill_curve_param(p, curve->p, CURVE25519_KEY_SIZE, curve->g.ndigits); in hpre_curve25519_src_init()