domain_core/iana/
nsec3.rs

1//! NSEC3 Hash Algorithms
2
3
4//------------ Nsec3HashAlg --------------------------------------------------
5
6int_enum!{
7    /// NSEC3 Hash Algorithm Numbers
8    ///
9    /// For the currently registered values see the [IANA registration]. This
10    /// type is complete as of 2008-03-05.
11    ///
12    /// [IANA registration]: https://www.iana.org/assignments/dnssec-nsec3-parameters/dnssec-nsec3-parameters.xhtml#dnssec-nsec3-parameters-3
13    =>
14    Nsec3HashAlg, u8;
15
16    (Sha1 => 1, b"SHA-1")
17}
18
19int_enum_str_decimal!(Nsec3HashAlg, u8);
20