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
use ;
// TODO: Only Aes256Gcm supported for initial commit, further implementations are WIP
/// An enumeration representing various hash algorithms supported in this application.
///
/// This enum provides a set of predefined constants that correspond to specific cryptographic hash algorithms.
/// Each variant is assigned a unique discriminant value which can be used in mapping or serialization tasks.
///
/// # Variants
///
/// * `Sha224` - Represents the SHA-224 hash algorithm.
/// * `Sha512_224` - Represents the SHA-512/224 hash algorithm.
/// * `Sha256` - Represents the SHA-256 hash algorithm.
/// * `Sha512_256` - Represents the SHA-512/256 hash algorithm.
/// * `Sha384` - Represents the SHA-384 hash algorithm.
/// * `Sha512` - Represents the SHA-512 hash algorithm.
///
/// # Example
///
/// ```rust
/// use my_crate::HashAlgorithm;
///
/// let algorithm = HashAlgorithm::Sha256;
///
/// match algorithm {
/// HashAlgorithm::Sha256 => println!("SHA-256 selected."),
/// _ => println!("Another hash algorithm selected."),
/// }
/// ```