[−][src]Struct hmac::Hmac
The Hmac
struct represents an HMAC using a given hash function D
.
Trait Implementations
impl<D> Clone for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
[src]
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
fn clone(&self) -> Hmac<D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D> Debug for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
D::BlockSize: ArrayLength<u8>,
[src]
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
D::BlockSize: ArrayLength<u8>,
impl<D> Mac for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
type OutputSize = D::OutputSize
Output size of the [[Mac
]]
fn update(&mut self, data: &[u8])
[src]
fn finalize(self) -> Output<Self>
[src]
fn reset(&mut self)
[src]
fn finalize_reset(&mut self) -> Output<Self>
[src]
fn verify(self, tag: &[u8]) -> Result<(), MacError>
[src]
impl<D> NewMac for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
type KeySize = D::BlockSize
Key size in bytes with which cipher guaranteed to be initialized.
fn new(key: &GenericArray<u8, Self::KeySize>) -> Self
[src]
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
[src]
Auto Trait Implementations
impl<D> Send for Hmac<D> where
D: Send,
D: Send,
impl<D> Sync for Hmac<D> where
D: Sync,
D: Sync,
impl<D> Unpin for Hmac<D> where
D: Unpin,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
D: Unpin,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,