Lines Matching defs:nsec3
45 #include <dns/nsec3.h>
754 record_nsec3(const unsigned char *rawhash, const dns_rdata_nsec3_t *nsec3,
762 len = sizeof(*element) + nsec3->next_length * 2 + nsec3->salt_length;
768 element->hash = nsec3->hash;
769 element->salt_length = nsec3->salt_length;
770 element->next_length = nsec3->next_length;
771 element->iterations = nsec3->iterations;
773 memmove(cp, nsec3->salt, nsec3->salt_length);
774 cp += nsec3->salt_length;
775 memmove(cp, rawhash, nsec3->next_length);
776 cp += nsec3->next_length;
777 memmove(cp, nsec3->next, nsec3->next_length);
795 dns_rdata_nsec3_t nsec3;
807 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
809 if (nsec3.hash == nsec3param->hash &&
810 nsec3.next_length == rhsize &&
811 nsec3.iterations == nsec3param->iterations &&
812 nsec3.salt_length == nsec3param->salt_length &&
813 memcmp(nsec3.salt, nsec3param->salt,
827 if (nsec3.len != len || memcmp(cbm, nsec3.typebits, len) != 0) {
837 result = record_nsec3(rawhash, &nsec3, mctx, expected_chains);
849 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
851 if (nsec3.hash == nsec3param->hash &&
852 nsec3.iterations == nsec3param->iterations &&
853 nsec3.salt_length == nsec3param->salt_length &&
854 memcmp(nsec3.salt, nsec3param->salt,
855 nsec3.salt_length) == 0) {
871 innsec3params(dns_rdata_nsec3_t *nsec3, dns_rdataset_t *nsec3paramset) {
884 nsec3param.hash == nsec3->hash &&
885 nsec3param.iterations == nsec3->iterations &&
886 nsec3param.salt_length == nsec3->salt_length &&
887 memcmp(nsec3param.salt, nsec3->salt,
888 nsec3->salt_length) == 0)
900 dns_rdata_nsec3_t nsec3;
927 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
929 if (nsec3.next_length != isc_buffer_usedlength(&b))
935 if (!innsec3params(&nsec3, nsec3paramset))
941 result = record_nsec3(owner, &nsec3, mctx, found_chains);
956 dns_rdata_nsec3_t nsec3;
989 result = dns_rdata_tostruct(&rdata, &nsec3, NULL);
993 ret = ISC_TF((nsec3.flags & DNS_NSEC3FLAG_OPTOUT) != 0);
1040 * nsec3 chain and we may also be called with uncommitted data