pub fn rrset_tbs(
name: &Name,
dns_class: DNSClass,
num_labels: u8,
type_covered: RecordType,
algorithm: Algorithm,
original_ttl: u32,
sig_expiration: u32,
sig_inception: u32,
key_tag: u16,
signer_name: &Name,
records: &[Record]
) -> ProtoResult<TBS>
This is supported on crate feature
dnssec
only.Expand description
Returns the to-be-signed serialization of the given record set.
Arguments
name
- RRset record namedns_class
- DNSClass, i.e. IN, of the recordsnum_labels
- number of labels in the name, needed to deal with*.example.com
type_covered
- RecordType of the RRSet being hashedalgorithm
- The Algorithm type used for the hashingoriginal_ttl
- Original TTL is the TTL as specified in the SOA zones RRSet associated recordsig_expiration
- the epoch seconds of when this hashed signature will expirekey_inception
- the epoch seconds of when this hashed signature will be validsigner_name
- label of the etity responsible for signing this hashrecords
- RRSet to hash
Returns
the binary hash of the specified RRSet and associated information