pub struct SimpleMac(/* private fields */);
Expand description
Simple Message Authentication Code (MAC) computation wrapper
Use new
, update
and finalize
triplet to produce MAC of arbitrary data.
Currently instantiated using Blake2s256 MAC.
Implementations§
Trait Implementations§
Source§impl DigestLike<Blake2sMac<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for SimpleMac
impl DigestLike<Blake2sMac<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for SimpleMac
Source§fn internal_state(&mut self) -> &mut Blake2sMac256
fn internal_state(&mut self) -> &mut Blake2sMac256
Access to the internal state of the digest-like operation.
Source§fn update(&mut self, data: &[u8])
fn update(&mut self, data: &[u8])
Update the internal state of the digest-like using the given input data.
Source§fn finalize_into(&mut self, out: &mut [u8])
fn finalize_into(&mut self, out: &mut [u8])
Retrieve the final digest value into a prepared buffer and reset this instance so it could be reused for
a new computation.
Auto Trait Implementations§
impl Freeze for SimpleMac
impl RefUnwindSafe for SimpleMac
impl Send for SimpleMac
impl Sync for SimpleMac
impl Unpin for SimpleMac
impl UnwindSafe for SimpleMac
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