[−][src]Struct bitcoin_hashes::hmac::HmacEngine
Pair of underyling hash engines, used for the inner and outer hash of HMAC
Implementations
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]
T::Engine: Clone,
T::Engine: Clone,
fn clone(&self) -> HmacEngine<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: HashTrait> Default 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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,