[][src]Struct mundane::hmac::Hmac

#[must_use]
pub struct Hmac<H: Hasher> { /* fields omitted */ }

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

impl<H: Hasher> Debug for Hmac<H>[src]

Auto Trait Implementations

impl<H> !Send for Hmac<H>

impl<H> Unpin for Hmac<H> where
    H: Unpin

impl<H> !Sync for Hmac<H>

impl<H> RefUnwindSafe for Hmac<H> where
    H: RefUnwindSafe

impl<H> UnwindSafe for Hmac<H> where
    H: UnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]