Lines Matching refs:ds
1330 int dnssec_verify_dnskey_by_ds(DnsResourceRecord *dnskey, DnsResourceRecord *ds, bool mask_revoke) { in dnssec_verify_dnskey_by_ds() argument
1335 assert(ds); in dnssec_verify_dnskey_by_ds()
1341 if (ds->key->type != DNS_TYPE_DS) in dnssec_verify_dnskey_by_ds()
1350 if (dnskey->dnskey.algorithm != ds->ds.algorithm) in dnssec_verify_dnskey_by_ds()
1352 if (dnssec_keytag(dnskey, mask_revoke) != ds->ds.key_tag) in dnssec_verify_dnskey_by_ds()
1359 hash_md_t md_algorithm = digest_to_hash_md(ds->ds.digest_type); in dnssec_verify_dnskey_by_ds()
1371 if (ds->ds.digest_size != hash_size) in dnssec_verify_dnskey_by_ds()
1412 if (ds->ds.digest_size != hash_size) in dnssec_verify_dnskey_by_ds()
1433 return memcmp(result, ds->ds.digest, ds->ds.digest_size) == 0; in dnssec_verify_dnskey_by_ds()
1437 DnsResourceRecord *ds; in dnssec_verify_dnskey_by_ds_search() local
1446 DNS_ANSWER_FOREACH_FLAGS(ds, flags, validated_ds) { in dnssec_verify_dnskey_by_ds_search()
1451 if (ds->key->type != DNS_TYPE_DS) in dnssec_verify_dnskey_by_ds_search()
1453 if (ds->key->class != dnskey->key->class) in dnssec_verify_dnskey_by_ds_search()
1456 … r = dns_name_equal(dns_resource_key_name(dnskey->key), dns_resource_key_name(ds->key)); in dnssec_verify_dnskey_by_ds_search()
1462 r = dnssec_verify_dnskey_by_ds(dnskey, ds, false); in dnssec_verify_dnskey_by_ds_search()
2530 int dnssec_verify_dnskey_by_ds(DnsResourceRecord *dnskey, DnsResourceRecord *ds, bool mask_revoke) { in dnssec_verify_dnskey_by_ds() argument