pub struct Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,{ /* private fields */ }
Expand description
The Hmac
struct represents an HMAC using a given hash function D
.
Trait Implementations§
source§impl<D> Clone for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
impl<D> Clone for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
source§impl<D> Debug for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
D::BlockSize: ArrayLength<u8>,
impl<D> Debug for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
D::BlockSize: ArrayLength<u8>,
source§impl<D> Mac for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
impl<D> Mac for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
§type OutputSize = <D as FixedOutput>::OutputSize
type OutputSize = <D as FixedOutput>::OutputSize
Output size of the [
Mac
]source§fn finalize_reset(&mut self) -> Output<Self>
fn finalize_reset(&mut self) -> Output<Self>
source§impl<D> NewMac for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
impl<D> NewMac for Hmac<D>where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
§type KeySize = <D as BlockInput>::BlockSize
type KeySize = <D as BlockInput>::BlockSize
Key size in bytes with which cipher guaranteed to be initialized.
source§fn new(key: &GenericArray<u8, Self::KeySize>) -> Self
fn new(key: &GenericArray<u8, Self::KeySize>) -> Self
Initialize new MAC instance from key with fixed size.
source§fn new_from_slice(key: &[u8]) -> Result<Self, InvalidKeyLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidKeyLength>
Initialize new MAC instance from key with variable size. Read more