Lines Matching refs:md_algorithm
890 hash_md_t md_algorithm; in dnssec_rrset_verify_sig() local
916 md_algorithm = algorithm_to_implementation_id(rrsig->rrsig.algorithm); in dnssec_rrset_verify_sig()
918 if (!md_algorithm) in dnssec_rrset_verify_sig()
925 if (EVP_DigestInit_ex(ctx, md_algorithm, NULL) <= 0) in dnssec_rrset_verify_sig()
937 if (md_algorithm < 0) in dnssec_rrset_verify_sig()
938 return md_algorithm; in dnssec_rrset_verify_sig()
940 gcry_error_t err = gcry_md_open(&md, md_algorithm, 0); in dnssec_rrset_verify_sig()
944 hash_size = gcry_md_get_algo_dlen(md_algorithm); in dnssec_rrset_verify_sig()
962 OPENSSL_OR_GCRYPT(md_algorithm, gcry_md_algo_name(md_algorithm)), in dnssec_rrset_verify_sig()
970 OPENSSL_OR_GCRYPT(md_algorithm, gcry_md_algo_name(md_algorithm)), in dnssec_rrset_verify_sig()
1359 hash_md_t md_algorithm = digest_to_hash_md(ds->ds.digest_type); in dnssec_verify_dnskey_by_ds() local
1362 if (!md_algorithm) in dnssec_verify_dnskey_by_ds()
1368 unsigned hash_size = EVP_MD_size(md_algorithm); in dnssec_verify_dnskey_by_ds()
1378 if (EVP_DigestInit_ex(ctx, md_algorithm, NULL) <= 0) in dnssec_verify_dnskey_by_ds()
1402 if (md_algorithm < 0) in dnssec_verify_dnskey_by_ds()
1409 size_t hash_size = gcry_md_get_algo_dlen(md_algorithm); in dnssec_verify_dnskey_by_ds()
1415 gcry_error_t err = gcry_md_open(&md, md_algorithm, 0); in dnssec_verify_dnskey_by_ds()