Lines Matching refs:curve
63 /* Definition of a curve. */
88 /* This tables defines aliases for curve names. */
128 const char *desc; /* Description of the curve. */
130 unsigned int fips:1; /* True if this is a FIPS140-2 approved curve. */
343 * Release a curve object.
357 * Return a copy of a curve object.
395 * Solve the right side of the equation that defines a curve.
451 elliptic_curve_t *curve, unsigned int *r_nbits)
486 possible to bypass this check by specifying the curve parameters
493 curve->p = scanval (domain_parms[idx].p);
494 curve->a = scanval (domain_parms[idx].a);
495 curve->b = scanval (domain_parms[idx].b);
496 curve->n = scanval (domain_parms[idx].n);
497 curve->G.x = scanval (domain_parms[idx].g_x);
498 curve->G.y = scanval (domain_parms[idx].g_y);
499 curve->G.z = mpi_alloc_set_ui (1);
648 log_debug ("Bad check: Point 'G' does not belong to curve 'E'!\n");
665 log_debug ("check_secret_key: E is not a curve of order n\n");
976 /* Parse the optional "curve" parameter. */
977 l1 = gcry_sexp_find_token (genparms, "curve", 0);
983 return GPG_ERR_INV_OBJ; /* No curve name or value too large. */
987 /* NBITS is required if no curve name has been given. */
1031 /* Return the parameters of the curve NAME. */
1241 /* Check whether a curve parameter is available and use that to fill
1243 l1 = gcry_sexp_find_token (keyparam, "curve", 5);
1246 char *curve;
1252 curve = _gcry_sexp_nth_string (l1, 1);
1253 if (!curve)
1258 ec = ecc_get_param (curve, tmpvalues);
1259 gcry_free (curve);