pub struct TBS(/* private fields */);
Available on crate feature
dnssec
only.Expand description
Data To Be Signed.
Implementations§
source§impl TBS
impl TBS
sourcepub fn from_rrsig<'a>(
rrsig: &Record<RRSIG>,
records: impl Iterator<Item = &'a Record>,
) -> ProtoResult<Self>
pub fn from_rrsig<'a>( rrsig: &Record<RRSIG>, records: impl Iterator<Item = &'a Record>, ) -> ProtoResult<Self>
Returns the to-be-signed serialization of the given record set using the information provided from the RRSIG record.
§Arguments
rrsig
- SIG or RRSIG record, which was produced from the RRSetrecords
- RRSet records to sign with the information in therrsig
§Return
binary hash of the RRSet with the information from the RRSIG record
sourcepub fn from_sig<'a>(
name: &Name,
dns_class: DNSClass,
sig: &SIG,
records: impl Iterator<Item = &'a Record>,
) -> ProtoResult<Self>
pub fn from_sig<'a>( name: &Name, dns_class: DNSClass, sig: &SIG, records: impl Iterator<Item = &'a Record>, ) -> ProtoResult<Self>
Returns the to-be-signed serialization of the given record set using the information provided from the SIG record.
§Arguments
name
- labels of the record to signdns_class
- DNSClass of the RRSet, i.e. INsig
- SIG or RRSIG record, which was produced from the RRSetrecords
- RRSet records to sign with the information in therrsig
§Return
binary hash of the RRSet with the information from the RRSIG record
sourcepub fn from_rrset(
rr_set: &RecordSet,
zone_class: DNSClass,
inception: OffsetDateTime,
expiration: OffsetDateTime,
signer: &SigSigner,
) -> ProtoResult<Self>
pub fn from_rrset( rr_set: &RecordSet, zone_class: DNSClass, inception: OffsetDateTime, expiration: OffsetDateTime, signer: &SigSigner, ) -> ProtoResult<Self>
Returns the to-be-signed serialization of the given record set.
§Arguments
rr_set
- RRSet to signzone_class
- DNSClass, i.e. IN, of the recordsinception
- the date/time when this hashed signature will become validexpiration
- the date/time when this hashed signature will expiresigner
- the signer to use for signing the RRSet
§Returns
the binary hash of the specified RRSet and associated information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TBS
impl RefUnwindSafe for TBS
impl Send for TBS
impl Sync for TBS
impl Unpin for TBS
impl UnwindSafe for TBS
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more