Struct bitcoin_hashes::hmac::Hmac
source · pub struct Hmac<T: Hash>(_);
Expand description
A hash computed from a RFC 2104 HMAC. Parameterized by the underlying hash function.
Trait Implementations
sourceimpl<T: Hash> Hash for Hmac<T>
impl<T: Hash> Hash for Hmac<T>
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 moresourcefn engine() -> HmacEngine<T> ⓘ
fn engine() -> HmacEngine<T> ⓘ
Construct a new engine
sourcefn from_engine(e: HmacEngine<T>) -> Hmac<T>
fn from_engine(e: HmacEngine<T>) -> Hmac<T>
Produce a hash from the current state of a given engine
sourcefn block_size() -> usize
fn block_size() -> usize
Length of the hash’s internal block size, in bytes
sourcefn display_backward() -> bool
fn display_backward() -> bool
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 moresourceimpl<T: PartialEq + Hash> PartialEq<Hmac<T>> for Hmac<T>
impl<T: PartialEq + Hash> PartialEq<Hmac<T>> for Hmac<T>
impl<T: Copy + Hash> Copy for Hmac<T>
impl<T: Eq + Hash> Eq for Hmac<T>
impl<T: Hash> StructuralEq for Hmac<T>
impl<T: Hash> StructuralPartialEq for Hmac<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Hmac<T>where
T: RefUnwindSafe,
impl<T> Send for Hmac<T>where
T: Send,
impl<T> Sync for Hmac<T>where
T: Sync,
impl<T> Unpin for Hmac<T>where
T: Unpin,
impl<T> UnwindSafe for Hmac<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more