Enum domain::iana::secalg::SecAlg
[−]
[src]
pub enum SecAlg { RsaMd5, Dh, Dsa, RsaSha1, DsaNsec3Sha1, RsaSha1Nsec3Sha1, RsaSha256, RsaSha512, EccGost, EcdsaP256Sha256, EcdsaP384Sha384, Indirect, PrivateDns, PrivateOid, Int(u8), }
See http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml#dns-sec-alg-numbers-1
Variants
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.
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 algorithm value given through its integer value.
Methods
impl SecAlg
[src]
fn from_int(value: u8) -> SecAlg
Returns the algorithm value for the given integer value.
fn to_int(self) -> u8
Returns the integer value for this algorithm value.
Trait Implementations
impl Clone for SecAlg
[src]
fn clone(&self) -> SecAlg
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for SecAlg
[src]
impl Debug for SecAlg
[src]
impl From<u8> for SecAlg
[src]
impl FromStr for SecAlg
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Returns the algorithm value for the given string.
Recognized are the mnemonics equivalent to the algorithm number not regarding case as well as decimal integer numbers.
impl Display for SecAlg
[src]
impl PartialEq for SecAlg
[src]
fn eq(&self, other: &SecAlg) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl PartialEq<u8> for SecAlg
[src]
fn eq(&self, other: &u8) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for SecAlg
[src]
impl PartialOrd for SecAlg
[src]
fn partial_cmp(&self, other: &SecAlg) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialOrd<u8> for SecAlg
[src]
fn partial_cmp(&self, other: &u8) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for SecAlg
[src]
fn cmp(&self, other: &SecAlg) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for SecAlg
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.