• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libgcrypt-1.5.0/cipher/

Lines Matching refs:curve

63 /* Definition of a curve.  */
71 const char *name; /* Name of curve or NULL. */
89 /* This tables defines aliases for curve names. */
125 const char *desc; /* Description of the curve. */
127 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.
394 * Solve the right side of the equation that defines a curve.
443 a curve or the desired number of bits and stores at R_CURVE the
444 parameters of the named curve or those of a suitable curve. The
448 elliptic_curve_t *curve, unsigned int *r_nbits)
451 const char *resname = NULL; /* Set to a found curve name. */
490 possible to bypass this check by specifying the curve parameters
496 curve->p = scanval (domain_parms[idx].p);
497 curve->a = scanval (domain_parms[idx].a);
498 curve->b = scanval (domain_parms[idx].b);
499 curve->n = scanval (domain_parms[idx].n);
500 curve->G.x = scanval (domain_parms[idx].g_x);
501 curve->G.y = scanval (domain_parms[idx].g_y);
502 curve->G.z = mpi_alloc_set_ui (1);
503 curve->name = resname;
535 log_mpidump ("ecgen curve p", E.p);
536 log_mpidump ("ecgen curve a", E.a);
537 log_mpidump ("ecgen curve b", E.b);
538 log_mpidump ("ecgen curve n", E.n);
539 log_mpidump ("ecgen curve Gx", E.G.x);
540 log_mpidump ("ecgen curve Gy", E.G.y);
541 log_mpidump ("ecgen curve Gz", E.G.z);
543 log_debug ("ecgen curve used: %s\n", E.name);
661 log_debug ("Bad check: Point 'G' does not belong to curve 'E'!\n");
678 log_debug ("check_secret_key: E is not a curve of order n\n");
999 /* Parse the optional "curve" parameter. */
1000 l1 = gcry_sexp_find_token (genparms, "curve", 0);
1006 return GPG_ERR_INV_OBJ; /* No curve name or value too large. */
1018 /* NBITS is required if no curve name has been given. */
1032 gcry_sexp_build (r_extrainfo, NULL, "(curve %s)", usedcurve);
1079 /* Return the parameters of the curve NAME in an MPI array. */
1115 /* Return the parameters of the curve NAME as an S-expression. */
1616 /* Check whether a curve parameter is available and use that to fill
1618 l1 = gcry_sexp_find_token (keyparam, "curve", 5);
1621 char *curve;
1627 curve = _gcry_sexp_nth_string (l1, 1);
1629 if (!curve)
1634 ec = ecc_get_param (curve, tmpvalues);
1635 gcry_free (curve);