1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! ZONEMD IANA parameters.
//------------ ZonemdScheme --------------------------------------------------
int_enum! {
/// ZONEMD schemes.
///
/// This type selects the method by which data is collated and presented
/// as input to the hashing function for use with [ZONEMD].
///
/// For the currently registered values see the [IANA registration]. This
/// type is complete as of 2024-11-29.
///
/// [ZONEMD]: ../../../rdata/zonemd/index.html
/// [IANA registration]: https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#zonemd-schemes
=>
ZonemdScheme, u8;
/// Specifies that the SIMPLE scheme is used.
(SIMPLE => 1, "SIMPLE")
}
int_enum_str_decimal!(ZonemdScheme, u8);
int_enum_zonefile_fmt_decimal!(ZonemdScheme, "scheme");
//------------ ZonemdAlgorithm -----------------------------------------------
int_enum! {
/// ZONEMD algorithms.
///
/// This type selects the algorithm used to hash domain names for use with
/// the [ZONEMD].
///
/// For the currently registered values see the [IANA registration]. This
/// type is complete as of 2024-11-29.
///
/// [ZONEMD]: ../../../rdata/zonemd/index.html
/// [IANA registration]: https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#zonemd-hash-algorithms
=>
ZonemdAlgorithm, u8;
/// Specifies that the SHA-384 algorithm is used.
(SHA384 => 1, "SHA384")
/// Specifies that the SHA-512 algorithm is used.
(SHA512 => 2, "SHA512")
}
int_enum_str_decimal!(ZonemdAlgorithm, u8);
int_enum_zonefile_fmt_decimal!(ZonemdAlgorithm, "hash algorithm");