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

Lines Matching defs:domain

49 /* A structure used to hold domain parameters.  */
105 dsa_domain_t *domain,
261 int transient_key, dsa_domain_t *domain, gcry_mpi_t **ret_factors )
300 if (domain->p && domain->q && domain->g)
303 p = mpi_copy (domain->p);
304 q = mpi_copy (domain->q);
305 g = mpi_copy (domain->g);
313 /* Generate new domain parameters. */
406 If DERIVEPARMS is not NULL it may contain a seed value. If domain
408 and NBITS and QBITS must match the specified domain parameters. */
412 dsa_domain_t *domain,
460 if (domain->p && domain->q && domain->g)
463 prime_p = mpi_copy (domain->p);
464 prime_q = mpi_copy (domain->q);
465 value_g = mpi_copy (domain->g);
473 /* Generate new domain parameters. */
706 dsa_domain_t domain;
711 memset (&domain, 0, sizeof domain);
762 /* Check whether domain parameters are given. */
763 domainsexp = gcry_sexp_find_token (genparms, "domain", 0);
766 /* DERIVEPARMS can't be used together with domain
768 because there values are derived from the domain
777 /* Put all domain parameters into the domain object. */
779 domain.p = gcry_sexp_nth_mpi (l1, 1, GCRYMPI_FMT_USG);
782 domain.q = gcry_sexp_nth_mpi (l1, 1, GCRYMPI_FMT_USG);
785 domain.g = gcry_sexp_nth_mpi (l1, 1, GCRYMPI_FMT_USG);
789 /* Check that all domain parameters are available. */
790 if (!domain.p || !domain.q || !domain.g)
792 gcry_mpi_release (domain.p);
793 gcry_mpi_release (domain.q);
794 gcry_mpi_release (domain.g);
799 /* Get NBITS and QBITS from the domain parameters. */
800 nbits = mpi_get_nbits (domain.p);
801 qbits = mpi_get_nbits (domain.q);
813 &domain,
818 /* Format the seed-values unless domain parameters are used
838 ec = generate (&sk, nbits, qbits, transient_key, &domain, retfactors);
841 gcry_mpi_release (domain.p);
842 gcry_mpi_release (domain.q);
843 gcry_mpi_release (domain.g);