pub struct StreamingHashHmacSession<H, F>{ /* private fields */ }Expand description
Incremental HMAC session.
Created by StreamingHashHmac::streaming_session. Maintains the inner
hasher state pre-loaded with ipad_key, ready for message data via
update. Calling finalize computes
the outer hash and returns the final HMAC tag.
Implementations§
Source§impl<H, F> StreamingHashHmacSession<H, F>
impl<H, F> StreamingHashHmacSession<H, F>
Sourcepub fn finalize(self, out: &mut [u8]) -> Result<(), CryptoError>
pub fn finalize(self, out: &mut [u8]) -> Result<(), CryptoError>
Finalise the inner hash and compute the outer HMAC, writing the tag into
out.
Consumes self.
§Errors
Returns CryptoError::BufferTooSmall if out.len() < output_len.
Auto Trait Implementations§
impl<H, F> Freeze for StreamingHashHmacSession<H, F>
impl<H, F> RefUnwindSafe for StreamingHashHmacSession<H, F>where
H: RefUnwindSafe,
F: RefUnwindSafe,
impl<H, F> Send for StreamingHashHmacSession<H, F>
impl<H, F> Sync for StreamingHashHmacSession<H, F>
impl<H, F> Unpin for StreamingHashHmacSession<H, F>
impl<H, F> UnsafeUnpin for StreamingHashHmacSession<H, F>where
H: UnsafeUnpin,
F: UnsafeUnpin,
impl<H, F> UnwindSafe for StreamingHashHmacSession<H, F>where
H: UnwindSafe,
F: UnwindSafe,
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