• 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

45   unsigned int algorithm;
187 if (digest_table[i].algorithm == GCRY_MD_MD5
193 digest_table[i].algorithm,
257 DIGEST. On success, a new algorithm ID is stored in ALGORITHM_ID
300 search_oid (const char *oid, int *algorithm, gcry_md_oid_spec_t *oid_spec)
318 if (algorithm)
319 *algorithm = module->mod_id;
337 int ret, algorithm = 0;
346 object identifiers to figure out the algorithm */
350 ret = search_oid (string, &algorithm, NULL);
357 algorithm = digest->mod_id;
363 return algorithm;
371 digest_algo_to_string (int algorithm)
379 digest = _gcry_module_lookup_id (digests_registered, algorithm);
391 * This function simply returns the name of the algorithm or some constant
393 * Use the macro gcry_md_test_algo() to check whether the algorithm
397 gcry_md_algo_name (int algorithm)
399 const char *s = digest_algo_to_string (algorithm);
405 check_digest_algo (int algorithm)
413 digest = _gcry_module_lookup_id (digests_registered, algorithm);
426 * Open a message digest handle for use with algorithm ALGO.
427 * More algorithms may be added by md_enable(). The initial algorithm
519 /* Create a message digest object for algorithm ALGO. FLAGS may be
545 md_enable (gcry_md_hd_t hd, int algorithm)
554 if (entry->module->mod_id == algorithm)
560 module = _gcry_module_lookup_id (digests_registered, algorithm);
564 log_debug ("md_enable: algorithm %d not available\n", algorithm);
571 if (!err && algorithm == GCRY_MD_MD5 && fips_mode ())
624 gcry_md_enable (gcry_md_hd_t hd, int algorithm)
626 return gcry_error (md_enable (hd, algorithm));
955 /* Return the first algorithm */
959 log_debug ("more than one algorithm in md_read(0)\n");
1056 log_error ("WARNING: more than one algorithm in md_get_algo()\n");
1072 md_digest_length (int algorithm)
1080 digest = _gcry_module_lookup_id (digests_registered, algorithm);
1096 gcry_md_get_algo_dlen (int algorithm)
1098 return md_digest_length (algorithm);
1105 md_asn_oid (int algorithm, size_t *asnlen, size_t *mdlen)
1113 digest = _gcry_module_lookup_id (digests_registered, algorithm);
1124 log_bug ("no ASN.1 OID for md algo %d\n", algorithm);
1133 * Return information about the given cipher algorithm
1136 * Returns 0 when the specified algorithm is available for use.
1139 * Return the ASNOID of the algorithm in buffer. if buffer is NULL, only
1331 first *LIST_LENGTH algorithm IDs are stored in LIST, which must be
1348 /* Run the selftests for digest algorithm ALGO with optional reporting
1373 module? "algorithm disabled" : "algorithm not found");