pub struct Hmac<D: Digest> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<D: Digest> Digest for Hmac<D>
impl<D: Digest> Digest for Hmac<D>
const DIGEST_NAME: &'static str = "HMAC"
const OUTPUT_LEN: usize = D::OUTPUT_LEN
const BLOCK_LEN: usize = D::BLOCK_LEN
type Output = <D as Digest>::Output
fn new() -> Self
fn input(&mut self, data: impl AsRef<[u8]>)
fn finalize(self) -> Self::Output
fn with_output_slice(slice: &[u8]) -> Option<Self>
fn digest(data: impl AsRef<[u8]>) -> Self::Output
fn digest_concat( data: impl IntoIterator<Item = impl AsRef<[u8]>> ) -> Self::Output
source§impl<D: PartialEq + Digest> PartialEq for Hmac<D>
impl<D: PartialEq + Digest> PartialEq for Hmac<D>
impl<D: Eq + Digest> Eq for Hmac<D>
impl<D: Digest> StructuralPartialEq for Hmac<D>
Auto Trait Implementations§
impl<D> Freeze for Hmac<D>where
D: Freeze,
impl<D> RefUnwindSafe for Hmac<D>where
D: RefUnwindSafe,
impl<D> Send for Hmac<D>where
D: Send,
impl<D> Sync for Hmac<D>where
D: Sync,
impl<D> Unpin for Hmac<D>where
D: Unpin,
impl<D> UnwindSafe for Hmac<D>where
D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more