[][src]Struct crypto::hmac::Hmac

pub struct Hmac<D> { /* fields omitted */ }

The Hmac struct represents an Hmac function - a Message Authentication Code using a Digest.

Methods

impl<D: Digest> Hmac<D>
[src]

Create a new Hmac instance.

Arguments

  • digest - The Digest to use.
  • key - The key to use.

Trait Implementations

impl<D: Digest> Mac for Hmac<D>
[src]

Process input data. Read more

Reset the Mac state to begin processing another input stream.

Obtain the result of a Mac computation as a MacResult.

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. Read more

Get the size of the Mac code, in bytes.

Auto Trait Implementations

impl<D> Send for Hmac<D> where
    D: Send

impl<D> Sync for Hmac<D> where
    D: Sync

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more