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
Untruncated MAC algorithm
Tuple Fields of FullLength
Truncated MAC algorithm
Fields of Truncated
mac_alg: FullLengthMacThe MAC algorithm to truncate.
mac_length: usizeDesired length of the truncated MAC in bytes.
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