Enum psa_crypto::types::algorithm::Mac
source · pub enum Mac {
FullLength(FullLengthMac),
Truncated {
mac_alg: FullLengthMac,
mac_length: usize,
},
}
Expand description
Enumeration of message authentication code algorithms supported.
Variants§
FullLength(FullLengthMac)
Untruncated MAC algorithm
Truncated
Fields
§
mac_alg: FullLengthMac
The MAC algorithm to truncate.
Truncated MAC algorithm
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mac
impl<'de> Deserialize<'de> for Mac
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
source§impl From<FullLengthMac> for Mac
impl From<FullLengthMac> for Mac
source§fn from(full_length_mac: FullLengthMac) -> Self
fn from(full_length_mac: FullLengthMac) -> Self
Converts to this type from the input type.
source§impl From<Mac> for psa_algorithm_t
impl From<Mac> for psa_algorithm_t
impl Copy for Mac
impl Eq for Mac
impl StructuralEq for Mac
impl StructuralPartialEq for Mac
Auto Trait Implementations§
impl RefUnwindSafe for Mac
impl Send for Mac
impl Sync for Mac
impl Unpin for Mac
impl UnwindSafe for Mac
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