[][src]Enum trust_dns_client::rr::dnssec::DigestType

pub enum DigestType {
    SHA1,
    SHA256,
    SHA384,
    SHA512,
    ED25519,
}

This is the digest format for the

 0 Reserved - [RFC3658]
 1 SHA-1 MANDATORY [RFC3658]
 2 SHA-256 MANDATORY [RFC4509]
 3 GOST R 34.11-94 OPTIONAL [RFC5933]
 4 SHA-384 OPTIONAL [RFC6605]
 5 ED25519 [RFC draft-ietf-curdle-dnskey-eddsa-03]
 5-255 Unassigned -

Variants

SHA1

[RFC3658]

SHA256

[RFC4509]

SHA384

[RFC6605]

SHA512

Undefined

ED25519

This is a passthrough digest as ED25519 is self-packaged

Implementations

impl DigestType[src]

pub fn from_u8(value: u8) -> Result<DigestType, ProtoError>[src]

TODO: add an Unknown DigestType and make this infallible http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml

pub fn hash(self, &[u8]) -> Result<Vec<u8>, ProtoError>[src]

This will always error, enable openssl feature at compile time

Trait Implementations

impl Clone for DigestType[src]

impl Copy for DigestType[src]

impl Debug for DigestType[src]

impl Eq for DigestType[src]

impl From<Algorithm> for DigestType[src]

impl Hash for DigestType[src]

impl Ord for DigestType[src]

impl PartialEq<DigestType> for DigestType[src]

impl PartialOrd<DigestType> for DigestType[src]

impl StructuralEq for DigestType[src]

impl StructuralPartialEq for DigestType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,