Lines Matching full:curve

1283 	const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id);  in hpre_ecdh_fill_curve()  local
1286 if (unlikely(!curve)) in hpre_ecdh_fill_curve()
1293 fill_curve_param(p, curve->p, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1294 fill_curve_param(a, curve->a, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1295 fill_curve_param(b, curve->b, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1296 fill_curve_param(x, curve->g.x, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1297 fill_curve_param(y, curve->g.y, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1298 fill_curve_param(n, curve->n, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1414 dev_err(dev, "Invalid curve size!\n"); in hpre_ecdh_set_secret()
1683 const struct ecc_curve *curve; in hpre_curve25519_fill_curve() local
1691 * the same as the software curve-25519 that exists in crypto. in hpre_curve25519_fill_curve()
1699 curve = ecc_get_curve25519(); in hpre_curve25519_fill_curve()
1701 /* fill curve parameters */ in hpre_curve25519_fill_curve()
1702 fill_curve_param(p, curve->p, len, curve->g.ndigits); in hpre_curve25519_fill_curve()
1703 fill_curve_param(p + sz, curve->a, len, curve->g.ndigits); in hpre_curve25519_fill_curve()
1705 fill_curve_param(p + shift + sz, curve->g.x, len, curve->g.ndigits); in hpre_curve25519_fill_curve()
1863 const struct ecc_curve *curve; in hpre_curve25519_src_init() local
1891 curve = ecc_get_curve25519(); in hpre_curve25519_src_init()
1893 fill_curve_param(p, curve->p, CURVE25519_KEY_SIZE, curve->g.ndigits); in hpre_curve25519_src_init()