[][src]Struct nettle::mac::Hmac

pub struct Hmac<H: Hash + NettleHash> { /* fields omitted */ }

Hashed message authentication code.

Implementations

impl<H: NettleHash> Hmac<H>[src]

pub fn with_key(key: &[u8]) -> Self[src]

Create a new MAC instance with secret key.

Trait Implementations

impl<H: NettleHash> Mac for Hmac<H>[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for Hmac<H> where
    <H as NettleHash>::Context: RefUnwindSafe

impl<H> Send for Hmac<H> where
    <H as NettleHash>::Context: Send

impl<H> Sync for Hmac<H> where
    <H as NettleHash>::Context: Sync

impl<H> Unpin for Hmac<H> where
    <H as NettleHash>::Context: Unpin

impl<H> UnwindSafe for Hmac<H> where
    <H as NettleHash>::Context: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.