pub enum AuthMechanism {
None,
Lls,
HlsManufacturer,
HlsMd5,
HlsSha1,
HlsGmac,
HlsSha256,
HlsEcdsa,
HlsGostCmac,
HlsGostStreebog,
HlsGostSignature,
}Expand description
An HLS/LLS authentication mechanism (mechanism_id 0..10).
Mechanisms 0..7 are defined by IEC 62056-5-3 / the DLMS Green Book; mechanisms 8..10 are the Russian GOST profile of Р 1323565.1, §7.5.
Variants§
None
(0) No authentication (lowest level security).
Lls
(1) Low Level Security — password.
HlsManufacturer
(2) HLS, manufacturer-specific.
HlsMd5
(3) HLS with MD5 (not recommended).
HlsSha1
(4) HLS with SHA-1 (not recommended).
HlsGmac
(5) HLS with GMAC.
HlsSha256
(6) HLS with SHA-256.
HlsEcdsa
(7) HLS with ECDSA.
HlsGostCmac
(8) HLS CMAC — Kuznyechik CMAC (GOST, Р 1323565.1).
HlsGostStreebog
(9) HLS GOST34112018-256 — Streebog-256 hash (GOST, Р 1323565.1).
HlsGostSignature
(10) HLS GOST34102018-256 — GOST 34.10 signature (GOST, Р 1323565.1).
Implementations§
Trait Implementations§
Source§impl Clone for AuthMechanism
impl Clone for AuthMechanism
Source§fn clone(&self) -> AuthMechanism
fn clone(&self) -> AuthMechanism
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AuthMechanism
Source§impl Debug for AuthMechanism
impl Debug for AuthMechanism
Source§impl<'de> Deserialize<'de> for AuthMechanism
impl<'de> Deserialize<'de> for AuthMechanism
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthMechanism
Source§impl PartialEq for AuthMechanism
impl PartialEq for AuthMechanism
Source§impl Serialize for AuthMechanism
impl Serialize for AuthMechanism
impl StructuralPartialEq for AuthMechanism
Auto Trait Implementations§
impl Freeze for AuthMechanism
impl RefUnwindSafe for AuthMechanism
impl Send for AuthMechanism
impl Sync for AuthMechanism
impl Unpin for AuthMechanism
impl UnsafeUnpin for AuthMechanism
impl UnwindSafe for AuthMechanism
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more