pub struct SecAlg(/* private fields */);Expand description
Security Algorithm Numbers.
These numbers are used in various security related record types.
For the currently registered values see the IANA registration.
Implementations§
Source§impl SecAlg
impl SecAlg
Sourcepub const DELETE: SecAlg
pub const DELETE: SecAlg
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.
Sourcepub const RSAMD5: SecAlg
pub const RSAMD5: SecAlg
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.
Sourcepub const DH: SecAlg
pub const DH: SecAlg
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.
Sourcepub const DSA: SecAlg
pub const DSA: SecAlg
DSA/SHA1
This algorithm is described in RFC 2536. It may be used both for zone signing and transaction security.
Sourcepub const RSASHA1: SecAlg
pub const RSASHA1: SecAlg
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.
Sourcepub const DSA_NSEC3_SHA1: SecAlg
pub const DSA_NSEC3_SHA1: SecAlg
DSA-NSEC3-SHA1
This value is an alias for Dsa for use within NSEC3 records.
Sourcepub const RSASHA1_NSEC3_SHA1: SecAlg
pub const RSASHA1_NSEC3_SHA1: SecAlg
RSASHA1-NSEC3-SHA1
This value is an alias for RsaSha1 for use within NSEC3 records.
Sourcepub const RSASHA256: SecAlg
pub const RSASHA256: SecAlg
RSA/SHA-256
This algorithm is described in RFC 5702. It may be used for zone signing only.
Sourcepub const RSASHA512: SecAlg
pub const RSASHA512: SecAlg
RSA/SHA-512
This algorithm is described in RFC 5702. It may be used for zone signing only.
Sourcepub const ECC_GOST: SecAlg
pub const ECC_GOST: SecAlg
GOST R 34.10-2001
This algorithm is described in RFC 5933. It may be used for zone signing only.
Sourcepub const ECDSAP256SHA256: SecAlg
pub const ECDSAP256SHA256: SecAlg
ECDSA Curve P-256 with SHA-256
This algorithm is described in RFC 6605. It may be used for zone signing only.
Sourcepub const ECDSAP384SHA384: SecAlg
pub const ECDSAP384SHA384: SecAlg
ECDSA Curve P-384 with SHA-384
This algorithm is described in RFC 6605. It may be used for zone signing only.
Sourcepub const PRIVATEDNS: SecAlg
pub const PRIVATEDNS: SecAlg
A private algorithm identified by a domain name.
This value is defined in RFC 4034.
Sourcepub const PRIVATEOID: SecAlg
pub const PRIVATEOID: SecAlg
A private algorithm identified by a ISO OID.
This value is defined in RFC 4034.
Source§impl SecAlg
impl SecAlg
pub const COMPOSE_LEN: u16 = 1u16
Sourcepub fn from_mnemonic(m: &[u8]) -> Option<Self>
pub fn from_mnemonic(m: &[u8]) -> Option<Self>
Returns a value from a well-defined mnemonic.
Sourcepub const fn to_mnemonic(self) -> Option<&'static [u8]>
pub const fn to_mnemonic(self) -> Option<&'static [u8]>
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.