Trait domain::validate::DnskeyExt [−][src]
Extensions for DNSKEY record type.
Required methods
fn digest<N: ToDname>(
&self,
dname: &N,
algorithm: DigestAlg
) -> Result<Digest, AlgorithmError>
[src]
&self,
dname: &N,
algorithm: DigestAlg
) -> Result<Digest, AlgorithmError>
Calculates a digest from DNSKEY.
5.1.4. The Digest Field
The digest is calculated by concatenating the canonical form of the
fully qualified owner name of the DNSKEY RR with the DNSKEY RDATA,
and then applying the digest algorithm.
digest = digest_algorithm( DNSKEY owner name | DNSKEY RDATA);
"|" denotes concatenation
DNSKEY RDATA = Flags | Protocol | Algorithm | Public Key.
Implementors
impl<Octets> DnskeyExt for Dnskey<Octets> where
Octets: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
fn digest<N: ToDname>(
&self,
dname: &N,
algorithm: DigestAlg
) -> Result<Digest, AlgorithmError>
[src]
&self,
dname: &N,
algorithm: DigestAlg
) -> Result<Digest, AlgorithmError>
Calculates a digest from DNSKEY.
5.1.4. The Digest Field
The digest is calculated by concatenating the canonical form of the
fully qualified owner name of the DNSKEY RR with the DNSKEY RDATA,
and then applying the digest algorithm.
digest = digest_algorithm( DNSKEY owner name | DNSKEY RDATA);
"|" denotes concatenation
DNSKEY RDATA = Flags | Protocol | Algorithm | Public Key.