[][src]Struct bitcoin_hashes::hmac::Hmac

pub struct Hmac<T: Hash>(_);

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

fn block_size() -> usize
[src]

Length of the hash's internal block size, in bytes

fn hash(data: &[u8]) -> Self
[src]

Hashes some bytes

fn 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: Eq + Hash> Eq for Hmac<T>
[src]

impl<T: PartialOrd + Hash> PartialOrd<Hmac<T>> for Hmac<T>
[src]

impl<T: Copy + Hash> Copy for Hmac<T>
[src]

impl<T: Default + Hash> Default 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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Ord + Hash> Ord for Hmac<T>
[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

impl<T: Hash> Debug for Hmac<T>
[src]

impl<T: Hash> Display for Hmac<T>
[src]

impl<T: Hash> LowerHex for Hmac<T>
[src]

impl<T: Hash + Hash> Hash for Hmac<T>
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Hash> Index<usize> for Hmac<T>
[src]

type Output = u8

The returned type after indexing.

impl<T: Hash> Index<Range<usize>> for Hmac<T>
[src]

type Output = [u8]

The returned type after indexing.

impl<T: Hash> Index<RangeFrom<usize>> for Hmac<T>
[src]

type Output = [u8]

The returned type after indexing.

impl<T: Hash> Index<RangeTo<usize>> for Hmac<T>
[src]

type Output = [u8]

The returned type after indexing.

impl<T: Hash> Index<RangeFull> for Hmac<T>
[src]

type Output = [u8]

The returned type after indexing.

impl<T: Hash> Borrow<[u8]> for Hmac<T>
[src]

Auto Trait Implementations

impl<T> Send for Hmac<T> where
    T: Send

impl<T> Sync for Hmac<T> where
    T: Sync

Blanket Implementations

impl<T> ToHex for T where
    T: LowerHex
[src]

fn to_hex(&Self) -> String
[src]

Outputs the hash in hexadecimal form

impl<'a, T> FromHex for T where
    T: Hash
[src]

fn from_hex(&str) -> Result<T, Error>
[src]

Parses a hex string as a hash object

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]