Trait domain::validate::DnskeyExt[][src]

pub trait DnskeyExt: Compose {
    fn digest<N: ToDname>(
        &self,
        dname: &N,
        algorithm: DigestAlg
    ) -> Result<Digest, AlgorithmError>; }

Extensions for DNSKEY record type.

Required methods

fn digest<N: ToDname>(
    &self,
    dname: &N,
    algorithm: DigestAlg
) -> Result<Digest, AlgorithmError>
[src]

Calculates a digest from DNSKEY.

See RFC 4034, Section 5.1.4:

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.
Loading content...

Implementors

impl<Octets> DnskeyExt for Dnskey<Octets> where
    Octets: AsRef<[u8]>, 
[src]

fn digest<N: ToDname>(
    &self,
    dname: &N,
    algorithm: DigestAlg
) -> Result<Digest, AlgorithmError>
[src]

Calculates a digest from DNSKEY.

See RFC 4034, Section 5.1.4:

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.
Loading content...