Enum psa_crypto::types::algorithm::Mac [−][src]
pub enum Mac {
FullLength(FullLengthMac),
Truncated {
mac_alg: FullLengthMac,
mac_length: usize,
},
}
Expand description
Enumeration of message authentication code algorithms supported.
Variants
FullLength(FullLengthMac)
Tuple Fields
Untruncated MAC algorithm
Truncated
Fields
mac_alg: FullLengthMac
The MAC algorithm to truncate.
mac_length: usize
Desired length of the truncated MAC in bytes.
Truncated MAC algorithm
Implementations
Trait Implementations
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Mac
impl UnwindSafe for Mac
Blanket Implementations
Mutably borrows from an owned value. Read more