hickory_proto::dnssec::rdata::tsig

Function signed_bitmessage_to_buf

Source
pub fn signed_bitmessage_to_buf(
    previous_hash: Option<&[u8]>,
    message: &[u8],
    first_message: bool,
) -> Result<(Vec<u8>, Record), ProtoError>
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 query
  • message - the byte-message to authenticate, with included TSIG