domain/base/iana/
nsec3.rs

1//! NSEC3 hash algorithms.
2
3//------------ Nsec3HashAlg --------------------------------------------------
4
5int_enum! {
6    /// NSEC3 hash algorithm numbers.
7    ///
8    /// This type selects the algorithm used to hash domain names for use with
9    /// the [NSEC3].
10    ///
11    /// For the currently registered values see the [IANA registration]. This
12    /// type is complete as of 2008-03-05.
13    ///
14    /// [NSEC3]: ../../../rdata/rfc5155/index.html
15    /// [IANA registration]: https://www.iana.org/assignments/dnssec-nsec3-parameters/dnssec-nsec3-parameters.xhtml#dnssec-nsec3-parameters-3
16    =>
17    Nsec3HashAlg, u8;
18
19    /// Specifies that the SHA-1 hash function is used.
20    (Sha1 => 1, b"SHA-1")
21}
22
23int_enum_str_decimal!(Nsec3HashAlg, u8);