pub struct Hmac<D> { /* private fields */ }
Expand description
The Hmac struct represents an Hmac function - a Message Authentication Code using a Digest.
Implementations§
Trait Implementations§
Source§impl<D: Digest> Mac for Hmac<D>
impl<D: Digest> Mac for Hmac<D>
Source§fn raw_result(&mut self, output: &mut [u8])
fn raw_result(&mut self, output: &mut [u8])
Obtain the result of a Mac computation as u8. This method should be used very carefully
since incorrect use of the Mac code could result in permitting a timing attack which defeats
the security provided by a Mac function.
Source§fn output_bytes(&self) -> usize
fn output_bytes(&self) -> usize
Get the size of the Mac code, in bytes.
Auto Trait Implementations§
impl<D> Freeze for Hmac<D>where
D: Freeze,
impl<D> RefUnwindSafe for Hmac<D>where
D: RefUnwindSafe,
impl<D> Send for Hmac<D>where
D: Send,
impl<D> Sync for Hmac<D>where
D: Sync,
impl<D> Unpin for Hmac<D>where
D: Unpin,
impl<D> UnwindSafe for Hmac<D>where
D: 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