Struct bitcoin_hashes::hmac::HmacEngine [−][src]
pub struct HmacEngine<T: HashTrait> { /* fields omitted */ }
Expand description
Pair of underyling hash engines, used for the inner and outer hash of HMAC
Implementations
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.
A special constructor giving direct access to the underlying “inner” and “outer” engines.
Trait Implementations
type MidState = HmacMidState<T>
type MidState = HmacMidState<T>
Byte array representing the internal state of the hash engine
Outputs the midstate of the hash engine. This function should not be used directly unless you really know what you’re doing. Read more
Length of the hash’s internal block size, in bytes
Return the number of bytes already n_bytes_hashed(inputted)
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
Mutably borrows from an owned value. Read more