pub struct HmacContext<A: HashAlgorithm> { /* private fields */ }Expand description
State of an HMAC computation in progress. Created by Symmetric::hmac_start.
Implementations§
Source§impl<A: HashAlgorithm> HmacContext<A>
impl<A: HashAlgorithm> HmacContext<A>
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Resets the context, keeping the key.
Afterwards the context is as if Symmetric::hmac_start had just returned it. This
is cheaper than starting a new one, since the key does not have to be processed again.
Trait Implementations§
Source§impl<A: Clone + HashAlgorithm> Clone for HmacContext<A>where
A::State: Clone,
impl<A: Clone + HashAlgorithm> Clone for HmacContext<A>where
A::State: Clone,
Source§impl<A: HashAlgorithm> DigestContext for HmacContext<A>
impl<A: HashAlgorithm> DigestContext for HmacContext<A>
Auto Trait Implementations§
impl<A> Forget for HmacContext<A>
impl<A> Freeze for HmacContext<A>
impl<A> Move for HmacContext<A>
impl<A> RefUnwindSafe for HmacContext<A>
impl<A> Send for HmacContext<A>
impl<A> Sync for HmacContext<A>
impl<A> Unpin for HmacContext<A>
impl<A> UnsafeUnpin for HmacContext<A>
impl<A> UnwindSafe for HmacContext<A>
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