Lines Matching refs:md
896 _cleanup_(gcry_md_closep) gcry_md_hd_t md = NULL; in dnssec_rrset_verify_sig()
940 gcry_error_t err = gcry_md_open(&md, md_algorithm, 0); in dnssec_rrset_verify_sig()
941 if (gcry_err_code(err) != GPG_ERR_NO_ERROR || !md) in dnssec_rrset_verify_sig()
947 gcry_md_write(md, sig_data, sig_size); in dnssec_rrset_verify_sig()
949 hash = gcry_md_read(md, 0); in dnssec_rrset_verify_sig()
1407 _cleanup_(gcry_md_closep) gcry_md_hd_t md = NULL; in dnssec_verify_dnskey_by_ds()
1415 gcry_error_t err = gcry_md_open(&md, md_algorithm, 0); in dnssec_verify_dnskey_by_ds()
1416 if (gcry_err_code(err) != GPG_ERR_NO_ERROR || !md) in dnssec_verify_dnskey_by_ds()
1419 gcry_md_write(md, wire_format, r); in dnssec_verify_dnskey_by_ds()
1421 md_add_uint16(md, dnskey->dnskey.flags & ~DNSKEY_FLAG_REVOKE); in dnssec_verify_dnskey_by_ds()
1423 md_add_uint16(md, dnskey->dnskey.flags); in dnssec_verify_dnskey_by_ds()
1424 md_add_uint8(md, dnskey->dnskey.protocol); in dnssec_verify_dnskey_by_ds()
1425 md_add_uint8(md, dnskey->dnskey.algorithm); in dnssec_verify_dnskey_by_ds()
1426 gcry_md_write(md, dnskey->dnskey.key, dnskey->dnskey.key_size); in dnssec_verify_dnskey_by_ds()
1428 void *result = gcry_md_read(md, 0); in dnssec_verify_dnskey_by_ds()
1562 _cleanup_(gcry_md_closep) gcry_md_hd_t md = NULL; in dnssec_nsec3_hash()
1563 gcry_error_t err = gcry_md_open(&md, algorithm, 0); in dnssec_nsec3_hash()
1564 if (gcry_err_code(err) != GPG_ERR_NO_ERROR || !md) in dnssec_nsec3_hash()
1567 gcry_md_write(md, wire_format, r); in dnssec_nsec3_hash()
1568 gcry_md_write(md, nsec3->nsec3.salt, nsec3->nsec3.salt_size); in dnssec_nsec3_hash()
1570 void *result = gcry_md_read(md, 0); in dnssec_nsec3_hash()
1578 gcry_md_reset(md); in dnssec_nsec3_hash()
1579 gcry_md_write(md, tmp, hash_size); in dnssec_nsec3_hash()
1580 gcry_md_write(md, nsec3->nsec3.salt, nsec3->nsec3.salt_size); in dnssec_nsec3_hash()
1582 result = gcry_md_read(md, 0); in dnssec_nsec3_hash()