Lines Matching refs:nsec3
35 #include <dns/nsec3.h>
225 dns_rdata_nsec3_t nsec3;
234 result = dns_rdata_tostruct(rdata, &nsec3, NULL);
238 for (i = 0; i < nsec3.len; i += len) {
239 INSIST(i + 2 <= nsec3.len);
240 window = nsec3.typebits[i];
241 len = nsec3.typebits[i + 1];
244 INSIST(i + len <= nsec3.len);
250 present = ISC_TF(bit_isset(&nsec3.typebits[i],
254 dns_rdata_freestruct(&nsec3);
402 match_nsec3param(const dns_rdata_nsec3_t *nsec3,
405 if (nsec3->hash == nsec3param->hash &&
406 nsec3->iterations == nsec3param->iterations &&
407 nsec3->salt_length == nsec3param->salt_length &&
408 !memcmp(nsec3->salt, nsec3param->salt, nsec3->salt_length))
423 dns_rdata_nsec3_t nsec3;
450 CHECK(dns_rdata_tostruct(&rdata, &nsec3, NULL));
452 if (!match_nsec3param(&nsec3, nsec3param))
511 find_nsec3(dns_rdata_nsec3_t *nsec3, dns_rdataset_t *rdataset,
521 CHECK(dns_rdata_tostruct(&rdata, nsec3, NULL));
523 if (match_nsec3param(nsec3, nsec3param))
546 dns_rdata_nsec3_t nsec3;
615 result = find_nsec3(&nsec3, &rdataset, nsec3param);
618 flags = nsec3.flags;
619 next_length = nsec3.next_length;
621 memmove(nexthash, nsec3.next, next_length);
661 result = find_nsec3(&nsec3, &rdataset, nsec3param);
676 if (!OPTOUT(nsec3.flags)) {
694 if (OPTOUT(nsec3.flags) && unsecure) {
700 old_next = nsec3.next;
701 old_length = nsec3.next_length;
711 nsec3.next = nexthash;
712 nsec3.next_length = next_length;
715 dns_rdatatype_nsec3, &nsec3,
723 flags = nsec3.flags;
781 result = find_nsec3(&nsec3, &rdataset, nsec3param);
811 result = find_nsec3(&nsec3, &rdataset, nsec3param);
819 old_next = nsec3.next;
820 old_length = nsec3.next_length;
830 nsec3.next = nexthash;
831 nsec3.next_length = next_length;
835 dns_rdatatype_nsec3, &nsec3,
844 flags = nsec3.flags;
1011 dns_rdata_nsec3_t nsec3;
1074 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1076 next_length = nsec3.next_length;
1078 memmove(nexthash, nsec3.next, next_length);
1105 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1121 nsec3.next = nexthash;
1122 nsec3.next_length = next_length;
1125 dns_rdatatype_nsec3, &nsec3,
1175 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1177 next_length = nsec3.next_length;
1179 memmove(nexthash, nsec3.next, next_length);
1203 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1219 nsec3.next = nexthash;
1220 nsec3.next_length = next_length;
1224 dns_rdatatype_nsec3, &nsec3,
1445 dns_rdata_nsec3_t nsec3;
1478 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
1526 if (!dns_nsec3_supportedhash(nsec3.hash)) {
1545 if (isc_buffer_usedlength(&buffer) != nsec3.next_length)
1552 scope = memcmp(owner, nsec3.next, nsec3.next_length);
1564 length = isc_iterated_hash(hash, nsec3.hash, nsec3.iterations,
1565 nsec3.salt, nsec3.salt_length,
1570 if (length != nsec3.next_length) {
1573 length, nsec3.next_length);
1676 memcmp(hash, nsec3.next, length) < 0) ||
1678 memcmp(hash, nsec3.next, length) < 0)))
1695 if ((nsec3.flags & DNS_NSEC3FLAG_OPTOUT) != 0)
1699 ISC_TF(nsec3.flags & DNS_NSEC3FLAG_OPTOUT);