redfish_codegen/models/key_policy/v1_0_0/nvme_of_dh_group_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// The NVMe Diffie-Hellman (DH) groups that a key is allowed to use.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum NVMeoFDHGroupType {
7 /// This value shall indicate the 2048-bit Diffie-Hellman (DH) group as defined by the 'DH-HMAC-CHAP Diffie-Hellman group identifiers' figure in the NVMe Base Specification.
8 FFDHE2048,
9 /// This value shall indicate the 3072-bit Diffie-Hellman (DH) group as defined by the 'DH-HMAC-CHAP Diffie-Hellman group identifiers' figure in the NVMe Base Specification.
10 FFDHE3072,
11 /// This value shall indicate the 4096-bit Diffie-Hellman (DH) group as defined by the 'DH-HMAC-CHAP Diffie-Hellman group identifiers' figure in the NVMe Base Specification.
12 FFDHE4096,
13 /// This value shall indicate the 2048-bit Diffie-Hellman (DH) group as defined by the 'DH-HMAC-CHAP Diffie-Hellman group identifiers' figure in the NVMe Base Specification.
14 FFDHE6144,
15 /// This value shall indicate the 8192-bit Diffie-Hellman (DH) group as defined by the 'DH-HMAC-CHAP Diffie-Hellman group identifiers' figure in the NVMe Base Specification.
16 FFDHE8192,
17}
18
19#[allow(clippy::derivable_impls)]
20impl Default for NVMeoFDHGroupType {
21 fn default() -> NVMeoFDHGroupType {
22 NVMeoFDHGroupType::FFDHE2048
23 }
24}
25
26impl crate::Metadata<'static> for NVMeoFDHGroupType {
27 const JSON_SCHEMA: &'static str = "KeyPolicy.v1_0_0.json";
28}