pub struct Hmac<D>where
D: Digest,{ /* private fields */ }
Implementations§
Trait Implementations§
source§impl<D> Digest for Hmac<D>where
D: Digest,
impl<D> Digest for Hmac<D>where
D: Digest,
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() -> Hmac<D>
fn input(&mut self, data: impl AsRef<[u8]>)
fn finalize(self) -> <Hmac<D> as Digest>::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> HmacDigest<D> for Hmac<D>where
D: Digest,
impl<D> HmacDigest<D> for Hmac<D>where
D: Digest,
source§impl<D> PartialEq for Hmac<D>
impl<D> PartialEq for Hmac<D>
impl<D> Eq for Hmac<D>
impl<D> StructuralPartialEq for Hmac<D>where
D: Digest,
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