Struct bitcoin_hashes::hmac::Hmac [−][src]
#[repr(transparent)]pub struct Hmac<T: HashTrait>(_);
A hash computed from a RFC 2104 HMAC. Parameterized by the underlying hash function.
Trait Implementations
impl<'de, T: HashTrait + Deserialize<'de>> Deserialize<'de> for Hmac<T>
[src]
impl<'de, T: HashTrait + Deserialize<'de>> Deserialize<'de> for Hmac<T>
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Hmac<T>, D::Error>
[src]
impl<T: HashTrait> Hash for Hmac<T>
[src]
impl<T: HashTrait> 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 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 as_inner(&self) -> &Self::Inner
[src]
fn from_inner(inner: T::Inner) -> Self
[src]
fn engine() -> Self::Engine
[src]
fn hash(data: &[u8]) -> Self
[src]
const DISPLAY_BACKWARD: bool
[src]
impl<T: PartialOrd + HashTrait> PartialOrd<Hmac<T>> for Hmac<T>
[src]
impl<T: PartialOrd + HashTrait> PartialOrd<Hmac<T>> for Hmac<T>
[src]impl<T: Copy + HashTrait> Copy for Hmac<T>
[src]
impl<T: Eq + HashTrait> Eq for Hmac<T>
[src]
impl<T: HashTrait> StructuralEq for Hmac<T>
[src]
impl<T: HashTrait> StructuralPartialEq for Hmac<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Hmac<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Hmac<T> where
T: Send,
T: Send,
impl<T> Sync for Hmac<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Hmac<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Hmac<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,