Lines Matching refs:curve
1280 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id);
1283 if (unlikely(!curve))
1290 fill_curve_param(p, curve->p, cur_sz, curve->g.ndigits);
1291 fill_curve_param(a, curve->a, cur_sz, curve->g.ndigits);
1292 fill_curve_param(b, curve->b, cur_sz, curve->g.ndigits);
1293 fill_curve_param(x, curve->g.x, cur_sz, curve->g.ndigits);
1294 fill_curve_param(y, curve->g.y, cur_sz, curve->g.ndigits);
1295 fill_curve_param(n, curve->n, cur_sz, curve->g.ndigits);
1411 dev_err(dev, "Invalid curve size!\n");
1680 const struct ecc_curve *curve;
1688 * the same as the software curve-25519 that exists in crypto.
1696 curve = ecc_get_curve25519();
1698 /* fill curve parameters */
1699 fill_curve_param(p, curve->p, len, curve->g.ndigits);
1700 fill_curve_param(p + sz, curve->a, len, curve->g.ndigits);
1702 fill_curve_param(p + shift + sz, curve->g.x, len, curve->g.ndigits);
1860 const struct ecc_curve *curve;
1888 curve = ecc_get_curve25519();
1890 fill_curve_param(p, curve->p, CURVE25519_KEY_SIZE, curve->g.ndigits);