[−][src]Struct bitcoin_hashes::hmac::Hmac
A hash computed from a RFC 2104 HMAC. Parameterized by the underlying hash function.
Trait Implementations
impl<T: Hash> Hash for Hmac<T>
[src]
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
type Inner = T::Inner
The byte array that represents the hash internally
ⓘImportant traits for HmacEngine<T>fn engine() -> HmacEngine<T>
[src]
fn from_engine(e: HmacEngine<T>) -> Hmac<T>
[src]
const LEN: usize
[src]
fn from_slice(sl: &[u8]) -> Result<Hmac<T>, Error>
[src]
fn into_inner(self) -> Self::Inner
[src]
fn hash(data: &[u8]) -> Self
[src]
Hashes some bytes
const DISPLAY_BACKWARD: bool
[src]
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
impl<T: Ord + Hash> Ord for Hmac<T>
[src]
fn cmp(&self, other: &Hmac<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Returns max if self is greater than max, and min if self is less than min. Otherwise this will return self. Panics if min > max. Read more
impl<T: Eq + Hash> Eq for Hmac<T>
[src]
impl<T: PartialOrd + Hash> PartialOrd<Hmac<T>> for Hmac<T>
[src]
fn partial_cmp(&self, other: &Hmac<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Hmac<T>) -> bool
[src]
fn le(&self, other: &Hmac<T>) -> bool
[src]
fn gt(&self, other: &Hmac<T>) -> bool
[src]
fn ge(&self, other: &Hmac<T>) -> bool
[src]
impl<T: Default + Hash> Default for Hmac<T>
[src]
impl<T: Copy + Hash> Copy for Hmac<T>
[src]
impl<T: PartialEq + Hash> PartialEq<Hmac<T>> for Hmac<T>
[src]
impl<T: Clone + Hash> Clone for Hmac<T>
[src]
fn clone(&self) -> Hmac<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Hash> LowerHex for Hmac<T>
[src]
impl<T: Hash> Debug for Hmac<T>
[src]
impl<T: Hash> Index<usize> for Hmac<T>
[src]
impl<T: Hash> Index<Range<usize>> for Hmac<T>
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8]
[src]
impl<T: Hash> Index<RangeFrom<usize>> for Hmac<T>
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8]
[src]
impl<T: Hash> Index<RangeTo<usize>> for Hmac<T>
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &[u8]
[src]
impl<T: Hash> Index<RangeFull> for Hmac<T>
[src]
impl<T: Hash + Hash> Hash for Hmac<T>
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Hash> Display for Hmac<T>
[src]
impl<T: Hash> Borrow<[u8]> for Hmac<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToHex for T where
T: LowerHex,
[src]
T: LowerHex,
impl<T> FromHex for T where
T: Hash,
[src]
T: Hash,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,