Struct bitcoin_hashes::hmac::HmacEngine [−][src]
pub struct HmacEngine<T: HashTrait> { /* fields omitted */ }
Pair of underyling hash engines, used for the inner and outer hash of HMAC
Implementations
impl<T: HashTrait> HmacEngine<T>
[src]
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]
iengine: T::Engine,
oengine: T::Engine
) -> HmacEngine<T>
A special constructor giving direct access to the underlying “inner” and “outer” engines.
Trait Implementations
impl<T: Clone + HashTrait> Clone for HmacEngine<T> where
T::Engine: Clone,
T::Engine: Clone,
[src]
impl<T: Clone + HashTrait> Clone for HmacEngine<T> where
T::Engine: Clone,
T::Engine: Clone,
[src]fn clone(&self) -> HmacEngine<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: HashTrait> HashEngine for HmacEngine<T>
[src]
impl<T: HashTrait> HashEngine for HmacEngine<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for HmacEngine<T> where
<T as Hash>::Engine: RefUnwindSafe,
<T as Hash>::Engine: RefUnwindSafe,
impl<T> Send for HmacEngine<T> where
<T as Hash>::Engine: Send,
<T as Hash>::Engine: Send,
impl<T> Sync for HmacEngine<T> where
<T as Hash>::Engine: Sync,
<T as Hash>::Engine: Sync,
impl<T> Unpin for HmacEngine<T> where
<T as Hash>::Engine: Unpin,
<T as Hash>::Engine: Unpin,
impl<T> UnwindSafe for HmacEngine<T> where
<T as Hash>::Engine: UnwindSafe,
<T as Hash>::Engine: UnwindSafe,