Struct bitcoin_hashes::hmac::Hmac [−][src]
#[repr(transparent)]pub struct Hmac<T: HashTrait>(_);Expand description
A hash computed from a RFC 2104 HMAC. Parameterized by the underlying hash function.
Trait Implementations
type Engine = HmacEngine<T>
type Engine = HmacEngine<T>
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write trait, and to never return errors under
any conditions. Read more
Produce a hash from the current state of a given engine
Unwraps the hash and returns the underlying byte array
Unwraps the hash and returns a reference to the underlying byte array
Constructs a hash from the underlying byte array
Flag indicating whether user-visible serializations of this hash
should be backward. For some reason Satoshi decided this should be
true for Sha256dHash, so here we are. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Hmac<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Hmac<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator