Lines Matching defs:nsec3
31 #include <dns/nsec3.h>
182 dns_rdata_nsec3_t nsec3;
191 result = dns_rdata_tostruct(rdata, &nsec3, NULL);
195 for (i = 0; i < nsec3.len; i += len) {
196 INSIST(i + 2 <= nsec3.len);
197 window = nsec3.typebits[i];
198 len = nsec3.typebits[i + 1];
201 INSIST(i + len <= nsec3.len);
207 present = ISC_TF(dns_nsec_isset(&nsec3.typebits[i],
211 dns_rdata_freestruct(&nsec3);
362 match_nsec3param(const dns_rdata_nsec3_t *nsec3,
365 if (nsec3->hash == nsec3param->hash &&
366 nsec3->iterations == nsec3param->iterations &&
367 nsec3->salt_length == nsec3param->salt_length &&
368 !memcmp(nsec3->salt, nsec3param->salt, nsec3->salt_length))
383 dns_rdata_nsec3_t nsec3;
410 CHECK(dns_rdata_tostruct(&rdata, &nsec3, NULL));
412 if (!match_nsec3param(&nsec3, nsec3param))
479 find_nsec3(dns_rdata_nsec3_t *nsec3, dns_rdataset_t *rdataset,
489 CHECK(dns_rdata_tostruct(&rdata, nsec3, NULL));
491 if (match_nsec3param(nsec3, nsec3param))
514 dns_rdata_nsec3_t nsec3;
584 result = find_nsec3(&nsec3, &rdataset, nsec3param);
587 flags = nsec3.flags;
588 next_length = nsec3.next_length;
590 memmove(nexthash, nsec3.next, next_length);
634 result = find_nsec3(&nsec3, &rdataset, nsec3param);
649 if (OPTOUT(nsec3.flags)) {
660 if (OPTOUT(nsec3.flags) && unsecure) {
666 old_next = nsec3.next;
667 old_length = nsec3.next_length;
677 nsec3.next = nexthash;
678 nsec3.next_length = (unsigned char)next_length;
681 dns_rdatatype_nsec3, &nsec3,
689 flags = nsec3.flags;
747 result = find_nsec3(&nsec3, &rdataset, nsec3param);
777 result = find_nsec3(&nsec3, &rdataset, nsec3param);
785 old_next = nsec3.next;
786 old_length = nsec3.next_length;
796 nsec3.next = nexthash;
797 nsec3.next_length = (unsigned char)next_length;
801 dns_rdatatype_nsec3, &nsec3,
810 flags = nsec3.flags;
1325 dns_rdata_nsec3_t nsec3;
1388 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1390 next_length = nsec3.next_length;
1392 memmove(nexthash, nsec3.next, next_length);
1419 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1435 nsec3.next = nexthash;
1436 nsec3.next_length = (unsigned char)next_length;
1438 nsec3.flags = nsec3param->flags & DNS_NSEC3FLAG_OPTOUT;
1441 dns_rdatatype_nsec3, &nsec3,
1491 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1493 next_length = nsec3.next_length;
1495 memmove(nexthash, nsec3.next, next_length);
1519 result = find_nsec3(&nsec3, &rdataset, nsec3param);
1535 nsec3.next = nexthash;
1536 nsec3.next_length = (unsigned char)next_length;
1540 dns_rdatatype_nsec3, &nsec3,
1850 dns_rdata_nsec3_t nsec3;
1883 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
1931 if (!dns_nsec3_supportedhash(nsec3.hash)) {
1950 if (isc_buffer_usedlength(&buffer) != nsec3.next_length)
1957 scope = isc_safe_memcompare(owner, nsec3.next, nsec3.next_length);
1969 length = isc_iterated_hash(hash, nsec3.hash, nsec3.iterations,
1970 nsec3.salt, nsec3.salt_length,
1975 if (length != nsec3.next_length) {
1978 length, nsec3.next_length);
2081 memcmp(hash, nsec3.next, length) < 0) ||
2083 memcmp(hash, nsec3.next, length) < 0)))
2098 if ((nsec3.flags & DNS_NSEC3FLAG_OPTOUT) != 0)
2105 ISC_TF(nsec3.flags & DNS_NSEC3FLAG_OPTOUT);