[−][src]Struct mundane::hmac::Hmac
A Hash-based Message Authentication Code (HMAC).
Hmac
is an HMAC over the hash function H
.
Methods
impl<H: Hasher> Hmac<H>
[src]
#[must_use]
pub fn new(key: &[u8]) -> Hmac<H>
[src]
Constructs a new HMAC.
pub fn update(&mut self, bytes: &[u8])
[src]
Adds bytes to the HMAC.
#[must_use]
pub fn finish(self) -> H::Digest
[src]
Returns the HMAC of the bytes added so far.
Trait Implementations
Auto Trait Implementations
impl<H> !Send for Hmac<H>
impl<H> Unpin for Hmac<H> where
H: Unpin,
H: Unpin,
impl<H> !Sync for Hmac<H>
impl<H> RefUnwindSafe for Hmac<H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
impl<H> UnwindSafe for Hmac<H> where
H: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,