pub enum FullLengthMac {
Hmac {
hash_alg: Hash,
},
CbcMac,
Cmac,
}Expand description
Enumeration of untruncated MAC algorithms.
Variants§
Hmac
HMAC algorithm
CbcMac
The CBC-MAC construction over a block cipher.
Cmac
The CMAC construction over a block cipher.
Trait Implementations§
Source§impl Clone for FullLengthMac
impl Clone for FullLengthMac
Source§fn clone(&self) -> FullLengthMac
fn clone(&self) -> FullLengthMac
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FullLengthMac
impl Debug for FullLengthMac
Source§impl<'de> Deserialize<'de> for FullLengthMac
impl<'de> Deserialize<'de> for FullLengthMac
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<FullLengthMac> for psa_algorithm_t
Available on crate feature interface only.
impl From<FullLengthMac> for psa_algorithm_t
Available on crate feature
interface only.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 PartialEq for FullLengthMac
impl PartialEq for FullLengthMac
Source§impl Serialize for FullLengthMac
impl Serialize for FullLengthMac
Source§impl TryFrom<u32> for FullLengthMac
Available on crate feature interface only.
impl TryFrom<u32> for FullLengthMac
Available on crate feature
interface only.Source§impl Zeroize for FullLengthMac
impl Zeroize for FullLengthMac
impl Copy for FullLengthMac
impl Eq for FullLengthMac
impl StructuralPartialEq for FullLengthMac
Auto Trait Implementations§
impl Freeze for FullLengthMac
impl RefUnwindSafe for FullLengthMac
impl Send for FullLengthMac
impl Sync for FullLengthMac
impl Unpin for FullLengthMac
impl UnsafeUnpin for FullLengthMac
impl UnwindSafe for FullLengthMac
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