Lines Matching defs:key
75 /* Ensure there's at least enough data to compute a key ID for MD5 */
117 /* key */
135 RETERR(str_totext(" ; key id = ", target));
160 * RSAMD5 computes key ID differently from other
203 dns_rdata_key_t *key = source;
207 REQUIRE(key->common.rdtype == type);
208 REQUIRE(key->common.rdclass == rdclass);
214 RETERR(uint16_tobuffer(key->flags, target));
217 RETERR(uint8_tobuffer(key->protocol, target));
220 RETERR(uint8_tobuffer(key->algorithm, target));
223 return (mem_tobuffer(target, key->data, key->datalen));
228 dns_rdata_key_t *key = target;
235 key->common.rdclass = rdata->rdclass;
236 key->common.rdtype = rdata->type;
237 ISC_LINK_INIT(&key->common, link);
244 key->flags = uint16_fromregion(&sr);
250 key->protocol = uint8_fromregion(&sr);
256 key->algorithm = uint8_fromregion(&sr);
260 key->datalen = sr.length;
261 key->data = mem_maybedup(mctx, sr.base, key->datalen);
262 if (key->data == NULL)
265 key->mctx = mctx;
271 dns_rdata_key_t *key = (dns_rdata_key_t *) source;
274 REQUIRE(key->common.rdtype == 25);
276 if (key->mctx == NULL)
279 if (key->data != NULL)
280 isc_mem_free(key->mctx, key->data);
281 key->mctx = NULL;