[][src]Struct bitcoin_hashes::hmac::HmacEngine

pub struct HmacEngine<T: HashTrait> { /* fields omitted */ }

Pair of underyling hash engines, used for the inner and outer hash of HMAC

Methods

impl<T: HashTrait> HmacEngine<T>[src]

pub fn new(key: &[u8]) -> HmacEngine<T>[src]

Construct a new keyed HMAC with the given key. We only support underlying hashes whose block sizes are ≤ 128 bytes; larger hashes will result in panics.

pub fn from_inner_engines(
    iengine: T::Engine,
    oengine: T::Engine
) -> HmacEngine<T>
[src]

A special constructor giving direct access to the underlying "inner" and "outer" engines.

Trait Implementations

impl<T: HashTrait> HashEngine for HmacEngine<T>[src]

type MidState = HmacMidState<T>

Byte array representing the internal state of the hash engine

impl<T: HashTrait> Default for HmacEngine<T>[src]

impl<T: Clone + HashTrait> Clone for HmacEngine<T> where
    T::Engine: Clone,
    T::Engine: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Unpin for HmacEngine<T> where
    <T as Hash>::Engine: Unpin

impl<T> Sync for HmacEngine<T> where
    <T as Hash>::Engine: Sync

impl<T> Send for HmacEngine<T> where
    <T as Hash>::Engine: Send

impl<T> UnwindSafe for HmacEngine<T> where
    <T as Hash>::Engine: UnwindSafe

impl<T> RefUnwindSafe for HmacEngine<T> where
    <T as Hash>::Engine: RefUnwindSafe

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<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]