[][src]Enum domain::base::iana::secalg::SecAlg

pub enum SecAlg {
    DeleteDs,
    RsaMd5,
    Dh,
    Dsa,
    RsaSha1,
    DsaNsec3Sha1,
    RsaSha1Nsec3Sha1,
    RsaSha256,
    RsaSha512,
    EccGost,
    EcdsaP256Sha256,
    EcdsaP384Sha384,
    Ed25519,
    Ed448,
    Indirect,
    PrivateDns,
    PrivateOid,
    Int(u8),
}

Security Algorithm Numbers.

These numbers are used in various security related record types.

For the currently registered values see the IANA registration.

Variants

DeleteDs

Delete DS

This algorithm is used in RFC 8087 to signal to the parent that a certain DS record should be deleted. It is not an actual algorithm and can neither be used in zone nor transaction signing.

RsaMd5

RSA/MD5

This algorithm was described in RFC 2537 and since has been deprecated due to weaknesses of the MD5 hash algorithm by RFC 3110 which suggests to use RSA/SHA1 instead.

This algorithm may not be used for zone signing but may be used for transaction security.

Dh

Diffie-Hellman

This algorithm is described in RFC 2539 for storing Diffie-Hellman (DH) keys in DNS resource records. It can not be used for zone signing but only for transaction security.

Dsa

DSA/SHA1

This algorithm is described in RFC 2536. It may be used both for zone signing and transaction security.

RsaSha1

RSA/SHA-1

This algorithm is described in RFC 3110. It may be used both for zone signing and transaction security. It is mandatory for DNSSEC implementations.

DsaNsec3Sha1

DSA-NSEC3-SHA1

This value is an alias for Dsa for use within NSEC3 records.

RsaSha1Nsec3Sha1

RSASHA1-NSEC3-SHA1

This value is an alias for RsaSha1 for use within NSEC3 records.

RsaSha256

RSA/SHA-256

This algorithm is described in RFC 5702. It may be used for zone signing only.

RsaSha512

RSA/SHA-512

This algorithm is described in RFC 5702. It may be used for zone signing only.

EccGost

GOST R 34.10-2001

This algorithm is described in RFC 5933. It may be used for zone signing only.

EcdsaP256Sha256

ECDSA Curve P-256 with SHA-256

This algorithm is described in RFC 6605. It may be used for zone signing only.

EcdsaP384Sha384

ECDSA Curve P-384 with SHA-384

This algorithm is described in RFC 6605. It may be used for zone signing only.

Ed25519

ED25519

This algorithm is described in RFC 8080.

Ed448

ED448

This algorithm is described in RFC 8080.

Indirect

Reserved for Indirect Keys

This value is reserved by RFC 4034.

PrivateDns

A private algorithm identified by a domain name.

This value is defined in RFC 4034.

PrivateOid

A private algorithm identified by a ISO OID.

This value is defined in RFC 4034.

Int(u8)

A raw value given through its integer.

Implementations

impl SecAlg[src]

pub fn from_int(value: u8) -> Self[src]

Returns a value from its raw integer value.

pub fn to_int(self) -> u8[src]

Returns the raw integer value for a value.

pub fn from_mnemonic(m: &[u8]) -> Option<Self>[src]

Returns a value from a well-defined mnemonic.

pub fn to_mnemonic(self) -> Option<&'static [u8]>[src]

Returns the mnemonic for this value if there is one.

This will also return a mnemonic if a well-defined variant is hidden in a Int variant.

impl SecAlg[src]

pub fn from_bytes(bytes: &[u8]) -> Option<Self>[src]

Trait Implementations

impl Clone for SecAlg[src]

impl Compose for SecAlg[src]

impl Copy for SecAlg[src]

impl Debug for SecAlg[src]

impl Display for SecAlg[src]

impl Eq for SecAlg[src]

impl<'a> From<&'a SecAlg> for u8[src]

impl From<SecAlg> for u8[src]

impl From<u8> for SecAlg[src]

impl FromStr for SecAlg[src]

type Err = FromStrError

The associated error which can be returned from parsing.

impl Hash for SecAlg[src]

impl Ord for SecAlg[src]

impl<Ref: AsRef<[u8]>> Parse<Ref> for SecAlg[src]

impl PartialEq<SecAlg> for SecAlg[src]

impl PartialEq<SecAlg> for u8[src]

impl PartialEq<u8> for SecAlg[src]

impl PartialOrd<SecAlg> for SecAlg[src]

impl PartialOrd<SecAlg> for u8[src]

impl PartialOrd<u8> for SecAlg[src]

Auto Trait Implementations

impl RefUnwindSafe for SecAlg

impl Send for SecAlg

impl Sync for SecAlg

impl Unpin for SecAlg

impl UnwindSafe for SecAlg

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> ToString for T where
    T: Display + ?Sized
[src]

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>,