Struct hmac::Hmac [−][src]
The Hmac
struct represents an HMAC using a given hash function D
.
Trait Implementations
impl<D> Clone for Hmac<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
[src]
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
impl<D> Debug for Hmac<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
D::BlockSize: ArrayLength<u8>,
[src]
D: Input + BlockInput + FixedOutput + Reset + Default + Clone + Debug,
D::BlockSize: ArrayLength<u8>,
impl<D> Mac for Hmac<D> where
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
D: Input + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
type OutputSize = D::OutputSize
type KeySize = D::BlockSize
fn new(key: &GenericArray<u8, Self::KeySize>) -> Self
[src]
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
[src]
fn input(&mut self, data: &[u8])
[src]
fn result(self) -> MacResult<D::OutputSize>
[src]
fn reset(&mut self)
[src]
pub fn result_reset(&mut self) -> MacResult<Self::OutputSize>
pub fn verify(self, code: &[u8]) -> Result<(), MacError>
Auto Trait Implementations
impl<D> RefUnwindSafe for Hmac<D> where
D: RefUnwindSafe,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
D: RefUnwindSafe,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D> Send for Hmac<D> where
D: Send,
D: Send,
impl<D> Sync for Hmac<D> where
D: Sync,
D: Sync,
impl<D> Unpin for Hmac<D> where
D: Unpin,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
D: Unpin,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for Hmac<D> where
D: UnwindSafe,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
D: UnwindSafe,
<<D as BlockInput>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,