Lines Matching refs:HmacAlgorithm
8 pub(crate) enum HmacAlgorithm { enum
16 impl fmt::Display for HmacAlgorithm { implementation
19 HmacAlgorithm::HmacResv1 => "HMAC Reserved (0x00)", in fmt()
20 HmacAlgorithm::HmacSha128 => "HMAC SHA-128", in fmt()
21 HmacAlgorithm::HmacResv2 => "HMAC Reserved (0x02)", in fmt()
22 HmacAlgorithm::HmacSha256 => "HMAC SHA-256", in fmt()
29 impl From<u16> for HmacAlgorithm { implementation
30 fn from(v: u16) -> HmacAlgorithm { in from() argument
32 0 => HmacAlgorithm::HmacResv1, in from()
33 1 => HmacAlgorithm::HmacSha128, in from()
34 2 => HmacAlgorithm::HmacResv2, in from()
35 3 => HmacAlgorithm::HmacSha256, in from()
36 _ => HmacAlgorithm::Unknown, in from()
43 pub(crate) available_algorithms: Vec<HmacAlgorithm>,
78 let a: HmacAlgorithm = reader.get_u16().into(); in unmarshal()
79 if a == HmacAlgorithm::HmacSha128 || a == HmacAlgorithm::HmacSha256 { in unmarshal()