pub enum FullLengthMac {
Hmac {
hash_alg: Hash,
},
CbcMac,
Cmac,
}
Expand description
Enumeration of untruncated MAC algorithms.
Variants
Hmac
Fields
hash_alg: Hash
Hash algorithm to use.
HMAC algorithm
CbcMac
The CBC-MAC construction over a block cipher.
Cmac
The CMAC construction over a block cipher.
Trait Implementations
sourceimpl Clone for FullLengthMac
impl Clone for FullLengthMac
sourcepub fn clone(&self) -> FullLengthMac
pub fn clone(&self) -> FullLengthMac
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FullLengthMac
impl Debug for FullLengthMac
sourceimpl<'de> Deserialize<'de> for FullLengthMac
impl<'de> Deserialize<'de> for FullLengthMac
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<FullLengthMac, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FullLengthMac, <__D as Deserializer<'de>>::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
sourcepub fn from(full_length_mac: FullLengthMac) -> Mac
pub fn from(full_length_mac: FullLengthMac) -> Mac
Performs the conversion.
sourceimpl PartialEq<FullLengthMac> for FullLengthMac
impl PartialEq<FullLengthMac> for FullLengthMac
sourcepub fn eq(&self, other: &FullLengthMac) -> bool
pub fn eq(&self, other: &FullLengthMac) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &FullLengthMac) -> bool
pub fn ne(&self, other: &FullLengthMac) -> bool
This method tests for !=
.
sourceimpl Serialize for FullLengthMac
impl Serialize for FullLengthMac
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl Zeroize for FullLengthMac
impl Zeroize for FullLengthMac
impl Copy for FullLengthMac
impl StructuralPartialEq for FullLengthMac
Auto Trait Implementations
impl RefUnwindSafe for FullLengthMac
impl Send for FullLengthMac
impl Sync for FullLengthMac
impl Unpin for FullLengthMac
impl UnwindSafe for FullLengthMac
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more