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: FullLengthMacThe MAC algorithm to truncate.
mac_length: usizeDesired length of the truncated MAC in bytes.
Truncated MAC algorithm
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Mac
impl<'de> Deserialize<'de> for Mac
sourcefn 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
sourceimpl From<FullLengthMac> for Mac
impl From<FullLengthMac> for Mac
sourcefn from(full_length_mac: FullLengthMac) -> Self
fn from(full_length_mac: FullLengthMac) -> Self
Converts to this type from the input type.
sourceimpl From<Mac> for psa_algorithm_t
impl From<Mac> for psa_algorithm_t
sourceimpl PartialEq<Mac> for Mac
impl PartialEq<Mac> for Mac
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more