pub struct HmacSha512 { /* private fields */ }Available on (crate features
mac-hmac or mac-blake3) and crate feature mac-hmac only.Expand description
Streaming HMAC-SHA512. Same shape as HmacSha256 with a 64-byte tag.
§Example
use crypt_io::mac::HmacSha512;
let mut m = HmacSha512::new(b"shared key")?;
m.update(b"first chunk ");
m.update(b"second chunk");
let tag = m.finalize();
assert_eq!(tag.len(), 64);Implementations§
Trait Implementations§
Source§impl Clone for HmacSha512
impl Clone for HmacSha512
Source§fn clone(&self) -> HmacSha512
fn clone(&self) -> HmacSha512
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HmacSha512
impl RefUnwindSafe for HmacSha512
impl Send for HmacSha512
impl Sync for HmacSha512
impl Unpin for HmacSha512
impl UnsafeUnpin for HmacSha512
impl UnwindSafe for HmacSha512
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