• 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 refs:algorithm

51    libgcrypt.  FIPS_ALLOWED indicated whether the algorithm is used in
57 unsigned int algorithm;
112 dummy_generate (int algorithm, unsigned int nbits, unsigned long dummy,
115 (void)algorithm;
125 dummy_check_secret_key (int algorithm, gcry_mpi_t *skey)
127 (void)algorithm;
134 dummy_encrypt (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
137 (void)algorithm;
147 dummy_decrypt (int algorithm, gcry_mpi_t *result, gcry_mpi_t *data,
150 (void)algorithm;
160 dummy_sign (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
163 (void)algorithm;
172 dummy_verify (int algorithm, gcry_mpi_t hash, gcry_mpi_t *data,
176 (void)algorithm;
187 dummy_get_nbits (int algorithm, gcry_mpi_t *pkey)
189 (void)algorithm;
219 pubkey_table[i].algorithm,
257 PUBKEY. On success, a new algorithm ID is stored in ALGORITHM_ID
315 int algorithm = 0;
326 algorithm = pubkey->mod_id;
331 return algorithm;
335 /* Map the public key algorithm whose ID is contained in ALGORITHM to
336 a string representation of the algorithm name. For unknown
337 algorithm IDs this functions returns "?". */
339 gcry_pk_algo_name (int algorithm)
347 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
362 name of the algorithm. This is required to adhere to the spki
363 specs where the algorithm names are lowercase. */
365 _gcry_pk_aliased_algo_name (int algorithm)
373 module = _gcry_module_lookup_id (pubkeys_registered, algorithm);
390 disable_pubkey_algo (int algorithm)
395 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
410 check_pubkey_algo (int algorithm, unsigned use)
419 module = _gcry_module_lookup_id (pubkeys_registered, algorithm);
445 pubkey_get_npkey (int algorithm)
453 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
468 pubkey_get_nskey (int algorithm)
476 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
491 pubkey_get_nsig (int algorithm)
499 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
514 pubkey_get_nenc (int algorithm)
522 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
534 /* Generate a new public key with algorithm ALGORITHM of size NBITS
536 is passed to the algorithm module if it features an extended
543 pubkey_generate (int algorithm,
556 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
565 (algorithm, nbits, use_e, genparms, skey, retfactors, r_extrainfo);
571 (algorithm, nbits, use_e, skey, retfactors);
582 pubkey_check_secret_key (int algorithm, gcry_mpi_t *skey)
590 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
594 (algorithm, skey);
606 * of size PUBKEY_MAX_NENC (or less if the algorithm allows this -
610 pubkey_encrypt (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
623 log_debug ("pubkey_encrypt: algo=%d\n", algorithm);
624 for(i = 0; i < pubkey_get_npkey (algorithm); i++)
630 module = _gcry_module_lookup_id (pubkeys_registered, algorithm);
634 rc = pubkey->encrypt (algorithm, resarr, data, pkey, flags);
645 for(i = 0; i < pubkey_get_nenc (algorithm); i++)
654 * ALGO gives the algorithm to use and this implicitly determines
660 pubkey_decrypt (int algorithm, gcry_mpi_t *result, gcry_mpi_t *data,
671 log_debug ("pubkey_decrypt: algo=%d\n", algorithm);
672 for(i = 0; i < pubkey_get_nskey (algorithm); i++)
674 for(i = 0; i < pubkey_get_nenc (algorithm); i++)
679 module = _gcry_module_lookup_id (pubkeys_registered, algorithm);
683 rc = pubkey->decrypt (algorithm, result, data, skey, flags);
704 * algorithm allows this - check with pubkey_get_nsig() )
707 pubkey_sign (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
717 log_debug ("pubkey_sign: algo=%d\n", algorithm);
718 for(i = 0; i < pubkey_get_nskey (algorithm); i++)
724 module = _gcry_module_lookup_id (pubkeys_registered, algorithm);
728 rc = pubkey->sign (algorithm, resarr, data, skey);
739 for (i = 0; i < pubkey_get_nsig (algorithm); i++)
750 pubkey_verify (int algorithm, gcry_mpi_t hash, gcry_mpi_t *data,
761 log_debug ("pubkey_verify: algo=%d\n", algorithm);
762 for (i = 0; i < pubkey_get_npkey (algorithm); i++)
764 for (i = 0; i < pubkey_get_nsig (algorithm); i++)
770 module = _gcry_module_lookup_id (pubkeys_registered, algorithm);
774 rc = pubkey->verify (algorithm, hash, data, pkey, cmp, opaquev);
863 (Note that OpenPGP includes the cipher algorithm and a checksum in
1050 ASN is the DER encoding of the hash algorithm; along with the VALUE
1085 the given algorithm. */
1177 valid and usable algorithm. {VALUE,VALUELEN} is the message to
1336 valid and usable algorithm. VALUE is the raw decrypted message
1481 picture below. ALGO is a valid hash algorithm and SALTLEN is the
1646 hash algorithm and SALTLEN is the length of the used salt. The
1784 /* Callback for the pubkey algorithm code to verify PSS signatures.
1786 TMP depends on the actual algorithm (but there is only RSA); now
1972 * be one of the above algorithm identifiers and the remaning
2031 itself. We need a function to test whether an algorithm given
2034 algorithm which has many flavours. */
2043 return GPG_ERR_PUBKEY_ALGO; /* Unknown algorithm. */
2143 return GPG_ERR_PUBKEY_ALGO; /* Unknown algorithm. */
2208 algorithm we fall back to this somewhat slower
2210 algorithm names. */
2403 err = GPG_ERR_PUBKEY_ALGO; /* Unknown algorithm. */
2864 /* If aliases for the algorithm name exists, take the first one
3298 /* Fixme: Check that the algorithm of S_SIG is compatible to the one
3384 algorithm. Both, private and secret keys are returned
3464 rc = GPG_ERR_PUBKEY_ALGO; /* Unknown algorithm. */
3479 the algorithm module but we have this parameter in the public
3524 /* Pass control to the algorithm module. */
3713 key parameters expressed in a way depending on the algorithm.
3718 unknown algorithm. The function accepts public or secret keys. */
3760 goto fail; /* Unknown algorithm. */
3961 /* Return information about the given algorithm
3966 Returns 0 when the specified algorithm is available for use.
3968 with the required usage of the algorithm. It may be 0 for don't
3983 gcry_pk_algo_info (int algorithm, int what, void *buffer, size_t *nbytes)
3994 else if (check_pubkey_algo (algorithm, use))
4007 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
4024 int npkey = pubkey_get_npkey (algorithm);
4031 int nskey = pubkey_get_nskey (algorithm);
4038 int nsign = pubkey_get_nsig (algorithm);
4045 int nencr = pubkey_get_nenc (algorithm);
4071 _gcry_pk_module_lookup (int algorithm, gcry_module_t *module)
4079 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
4101 *LIST_LENGTH algorithm IDs are stored in LIST, which must be of
4117 /* Run the selftests for pubkey algorithm ALGO with optional reporting
4142 module? "algorithm disabled" : "algorithm not found");