Function trust_dns_proto::rr::dnssec::rdata::tsig::signed_bitmessage_to_buf
source · [−]pub fn signed_bitmessage_to_buf(
previous_hash: Option<&[u8]>,
message: &[u8],
first_message: bool
) -> ProtoResult<(Vec<u8>, Record)>
Available on crate feature
dnssec
only.Expand description
Return the byte-message that would have been used to generate 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 byte-message to authenticate, with included TSIG