[][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.

Trait Implementations

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

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

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

type MidState = HmacMidState<T>

Byte array representing the internal state of the hash engine

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.