Lines Matching +full:1 +full:- +full:wire

6  * (c) 2005-2006 NLnet Labs
24 return tc->algorithm; in ldns_tsig_algorithm()
30 return tc->keyname; in ldns_tsig_keyname()
36 return tc->keydata; in ldns_tsig_keydata()
42 return strdup(tc->keyname); in ldns_tsig_keyname_clone()
48 return strdup(tc->keydata); in ldns_tsig_keydata_clone()
52 * Makes an exact copy of the wire, but with the tsig rr removed
55 ldns_tsig_prepare_pkt_wire(const uint8_t *wire, size_t wire_len, size_t *result_len) in ldns_tsig_prepare_pkt_wire() argument
72 /* fake parse the wire */ in ldns_tsig_prepare_pkt_wire()
73 qd_count = LDNS_QDCOUNT(wire); in ldns_tsig_prepare_pkt_wire()
74 an_count = LDNS_ANCOUNT(wire); in ldns_tsig_prepare_pkt_wire()
75 ns_count = LDNS_NSCOUNT(wire); in ldns_tsig_prepare_pkt_wire()
76 ar_count = LDNS_ARCOUNT(wire); in ldns_tsig_prepare_pkt_wire()
79 ar_count--; in ldns_tsig_prepare_pkt_wire()
87 status = ldns_wire2rr(&rr, wire, wire_len, &pos, LDNS_SECTION_QUESTION); in ldns_tsig_prepare_pkt_wire()
95 status = ldns_wire2rr(&rr, wire, wire_len, &pos, LDNS_SECTION_ANSWER); in ldns_tsig_prepare_pkt_wire()
103 status = ldns_wire2rr(&rr, wire, wire_len, &pos, LDNS_SECTION_AUTHORITY); in ldns_tsig_prepare_pkt_wire()
111 status = ldns_wire2rr(&rr, wire, wire_len, &pos, in ldns_tsig_prepare_pkt_wire()
124 memcpy(wire2, wire, *result_len); in ldns_tsig_prepare_pkt_wire()
137 if (strcasecmp(name, "hmac-sha512.") == 0) { in ldns_digest_function()
143 } else if (strcasecmp(name, "hmac-shac384.") == 0) { in ldns_digest_function()
149 } else if (strcasecmp(name, "hmac-sha256.") == 0) { in ldns_digest_function()
155 } else if (strcasecmp(name, "hmac-sha1.") == 0) { in ldns_digest_function()
157 } else if (strcasecmp(name, "hmac-md5.sig-alg.reg.int.") == 0) { in ldns_digest_function()
228 wireformat = (char *) data_buffer->_data; in ldns_tsig_mac_new()
288 ldns_pkt_tsig_verify(ldns_pkt *pkt, const uint8_t *wire, size_t wirelen, const char *key_name, in ldns_pkt_tsig_verify() argument
291 return ldns_pkt_tsig_verify_next(pkt, wire, wirelen, key_name, key_data, orig_mac_rdf, 0); in ldns_pkt_tsig_verify()
295 ldns_pkt_tsig_verify_next(ldns_pkt *pkt, const uint8_t *wire, size_t wirelen, const char* key_name, in ldns_pkt_tsig_verify_next() argument
320 time_signed_rdf = ldns_rr_rdf(orig_tsig, 1); in ldns_pkt_tsig_verify_next()
334 prepared_wire = ldns_tsig_prepare_pkt_wire(wire, wirelen, &prepared_wire_size); in ldns_pkt_tsig_verify_next()