Lines Matching refs:dnskey
55 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *nsec = NULL, *rrsig = NULL, *dnskey = NULL;
97 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "nASA.gOV");
98 assert_se(dnskey);
100 dnskey->dnskey.flags = 256;
101 dnskey->dnskey.protocol = 3;
102 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256;
103 dnskey->dnskey.key_size = sizeof(dnskey_blob);
104 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob));
105 assert_se(dnskey->dnskey.key);
107 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey)));
108 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false));
111 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0);
118 assert_se(dnssec_verify_rrset(answer, nsec->key, rrsig, dnskey, 1449849318*USEC_PER_SEC, &result) >= 0);
147 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *a = NULL, *rrsig = NULL, *dnskey = NULL;
176 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "nASA.gOV");
177 assert_se(dnskey);
179 dnskey->dnskey.flags = 256;
180 dnskey->dnskey.protocol = 3;
181 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256;
182 dnskey->dnskey.key_size = sizeof(dnskey_blob);
183 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob));
184 assert_se(dnskey->dnskey.key);
186 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey)));
187 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false));
190 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0);
197 assert_se(dnssec_verify_rrset(answer, a->key, rrsig, dnskey, 1449092754*USEC_PER_SEC, &result) >= 0);
231 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds1 = NULL, *ds2 = NULL;
258 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "nasa.GOV");
259 assert_se(dnskey);
261 dnskey->dnskey.flags = 257;
262 dnskey->dnskey.protocol = 3;
263 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256;
264 dnskey->dnskey.key_size = sizeof(dnskey_blob);
265 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob));
266 assert_se(dnskey->dnskey.key);
268 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey)));
269 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false));
271 assert_se(dnssec_verify_dnskey_by_ds(dnskey, ds1, false) > 0);
272 assert_se(dnssec_verify_dnskey_by_ds(dnskey, ds2, false) > 0);