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.
pub fn parse<'a, Octs: AsRef<[u8]> + ?Sized>( parser: &mut Parser<'a, Octs>, ) -> Result<Self, ParseError>
pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Trait Implementations§
source§impl Ord for SecAlg
impl Ord for SecAlg
source§impl PartialOrd for SecAlg
impl PartialOrd for SecAlg
impl Copy for SecAlg
impl Eq for SecAlg
impl StructuralPartialEq for SecAlg
Auto Trait Implementations§
impl Freeze for SecAlg
impl RefUnwindSafe for SecAlg
impl Send for SecAlg
impl Sync for SecAlg
impl Unpin for SecAlg
impl UnwindSafe for SecAlg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)