Function hickory_proto::rr::dnssec::rdata::tsig::message_tbs
source · pub fn message_tbs<M: BinEncodable>(
previous_hash: Option<&[u8]>,
message: &M,
pre_tsig: &TSIG,
key_name: &Name
) -> ProtoResult<Vec<u8>>
Available on crate feature
dnssec
only.Expand description
Return the byte-message to be authenticated with a TSIG
§Arguments
previous_hash
- hash of previous message in case of message chaining, or of query in case of response. Should be None for querymessage
- the message to authenticate. Should not be modified after calling message_tbs except for adding the TSIG recordpre_tsig
- TSIG rrdata, possibly with missing mac. Should not be modified in any other way after calling message_tbskey_name
- name of they key, should be the same as the name known by the remove server/client