domain_core/iana/digestalg.rs
1//! Delegation Signer Digest Algorithm Numbers
2
3
4//------------ DigestAlg -----------------------------------------------------
5
6int_enum!{
7 /// Delegation Signer Digest Algorithm Numbers
8 ///
9 /// These numbers are used in the DS resource record to specify how the
10 /// key digest in the record has been generated.
11 ///
12 /// For the currently registered values see the [IANA registration].
13 /// This type is complete as of the registry update of 2012-04-13.
14 ///
15 /// [IANA registration]: https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml#ds-rr-types-1
16 =>
17 DigestAlg, u8;
18
19 (Sha1 => 1, b"SHA-1")
20 (Sha256 => 2, b"SHA-256")
21 (Gost => 3, b"GOST R 34.11-94")
22 (Sha384 => 4, b"SHA-384")
23}
24
25int_enum_str_decimal!(DigestAlg, u8);
26